The -03 build has this room too at it's fimware partition.
And what do you plan to achieve with that shortenings?
After doing sysupgrade just boot the initrams.bin through serial, and examine the flash!
I don't know how. Try to mount it, try to hexdump it! I really don't know.
hexdump on my saved configuration (file), from a day or so ago. It makes sense, header matches to what is captured at https://en.wikipedia.org/wiki/Gzip (see the first 10 bytes),
executed sysupgrade, but on reboot ... stopped it, booted initramfs. I see that rootfs_data is mtd10, so then I went hunting for the same header,
root@OpenWrt:/tmp# hexdump -C /dev/mtd10ro | grep -A 2 "1f 8b 08 00 00 00 00 00"
00005080 c6 65 ef 54 9e 3e ab e1 1f 8b 08 00 00 00 00 00 |.e.T.>..........|
00005090 02 03 ec 3d 09 98 1b d5 79 eb 24 5c 4b 09 a5 21 |...=....y.$\K..!|
So it is there! And the probability of hitting the exact same 8 bytes seems very low to me . But it's not getting retreived somehow? Again, not quite sure how this process works, and if it should find it (and where it looks)
OK, tried one more thing ... then rebooted, let it carry on like normal, as if I hadn't interrupted it. OK, this is interesting ... but now, rootfs_data (mtd11, given mtd-concat) => the stored gz is not found! So it's getting trashed on boot somehow it seems? I even searched the rootfs (mtd10) ... nope.
sysupgrade.tgz => pretty sure the file is there! Not having any luck mounting this partition - but that's me, hunting to figure it out. That aside, I did see,
root@OpenWrt:/tmp# firstboot switch2jffs
This will erase all settings and remove any installed packages. Are you sure? [N/y]
y
/dev/mtdblock10 is not mounted
/dev/mtdblock10 will be erased on next mount
So somehow it is set to erase on reboot? We want it saved, right?
LOL - me neither. Blind leading the blind ... . Trying something - failsafe, see what mount_root says there! Rather odd result, after clean sysupgrade, failsafe ...
mount_root: no usable overlay filesystem found, using tmpfs overlay
Really seems like rootfs_data is broken somehow. But I may be wrong!
But, in spite of what the link says (about out of date), I did see (in failsafe),
The JFFS2 mounting code expects a special marker sequence 0xdeadc0de at the beginning of the rootfs_data partition, if this byte sequence is found; the entire rootfs_data partition is erased and reformatted as JFFS2.
So it's saving the file, to the correct place, but telling it to erase!
It's aligned (to 0x0), like it should be! And ... sysupgrade doesn't trash my info, it is maintained! Also, in the log now,
[ 7.213561] jffs2_scan_eraseblock(): End of filesystem marker found at 0x2000
[ 7.228071] jffs2_build_filesystem(): unlocking the mtd device...
[ 7.228149] done.
[ 7.244316] jffs2_build_filesystem(): erasing all blocks after the end marker...
[ 47.686327] done.
[ 47.705140] jffs2: notice: (449) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 47.737432] mount_root: overlay filesystem has not been fully initialized yet
[ 47.757073] mount_root: switching to jffs2 overlay
[ 47.796909] overlayfs: upper fs does not support tmpfile.
As it should be! So all good - sigh. Time for a ... LOL.
When I push this, was there a name change needed also?
Thanks!
And PS, I'm not so sure this isn't a sysupgrade bug. Thinking about it ... it says to me that the padding used to determine the start of rootfs_data is not consistent between writing (storing backup data), and reading .. agreed?
This is because it asked if you want to erase jffs2 and you said yes lol
I did some digging on this...
switch2jffs doesn't exist anymore, not as a parameter or a hook or script or anything...
the mount_root program handles all those features now (through libfstools)
Here is the firstboot script from 10 years ago
compared to today
Now it literally just calls jffs2reset which takes no parameters, however has two actions
if /overlay is mounted, erases files
if /overlay is not mounted, marks the partition for deletion on next mount
You are kidding, right? It was next on my list, never got to it before the blow up. But will get it restored and working, NP. Just need to crack the case open again - dang it!