LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   Which filesystem for NAND? (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/which-filesystem-for-nand-881385/)

littlebigman 05-18-2011 06:50 AM

Which filesystem for NAND?
 
Hello

As YAFFS2 is no longer available in the uClinux distribution I'm using, I need to move on to another filesystem.

In this list, which filesystem would you recommend to hold the root filesystem in the NAND?

Miscellaneousfilesystems
  • ADFSfilesystemsupport(EXPERIMENTAL)
  • AmigaFFSfilesystemsupport(EXPERIMENTAL)
  • AppleMacintoshfilesystemsupport(EXPERIMENTAL)
  • AppleExtendedHFSfilesystemsupport
  • BeOSfilesystem(BeFS)support(readonly)(EXPERIMENTAL)
  • BFSfilesystemsupport(EXPERIMENTAL)
  • EFSfilesystemsupport(readonly)(EXPERIMENTAL)
  • JournallingFlashFileSystemv2(JFFS2)support
  • LogFSfilesystem(EXPERIMENTAL)
  • CompressedROMfilesystemsupport(cramfs)
  • SquashFS4.0-Squashedfilesystemsupport
  • FreeVxFSfilesystemsupport(VERITASVxFS(TM)compatible)
  • Minixfilesystemsupport
  • SonicBlueOptimizedMPEGFileSystemsupport
  • OS/2HPFSfilesystemsupport
  • QNX4filesystemsupport(readonly)
  • ROMfilesystemsupport
  • SystemV/Xenix/V7/Coherentfilesystemsupport
  • UFSfilesystemsupport(readonly)

Also, what is the recommend way to copy the ext2 root filesystem from RAM onto the NAND?
Is it OK to simply boot in RAM, and then simply mount the NAND and copy the whole root tree onto the NAND?

Thank you.

littlebigman 05-18-2011 07:49 AM

I gave JFFS2 a try, and noticed that...

1. "flash_eraseall -j /dev/mtd2" is pretty slow (15mn to format a 256MB NAND)
2. After running "mount -t jffs2 /dev/mtdblock2 /mnt", uClinux is stuck for a couple of minutes with the following message:

Quote:

MTD_ioctl
Erasing 128 Kibyte @ f800000 -- 100 % complete.MTD_close

> mount -t jffs2 /dev/mtdblock2 /mnt
MTDSB: lookup_bdev() returned 0
MTDSB: New superblock for device 2 ("file system(nand)")
Any idea?

Thank you.

Oliv' 06-08-2011 07:38 AM

Hello,

If you use a kernel >= 2.6.28 (not sure about the version), you should give a try to ubifs. It is supposed to be JFFS2 successor: it should be faster, more reliable...
About your JFFS2 problem, is it just stuck but the command succeed ? or is it stuck and finally got a failure ? If you are in the first case, it is maybe because of the size of your partition: be aware that JFFS2 partition are very very long to mount :(

Kind regards,

Oliv'

littlebigman 06-09-2011 02:40 AM

Thanks for the tip. I did move on to Ubi(fs)... with which I'm currently struggling to get to work because I don't fully understand which commands and settings to use, but I should have this figured out in a little while.

For those interested, the main source of information is here:

http://www.linux-mtd.infradead.org

Thank you.


All times are GMT -5. The time now is 06:19 PM.