[U-Boot-Users] Can I write to flash using mw command

Wolfgang Denk wd at denx.de
Fri Oct 6 10:13:10 CEST 2006


In message <20061006033619.65376.qmail at web33205.mail.mud.yahoo.com> you wrote:
> 
> I did 
> 
>  protect off all

For this to work, you need working flash driver support in U-Boot.

And *if* you have working flash driver support, I wonder why you need
to do such things:

> WRITE COMMAND SEQUENCE:
> 
>   mw ff000555 00AA00AA
>   mw ff0002AA 00550055
>   mw ff000555 00A000A0
>   mw ff000000 12345678

Please explain which flash driver you are using (cfi driver???),  and
what the exact problem is you are trying to solve.

> timeout intervals) and also does a reset to bring back
> device to read array mode 
>  
>  mw.w ff000000 00F0 ; reset cmd

In a configuration with 2 x 16 bit devices that should be 00F000F0.

> I have a ppc 8343 processor on board. I am wondering
> if U-boot that came with my target board has
> configuration that is preventing me to write to flash
> (but cp commands works fine with flash). Any one who

This statement makes no sense to me. If cp to flash works fine,  then
obviously  writing  to flash is working fine, because this is what cp
does when the target address points to  flash  memory  -  programming
data to flash.


Explain what you want to do, and why, and what is not  working  -  it
sounds  as  if you have a perfectly working CFI driver on your board,
so what is the problem?

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Virtual" means never knowing where your next byte is coming from.




More information about the U-Boot mailing list