jffs2 broken after first reboot

Patrick Vorlicek patrick at vorlicek.de
Mon Jan 18 15:04:21 EST 2021


Typical case of rubber duck debugging, sorry for bothering the list. I
just realized that I had enabled FSTOOLS_OVL_MOUNT_COMPRESS_ZLIB which
seems to cause the issue.

@john maybe you want to look into this? Can I be of any help?

Viele Grüße,
Patrick Vorlicek

Am 18.01.2021 um 19:59 schrieb Patrick Vorlicek:
> I hope someone can give me a hint where to look for the source of this
> issue.
>
> First boot is fine, jffs2 is created an mounted as overlay:
>
> [   16.379847] block: unable to load configuration (fstab: Entry not found)
> [   16.386627] block: no usable configuration
> [   16.391956] mount_root: jffs2 not ready yet, using temporary tmpfs
> overlay
> ...
> [   65.836222] jffs2_scan_eraseblock(): End of filesystem marker found
> at 0x0
> [   65.843158] jffs2_build_filesystem(): unlocking the mtd device...
> [   65.843240] done.
> [   65.851550] jffs2_build_filesystem(): erasing all blocks after the
> end marker...
> [   67.441440] done.
> [   67.450884] jffs2: notice: (5089) jffs2_build_xattr_subsystem:
> complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan)
> and 0 of xref (0 dead, 0 orphan) found.
> [   68.065796] overlayfs: upper fs does not support tmpfile.
>
> but once I reboot I get:
>
> [   16.402361] jffs2: notice: (657) jffs2_build_xattr_subsystem:
> complete building xattr subsystem, 11 of xdatum (9 unchecked, 1 orphan)
> and 13 of xref (1 dead, 0 orphan) found.
> [   16.418870] block: attempting to load
> /tmp/jffs_cfg/upper/etc/config/fstab
> [   16.431606] block: extroot: not configured
> [   16.438338] jffs2: Bad value for 'compr'
> [   16.442433] mount_root: failed to mount -t jffs2 /dev/mtdblock6
> /tmp/overlay: Invalid argument
> [   16.854603] jffs2: notice: (659) jffs2_build_xattr_subsystem:
> complete building xattr subsystem, 11 of xdatum (9 unchecked, 1 orphan)
> and 13 of xref (1 dead, 0 orphan) found.
> [   16.871006] block: attempting to load
> /tmp/jffs_cfg/upper/etc/config/fstab
> [   16.882280] block: extroot: not configured
> [   16.888491] mount_root: unable to set filesystem state
> [   16.893854] mount_root: switching to jffs2 overlay
> [   16.898759] mount_root: switching to jffs2 failed - fallback to
> ramoverlay
>




More information about the openwrt-devel mailing list