I followed the "Filesystem in NOR or NAND" info on the davincidsp wiki site: http://wiki.davincidsp.com/index.php/Filesystem_in_NOR_or_NAND and setup my kernel like it instructed.
Then, I erased the flash clean in u-boot and boot up that kernel. I then used "flash_eraseall -version" to get it version which is flash_eraseall $Revision: 1.24 $ I then used "flash_eraseall -j /dev/mtd3" to format my flash to JFFS2 on my filesystem section. After it was successful, I then used "mount -t jffs2 /dev/mtdblock3 /mnt/flash" to mount it onto a pre-made directory /mnt/flash. And there is where these errors pop up on me: [ 437.920000] Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes [ 437.930000] empty_blocks 0, bad_blocks 0, c->nr_blocks 61 mount: Mounting /dev/mtdblock3 on /mnt/flash failed: Input/output error So, after this, I rebooted my system and used "md" command in u-boot to see what data are written on my flash. All the not empty blocks for the file system sectors are all have this on them (address 2860000 for example): md 2860000 02860000: 20051985 00000018 ed3c9364 00000000 ... ....d.<..... 02860010: 00000000 00000000 ffffffff ffffffff ................ 02860020: ffffffff ffffffff ffffffff ffffffff ................ 02860030: ffffffff ffffffff ffffffff ffffffff ................ However, if I erase the flash sector for the file system then just do "mount -t jffs2 /dev/mtdblock3 /mnt/flash" without doing flash_eraseall in the kernel first, it will mount fine but my problem still exist just like my previous email. And, if I do "md" command in u-boot after a reboot, here is what it reply me on the same address: md 2860000 02860000: 20031985 0000000c e41eb0b1 ffffffff ... ............ 02860010: ffffffff ffffffff ffffffff ffffffff ................ 02860020: ffffffff ffffffff ffffffff ffffffff ................ So, my questions are: 1. Do you guys know what is going on with this? Especially on the mask key part, why one of them is 2005 and the other one is 2003? 2. Do I have a version conflicts on flash_eraseall ($Revision: 1.24 $) and mount which is part of BusyBox (v1.2.2 (2007.03.11-00:28+0000) multi-call binary)? But, both of them are from MVL directly. On a side note, I have DSP LINK stuff running on my board as well, and my writing flash function is called after DSP LINK is initialized. But, if I put my writing to flash function before I call DSP LINK init stuff or completely not start my DSP link stuff, then it is writing fine without any error. So, another question I have is that something going on on the DSP Link stuff especially on the dsp notify objects? Any ideas? Guys. Thanks.
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
