Jffs2_build_xattr_subsystem: orphan, dead nodes

Hi,

This is my first ever attempt at adding support for a new device.

I was trying to add support for 512MB RAM and 64MB flash variant of UniElec U7621-06. Although, I am finally able to build the image for this configuration but I am facing following issues:

  1. First boot takes a lot of time until jffs2 is not done preparing the filesystem. Relevant dmesg is here:

    [    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
    [    2.940442] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
    [    3.076145] spi-mt7621 1e000b00.spi: sys_freq: 50000000
    [    3.082438] m25p80 spi0.0: mx66l51235l (65536 Kbytes)
    [    3.087558] 4 fixed-partitions partitions found on MTD device spi0.0
    [    3.093880] Creating 4 MTD partitions on "spi0.0":
    [   11.003962] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
    [   16.760324] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
    [   16.767964] jffs2_build_filesystem(): unlocking the mtd device...
    [   16.776111] jffs2_build_filesystem(): erasing all blocks after the end marker...
    [  305.510554] jffs2: notice: (994) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 de.
    [  305.637466] overlayfs: upper fs does not support tmpfile.

  2. Every reboot shows following message in dmesg:

    jffs2: notice: (491) jffs2_build_xattr_subsystem: complete building xattr subsystem, 7 of xdatum (2 unchecked, 5 orphan) and 18 of xref (5 d.

And the count of xdatum, unchecked, orphan, xref and dead keeps on increasing with every reboot/boot.

The image size in target/linux/ramips/image/mt7621.mk is set to be 6645304 while below is the partition layout:

&spi0 {        status = "okay";

       m25p80@0 {
               compatible = "jedec,spi-nor";
               reg = <0>;
               spi-max-frequency = <10000000>;
               m25p,chunked-io = <32>;

               partitions {
                       compatible = "fixed-partitions";
                       #address-cells = <1>;
                       #size-cells = <1>;

                       partition@0 {
                               label = "bootloader";
                               reg = <0x0 0x30000>;
                               read-only;
                       };

                       partition@30000 {
                               label = "config";
                               reg = <0x30000 0x10000>;
                               read-only;
                       };

                       factory: partition@40000 {
                               label = "factory";
                               reg = <0x40000 0x10000>;
                               read-only;
                       };

                       firmware: partition@50000 {
                               label = "firmware";
                               reg = <0x50000 0x3f60000>;
                       };
               };
       };
};

I am not sure where I am doing it wrong.

Thanks in advance for help / guidance.

Hi!
run in to similar issue. but with other device. any chance you figure out something ?

boot:

 jffs2_scan_eraseblock(): End of filesystem marker found at 0x20000
 jffs2_build_filesystem(): unlocking the mtd device... 
 done.
 jffs2_build_filesystem(): erasing all blocks after the end marker... 
 done.
jffs2: notice: (2379) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
 overlayfs: upper fs does not support tmpfile.

I'm having the same problems. Did you manage to solve this?

Nope. When I saw that stock openwrt firmware also reports the same messages, I considered them as normal and have pushed devices out in the field.

Devices are still working fine.