dangowrt / owrt-ubi-installer

OpenWrt firmware installer for the Linksys E8450 aka. Belkin RT3200
GNU General Public License v2.0
393 stars 50 forks source link

stuck in recovery (initramfs) mode #104

Closed Tom-Neverwinter closed 2 years ago

Tom-Neverwinter commented 2 years ago

woke up and noticed wifi was down. found out that the device is stuck in recovery.

Rebooting [undervolt issue?] or attempting to overwrite ubi partition with installer or installer [DO NOT USE INSTALLER AFTER INITIAL] signed:

openwrt-22.03-snapshot-r19338-ae64d0624c-mediatek-mt7622-linksys_e8450-ubi-initramfs-recovery_signed.itb

openwrt-22.03-snapshot-r19338-ae64d0624c-mediatek-mt7622-linksys_e8450-ubi-squashfs-sysupgrade.itb

etc.

leads back to:

OpenWrt SNAPSHOT r17758-b118efa0d2

probably have to flash over console?

dangowrt commented 2 years ago

Please check if there is a crashlog in pstore:

ls /sys/fs/pstore

If so, investigate and delete those files, then the router will boot again to production firmware.

NEVER re-run the installer. This won't fix anything if you are already running OpenWrt at this point.

Tom-Neverwinter commented 2 years ago

putty logging kind of sucks. seems I need to delete the mtd blocks it added then declare a boot sector

ls /sys/fs/pstore

cd /sys/fs/pstore

vim dmesg-ramoops-0

:q [to quit]

Please append a correct "root=" boot option; here are the avai56337] 1f00 512 mtdblock0 43] (driver?) 62875] 1f01 256 mtdblock19] (driver?) 9401] 1f02 512 mtdblock25] (driver?) 75933] 1f03 512 mtdblock36] (driver?) 82463] 1f04 1024 mtdblock47] (driver?) 8988] 1f05 128 mtdblock592] (driver?) 95520] 1f06 128 mtdblock64] (driver?) - dmesg-ramoops-0 [Readonly] 115/130 88%5>[ 2.256866] UBI: auto-attach mtd10 60284] ubi0: attaching mtd10 317075] ubi0: scanning is finished3>[ 2.320831] ubi0 error: ubi_read_volume_table: the layout volume was not f8108] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd10, error 35269] UBI error: cannot attach mtd10 7>[ 2.340441] VFS: Cannot open root device "(null)" or unknown-block(0,0): e7955] Please append a correct "root=" boot option; here are the avai56337] 1f00 512 mtdblock0 43] (driver?) 62875] 1f01 256 mtdblock19] (driver?) 9401] 1f02 512 mtdblock25] (driver?) 75933] 1f03 512 mtdblock36] (driver?) 82463] 1f04 1024 mtdblock47] (driver?) 8988] 1f05 128 mtdblock592] (driver?) 95520] 1f06 128 mtdblock64] (driver?) 402050] 1f07 128 mtdblock7- dmesg-ramoops-0 [Readonly] 116/130 89%60284] ubi0: attaching mtd10 317075] ubi0: scanning is finished3>[ 2.320831] ubi0 error: ubi_read_volume_table: the layout volume was not f8108] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd10, error 35269] UBI error: cannot attach mtd10 7>[ 2.340441] VFS: Cannot open root device "(null)" or unknown-block(0,0): e7955] Please append a correct "root=" boot option; here are the avai56337] 1f00 512 mtdblock0 43] (driver?) 62875] 1f01 256 mtdblock19] (driver?) 9401] 1f02 512 mtdblock25] (driver?) 75933] 1f03 512 mtdblock36] (driver?) 82463] 1f04 1024 mtdblock47] (driver?) 8988] 1f05 128 mtdblock592] (driver?) 95520] 1f06 128 mtdblock64] (driver?) 402050] 1f07 128 mtdblock74] (driver?) - dmesg-ramoops-0 [Readonly] 117/130 90%317075] ubi0: scanning is finished3>[ 2.320831] ubi0 error: ubi_read_volume_table: the layout volume was not f8108] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd10, error 35269] UBI error: cannot attach mtd10 7>[ 2.340441] VFS: Cannot open root device "(null)" or unknown-block(0,0): e7955] Please append a correct "root=" boot option; here are the avai56337] 1f00 512 mtdblock0 43] (driver?) 62875] 1f01 256 mtdblock19] (driver?) 9401] 1f02 512 mtdblock25] (driver?) 75933] 1f03 512 mtdblock36] (driver?) 82463] 1f04 1024 mtdblock47] (driver?) 8988] 1f05 128 mtdblock592] (driver?) 95520] 1f06 128 mtdblock64] (driver?) 402050] 1f07 128 mtdblock74] (driver?) 8575] 1f08 30720 mtdblock8- dmesg-ramoops-0 [Readonly] 118/130 90%3>[ 2.320831] ubi0 error: ubi_read_volume_table: the layout volume was not f8108] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd10, error 35269] UBI error: cannot attach mtd10 7>[ 2.340441] VFS: Cannot open root device "(null)" or unknown-block(0,0): e7955] Please append a correct "root=" boot option; here are the avai56337] 1f00 512 mtdblock0 43] (driver?) 62875] 1f01 256 mtdblock19] (driver?) 9401] 1f02 512 mtdblock25] (driver?) 75933] 1f03 512 mtdblock36] (driver?) 82463] 1f04 1024 mtdblock47] (driver?) 8988] 1f05 128 mtdblock592] (driver?) 95520] 1f06 128 mtdblock64] (driver?) 402050] 1f07 128 mtdblock74] (driver?) 8575] 1f08 30720 mtdblock88] (driver?) - dmesg-ramoops-0 [Readonly] 119/130 91%8108] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd10, error 35269] UBI error: cannot attach mtd10 7>[ 2.340441] VFS: Cannot open root device "(null)" or unknown-block(0,0): e7955] Please append a correct "root=" boot option; here are the avai56337] 1f00 512 mtdblock0 43] (driver?) 62875] 1f01 256 mtdblock19] (driver?) 9401] 1f02 512 mtdblock25] (driver?) 75933] 1f03 512 mtdblock36] (driver?) 82463] 1f04 1024 mtdblock47] (driver?) 8988] 1f05 128 mtdblock592] (driver?) 95520] 1f06 128 mtdblock64] (driver?) 402050] 1f07 128 mtdblock74] (driver?) 8575] 1f08 30720 mtdblock88] (driver?) 15106] 1f09 30720 mtdblock9- dmesg-ramoops-0 [Readonly] 120/130 92%35269] UBI error: cannot attach mtd10 7>[ 2.340441] VFS: Cannot open root device "(null)" or unknown-block(0,0): e7955] Please append a correct "root=" boot option; here are the avai56337] 1f00 512 mtdblock0 43] (driver?) 62875] 1f01 256 mtdblock19] (driver?) 9401] 1f02 512 mtdblock25] (driver?) 75933] 1f03 512 mtdblock36] (driver?) 82463] 1f04 1024 mtdblock47] (driver?) 8988] 1f05 128 mtdblock592] (driver?) 95520] 1f06 128 mtdblock64] (driver?) 402050] 1f07 128 mtdblock74] (driver?) 8575] 1f08 30720 mtdblock88] (driver?) 15106] 1f09 30720 mtdblock910] (driver?) - dmesg-ramoops-0 [Readonly] 121/130 93%7>[ 2.340441] VFS: Cannot open root device "(null)" or unknown-block(0,0): e7955] Please append a correct "root=" boot option; here are the avai56337] 1f00 512 mtdblock0 43] (driver?) 62875] 1f01 256 mtdblock19] (driver?) 9401] 1f02 512 mtdblock25] (driver?) 75933] 1f03 512 mtdblock36] (driver?) 82463] 1f04 1024 mtdblock47] (driver?) 8988] 1f05 128 mtdblock592] (driver?) 95520] 1f06 128 mtdblock64] (driver?) 402050] 1f07 128 mtdblock74] (driver?) 8575] 1f08 30720 mtdblock88] (driver?) 15106] 1f09 30720 mtdblock910] (driver?) 21636] 1f0a 25600 mtdblock10- dmesg-ramoops-0 [Readonly] 122/130 93%7955] Please append a correct "root=" boot option; here are the avai56337] 1f00 512 mtdblock0 43] (driver?) 62875] 1f01 256 mtdblock19] (driver?) 9401] 1f02 512 mtdblock25] (driver?) 75933] 1f03 512 mtdblock36] (driver?) 82463] 1f04 1024 mtdblock47] (driver?) 8988] 1f05 128 mtdblock592] (driver?) 95520] 1f06 128 mtdblock64] (driver?) 402050] 1f07 128 mtdblock74] (driver?) 8575] 1f08 30720 mtdblock88] (driver?) 15106] 1f09 30720 mtdblock910] (driver?) 21636] 1f0a 25600 mtdblock1040] (driver?) - dmesg-ramoops-0 [Readonly] 123/130 94%56337] 1f00 512 mtdblock0 43] (driver?) 62875] 1f01 256 mtdblock19] (driver?) 9401] 1f02 512 mtdblock25] (driver?) 75933] 1f03 512 mtdblock36] (driver?) 82463] 1f04 1024 mtdblock47] (driver?) 8988] 1f05 128 mtdblock592] (driver?) 95520] 1f06 128 mtdblock64] (driver?) 402050] 1f07 128 mtdblock74] (driver?) 8575] 1f08 30720 mtdblock88] (driver?) 15106] 1f09 30720 mtdblock910] (driver?) 21636] 1f0a 25600 mtdblock1040] (driver?) 8249] 1f0b 20480 mtdblock11- dmesg-ramoops-0 [Readonly] 124/130 95%43] (driver?) 62875] 1f01 256 mtdblock19] (driver?) 9401] 1f02 512 mtdblock25] (driver?) 75933] 1f03 512 mtdblock36] (driver?) 82463] 1f04 1024 mtdblock47] (driver?) 8988] 1f05 128 mtdblock592] (driver?) 95520] 1f06 128 mtdblock64] (driver?) 402050] 1f07 128 mtdblock74] (driver?) 8575] 1f08 30720 mtdblock88] (driver?) 15106] 1f09 30720 mtdblock910] (driver?) 21636] 1f0a 25600 mtdblock1040] (driver?) 8249] 1f0b 20480 mtdblock1153] (driver?) - dmesg-ramoops-0 [Readonly] 125/130 96%62875] 1f01 256 mtdblock19] (driver?) 9401] 1f02 512 mtdblock25] (driver?) 75933] 1f03 512 mtdblock36] (driver?) 82463] 1f04 1024 mtdblock47] (driver?) 8988] 1f05 128 mtdblock592] (driver?) 95520] 1f06 128 mtdblock64] (driver?) 402050] 1f07 128 mtdblock74] (driver?) 8575] 1f08 30720 mtdblock88] (driver?) 15106] 1f09 30720 mtdblock910] (driver?) 21636] 1f0a 25600 mtdblock1040] (driver?) 8249] 1f0b 20480 mtdblock1153] (driver?) 0>[ 2.434866] Kernel panic - not syncing: VFS: Unable to mount root fs on un- dmesg-ramoops-0 [Readonly] 126/130 96%9] (driver?) 9401] 1f02 512 mtdblock25] (driver?) 75933] 1f03 512 mtdblock36] (driver?) 82463] 1f04 1024 mtdblock47] (driver?) 8988] 1f05 128 mtdblock592] (driver?) 95520] 1f06 128 mtdblock64] (driver?) 402050] 1f07 128 mtdblock74] (driver?) 8575] 1f08 30720 mtdblock88] (driver?) 15106] 1f09 30720 mtdblock910] (driver?) 21636] 1f0a 25600 mtdblock1040] (driver?) 8249] 1f0b 20480 mtdblock1153] (driver?) 0>[ 2.434866] Kernel panic - not syncing: VFS: Unable to mount root fs on un2>[ 2.443120] SMP: stopping secondary CPUs - dmesg-ramoops-0 [Readonly] 127/130 97%9401] 1f02 512 mtdblock25] (driver?) 75933] 1f03 512 mtdblock36] (driver?) 82463] 1f04 1024 mtdblock47] (driver?) 8988] 1f05 128 mtdblock592] (driver?) 95520] 1f06 128 mtdblock64] (driver?) 402050] 1f07 128 mtdblock74] (driver?) 8575] 1f08 30720 mtdblock88] (driver?) 15106] 1f09 30720 mtdblock910] (driver?) 21636] 1f0a 25600 mtdblock1040] (driver?) 8249] 1f0b 20480 mtdblock1153] (driver?) 0>[ 2.434866] Kernel panic - not syncing: VFS: Unable to mount root fs on un2>[ 2.443120] SMP: stopping secondary CPUs 0>[ 2.447035] Kernel Offset: disabled - dmesg-ramoops-0 [Readonly] 128/130 98%5] (driver?) 75933] 1f03 512 mtdblock36] (driver?) 82463] 1f04 1024 mtdblock47] (driver?) 8988] 1f05 128 mtdblock592] (driver?) 95520] 1f06 128 mtdblock64] (driver?) 402050] 1f07 128 mtdblock74] (driver?) 8575] 1f08 30720 mtdblock88] (driver?) 15106] 1f09 30720 mtdblock910] (driver?) 21636] 1f0a 25600 mtdblock1040] (driver?) 8249] 1f0b 20480 mtdblock1153] (driver?) 0>[ 2.434866] Kernel panic - not syncing: VFS: Unable to mount root fs on un2>[ 2.443120] SMP: stopping secondary CPUs 0>[ 2.447035] Kernel Offset: disabled 50513] CPU features: 0x00003000,00000802- dmesg-ramoops-0 [Readonly] 129/130 99%75933] 1f03 512 mtdblock36] (driver?) 82463] 1f04 1024 mtdblock47] (driver?) 8988] 1f05 128 mtdblock592] (driver?) 95520] 1f06 128 mtdblock64] (driver?) 402050] 1f07 128 mtdblock74] (driver?) 8575] 1f08 30720 mtdblock88] (driver?) 15106] 1f09 30720 mtdblock910] (driver?) 21636] 1f0a 25600 mtdblock1040] (driver?) 8249] 1f0b 20480 mtdblock1153] (driver?) 0>[ 2.434866] Kernel panic - not syncing: VFS: Unable to mount root fs on un2>[ 2.443120] SMP: stopping secondary CPUs 0>[ 2.447035] Kernel Offset: disabled 50513] CPU features: 0x00003000,000008024861] Memory Limit: none - dmesg-ramoops-0 [Readonly] 130/130 100%:q- dmesg-ramoops-0 [Readonly] 130/130 100%[?1049l]0;root@OpenWrt: /sys/fs/pstoreroot@OpenWrt:/sys/fs/pstore# exit

dangowrt commented 2 years ago

This looks like you have flashed the non-UBI firmware despite already having converted the device to UBI layout. MTD devices do not have a partition table (such as MBR or GPT), instead the partition layout is given with the device tree and part of the OS you flash. Hence, if you get to see too many MTD devices, that's because you have booted with a device tree which defines them (but, obviously, the right content is not in place). Just make sure to flash the correct image (with -ubi- in it's name) and you'll be fine.

Tom-Neverwinter commented 2 years ago

flashing from "http://192.168.1.1/cgi-bin/luci/admin/system/flash" [while in recovery (initramfs) mode]

using: "openwrt-22.03-snapshot-r19338-ae64d0624c-mediatek-mt7622-linksys_e8450-ubi-squashfs-sysupgrade.itb"

still loads into recovery (initramfs) mode


open putty, user: root, no password enter command to clear PSTORE as following

Once the router has rebooted into recovery mode, clear PSTORE to make it reboot into production mode again:

rm /sys/fs/pstore/*

oh yeah... [ I swear I read the readme LOL]

Tom-Neverwinter commented 2 years ago

solved. issue is "I'm an idiot. " [edited and cleaned up to assist anyone who makes the bad choices I do]

dangowrt commented 2 years ago

Good to read that the issue has been resolved!