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.

regards
ashok

On Thu, 06 Dec 2001 Rafael Rodr�guez Velilla wrote :
>   Is there a way to transfer a raw binary file into an 
> mtd partition
> from Linux.
>   I have an Assabet with a some partitions, in the 
> first one I store my
> bootloader and the kernel,
>   I've tried to update the kernel with:
> 
>   erase /dev/mtd0
>   dd if=kernelloader.bin of=/dev/mtd0 bs=1
>   (I have also tried with cp)
> 
>  But when I reboot it starts to decompress the kernel 
> but stops
> regreting of an invalid crc.
>   (kernelloader.bin is around 750 k)
> 
>   Do you know of a simple way to do what I want?  Is 
> there a lower layer
> under mtd that would let me access the flash as a raw 
> device?
> 
> --
> Rafael Rodr�guez Velilla        [EMAIL PROTECTED]
> Telef�nica I+D          http://www.tid.es
> Telf: +34 - 91 337 4270
> 
> 
> 
> 
> 
> _______________________________________________
> http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
> Please visit the above address for information on this 
> list.
 


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

Reply via email to