LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 05-18-2011, 07:50 AM   #1
littlebigman
Member
 
Registered: Aug 2008
Posts: 461

Rep: Reputation: 32
Question 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.
 
Old 05-18-2011, 08:49 AM   #2
littlebigman
Member
 
Registered: Aug 2008
Posts: 461

Original Poster
Rep: Reputation: 32
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.
 
Old 06-08-2011, 08:38 AM   #3
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
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'
 
Old 06-09-2011, 03:40 AM   #4
littlebigman
Member
 
Registered: Aug 2008
Posts: 461

Original Poster
Rep: Reputation: 32
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] why do I see NAND usage instead of RAM ? nomoney29 Linux - Embedded & Single-board computer 2 05-03-2011 04:43 AM
Problem on Linux NAND root filesystem cfnielse Linux - Embedded & Single-board computer 5 04-10-2011 01:30 PM
Nand flash boot Roger03 Programming 1 04-03-2010 06:19 AM
R/W from nand flash linux_newbie79 Linux - Newbie 3 08-19-2009 09:35 AM
nand flash: need help jier Programming 0 05-04-2006 12:05 AM


All times are GMT -5. The time now is 04:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration