While booting my i.MX233 Board, I have noticed that there are so many bad blocks found in the NAND Flash.
Attached the log file of the same showing the same.
How to fix this Bad blocks issue??
Original Attachment has been moved to: debug.log.zip
you could run fsck.ext3 /dev/mmcblk0
The way that most linux file systems work you simply cannot do a safe/useful check on a mounted file system. It's not really safe, and because the system is in use, it can be unreliable. Sadly, sometimes, you have to live with things the way they are until someone does it better ;). Ext4 probably won't pick up this feature (maybe ext5? if it ever happens) but I believe btrfs will, and if it does, you will be able to switch your partitions over when the time comes.
So the best way is boot from SD card , make sure you have e2fsprogs package installed in it..
then run fsck.ext3 /dev/mmcblk1 check which device you want to check/fix.
Please try recommendations in section 5.1.3 (Writing the boot stream to a boot media)
of "i.MX23_Linux_BSP_UserGuide.pdf" :
If flash is dirty or has unexpected data, you use below command to erase all.
#echo –n 1 > /sys/bus/platform/devices/gpmi-nfc.0/ignorebad