i.MX6: nitrogen6x: fix erase size in 6x_upgrade.txt
PATCH 1/1 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.
--- board/boundary/nitrogen6x/6x_upgrade.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
board/boundary/nitrogen6x/6x_upgrade.txt +1 -1
@@ -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 ;
Signature · 1 line
1.8.1.2
PATCH 1/1 i.MX6: nitrogen6x: fix erase size in 6x_upgrade.txt
Quoted 23 lines · Eric Nelson
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
0x400in flash, and the script currently only erases0x50000bytes. 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 <[email protected]>--- board/boundary/nitrogen6x/6x_upgrade.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)board/boundary/nitrogen6x/6x_upgrade.txt +0
-0
board/boundary/nitrogen6x/6x_upgrade.txt if ${fs}load ${dtype} ${disk}:1 12000000 u-boot.imx || ${fs}load ${dtype} ${disk · line 23
Quoted 8 lines
board/boundary/nitrogen6x/6x_upgrade.txt +1
-1@@ -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 ;
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
PATCH 1/1 i.MX6: nitrogen6x: fix erase size in 6x_upgrade.txt
Quoted 18 lines · Stefano Babic
Quoted 17 lines · Eric Nelson
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
0x400in flash, and the script currently only erases0x50000bytes. 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 <[email protected]>--- board/boundary/nitrogen6x/6x_upgrade.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 16 lines
Quoted 6 lines
board/boundary/nitrogen6x/6x_upgrade.txt +0
-0board/boundary/nitrogen6x/6x_upgrade.txt if ${fs}load ${dtype} ${disk}:1 12000000 u-boot.imx || ${fs}load ${dtype} ${disk · line 23
Quoted 8 lines
board/boundary/nitrogen6x/6x_upgrade.txt +1
-1@@ -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 ;Acked-by Stefano Babic <[email protected]>
This would be good to have into 2013.10 release. Is it still possible?
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
PATCH 1/1 i.MX6: nitrogen6x: fix erase size in 6x_upgrade.txt
In reply to Eric NelsonQuoted 9 lines · Eric Nelson
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
0x400in flash, and the script currently only erases0x50000bytes. 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.
Quoted 5 lines
This patch increases the erase size to the full size of the region allocated for the U-Boot binary.
Signed-off-by Eric Nelson <[email protected]>---
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================