[U-Boot-Users] copy command taking incorrect/invalid arguments

Wolfgang Denk wd at denx.de
Sat Mar 1 14:26:43 CET 2008


In message <5BF78BCE8D9BF14A83F836BD9E3916BA053F25 at blrms.slti.sanyo.co.in> you wrote:
> 
> By mistake today i entered "cp.b ox800000 0x2c000000 0x1a6c0" at the
> prompt 
> Kindly look at this error ------------>| "ox800000" and not "0x800000"
> as it shld be
> 
> #> cp.b ox800000 0x2c000000 0x1a6c0
> Copy to Flash... done
> 
> and now flash is gone corrupted. 

...but you still can fix the problem by repeating the correct copy
command.

> Isnt it the copy commands responsibility to check for incorrect or
> invalid command arguments.

Define  "responsibility".  This  is  a  boot  loader,  and  we  often
sacrifice sphisticated error checking for minimal memory footprint.

It's like driving in a potentially fast car without safety seatbelts
nor airbags...

Take care.

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Our missions are peaceful -- not for conquest.  When we do battle, it
is only because we have no choice.
	-- Kirk, "The Squire of Gothos", stardate 2124.5




More information about the U-Boot mailing list