I'm working toward being able to update my kernel from a running linux but I've run into a bit of a problem with the mtd-utils package. It's my understanding that I can update the kernel by erasing the mtd block where it is stored (/dev/mtd2) and then write the new image to the same location using nandwrite -p /dev/mtd2 <source image>.

Doing a 'flash_eraseall /dev/mtd2' I get the following message...

r...@dm355evm:~# flash_eraseall /dev/mtd2
Erasing 256 Kibyte @ 3c0000 -- 93 % complete.

The 93% leads me to believe that the application recognizes the chip improperly since I had the same type of problem in uboot when our hardware switched from the QAA -> DAA nand chip. (It would calculate the completion percentage to > 100%).

Going further and trying a nandwrite gives the following error:

r...@dm355evm:~# nandwrite -p /dev/mtd2 /media/usb/uImage.copy
Unknown flash (not normal NAND)


I'm pretty sure that the mtd-utils package just isn't configured to work with the xxxDAA nand chip but I wanted to first check to see if anybody on this list has had the same problem? If so, did you edit the source for mtd-utils to fix it?

Thanks,

BJ

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to