[U-Boot-Users] "How to erase the Flash used by u-boot"

Wolfgang Denk wd at denx.de
Thu Apr 14 12:50:48 CEST 2005


In message <36422.202.62.67.130.1113472528.squirrel at 202.62.67.130> you wrote:
>
> Here customer is asking to give provision to erase U-boot from Kernel as
> well as from existing U-boot when there is any updated U-Boot.

I'm sure you are aware of this risk, but I think I  should  point  it
out  anyway:  there  is  no  fall-back  or other means of recovery if
updating U-boot fails. If you have a power-failure or if the customer
poresses the reset button during this procedure, the  your  board  is
dead. Period.

> Currently i am erasing U-Boot from U-Boot only.
> I do not know how to erase U-Boot from Kernel.

Then please go back and read the manual, especially here:
http://www.denx.de/twiki/bin/view/DULG/UBootInstallUsingLinux

> Here i have some fundamental doubts that ,
> How to erase U-Boot from Kernel level?

Provide an appropriate MTD partitioning  and  use  the  standard  MTD
drivers.

> How to access Physical address directly in Linux Kernel?

You don't want nor need to do this.

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
Killing is stupid; useless!
	-- McCoy, "A Private Little War", stardate 4211.8




More information about the U-Boot mailing list