From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Thu, 10 Oct 2013 16:48:27 +0200 Subject: [U-Boot] [PATCH] i.MX6: nitrogen6x: fix erase size in 6x_upgrade.txt In-Reply-To: <1381346715-12868-1-git-send-email-eric.nelson@boundarydevices.com> References: <1381346715-12868-1-git-send-email-eric.nelson@boundarydevices.com> Message-ID: <5256BE3B.7060308@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > 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 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 =====================================================================