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
1
vote
1 answer

mount JFFS2 resulted with returned ECC error

I'm trying to mount 1[MB] Flash partition on my linux machine. I'm using the following command - mount -t jffs2 -o noatime /dev/mtdblock6 /NVM Where mtdblock6 is the mtd block I want to mount, and /NVM is the folder. This action results with the…
dear_tzvi
  • 745
  • 6
  • 19
1
vote
0 answers

JFFS2 CLEANMARKER changes size when device is mounted

At mount time JFFS2 CLEANMARKER size change from default 0x0C (12B) to 0x0200 (512B). I saw this behaviour when I mount my test image on target hw (NOR) and file system size increased in crazy way when I copy any file to it. Test bench I create a…
ChristiaN
  • 21
  • 4
1
vote
1 answer

zmodem upload ends up with strange error

I'm currently trying to upload some files via zmodem to a small system with an embedded linux with busybox. While most files takes a long time through the 9600 BAUD connection, there is one file that always fails (cramfs_cmc-pu2_v2.45.img). With…
Sebastian
  • 5,721
  • 3
  • 43
  • 69
1
vote
1 answer

jffs2 scheduling while atomic error on kernel 2.6

Has anybody seen an error of "scheduling while atomic" with the jffs2 fs? It looks to be in the gcd kernel thread. What's the exact fix? It's on 2.6.39 kernel. If preemption is not configured, the problem won't happen. Thanks in advance.…
minghua
  • 5,981
  • 6
  • 45
  • 71
1
vote
1 answer

NAND jffs2 files system - binary & text files can exceeds the size of NAND

I am writing an embedded application based on the ARM 9 v5 processor, and am using 64MB NAND. My problem is that when I copy the text or binary files of size 3-4 MB, the free physical memory gets reduced by only few KB, whereas ls -l shows the file…
1
vote
2 answers

rtime compression used in jffs2

In a C# project i have to read a image of a jffs2 filesystem. One of the compression algorithms used in jffs2 is "rtime". I did not found any information about this "rtime" compression method, except some line of C code on a linux cross reference…
Peter
  • 53
  • 3
0
votes
0 answers

always_null member in jffs2 structs

Looking through the jffs2 code in Linux, I noticed that first member in two structs in xattr.h is the same and it is void *always_null. Here is one of the structs: struct jffs2_xattr_datum { void *always_null; struct jffs2_raw_node_ref…
Muzhik
  • 11
  • 2
0
votes
1 answer

Reading a file kills NIC interrupts

I have a very strange problem with a board based on a MIPS processor and Linux 2.6. There are NIC interrupts for all incoming Ethernet packets. If I send 10.000 packets I could see that 10.000 NIC interrupts occurred. START SYSTEM SEND 10k…
Konstantin
  • 2,937
  • 10
  • 41
  • 58
0
votes
1 answer

What are the relationships between jffs2 options, flash device characteristics, driver setup, and kernel memory manager?

I am working on upgrading the firmware on a legacy board running a modified 2.6.12.1 with the at91rm9200 processor and at45db642D dataflash to using a at45db641E dataflash. The characteristics of the 641E are: 32768 pages page size of 264…
fluffynukeit
  • 201
  • 1
  • 7
0
votes
1 answer

using the same rootfs for different ARM SOCs

I'm trying to use userspace built for i.mx53 on a identical board with i.mx6. The i.mx6 board differs only in the CPU used. I built a new kernel and appropriate DTB, I can load it with uboot and it starts fine. However, when I try to use the rootfs…
moorray
  • 222
  • 2
  • 10
0
votes
0 answers

O_DIRECT can't work on openwrt?

I'm developing a program which need to access a special USB device. This USB device acts as a regular file in filesystem, so I have to open this file with O_DIRECT flag. As follow: open(pathname, O_CREAT | O_RDWR | O_DIRECT | O_SYNC, S_IRWXU) The…
feyeye
  • 1
0
votes
1 answer

Can the logical erase block size of an MTD device be increased?

The minimum erase block size for jffs2 (mtd-utils version 1.5.0, mkfs.jffs2 revision 1.60) seems to be 8KiB: Erase size 0x1000 too small. Increasing to 8KiB minimum However I am running Linux 3.10 with an at25df321a, m25p80 spi32766.0: at25df321a…
not-a-user
  • 4,088
  • 3
  • 21
  • 37
0
votes
1 answer

jffs2dump errors upon converting to little-endian

dmesg : jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00c50000: 0x1eb6 instead jffs2dump: Converting image to little endian... Wrong bitmask at 0x00c50000, 0x1eb6 Wrong bitmask at 0x00c50004, 0x0000 Wrong bitmask at …
Mike L
  • 1,955
  • 2
  • 16
  • 18
0
votes
1 answer

Advantage of using jffs2 for kernel and initramFS in NAND

In our system we use jffs2 to write kernel and initramfs into NAND memory. We would like to use stronger ECC soon. But new ECC format requires whole OOB area, and does not work with JFFS2. I am not sure yet, why do we need to use JFFS2 at all.…
Bartlomiej Grzeskowiak
  • 1,009
  • 5
  • 16
  • 35
0
votes
1 answer

jffs2 gabrage collector runs even if partition is mounted RO

I use JFFS2 partition as the root one mounting it in the command line (and fstab) as RO. It is Montavista 5.0 linux (2.6.18). Everything works, except that when linux arrives to my application it is busy for about 15s by jffs2_gcd_mtd3 with 98% CPU…
leonp
  • 487
  • 5
  • 22