[U-Boot-Users] AT91RM9200 Dataflash op error with U-Boot1.1.4

Andrey P. Vasilyev andrey_vasilyev at mail.ru
Tue May 9 18:22:08 CEST 2006


On Tue, May 09, 2006 at 10:45:20PM +0800, KylongMu wrote:
> > On Tue, May 09, 2006 at 07:11:52PM +0800, KylongMu wrote:
> > > Dear Groups:
> > > 	My board contains: AT91RM9200 DataFlash:AT45DB642 (without nand
> > > flash)
> > ...
> > > U-Boot> erase c0020000 c0027fff
> > > Error: start address not on sector boundary
> > > U-Boot>
> > 
> > Perhaps, this patch will help you: 
...
> > If it will not solve the problem, try this:
...
> 
> Dear Andrey,
> 	Thanks for your answer. I patched these two files one by one, or
> both of them, but all failed, and the error is still.
> Thanks a lot!

Oops... My mistake. I've replied without carefully reading your 
question...
Right answer (I hope): you dont need to erase dataflash. AFAIK, 
dataflash erasing is performed by driver when you write into dataflash.
So, for example, to download binary into c0042000 dataflash "virtual" 
address, you can use simple "cp" command, without issuing "erase" 
command first, like this:

loadb 21000000
<sending image 0x12345 bytes long by kermit>
cp.b 21000000 c0042000 12345

-- 
With best regards,
  Andrey Vasilyev




More information about the U-Boot mailing list