From: Ben Nizette <bn@niasdigital.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] FLASH write bug on NGW100
Date: Thu, 21 May 2009 07:49:25 +1000 [thread overview]
Message-ID: <1242856165.29236.28.camel@linux-51e8.site> (raw)
In-Reply-To: <4A140B97.9050900@googlemail.com>
?
<reconstructing thread and cc'ing u-boot list; please don't
top-post :-)>
> > > when using the latest u-boot version from
> > > git://www.denx.de/git/u-boot-avr32.git, it is not possible for me to
> > > write (I have tried saveenv and protect) to NOR FLASH anymore.
> > >
> > > U-Boot gives the following error: "start or end address not on sector
> > > boundary"
> > >
> > > Is this a known problem?
> > >
> > > Gerhard
> > >
> >
> > Post the exact commands you are using. Probably you are using wrong
> > addresses
> >
>
> The exact command:
>
> ?U-Boot> saveenv
> Saving Environment to Flash...
> Error: start and/or end address not on sector boundary
>
> Seriously, it's that easy. The addresses are the default ones found in
> include/configs/atngw100.h since the dawn of time :-)
>
> --Ben.
?
> On Wed, 2009-05-20 at 13:08 +0200, Eirik Aanonsen wrote:
> ?I dont have tha board. What result do you get if you run: Flinfo ( post it back here )
On Wed, 2009-05-20 at 15:54 +0200, Gerhard Berghofer wrote:
> Hi Eirik,
>
> flinfo with u-boot version >= 2009.03 gives the following output:
>
> ######################################################################
> Bank # 1: CFI conformant FLASH (16 x 16) Size: 8 MB in 135 Sectors
> AMD Standard command set, Manufacturer ID: 0x1F, Device ID: 0x1D6
> Erase timeout: 8192 ms, write timeout: 1 ms
> Buffer write timeout: 1 ms, buffer size: 4 bytes
>
> Sector Start Addresses:
> A0000000 A0002000 A0004000 A0006000 A0008000
> A000A000 A000C000 A000E000 A0010000 A0020000
> A0030000 A0040000 A0050000 A0060000 A0070000
...
>
> flinfo with u-boot version 2008.10 gives the following output:
>
> ######################################################################
> Bank # 1: CFI conformant FLASH (16 x 16) Size: 8 MB in 135 Sectors
> AMD Standard command set, Manufacturer ID: 0x1F, Device ID: 0x1D6
> Erase timeout: 8192 ms, write timeout: 1 ms
> Buffer write timeout: 1 ms, buffer size: 4 bytes
>
> Sector Start Addresses:
> 00000000 RO 00002000 RO 00004000 RO 00006000 RO 00008000 RO
> 0000A000 RO 0000C000 RO 0000E000 RO 00010000 RO 00020000
> 00030000 00040000 00050000 00060000 00070000
...
> ?the FLASH seems to be attached to a wrong address range ...
Well on the AVR32 both addresses are correct - the first accessed the
flash through the uncached, untranslatable segment, now it's both cached
and translated but that should only be a win. I guess though that the
environment address (which in the config is set to 007F0000) is still
somehow somewhere being translated to A07F0000 then breaking all the
flash range checking.
But I'm kinda guessing here, I hope someone on the u-boot list can tell
us it's known and fixed and we should be have scoured their archives
harder ;-)
--Ben.
next parent reply other threads:[~2009-05-20 21:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4A13E29F.3030406@berghofers.net>
[not found] ` <1DC0FF5051B91B4D88A15F21F1A27F4176AAFB@dware1013.doorway.loc>
[not found] ` <1242823030.29236.10.camel@linux-51e8.site>
[not found] ` <1DC0FF5051B91B4D88A15F21F1A27F4176AB00@dware1013.doorway.loc>
[not found] ` <4A140B97.9050900@googlemail.com>
2009-05-20 21:49 ` Ben Nizette [this message]
2009-05-21 19:30 ` [U-Boot] FLASH write bug on NGW100 Eirik Aanonsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1242856165.29236.28.camel@linux-51e8.site \
--to=bn@niasdigital.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox