i.MX233 EVK - NAND Flash Bad blocks issue-

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX233 EVK - NAND Flash Bad blocks issue-

829 Views
GopiNagaBharath
Contributor IV

Hello,

 

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??


Regards,

Gopi

Original Attachment has been moved to: debug.log.zip

Labels (2)
Tags (1)
0 Kudos
2 Replies

587 Views
winstonrodrigue
Contributor IV

Hi ...

you could run fsck.ext3 /dev/mmcblk0

Butttt............

   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.

Regards,

Winston

587 Views
Yuri
NXP Employee
NXP Employee

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

#flash_eraseall /dev/mtd<N>

"