ashok mp wrote:

> hi
> erase requires offset and no. of sectors to be passed to it
>
> /erase /dev/mtd0 0 4    (where 0 is offset and 4 is the no of sectors to be erased.)
> then do a dd.
>
> I feel if the flash partition is not been erased fully.
> U need to see that u erase the partition before u do a dd.
> I have tried this and it works.

    Yes, that is the solution. erase doesn't erase all the blocks in mtd0 (as I
presumed), but if I specify it to erase enough blocks, then dd (over /dev/mtd0) or cp
(over /dev/mtdblock0) copies the kernel loader and the kernel correctly.

  Thank you all.



_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to