csimmonds / nandcheck

Check the status of NAND flash chips using the Linux MTD interface
GNU General Public License v2.0
6 stars 3 forks source link

Does this work for NOR flash? #1

Open tachang opened 3 years ago

tachang commented 3 years ago

Thanks for making this. Just wondering if this might work for NOR based flash. I cross compiled to a MIPS system for my project (openmiko).

# nand_check /dev/mtd1
Flash type is 3
Unknown type of flash (not normal NAND)
# 
csimmonds commented 3 years ago

Simple answer: no

Longer answer: I wrote nandcheck to print out the bad blocks of a typical SLC NAND flash chip. Later on I added code to indicate which blocks are in use in a JFFS2 file system. NOR flash chips don't have bad blocks, so the first part does not apply. The JFFS2 code could be changed to work with NOR, but then the name of the program would have to be changed ;-)

Since JFFS2 is very seldom used these days, I don't think this is really worth the effort to change. I don't even have a device with NOR flash to test it on. But, feel free to fork and make the change for yourself