Welcome! Log In Create A New Profile

Advanced

Pogo E02 not booting - kernel panic 4.6.0

Posted by sambo 
Pogo E02 not booting - kernel panic 4.6.0
June 23, 2016 08:46AM
Hi,
I've been using my pogo quite a while.
Yesterday I decided to update kernel to 4.6.0.
Before that I updated uboot to 2016.05, but unfortunately forgot to do step B. Flashing default u-boot envs image and step C. Add uEnv.txt to /boot directory.
Nevertheless I continued to update kernel.

Now the pogo doesn't boot.

This is my uboot env:

printenv
baudrate=115200
bootargs=root=/dev/nfs nfsroot=192.168.1.100: ip=192.168.1.109:192.168.1.100:::::off
bootcmd=usb start; run usb_bootcmd; usb stop; reset
bootdelay=10
console=ttyS0,115200
ethact=egiga0
ethaddr=00:25:31:02:2C:74
if_netconsole=ping $serverip
ipaddr=192.168.1.109
load_dtb=ext4load usb 0:1 0x1c00000 /boot/dts/kirkwood-pogo_e02.dtb
load_initrd=ext4load usb 0:1 0x1100000 /boot/uInitrd
load_uimage=ext4load usb 0:1 0x800000 /boot/uImage
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
ncip=192.168.1.100
netmask=255.255.255.0
preboot=run if_netconsole start_netconsole
serverip=192.168.1.100
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=nc
stdin=nc
stdout=nc
usb_boot=run load_dtb; run load_uimage; if run load_initrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi
usb_bootcmd=run usb_set_bootargs; run usb_boot
usb_device=0:1
usb_set_bootargs=setenv bootargs console=$console root=/dev/sda1 rootdelay=10 rootfstype=ext4 $mtdparts
Environment size: 1133/131068 bytes


This is the serial output when booting:

VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
[ 13.878276] Please append a correct "root=" boot option; here are the available partitions:
[ 13.886728] 1f00 1024 mtdblock0 (driver?)
[ 13.891859] 1f01 5120 mtdblock1 (driver?)
[ 13.896941] 1f02 37888 mtdblock2 (driver?)
[ 13.902070] 1f03 93184 mtdblock3 (driver?)
[ 13.907160] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 13.915463] CPU: 0 PID: 1 Comm: swapper Not tainted 4.6.0-kirkwood-tld-1 #1
[ 13.922451] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[ 13.928778] [<c001681c>] (unwind_backtrace) from [<c0012a38>] (show_stack+0x10/0x14)
[ 13.936565] [<c0012a38>] (show_stack) from [<c00c7308>] (panic+0xac/0x240)
[ 13.943483] [<c00c7308>] (panic) from [<c0825258>] (mount_block_root+0x204/0x27c)
[ 13.951009] [<c0825258>] (mount_block_root) from [<c08253bc>] (mount_root+0xec/0x118)
[ 13.958883] [<c08253bc>] (mount_root) from [<c082550c>] (prepare_namespace+0x124/0x184)
[ 13.966932] [<c082550c>] (prepare_namespace) from [<c0824e74>] (kernel_init_freeable+0x20c/0x25c)
[ 13.975861] [<c0824e74>] (kernel_init_freeable) from [<c05e7f70>] (kernel_init+0x8/0xf4)
[ 13.983999] [<c05e7f70>] (kernel_init) from [<c000f0b0>] (ret_from_fork+0x14/0x24)
[ 13.991609] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 80.330751] random: nonblocking pool is initialized

What do I need to do?
Adjust uboot envs, install new rootfs?

Hope someone can help me - thanks in advance!
Re: Pogo E02 not booting - kernel panic 4.6.0
June 23, 2016 06:03PM
1. Post the entire serial boot log.

2. Which u-boot were you running before installing u-boot-2016.05?

