Any idea if this is still an unresolved bug in the montavista kernel? How can I change the OOB code in the linux kernel to match with that of the uboot? Can someone please give me some pointers on where/what code needs to be changed.
Regards, Vinod ________________________________ From: Stephen Berry [mailto:[email protected]] Sent: Friday, July 17, 2009 8:10 PM To: Vinod Nanjaiah Cc: [email protected] Subject: Re: Flashing kernel from linux - need help We've seen this problem in the 2.6.10 distribution on our DM355. We did a little investigation and with the same image we can write the kernel from U-Boot (and the OOB bytes are written correctly) and there is no problem. However writing it from a running kernel - OOB bytes are zero and *occasionally* that kernel will fail booting. We have one image that boots 3 out of 4 times, but will fail with a CRC error on the forth! Steve Vinod Nanjaiah wrote: Dear all, I am facing problem in booting a kernel image that has been flashed from linux prompt. I have created 4 flash partitions. At the linux prompt, I used "flash_eraseall /dev/mtd2" to erase the flash partition. Then I used "nandwrite -p /dev/mtd2 uImage_v2" to flash the kernel image. >From the output of "nanddump /dev/mtd2" I can see a valid magic number in the >first 4 bytes. Next when I try to boot from 0xA0000 (maps to /dev/mtd2 partition) I get the following error: (Partition sizes: mtd0 --> 0x80000, mtd1 --> 0x20000) DM6467 EVM # nand read.i 80700000 a0000 200000 NAND read: device 0 offset 0xa0000, size 0x200000 reading NAND page at offset 0xa0000 failed 2097152 bytes read: ERROR What could the problem be? One difference that I noticed between the "nanddump" done at linux prompt and "nand dump" done at u-boot prompt is in the OOB bytes. Could this be a potential problem? Thank you, Vinod _______________________________________________ Davinci-linux-open-source mailing list [email protected]<mailto:[email protected]> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source ________________________________ http://www.mindtree.com/email/disclaimer.html
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
