diff options
author | Eric Nelson <eric.nelson@boundarydevices.com> | 2013-10-09 12:25:15 -0700 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2013-10-31 17:56:57 +0100 |
commit | 8f8b8949e57b7c833966c108256f6bef7f636135 (patch) | |
tree | 7c8166bc3cdc482bac7b04755e4c6fe1048283db | |
parent | 465ac5891c0302d33a59700711f3f0f1e81392fa (diff) | |
download | u-boot-8f8b8949e57b7c833966c108256f6bef7f636135.zip u-boot-8f8b8949e57b7c833966c108256f6bef7f636135.tar.gz u-boot-8f8b8949e57b7c833966c108256f6bef7f636135.tar.bz2 |
i.MX6: nitrogen6x: fix erase size in 6x_upgrade.txt
The 6x_upgrade script is used to upgrade U-Boot in SPI-NOR
on Nitrogen6x/SABRE Lite boards using U-Boot's 'sf' command.
U-Boot is placed at offset 0x400 in flash, and the script
currently only erases 0x50000 bytes. Since the current
head is 319k, any additional features enabled in the
configuration will exceed the space erased and cause errors
re-programming the device.
This patch increases the erase size to the full size of
the region allocated for the U-Boot binary.
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
Acked-by: Stefano Babic <sbabic@denx.de>
-rw-r--r-- | board/boundary/nitrogen6x/6x_upgrade.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/boundary/nitrogen6x/6x_upgrade.txt b/board/boundary/nitrogen6x/6x_upgrade.txt index 1f9a889..1a62bbf 100644 --- a/board/boundary/nitrogen6x/6x_upgrade.txt +++ b/board/boundary/nitrogen6x/6x_upgrade.txt @@ -17,7 +17,7 @@ if ${fs}load ${dtype} ${disk}:1 12000000 u-boot.imx || ${fs}load ${dtype} ${disk sleep 1 ; done echo "erasing" ; - sf erase 0 0x50000 ; + sf erase 0 0xC0000 ; # two steps to prevent bricking echo "programming" ; sf write 0x12000000 $offset $filesize ; |