When do sysupgrade with 32MB SPI NOR Flash on MT7621 platform router.
A new error -22 find when build jffs2 filesystem.
And this will occur after that every reboot.
After do sysupgrade several times, jffs2 crash.
[ 7.716082] random: procd: uninitialized urandom read (4 bytes read)
[ 12.138717] jffs2_scan_eraseblock(): End of filesystem marker found at 0xc0000
[ 12.153172] jffs2_build_filesystem(): unlocking the mtd device...
[ 12.153179] done.
[ 12.169288] jffs2_build_filesystem(): erasing all blocks after the end marker...
[ 12.169320] jffs2: Erase at 0x012d0000 failed immediately: errno -22
[ 12.290157] random: crng init done
[ 212.345024] done.
[ 212.348903] jffs2: notice: (470) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 212.381164] mount_root: overlay filesystem has not been fully initialized yet
[ 212.705146] mount_root: switching to jffs2 overlay
This is another incarnation of a serious bug, obviously not only on MT7620A. You will find quite a few other posts reagrding this problem here on the forum, search for "sysupgrade" or "jffs2". I filed an offcial bug report myself already.
You might consider to revert to an older version of openwrt, for the time being. 18.06.08 should be OK.
Error address is not fixed, firmware different size got different error address.
And SPI NOR Flash no pin lost problem, lost data pin in SPI trans mode will lost all data.
Because it is serial trans mode.
15a0701cdde8eeae2a54880b813cdb8cdc09a384 use Linux 4.14.169, I searched kernel.org 4.14.169 to 4.14.172, no new fs/jffs2 code. This bug should be introduce by OpenWrt side.
When I do sysupgrade from v4.14.169-r12202-cc89c5f to v4.14.169-r12229-73f3ad1
I got [ 15.700264] jffs2: Erase at 0x00b70000 failed immediately: errno -22
and the full git commit ID is
I am trying revert a suspicious patch and rebuild trunk. git checkout cc89c5fe2764cc4d67103491f9209aa96d4cc380 -- target/linux/generic/pending-4.14/401-mtd-add-support-for-different-partition-parser-types.patch
wating for build and sysupgrade result.
After rebuild and sysupgrade.
OpenWrt SNAPSHOT, r12470-dfb7a4c Linux 4.14.171
error -22 disappear.
Confirm that target/linux/generic/pending-4.14/401-mtd-add-support-for-different-partition-parser-types.patch last change introduce this bug.
[ 15.468337] random: crng init done
[ 15.699973] jffs2_scan_eraseblock(): End of filesystem marker found at 0x40000
[ 15.714479] jffs2_build_filesystem(): unlocking the mtd device...
[ 15.714486] done.
[ 15.730616] jffs2_build_filesystem(): erasing all blocks after the end marker...
[ 31.507395] done.
[ 31.526142] jffs2: notice: (525) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.