Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#2907 - kernel panic WNDAP660 / apm821xx #7814

Closed
openwrt-bot opened this issue Mar 17, 2020 · 2 comments
Closed

FS#2907 - kernel panic WNDAP660 / apm821xx #7814

openwrt-bot opened this issue Mar 17, 2020 · 2 comments
Labels

Comments

@openwrt-bot
Copy link

kai:

similar error like FS#1516
device with NAND bad block here at 0x00480000
kernel panic after flashing 19.07.2

2nd device without a NAND bad block works without problem


<\n>[ 12.941706] UBI error: no valid UBI magic found inside mtd4<\r>
<\n>[ 13.008591] hctosys: unable to open rtc device (rtc0)<\r>
<\n>[ 13.069865] VFS: Cannot open root device "ubiblock0_0" or unknown-block(0,0): error -6<\r>
<\n>[ 13.164830] Please append a correct "root=" boot option; here are the available partitions:<\r>
<\n>[ 13.265012] 1f00 1024 mtdblock0 <\r>
<\n>[ 13.265014] (driver?)<\r>
<\n>[ 13.343332] 1f01 64 mtdblock1 <\r>
<\n>[ 13.343333] (driver?)<\r>
<\n>[ 13.421660] 1f02 27392 mtdblock2 <\r>
<\n>[ 13.421661] (driver?)<\r>
<\n>[ 13.499988] 1f03 4032 mtdblock3 <\r>
<\n>[ 13.499989] (driver?)<\r>
<\n>[ 13.578316] 1f04 23360 mtdblock4 <\r>
<\n>[ 13.578317] (driver?)<\r>
<\n>[ 13.656645] 1f05 64 mtdblock5 <\r>
<\n>[ 13.656646] (driver?)<\r>
<\n>[ 13.734972] 1f06 4096 mtdblock6 <\r>
<\n>[ 13.734974] (driver?)<\r>
<\n>[ 13.813301] 1f07 128 mtdblock7 <\r>
<\n>[ 13.813303] (driver?)<\r>
<\n>[ 13.891630] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)<\r>

@openwrt-bot
Copy link
Author

chunkeey:

Hello,

yeah this is a common problem with bad blocks. From what I remember, this is caused by the different bad-block mitigations between u-boot and the linux kernel. What you could try (apart from replacing the nand chip): follow the "boot initramfs" instructions on the bad device and get to the openwrt root shell.

from there: Upload the openwrt's sysupgrade.bin image to the router to /tmp/
use mtd erase on the "ubi" partition (should be mtd4, but check with /proc/mtd) just to be sure (actually this would be optional) and then initialize the mtd with ubiformat /dev/mtd4 and use sysupgrade -n /tmp/sysupgrade.bin and let it reboot.

(Basically, these are the same instructions from the installation process from different routers that didn't have UBI and use initramfs for the installation. You can find more of
the same if you browse through the git commit history)

@openwrt-bot
Copy link
Author

kai:

solution like proposed by mk24 in a similar case: https://forum.openwrt.org/t/r7800-flashing-openwrt-causes-bootloop-bad-block-in-kernel-area/49608/41 different block size for WNDAP !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant