2009-04-21 15:34:02     uboot says Flash Not erased eventhough i erase it !!!!!!!!

Document created by Aaronwu Employee on Aug 15, 2013
Version 1Show Document
  • View in full screen mode

2009-04-21 15:34:02     uboot says Flash Not erased eventhough i erase it !!!!!!!!

Oussema Harbi (TUNISIA)

Message: 73023   

 

Hi all ,

 

 

 

Am using a BF537 Stamp board with the last mature u-boot on it.

 

When i launch the commands :

 

bfin>protect off all

 

bfin>erase 0x20030000 0x203FFFFF

 

 

 

to erase the part the am reserving for the kernel image and the rootfs ,uboot says

 

bfin>Erased 61 sectors ; so i assume that the erasing operation went ok

 

but If after that i try to write a file -the rootfs.jffs2 - which size is 2950632  (2d05e8 hex) ,

 

the boards start copying then after some seconds it says  :

 

bfin> cp.b 0x1000000 0x20030000 $(filesize)                                   

Copy to Flash... Flash not Erased 

 

can any one tell me what could be my error knowing these further infos :

 

1.when erasing the flash for every sector erased the uboot screens a dot (.) ,in my case it screens about 23 dots -for the first 23 sectos it erased- whith a period of 1second between each 2 of them- and then it screens all the rest of the 61dots all at once.

 

2.when i try to copy a file of 900k -the vmImage- starting from the address 0x20030000 everything is fine

 

3.when i try to erase from any address greater then 0x201f0000  ,the bootloader says without any delay that the sectors where erased properly

 

4.I noticed that everytime i issue an erase command the uboot is really erasing the sectors till sector 0x2020000 ,then it just says the operation went ok without any delay ;so for example when i say :

 

bfin> erase 0x201E0000 0x203FFFFF

 

i get one dot ,the another one after 1 sec then i got all the rest at once with the message :

 

................................ done                                         

Erased 32 sectors       

 

5.I tried to erase further sectors then the 0x20200000 0x202FFFFF one ,but i get the samething

 

 

 

Regards

 

Oussema

QuoteReplyEditDelete

 

 

2009-04-21 16:40:40     Re: uboot says Flash Not erased eventhough i erase it !!!!!!!!

Robin Getz (UNITED STATES)

Message: 73025   

 

Oussema:

 

The erase command just issues the erase commands - it doesn't ack with the part, or check to see if things are erased.

 

If the SW6 is not connecting all the ~AMS[0-3] pins to the flash - I have seen and done what is going on with you.

 

-Robin

QuoteReplyEditDelete

 

 

2009-04-22 17:09:38     Re: uboot says Flash Not erased eventhough i erase it !!!!!!!!

Oussema Harbi (TUNISIA)

Message: 73081   

 

Thank you Robin

 

I disconnected the AMS2 and AMS3 to use the memory card extension a long time ago and forgot to turn them back on ..

 

but i should have doubted that ..

 

 

 

Regards

 

Oussema

Attachments

    Outcomes