From: Wolfgang Denk Date: Sat, 01 Mar 2008 14:26:43 +0100 Subject: [U-Boot-Users] copy command taking incorrect/invalid arguments In-Reply-To: Your message of "Sat, 01 Mar 2008 18:22:18 +0530." <5BF78BCE8D9BF14A83F836BD9E3916BA053F25@blrms.slti.sanyo.co.in> Message-ID: <20080301132643.B1F732402B@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <5BF78BCE8D9BF14A83F836BD9E3916BA053F25@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