Changing Filesystem and Kernel - Problem with Bad Blocks NandFlash
Hi people, I have reprogramed sucessfully the filesystem and kernel in some units runing linux from nand flash with an aditional SD card and using the DD command and mtd-utils, but in others the filesystem does not start or have corrupted libraries, checking this units i have found bad blocks in the problematic units.
I have 3 partitions: - Boot(2MB): containing bootstrap, uboot enviroment - Kernel(2MB): containing kernel. - Filesystem(250MB): containing the root filesystem - Backup (2MB): an extra empty partition 1º) My process to reprogram the filesystem and kernel at once start reprograming a "mini filesystem" with mtd-utils and busybox (1,5MB) into the "Backup partition" using the DD command, change the uboot enviroment to boot loading the "Backup partition" as root filesystem and rebooting. Code:
$ flash_eraseall /dev/mtd3 Code:
$ flash_eraseall /dev/mtd2 > /dev/null I was using just conv=sync parameter of DD command, then i have tried conv=noerror but it only avoid read errors. I have tried using nandwrite command, witch should avoid bad blocks writing, with -p (padding) option but it damage the file sytem. Somebody knows a better way to do this process avoiding the badblocks writing the filesystem? |
All times are GMT -5. The time now is 04:36 AM. |