Skip to contentSkip to conversation

copy command taking incorrect/invalid arguments

U-Boot-Users Gururaja Hebbar K R 2 participants 2 messages Mar 1, 2008 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi,

i am working a customized variant of arm versatile board. I have spansion s29gl18n 16MB flash on board.

i am using Uboot-1.3.1 Version and CFI flash driver to work on flash related commands

our board reset vector points to 0x2c000000

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.

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

Kindly update me if i am wrong.
Thanks in advance

Regards
Gururaja

#2 lore raw
Quoted 10 lines · In message <[email protected]> you…

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.

Quoted 2 lines

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

Signature · 6 lines
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