3. do you keep the log of the kernel 4.6 installation? the most interesting part is whether you appended the DTB to uImage (see step 4).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogo E02 not booting - kernel panic 4.6.0
June 24, 2016 12:28AM
1.
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
10446 bytes read in 215 ms (46.9 KiB/s)
3267550 bytes read in 504 ms (6.2 MiB/s)
6766192 bytes read in 332 ms (19.4 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-4.6.0-kirkwood-tld-1
Created: 2016-06-22 13:13:43 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3267486 Bytes = 3.1 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs-4.6.0-kirkwood-tld-1
Created: 2016-06-22 13:13:57 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 6766128 Bytes = 6.5 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
Booting using the fdt blob at 0x1c00000
Loading Kernel Image ... OK
Loading Ramdisk to 0f4a0000, end 0fb13e30 ... OK
Loading Device Tree to 0f49a000, end 0f49f8cd ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.6.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Wed May 18 03:54:14 PDT 2016
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine model: CloudEngines Pogoplug E02
[ 0.000000] bootconsole [earlycon0] enabled
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk root=/dev/sda1 rootdelay=10
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 250240K/262144K available (6233K kernel code, 607K rwdata, 2068K rodata, 304K init, 313K bss, 11904K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xd0800000 - 0xff800000 ( 752 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc08237cc (8302 kB)
[ 0.000000] .init : 0xc0824000 - 0xc0870000 ( 304 kB)
[ 0.000000] .data : 0xc0870000 - 0xc0907e34 ( 608 kB)
[ 0.000000] .bss : 0xc0907e34 - 0xc09565b0 ( 314 kB)
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[ 0.000010] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[ 0.008271] Console: colour dummy device 80x30
[ 0.012847] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[ 0.100931] pid_max: default: 32768 minimum: 301
[ 0.105753] Security Framework initialized
[ 0.110073] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.116814] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.124932] CPU: Testing write buffer coherency: ok
[ 0.130440] Setting up static identity map for 0x8200 - 0x8258
[ 0.136683] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[ 0.145819] devtmpfs: initialized
[ 0.153718] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.164047] prandom: seed boundary self test passed
[ 0.172829] prandom: 100 self tests passed
[ 0.177054] pinctrl core: initialized pinctrl subsystem
[ 0.183929] NET: Registered protocol family 16
[ 0.188975] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.218055] cpuidle: using governor ladder
[ 0.248052] cpuidle: using governor menu
[ 0.252493] Feroceon L2: Enabling L2
[ 0.256208] Feroceon L2: Cache support initialised.
[ 0.261614] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[ 0.277111] No ATAGs?
[ 0.309682] vgaarb: loaded
[ 0.313089] usbcore: registered new interface driver usbfs
[ 0.318818] usbcore: registered new interface driver hub
[ 0.324309] usbcore: registered new device driver usb
[ 0.330721] clocksource: Switched to clocksource orion_clocksource
[ 0.381919] VFS: Disk quotas dquot_6.6.0
[ 0.386014] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.404813] NET: Registered protocol family 2
[ 0.410091] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.417333] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.423850] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.430379] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.436362] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.442978] NET: Registered protocol family 1
[ 0.447790] RPC: Registered named UNIX socket transport module.
[ 0.453877] RPC: Registered udp transport module.
[ 0.458691] RPC: Registered tcp transport module.
[ 0.463516] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.470485] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.478217] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.484553] audit: initializing netlink subsys (disabled)
[ 0.490103] audit: type=2000 audit(0.470:1): initialized
[ 0.495921] Initialise system trusted keyring
[ 0.500608] workingset: timestamp_bits=29 max_order=16 bucket_order=0
[ 0.507337] zbud: loaded
[ 0.510708] NFS: Registering the id_resolver key type
[ 0.515957] Key type id_resolver registered
[ 0.520246] Key type id_legacy registered
[ 0.524399] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.531246] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 0.537946] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.545376] orangefs_init: called with debug mask: :none: :0:
[ 0.551611] orangefs: module version upstream loaded
[ 0.556941] Key type big_key registered
[ 1.206953] Key type asymmetric registered
[ 1.211258] Asymmetric key parser 'x509' registered
[ 1.216326] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 1.224034] io scheduler noop registered
[ 1.228063] io scheduler deadline registered
[ 1.232552] io scheduler cfq registered (default)
[ 1.238692] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[ 1.247116] irq: Cannot allocate irq_descs @ IRQ32, assuming pre-allocated
[ 1.254768] irq: Cannot allocate irq_descs @ IRQ64, assuming pre-allocated
[ 1.262330] mv_xor f1060800.xor: Marvell shared XOR driver
[ 1.301400] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[ 1.309056] mv_xor f1060900.xor: Marvell shared XOR driver
[ 1.351390] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[ 1.359316] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 1.367247] console [ttyS0] disabled
[ 1.371039] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[ 1.380163] console [ttyS0] enabled
[ 1.380163] console [ttyS0] enabled
[ 1.387303] bootconsole [earlycon0] disabled
[ 1.387303] bootconsole [earlycon0] disabled
[ 1.397633] nand: Could not find valid ONFI parameter page; aborting
[ 1.404098] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[ 1.410481] nand: Hynix NAND 128MiB 3,3V 8-bit
[ 1.414966] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.422593] Scanning device for bad blocks
[ 1.535827] 4 ofpart partitions found on MTD device orion_nand
[ 1.541704] Creating 4 MTD partitions on "orion_nand":
[ 1.546875] 0x000000000000-0x000000100000 : "u-boot"
[ 1.553198] 0x000000100000-0x000000600000 : "uImage"
[ 1.559436] 0x000000500000-0x000002a00000 : "pogoplug"
[ 1.566107] 0x000002500000-0x000009100000 : "root"
[ 1.570971] mtd: partition "root" extends beyond the end of device "orion_nand" -- size truncated to 0x5b00000
[ 1.584293] libphy: Fixed MDIO Bus: probed
[ 1.588898] libphy: orion_mdio_bus: probed
[ 1.593822] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[ 2.681507] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:31:02:2c:74
[ 2.690384] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.697000] ehci-pci: EHCI PCI platform driver
[ 2.701562] ehci-orion: EHCI orion driver
[ 2.705771] orion-ehci f1050000.ehci: EHCI Host Controller
[ 2.711346] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[ 2.719201] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[ 2.740756] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[ 2.747020] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 2.753871] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.761144] usb usb1: Product: EHCI Host Controller
[ 2.766043] usb usb1: Manufacturer: Linux 4.6.0-kirkwood-tld-1 ehci_hcd
[ 2.772705] usb usb1: SerialNumber: f1050000.ehci
[ 2.778224] hub 1-0:1.0: USB hub found
[ 2.782077] hub 1-0:1.0: 1 port detected
[ 2.787026] mousedev: PS/2 mouse device common for all mice
[ 3.100755] usb 1-1: new high-speed USB device number 2 using orion-ehci
[ 3.252459] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[ 3.259206] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 3.266412] usb 1-1: Product: USB2.0 Hub
[ 3.271295] hub 1-1:1.0: USB hub found
[ 3.275459] hub 1-1:1.0: 4 ports detected
[ 3.560749] usb 1-1.4: new high-speed USB device number 3 using orion-ehci
[ 3.800746] rtc-mv f1010300.rtc: internal RTC not ticking
[ 3.806365] i2c /dev entries driver
[ 3.811145] hidraw: raw HID events driver (C) Jiri Kosina
[ 3.817082] drop_monitor: Initializing network drop monitor service
[ 3.823668] NET: Registered protocol family 17
[ 3.828387] Key type dns_resolver registered
[ 3.833599] registered taskstats version 1
[ 3.837758] Loading compiled-in X.509 certificates
[ 3.842680] zswap: loaded using pool lzo/zbud
[ 3.848218] Key type encrypted registered
[ 3.852814] hctosys: unable to open rtc device (rtc0)
[ 3.859365] Waiting 10 sec before mounting root device...
[ 4.622964] usb 1-1.4: New USB device found, idVendor=090c, idProduct=1000
[ 4.629887] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4.637267] usb 1-1.4: Product: USB DISK
[ 4.641228] usb 1-1.4: Manufacturer: SMI Corporation
[ 4.646214] usb 1-1.4: SerialNumber: 2010060400001184
[ 13.870928] VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
[ 13.878276] Please append a correct "root=" boot option; here are the available partitions:
[ 13.886728] 1f00 1024 mtdblock0 (driver?)
[ 13.891859] 1f01 5120 mtdblock1 (driver?)
[ 13.896940] 1f02 37888 mtdblock2 (driver?)
[ 13.902070] 1f03 93184 mtdblock3 (driver?)
[ 13.907161] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 13.915462] CPU: 0 PID: 1 Comm: swapper Not tainted 4.6.0-kirkwood-tld-1 #1
[ 13.922451] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[ 13.928778] [<c001681c>] (unwind_backtrace) from [<c0012a38>] (show_stack+0x10/0x14)
[ 13.936564] [<c0012a38>] (show_stack) from [<c00c7308>] (panic+0xac/0x240)
[ 13.943483] [<c00c7308>] (panic) from [<c0825258>] (mount_block_root+0x204/0x27c)
[ 13.951011] [<c0825258>] (mount_block_root) from [<c08253bc>] (mount_root+0xec/0x118)
[ 13.958883] [<c08253bc>] (mount_root) from [<c082550c>] (prepare_namespace+0x124/0x184)
[ 13.966933] [<c082550c>] (prepare_namespace) from [<c0824e74>] (kernel_init_freeable+0x20c/0x25c)
[ 13.975862] [<c0824e74>] (kernel_init_freeable) from [<c05e7f70>] (kernel_init+0x8/0xf4)
[ 13.983998] [<c05e7f70>] (kernel_init) from [<c000f0b0>] (ret_from_fork+0x14/0x24)
[ 13.991610] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

