Does not look healthy. The curious thing is that on other board revisions those devices are not showing as partitions (cat -A /proc/partitions
| fdisk -l
) but as disks instead, e.g.
lsblk -o +size,phy-sec,log-sec /dev/mmcblk0boot1
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT SIZE PHY-SEC LOG-SEC
mmcblk0boot1 179:16 0 4M 1 disk 4M 512 512
And there is some other oddity, least I would have expected /dev/mmcblk0boot1 correlating with /dev/mtd1
cat -A /proc/mtd
dev: size erasesize name$
mtd0: 00100000 00010000 "U-Boot"$
mtd1: 00700000 00010000 "Rescue system"$
but maybe that has changed between board revisions or is otherwise somehow inverted.
Only what fdisk provides on this board
Disk /dev/mmcblk0boot0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x31aed529
At own risk and note sure whether it works (or solves the matter); you could try with fdisk to repair the partition table for /dev/mmcblk0boot1. It may or may not render the u-boot image inaccessible, if so it would require re-flashing the image which comes with caveats:
vs. https://docs.turris.cz/hw/omnia/serial-boot/#nor-recovery
Make sure you don’t mix old U-Boot with new rescue system or new U-Boot with old Turris OS, it might not work, try to keep everything on the latest version if you are reflashing.
Therefore it would probably best practise to backup the u-boot image first with the du tool as mentioned here https://openwrt.org/docs/guide-user/installation/generic.backup, which though would require that rescue shell provides access to the MTD partitions (not sure it does), perhaps try/see with mount tool. If not perhaps the sf and/or sspi tool(s) may provide such functionality (never tried my end).
For the storing/restoring the image backup you would need to mount the /dev/mmcblk0p1 partition.
Also the image restoring part does not seem trivial with the sf tool since the mtd tool/command may not be available through the rescue shell.