Pogoplug E02, newer Debian, kernel panic and the solution October 08, 2021 11:46AM |
Registered: 2 years ago Posts: 5 |
## If you have bad blocks on mtd0, you should not try to install uBoot.I tried different suggested releases but decided to debug my issue with the "Debian 5.13.6-kirkwood-tld-1" code.
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)A few lines above this was this clue:
VFS: Cannot open root device "sda1" or unknown-block(8,1): error -19I tried rootfs, sda1 and other changes but it made no difference.
Boot Kirkwood rootfs with stock u-boot setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial' setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage' setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd' setenv usb_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000' setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot' setenv bootcmd 'usb reset; run usb_bootcmd; usb stop; reset' And then, printenv bootMy Pogo E02 now boots fine with 5.13.6-kirkwood-tld-1 and I will probably upgrade it again (5.14.9?) but I don't expect this issue to stop me.
Re: Pogoplug E02, newer Debian, kernel panic and the solution October 08, 2021 04:03PM |
Admin Registered: 13 years ago Posts: 18,495 |
Quote
My Pogo E02 now boots fine with 5.13.6-kirkwood-tld-1 and I will probably upgrade it again (5.14.9?) but I don't expect this issue to stop me.
Re: Pogoplug E02, newer Debian, kernel panic and the solution October 09, 2021 02:27PM |
Registered: 2 years ago Posts: 5 |
Quote
bodhi
Regarding flashing u-boot with the bad blocks, you can check to see if it in the gaps (unused blocks).
[ 10.012579] Scanning device for bad blocks [ 10.055604] Bad eraseblock 326 at 0x0000028c0000 [ 10.142673] 4 fixed-partitions partitions found on MTD device orion_nand [ 10.150116] Creating 4 MTD partitions on "orion_nand": [ 10.156012] 0x000000000000-0x000000100000 : "u-boot" [ 10.163361] 0x000000100000-0x000000600000 : "uImage" [ 10.170607] 0x000000500000-0x000002a00000 : "pogoplug" [ 10.178192] 0x000002500000-0x000009100000 : "root"
Re: Pogoplug E02, newer Debian, kernel panic and the solution October 09, 2021 03:55PM |
Admin Registered: 13 years ago Posts: 18,495 |
dmesg | grep -i bad cat /proc/mtd
Re: Pogoplug E02, newer Debian, kernel panic and the solution October 09, 2021 07:47PM |
Registered: 2 years ago Posts: 5 |
root@pogoplug:~# dmesg | grep -i bad [ 10.012571] Scanning device for bad blocks [ 10.055596] Bad eraseblock 326 at 0x0000028c0000 root@pogoplug:~# cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 00500000 00020000 "uImage" mtd2: 02500000 00020000 "pogoplug" mtd3: 05b00000 00020000 "root" root@pogoplug:~#
Re: Pogoplug E02, newer Debian, kernel panic and the solution October 09, 2021 09:07PM |
Registered: 2 years ago Posts: 5 |
root@pogoplug:~# uname -a Linux pogoplug.home.arpa 5.14.9-kirkwood-tld-1 #1.0 PREEMPT Sat Oct 2 17:41:27 PDT 2021 armv5tel GNU/Linux
Re: Pogoplug E02, newer Debian, kernel panic and the solution October 09, 2021 09:38PM |
Admin Registered: 13 years ago Posts: 18,495 |
Re: Pogoplug E02, newer Debian, kernel panic and the solution October 11, 2021 11:30AM |
Registered: 2 years ago Posts: 5 |
Re: Pogoplug E02, newer Debian, kernel panic and the solution October 11, 2021 03:11PM |
Admin Registered: 13 years ago Posts: 18,495 |