public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] i.MX6: nitrogen6x: fix erase size in 6x_upgrade.txt
@ 2013-10-09 19:25 Eric Nelson
  2013-10-10 14:48 ` Stefano Babic
  2013-10-31 16:58 ` Stefano Babic
  0 siblings, 2 replies; 4+ messages in thread
From: Eric Nelson @ 2013-10-09 19:25 UTC (permalink / raw)
  To: u-boot

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>
---
 board/boundary/nitrogen6x/6x_upgrade.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/boundary/nitrogen6x/6x_upgrade.txt b/board/boundary/nitrogen6x/6x_upgrade.txt
index 0d8e8e5..ad3d0b6 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 ;
-- 
1.8.1.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] i.MX6: nitrogen6x: fix erase size in 6x_upgrade.txt
  2013-10-09 19:25 [U-Boot] [PATCH] i.MX6: nitrogen6x: fix erase size in 6x_upgrade.txt Eric Nelson
@ 2013-10-10 14:48 ` Stefano Babic
  2013-10-10 16:46   ` Otavio Salvador
  2013-10-31 16:58 ` Stefano Babic
  1 sibling, 1 reply; 4+ messages in thread
From: Stefano Babic @ 2013-10-10 14:48 UTC (permalink / raw)
  To: u-boot

On 09/10/2013 21:25, Eric Nelson wrote:
> 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>
> ---
>  board/boundary/nitrogen6x/6x_upgrade.txt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/board/boundary/nitrogen6x/6x_upgrade.txt b/board/boundary/nitrogen6x/6x_upgrade.txt
> index 0d8e8e5..ad3d0b6 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 ;
> 

Acked-by: Stefano Babic <sbabic@denx.de>

Best regards,
Stefano Babic

-- 
=====================================================================
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
=====================================================================

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] i.MX6: nitrogen6x: fix erase size in 6x_upgrade.txt
  2013-10-10 14:48 ` Stefano Babic
@ 2013-10-10 16:46   ` Otavio Salvador
  0 siblings, 0 replies; 4+ messages in thread
From: Otavio Salvador @ 2013-10-10 16:46 UTC (permalink / raw)
  To: u-boot

On Thu, Oct 10, 2013 at 11:48 AM, Stefano Babic <sbabic@denx.de> wrote:
> On 09/10/2013 21:25, Eric Nelson wrote:
>> 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>
>> ---
>>  board/boundary/nitrogen6x/6x_upgrade.txt | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/board/boundary/nitrogen6x/6x_upgrade.txt b/board/boundary/nitrogen6x/6x_upgrade.txt
>> index 0d8e8e5..ad3d0b6 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 ;
>>
>
> Acked-by: Stefano Babic <sbabic@denx.de>

This would be good to have into 2013.10 release. Is it still possible?

-- 
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] i.MX6: nitrogen6x: fix erase size in 6x_upgrade.txt
  2013-10-09 19:25 [U-Boot] [PATCH] i.MX6: nitrogen6x: fix erase size in 6x_upgrade.txt Eric Nelson
  2013-10-10 14:48 ` Stefano Babic
@ 2013-10-31 16:58 ` Stefano Babic
  1 sibling, 0 replies; 4+ messages in thread
From: Stefano Babic @ 2013-10-31 16:58 UTC (permalink / raw)
  To: u-boot

On 09/10/2013 21:25, Eric Nelson wrote:
> 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>
> ---


Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic


-- 
=====================================================================
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
=====================================================================

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-10-31 16:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-09 19:25 [U-Boot] [PATCH] i.MX6: nitrogen6x: fix erase size in 6x_upgrade.txt Eric Nelson
2013-10-10 14:48 ` Stefano Babic
2013-10-10 16:46   ` Otavio Salvador
2013-10-31 16:58 ` Stefano Babic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox