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

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

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
participants (2)
-
Gururaja Hebbar K R
-
Wolfgang Denk