cleverca22
Posts: 776
Joined: Sat Aug 18, 2012 2:33 pm

JFFS2

Sun Nov 24, 2013 4:53 am

has anybody tried using JFFS2 as the root filesystem on a pi?, i'm thinking of trying it out to see how well it works

jimbox51
Posts: 5
Joined: Thu Apr 12, 2012 6:57 pm

Re: JFFS2

Sun Nov 24, 2013 4:25 pm

JFFS and JFFS2 are meant to be used when you have direct access to the NAND flash chips.
The usual scenario for use is when a board has flash chips directly soldered and connected to the processor.

As the raspberrypi uses an SD card - the only access is via the sdcard interface to the embedded flash controller in the SD card itself. This controller does some of the things (wear levelling etc) that JFFS2 would need to do for the raw flash chips it controls.

See this article http://lwn.net/Articles/528617/

cleverca22
Posts: 776
Joined: Sat Aug 18, 2012 2:33 pm

Re: JFFS2

Mon Nov 25, 2013 12:17 pm

yeah, i was just wondering if it could be forced to work, even thru the 2nd layer of wear leveling on the sd controller

the issue i can see, is that when your card is 90% full, and 90% read-only (os files), any constant use in the remaining 10% can overwear those pages, while leaving the other 90% virtualy untouched

acording to wikipedia, JFFS2 will copy unmodified pages every now and then so those sectors also get worn evenly, rather then forcing the wear into a small section

User avatar
hojnikb
Posts: 128
Joined: Mon Jun 04, 2012 3:59 pm
Location: @Home

Re: JFFS2

Mon Nov 25, 2013 6:10 pm

just dont worry about wearing out the card..
if its not a garbage card, it will spread writes across the entire flash and move the static data aswell..
Either way, no need for jffs2, because its slow and not intended for block type devices.

If you're paranoid, just use sdcard as a place to store firmware and bios and use external drive for rootfs..
+°´°+,¸¸,+°´°~ Everyone should have a taste of UK Raspberry Pie =D ~°´°+,¸¸,+°´°+
Rasberry Pi, SoC @ 1225Mhz :o, 256MB Ram @ 550Mhz, 16GB SD-Card, Raspbian

cleverca22
Posts: 776
Joined: Sat Aug 18, 2012 2:33 pm

Re: JFFS2

Tue Nov 26, 2013 12:58 am

except i just killed the card i got from element14 by compiling mplayer a couple dozen times
its so bad that apt breaks too, the .postinst bash script turns into binary garbage and the fs gets corrupted within 30mins of booting, even if i had already ran fsck on the card

User avatar
hojnikb
Posts: 128
Joined: Mon Jun 04, 2012 3:59 pm
Location: @Home

Re: JFFS2

Tue Nov 26, 2013 5:15 pm

must be a bad card and not the problem with wear itself..
+°´°+,¸¸,+°´°~ Everyone should have a taste of UK Raspberry Pie =D ~°´°+,¸¸,+°´°+
Rasberry Pi, SoC @ 1225Mhz :o, 256MB Ram @ 550Mhz, 16GB SD-Card, Raspbian

cleverca22
Posts: 776
Joined: Sat Aug 18, 2012 2:33 pm

Re: JFFS2

Wed Nov 27, 2013 3:14 am

its the card that came from element14 with debian pre-installed
i would expect them to get decent cards

Return to “Advanced users”