Skip to contentSkip to conversation

Can I write to flash using mw command

U-Boot-Users Ben Warren 2 participants 2 messages Oct 5, 2006 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Ben Warren

author
#1 lore raw
Quoted 15 lines · bilahari akkiraju

Hi Ben,

Stuff works fine using U-boot's cfi. I can protect
and erase using appropriate commands (protect and erase ) provided by the u-boot. I do not know if there is a u-boot command to write to flash.

My flinfo command shows this :

bank # 1: CFI conformant FLASH (32 x 16) Size: 16 MB
in 128 Sectors
Erase timeout 16384 ms, write timeout 0 ms, buffer
write timeout 4096 ms, buffe2
Sector Start Addresses:

Quoted 4 lines
    FF000000      FF020000      FF040000      FF060000
     FF080000             
    FF0A0000      FF0C0000      FF0E0000      FF100000
     FF120000             

This is odd. The GL064 is either 32x8 or 16x16, and has either 128x64kB or 127x64kB + 8x8kB sector layout. Yours appears to have 128 uniform sectors of 128kB each. Either you're not using the part you think you are or my documentation is out of date.

Quoted 5 lines

I am trying low level access because I am writing my
own flash utilities which are independent of U-boot and hence have to directly deal with right command sequences.

If your utilities are independent of U-boot then your request is off-topic. Since the CFI driver is working, you're missing something in the sequence of commands being written to flash. I've done it before manually via BDI-2000, and although the Spansion documentation is cryptic, it's technically correct. Sorry I can't help more right now but work beckons...

Also, please copy the U-boot mailing list when corresponding.

regards,
Ben

#2 lore raw
Quoted 1 line · In message <[email protected]> you wrote:

On Thu, 2006-10-05 at 14:03 -0700, bilahari akkiraju wrote:

...

Quoted 4 lines
Quoted 4 lines

Stuff works fine using U-boot's cfi. I can protect
and erase using appropriate commands (protect and erase ) provided by the u-boot. I do not know if there is a u-boot command to write to flash.

RTFM: http://www.denx.de/wiki/view/DULG/UBootCmdGroupFlash

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"I say we take off; nuke the site from orbit. It's the only way to be
sure."                                  - Corporal Hicks, in "Aliens"