2. I was using u-boot-2014...

3. as far as I remember I did all the necessary steps here in contrast to the u-boot flashing.
Re: Pogo E02 not booting - kernel panic 4.6.0
June 24, 2016 01:05AM
Re 1. That is not the entire boot log. I want to see uboot banner, everything.

Re 3. You have installed kernel 4.6 incorrectly. Look at the instruction again. Don't append the DTB to uImage. Your uboot envs were set up to boot with separate DTB.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogo E02 not booting - kernel panic 4.6.0
June 24, 2016 08:38AM
1. sorry, here the beginning:

U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:23:43 -0700)
Pogo E02

SoC: Kirkwood 88F6281_A0
DRAM: 256 MiB
WARNING: Caches not enabled
NAND: 128 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
Using egiga0 device
ping failed; host 192.168.1.100 is not alive
Hit any key to stop autoboot: 0
starting USB...

2. I think I did step 4a and then 4b instead of one of them, damn.
so I have to reinstall the kernel?
how to do that without ssh access - from a different linux box?
Re: Pogo E02 not booting - kernel panic 4.6.0
June 24, 2016 05:17PM
Mount this rootfs on another Linux box. And restore uImage using the uImage.orig saved in step 4b.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogo E02 not booting - kernel panic 4.6.0
June 25, 2016 06:29AM
Thank you very much...pogo is booting again.
What about step B. Flashing default u-boot envs image and C. Add uEnv.txt to /boot directory, which I left out when I updated u-boot.
Do I have to do this?
Re: Pogo E02 not booting - kernel panic 4.6.0
June 26, 2016 12:11AM
sambo Wrote:
-------------------------------------------------------
> Thank you very much...pogo is booting again.
> What about step B. Flashing default u-boot envs
> image

New default envs is always recommended, to make setting up easier.

> C. Add uEnv.txt to /boot directory,
> which I left out when I updated u-boot.

Not necessary. Only when you need to tailor the boot envs during booting.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 06/26/2016 02:28AM by bodhi.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: