Questions tagged [jffs2]

JFFS2 is a log-structured file system for use with flash memory devices. Enforces wear levelling by treating the device as a circular log. Successor of JFFS.

Journalling Flash File System version 2 or JFFS2 is a log-structured file system for use with flash memory devices. It is the successor to JFFS. Part of Linux kernel since 2.4.10.

JSSF2 added support for sequential I/O memory devices like NAND (these cannot be memory-mapped for reading), hard links and compression.

See Wikipedia for more details.

34 questions
7
votes
1 answer

ubifs volumes vs. mtd partitions

I'm migrating a product from jffs2 file system to ubifs. Previous jffs2 design contains 3 mtd partitions ( 2 ro and 1 rw ) . moving to ubifs - should I create : One mtd partition and 3 volumes 3 mtd partitions, 1 volume each Basically I'm asking…
user3087632
  • 143
  • 2
  • 9
7
votes
1 answer

What is 'erase block' in `mkfs.jffs2' utility in Linux?

what is 'erase block' in the mkfs.jffs2 utility? I couldn't find anything by googling, maybe because of my deficient search skills. Can anybody tell me what it is? Can anybody can describe what 'erase block' is?
Young Hyun Yoo
  • 598
  • 10
  • 21
4
votes
1 answer

JFFS2 filesystem corrupts immediately (Magic bitmask 0x1985 not found errors)

I have created a root filesystem with buildroot that is using squashfs. It works fine, and now I would like to create an overlayfs, which would hold /home and /etc directories. For this purpose, I wanted to create a simple jffs2 filesystem with…
julumme
  • 2,326
  • 2
  • 25
  • 38
4
votes
1 answer

Algorithm used in JFFS2

I'm newbie to JFFS2 file systems. I'm looking for a reference/article/paper on garbage collection algorithm used in JFFS2. It would be great if anyone steer me to that. Thanks. -Sam
Sam
  • 423
  • 2
  • 9
  • 23
3
votes
1 answer

not syncing: No init found. for jffs2 filesystem

I am working on mpc8309-twr board with kernel 2.6.33.7, when i am creating my rootfs image with ramdisk file system (rootfs.ext2.gz.uboot) i am able to mount my file system and my board is able to boot successfully. But, when i am trying with…
3
votes
1 answer

User processes in D-state leads to a watchdog reset using Linux 2.6.24 and arm processor

Most of the user space processes are ending up in D-state after the unit runs for around 3-4 days, the unit is running on ARM processor. From the top o/p we can see that processes that are in D-state are waiting on system calls "page_fault" and…
2
votes
0 answers

File missing or corrupted on mounting jffs2

I'm facing two problems on mounting jffs2 on NOR flash: I'm running a board with squashfs as rootfs and I tried to mount jffs2 on another mtdblock as below : mount -t jffs2 /dev/mtdblock6 /tmp/jffs After that I copy some files into /tmp/jffs but…
2
votes
1 answer

Why file in JFFS2 gets corrupted after power loss during removal of other files

I am working with Linux (3.4.31+) embedded system booting from JFFS2 partition. I frequently encounter a problem of a file corruption when power loss occurs while other files are being removed. It happens during upgrade procedure of the platform.…
Marcin
  • 279
  • 1
  • 4
  • 13
2
votes
1 answer

mount() and jffs2_gcd_mtd0 garbage collector

I'm working on a platform running MontaVista Linux 3.1. I have a C++ application, which for esoteric reasons which I won't go into, has to remount the JFFS2 flash file system quite regularly between read-only and read-write. When you perform a int…
Matt Dunn
  • 5,106
  • 6
  • 31
  • 55
2
votes
1 answer

something wrong about jffs2dump change a JFFS2 file system to a little-endian file

i have a JFFS2 file system ,it's a big-endian. my computer: x86 Linux,little-endian. i used jffs2dump to changed my JFFS2 file to a little-endian. eg: (# jffs2dump -c -v -b -e B070.jffs2 B070.w). there's some wrong come out: │Wrong bitmask at …
1
vote
1 answer

How does Flash Translation Layer store mapping data, unusable block and super block?

Does ftl have private storage space that is not flash? If not, how does ftl store those meta data while avoiding wear leveling. Actually I don’t know if there is a super block in ftl, but if you want to locate the mapping data and unusable block…
Karl
  • 665
  • 4
  • 19
1
vote
1 answer

O_DIRECT support on a jffs2 Linux filesystem

Im trying to use O_DIRECT to open a file and we're using jffs2 fd = open(filename, O_RDONLY|O_DIRECT|O_SYNC); But i only get an "invalid argument" error. I have also tried the solutions in this SO link but to no avail. Ofcourse i have also put in…
Naze Kimi
  • 303
  • 1
  • 3
  • 23
1
vote
0 answers

mount jffs2 as rootfs error

I’m trying to mount jffs2 rootfs. When the fs is mounted the following warning is displayed: Jffs2: Node totlen on flash (0xffffffff) != totlen from node ref This warning did not occur when I used ramfs as rootfs, and jffs2 rootfs was mounted…
Okarin
  • 29
  • 3
1
vote
1 answer

JFFS2 filesystem, storage usage inconsistent with real file size

I used a spi-nor chip and made one 16M partition as JFFS2 fs. I found a weird thing that I should have used 14M storage, but when I use df to check, it shows only 7M have been used: / # df Filesystem 1K-blocks Used Available Use%…
Gemini
  • 107
  • 1
  • 9
1
vote
0 answers

Error in Mounting jffs2 file system in Nandflash

I m using at91sam9m10g45ek board.i want to boot from Nandflash. linux 3.12 not able to mount jffs2 during booting from nandflash. My u-boot Parameter : bootargs=console=ttyS0,115200 earlyprintk…
Chintan Patel
  • 173
  • 3
  • 14
1
2 3