Welcome! Log In Create A New Profile

Advanced

Pogoplug 4 uboot update won't boot

Posted by Looker 
Pogoplug 4 uboot update won't boot
May 21, 2018 07:28PM
Bodhi ,

I have a Pogo4 with Arch updated Uboot and Arch and now it won't boot with SD card. I have an old flash drive with Arch on it and it will boot from that but not from the
SD card with the updated arch.

Can you look at the netconsole output and see if anything sticks out to you.

Thank you,
Looker

U-Boot 2016.09.01-1 (Oct 10 2016 - 23:13:37 -0600) Arch Linux ARM
Pogoplug V4
gcc (GCC) 6.2.1 20160830
GNU ld (GNU Binutils) 2.27
Hit any key to stop autoboot:   0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 6
1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: ide_preinit failed
switch to partitions #0, OK
mmc0 is current device
mmc found on device 0
Checking for: /boot/uEnv.txt ...
** File not found /boot/zImage **
4600064 bytes read in 127 ms (34.5 MiB/s)
loading /boot/dtbs/kirkwood-pogoplug-series-4.dtb ...
** File not found /boot/dtbs/kirkwood-pogoplug-series-4.dtb **
5615605 bytes read in 154 ms (34.8 MiB/s)
Booting uImage with initrd
## Booting kernel from Legacy Image at 00810000 ...
   Image Name:   Linux-4.4.97-1-ARCH
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4600000 Bytes = 4.4 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK

Above is how far it gets in netconsole


This is the printenv output

U-Boot 2016.09.01-1 (Oct 10 2016 - 23:13:37 -0600) Arch Linux ARM
Pogoplug V4
gcc (GCC) 6.2.1 20160830
GNU ld (GNU Binutils) 2.27
Hit any key to stop autoboot:  3 6
 0 
Pogoplugv4> 
Pogoplugv4> printenv
printenv
bootcmd=run startboot;run bootubi
bootdir=/boot
bootfilem=uImage
bootfilez=zImage
bootubi=echo Trying to boot from NAND ...;if run mountubi; then ubifsload ${loadaddr} /boot/zImage;ubifsload ${fdtaddr} /boot/dtbs/kirkwood-pogoplugv4.dtb; ubifsumount; setenv bootargs console=${console} ubi.mtd=1 root=ubi0:rootfs ro rootfstype=ubifs  rootwait ${mtdparts};bootz ${loadaddr} - ${fdtaddr};fi
console=ttyS0,115200
ethact=egiga0
ethaddr=00:25:31:05:09:c6
fdtaddr=0x800000
fdtdir=/boot/dtbs
fdtfile=kirkwood-pogoplug-series-4.dtb
ipaddr=10.10.10.3
loadaddr=0x810000
loadfdt=echo loading ${fdtdir}/${fdtfile} ...; load ${devtype} ${bootpart} ${fdtaddr} ${fdtdir}/${fdtfile}
loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfilez} || load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfilem}
loadrd=load ${devtype} ${bootpart} ${rdaddr} ${bootdir}/${rdfile}
mainargs=setenv bootargs console=${console} ${mtdparts} root=${root} rw rootwait ${optargs} ${ncargs}
mountubi=ubi part rootfs; ubifsmount ubi0:rootfs
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
ncargs=ignore_loglevel netconsole=6665@10.10.10.3/eth0,6666@10.10.10.4/
ncip=10.10.10.5
ncipk=10.10.10.4
netconsole=on
preboot=if env exists netconsole && test ${netconsole} = on; then if ping ${ncip}; then  setenv stdin nc; setenv stdout nc;  setenv stderr nc; version; if env exists ncargsusr; then echo ncargs has been defined by user; setenv ncargs ${ncargsusr}; else setenv ncargs ignore_loglevel netconsole=6665@${ipaddr}/eth0,6666@${ncipk}/; fi; fi; else echo Netconsole has been turned off.; echo To turn it on, set netconsole variable to on.; setenv stdin; setenv stdout; setenv stderr; setenv ncargs; fi
rdaddr=0x1100000
rdfile=initramfs-linux.img
startboot=usb start; ide reset; for devtype in mmc usb ide; do  setenv devnum 0; while ${devtype} dev ${devnum}; do  echo ${devtype} found on device ${devnum}; setenv bootpart ${devnum}:1; echo Checking for: ${bootdir}/uEnv.txt ...; if test -e ${devtype} ${bootpart} ${bootdir}/uEnv.txt; then  load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/uEnv.txt; env import -t ${loadaddr} ${filesize}; echo Loaded environment from ${bootdir}/uEnv.txt; echo Checking if uenvcmd is set ...; if test -n ${uenvcmd}; then  echo Running uenvcmd ...; run uenvcmd; fi; fi; if run loadimage; then if env exists root; then echo root has been defined by user; else part uuid ${devtype} ${bootpart} uuid; setenv root PARTUUID=${uuid}; fi;  run mainargs; if run loadfdt; then  if run loadrd; then  bootz ${loadaddr} ${rdaddr}:${filesize} ${fdtaddr}; else  bootz ${loadaddr} - ${fdtaddr}; fi; else  if run loadrd; then echo Booting uImage with initrd;  bootm ${loadaddr} ${rdaddr}:${filesize}; else  bootm ${loadaddr}; fi; fi; else  echo No kernel found; fi; setexpr devnum ${devnum} + 1; done; done;
stderr=nc
stdin=nc
stdout=nc

Environment size: 2928/131068 bytes
Pogoplugv4> 

Re: Pogoplug 4 uboot update won't boot
May 21, 2018 09:25PM
Looker Wrote:
-------------------------------------------------------
> Bodhi ,
>
>
>
> U-Boot 2016.09.01-1 (Oct 10 2016 - 23:13:37 -0600)
> Arch Linux ARM
> Pogoplug V4
> gcc (GCC) 6.2.1 20160830
> GNU ld (GNU Binutils) 2.27
> Hit any key to stop autoboot:   0 
> starting USB...
> USB0:   USB EHCI 1.00
> scanning bus 0 for devices... 6
> 1 USB Device(s) found
>        scanning usb for storage devices... 0
> Storage Device(s) found
> 
> Reset IDE: ide_preinit failed
> switch to partitions #0, OK
> mmc0 is current device
> mmc found on device 0
> Checking for: /boot/uEnv.txt ...
> ** File not found /boot/zImage **
> 4600064 bytes read in 127 ms (34.5 MiB/s)
> loading /boot/dtbs/kirkwood-pogoplug-series-4.dtb ...
> ** File not found /boot/dtbs/kirkwood-pogoplug-series-4.dtb **
>
>
See above.
Re: Pogoplug 4 uboot update won't boot
May 22, 2018 01:24AM
Looker,


Quote

mmc0 is current device
mmc found on device 0


Booting uImage with initrd

## Booting kernel from Legacy Image at 00810000 ...
Image Name: Linux-4.4.97-1-ARCH
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4600000 Bytes = 4.4 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK

Above is how far it gets in netconsole

With netconsole, when it stops here it does not necessarily mean that the kernel has not booted. That's how much output you usually get with mainline u-boot in netconsole, and I suspect Arch built u-boot is basically simlilar in this aspect.

In my released u-boot, I've patched netconsole booting code to explicitly output the "Starting kernel ..." message to let users know that it was not stopped prematurely.

So the problem could be with mounting rootfs (after the kernel has booted).

Since you don't have serial console, and cannot see the activities after the output above, I'd suggest you clone the rootfs on the working USB flash drive to the SD card (use a different SD card, or wipe out this one). After that it will be much easier to narrow down the problem. Right now, the SD has a newer Arch kernel, as you stated above, so we are not comparing the same rootfs, thus cannot rule out the rootfs problem.

Note about habibie suggestion above: this rootfs most likely does not need zImage or DTB. So the error messages about missing those files are actually just info, not errors. But we can only be sure about that after the same cloned rootfs on SD card has been tried.

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



Edited 3 time(s). Last edit at 05/22/2018 04:27PM by bodhi.
Re: Pogoplug 4 uboot update won't boot
May 22, 2018 06:10AM
bodhi Wrote:
-------------------------------------------------------
> Note about habibie suggestion above: this rootfs most likely does not need zImage or DTB. So the error messages about missing those files are actually just info, not errors. But we can only be sure about that after the same cloned rootfs on SD card has been tried.
>
Bodhi, thank you for the above clarification.
Re: Pogoplug 4 uboot update won't boot
May 22, 2018 09:48PM
Thank you both, I'll give NC another try after cloning the rootfs from the old flash drive to a new sd card.
Re: Pogoplug 4 uboot update won't boot
June 03, 2018 07:55PM
Bodhi,
I decided to write your uboot 7-2017 on the device and tried to boot with a known good SD card from another Pogo 4, I also got off my "lazy backside" , opened it up to added a serial connector so I could use a terminal to see the output.

It hangs at a certain point , don't know what the problem is, below is the output from uboot and the printenv:

BOOTING


U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:34:01 -0700)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   MVEBU_MMC: 0
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Using egiga0 device
host 192.168.0.103 is alive
Using egiga0 device
host 192.168.0.103 is alive
Using egiga0 device
host 192.168.0.103 is alive
Using egiga0 device
host 192.168.0.103 is alive
Using egiga0 device
host 192.168.0.103 is alive
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.4.97-1-ARCH (builduser@leming) (gcc version 7.2.0 (GCC) ) #1 PREEMPT Sat Nov 11 04:51:38 UTC 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Pogoplug V4
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),-(rootfs)
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 119688K/131072K available (6598K kernel code, 550K rwdata, 1880K rodata, 304K init, 725K bss, 11384K 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 : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc084fc70   (8480 kB)
[    0.000000]       .init : 0xc0850000 - 0xc089c000   ( 304 kB)
[    0.000000]       .data : 0xc089c000 - 0xc0925a04   ( 551 kB)
[    0.000000]        .bss : 0xc0925a04 - 0xc09daf98   ( 726 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] .Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:114
[    0.000016] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    4.505952] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    4.506181] Console: colour dummy device 80x30
[    4.506216] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[    4.596040] pid_max: default: 32768 minimum: 301
[    4.596147] Security Framework initialized
[    4.596233] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    4.596254] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    4.597128] Initializing cgroup subsys io
[    4.597168] Initializing cgroup subsys memory
[    4.597230] Initializing cgroup subsys devices
[    4.597260] Initializing cgroup subsys freezer
[    4.597286] Initializing cgroup subsys net_cls
[    4.597308] Initializing cgroup subsys perf_event
[    4.597334] Initializing cgroup subsys net_prio
[    4.597430] CPU: Testing write buffer coherency: ok
[    4.597974] Setting up static identity map for 0x81e0 - 0x8238
[    4.600274] devtmpfs: initialized
[    4.603076] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    4.603122] futex hash table entries: 256 (order: -1, 3072 bytes)
[    4.603744] pinctrl core: initialized pinctrl subsystem
[    4.604646] NET: Registered protocol family 16
[    4.605243] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    4.636057] cpuidle: using governor ladder
[    4.666054] cpuidle: using governor menu
[    4.666245] Kirkwood: MV88F6281-A1, TCLK=166666667.
[    4.666274] Feroceon L2: Enabling L2
[    4.666314] Feroceon L2: Cache support initialised.
[    4.668934] Kirkwood PCIe port 0: link down
[    4.668946] PCI: bus0 uses PCIe port 0
[    4.669216] PCI host bridge to bus 0000:00
[    4.669237] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    4.669250] pci_bus 0000:00: root bus resource [io  0x1000-0xffff]
[    4.669262] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    4.669676] PCI: bus0: Fast back to back transfers disabled
[    4.707760] vgaarb: loaded
[    4.708130] SCSI subsystem initialized
[    4.708710] usbcore: registered new interface driver usbfs
[    4.708797] usbcore: registered new interface driver hub
[    4.708864] usbcore: registered new device driver usb
[    4.709041] pps_core: LinuxPPS API ver. 1 registered
[    4.709052] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    4.709089] PTP clock support registered
[    4.710308] clocksource: Switched to clocksource orion_clocksource
[    4.756643] FS-Cache: Loaded
[    4.771581] NET: Registered protocol family 2
[    4.772479] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    4.772509] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    4.772532] TCP: Hash tables configured (established 1024 bind 1024)
[    4.772623] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    4.772649] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    4.772869] NET: Registered protocol family 1
[    4.773246] RPC: Registered named UNIX socket transport module.
[    4.773260] RPC: Registered udp transport module.
[    4.773267] RPC: Registered tcp transport module.
[    4.773275] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    4.790414] VFS: Disk quotas dquot_6.6.0
[    4.790735] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    4.793128] FS-Cache: Netfs 'nfs' registered for caching
[    4.794440] NFS: Registering the id_resolver key type
[    4.794514] Key type id_resolver registered
[    4.794523] Key type id_legacy registered
[    4.794629] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    4.796166] fuse init (API version 7.23)
[    4.798635] aufs 4.4-20170911
[    4.804640] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    4.804664] io scheduler noop registered
[    4.804678] io scheduler deadline registered
[    4.804985] io scheduler cfq registered
[    4.805288] io scheduler bfq registered (default)
[    4.805298] BFQ I/O-scheduler: v7r11
[    4.805543] mv_xor mv_xor.0: Marvell shared XOR driver
[    4.841739] mv_xor mv_xor.0: Marvell XOR (Registers Mode): ( xor cpy )
[    4.842019] mv_xor mv_xor.1: Marvell shared XOR driver
[    4.881756] mv_xor mv_xor.1: Marvell XOR (Registers Mode): ( xor cpy )
[    4.888238] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    4.889462] console [ttyS0] disabled
[    4.909559] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 10416666) is a 16550A
[    5.495234] console [ttyS0] enabled
[    5.517146] brd: module loaded
[    5.529099] loop: module loaded
[    5.532742] sata_mv sata_mv.0: cannot get optional clkdev
[    5.538189] sata_mv sata_mv.0: slots 32 ports 1
[    5.544709] scsi host0: sata_mv
[    5.548264] ata1: SATA max UDMA/133 irq 21
[    5.553249] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    5.559574] nand: Hynix H27U1G8F2BTR-BC
[    5.563556] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.571127] Scanning device for bad blocks
[    5.592134] Bad eraseblock 208 at 0x000001a00000
[    5.616609] Bad eraseblock 454 at 0x0000038c0000
[    5.644907] Bad eraseblock 747 at 0x000005d60000
[    5.658207] Bad eraseblock 855 at 0x000006ae0000
[    5.676438] 2 cmdlinepart partitions found on MTD device orion_nand
[    5.682695] Creating 2 MTD partitions on "orion_nand":
[    5.687817] 0x000000000000-0x000000100000 : "u-boot"
[    5.693359] 0x000000100000-0x000008000000 : "rootfs"
[    5.708038] libphy: orion_mdio_bus: probed
[    5.712297] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    5.910340] ata1: SATA link down (SStatus 0 SControl F300)
[    6.795985] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:31:05:09:c6
[    6.804861] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.811388] ehci-pci: EHCI PCI platform driver
[    6.815901] ehci-orion: EHCI orion driver
[    6.819974] orion-ehci orion-ehci.0: EHCI Host Controller
[    6.825397] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[    6.833113] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[    6.850347] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[    6.857363] hub 1-0:1.0: USB hub found
[    6.861191] hub 1-0:1.0: 1 port detected
[    6.865950] usbcore: registered new interface driver uas
[    6.871462] usbcore: registered new interface driver usb-storage
[    6.877512] usbcore: registered new interface driver ums-alauda
[    6.883515] usbcore: registered new interface driver ums-cypress
[    6.889556] usbcore: registered new interface driver ums-datafab
[    6.895622] usbcore: registered new interface driver ums_eneub6250
[    6.901854] usbcore: registered new interface driver ums-freecom
[    6.907889] usbcore: registered new interface driver ums-isd200
[    6.913864] usbcore: registered new interface driver ums-jumpshot
[    6.919991] usbcore: registered new interface driver ums-karma
[    6.925874] usbcore: registered new interface driver ums-onetouch
[    6.932043] usbcore: registered new interface driver ums-realtek
[    6.938078] usbcore: registered new interface driver ums-sddr09
[    6.944053] usbcore: registered new interface driver ums-sddr55
[    6.950000] usbcore: registered new interface driver ums-usbat
[    6.956344] mousedev: PS/2 mouse device common for all mice
[    7.970336] rtc-mv rtc-mv: internal RTC not ticking
[    7.975333] i2c /dev entries driver
[    7.979447] sdhci: Secure Digital Host Controller Interface driver
[    7.985627] sdhci: Copyright(c) Pierre Ossman
[    8.020574] sdhci-pltfm: SDHCI platform and OF driver helper
[    8.029860] ledtrig-cpu: registered to indicate activity on CPUs
[    8.036051] usbcore: registered new interface driver r8712u
[    8.041926] gre: GRE over IPv4 demultiplexor driver
[    8.046883] NET: Registered protocol family 17
[    8.051520] Key type dns_resolver registered
[    8.060015] registered taskstats version 1
[    8.066211] Key type encrypted registered
[    8.070959] console [netcon0] enabled
[    8.074610] netconsole: network logging started
[    8.079562] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    8.086697] hctosys: unable to open rtc device (rtc0)
[    8.093285] Waiting 10 sec before mounting root device...
[    8.104662] mmc0: host does not support reading read-only switch, assuming write-enable
[    8.116837] mmc0: new high speed SDHC card at address 0007
[    8.122973] mmcblk0: mmc0:0007 SD32G 28.9 GiB 
[    8.129384]  mmcblk0: p1
[   18.100609] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
[   18.108580] Please append a correct "root=" boot option; here are the available partitions:
[   18.116987] 0100            8192 ram0  (driver?)
[   18.121641] 0101            8192 ram1  (driver?)
[   18.126243] 0102            8192 ram2  (driver?)
[   18.130892] 0103            8192 ram3  (driver?)
[   18.135497] 0104            8192 ram4  (driver?)
[   18.140102] 0105            8192 ram5  (driver?)
[   18.144743] 0106            8192 ram6  (driver?)
[   18.149346] 0107            8192 ram7  (driver?)
[   18.153970] 0108            8192 ram8  (driver?)
[   18.158574] 0109            8192 ram9  (driver?)
[   18.163197] 010a            8192 ram10  (driver?)
[   18.167888] 010b            8192 ram11  (driver?)
[   18.172598] 010c            8192 ram12  (driver?)
[   18.177288] 010d            8192 ram13  (driver?)
[   18.181998] 010e            8192 ram14  (driver?)
[   18.186688] 010f            8192 ram15  (driver?)
[   18.191403] b300        30322688 mmcblk0  driver: mmcblk
[   18.196702]   b301        30322656 mmcblk0p1 00000000-01
[   18.202016] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   18.210242] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.97-1-ARCH #1
[   18.216560] Hardware name: Pogoplug V4
[   18.220316] [<c001047c>] (unwind_backtrace) from [<c000d978>] (show_stack+0x10/0x14)
[   18.228029] [<c000d978>] (show_stack) from [<c00cd690>] (panic+0x88/0x208)
[   18.234883] [<c00cd690>] (panic) from [<c08512c0>] (mount_block_root+0x1b8/0x278)
[   18.242334] [<c08512c0>] (mount_block_root) from [<c0851570>] (mount_root+0xf4/0x120)
[   18.250136] [<c0851570>] (mount_root) from [<c08516f4>] (prepare_namespace+0x158/0x1b8)
[   18.258111] [<c08516f4>] (prepare_namespace) from [<c0850e98>] (kernel_init_freeable+0x1f8/0x24c)
[   18.266958] [<c0850e98>] (kernel_init_freeable) from [<c0646e40>] (kernel_init+0x8/0xe8)
[   18.275020] [<c0646e40>] (kernel_init) from [<c000a4b0>] (ret_from_fork+0x14/0x24)
[   18.282562] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

PRINTENV


arcNumber=3960
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-pogoplug_v4.dtb
ethact=egiga0
ethaddr=00:25:31:05:09:c6
if_netconsole=ping $serverip
ipaddr=192.168.0.183
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
machid=f78
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
nc_ready=0
partition=nand0,2
preboot=run preboot_nc
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.103
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 3013/131068 bytes

Does anything jump out at you preventing it from booting, I even tried stoping the autoboot and issuing a boot command manually but ended up with the same output.

Thanks
Re: Pogoplug 4 uboot update won't boot
June 03, 2018 11:20PM
Looker Wrote:
> [ 18.100609] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
> [ 18.108580] Please append a correct "root=" boot option; here are the available partitions:
> [ 18.116987] 0100 8192 ram0

This usually indicates that you have not labeled the partition you are trying to boot with the rootfs label.

Ray
Re: Pogoplug 4 uboot update won't boot
June 04, 2018 12:23AM
Looker,

Like Ray suggested, the problem might be with the bootargs rootfs=LABEL=rootfs. My u-boot envs set that bootargs to look for the rootfs label rootfs. This is one of the possible reasons why you have rootfs mounting problem.

Remember you are booting Arch kernel. So another possible major culprit here is the uInitrd. Arch does not provide uInitrd out of the box, you usually need to add it to your rootfs.

Look like you have serial console, but you netconsole is also set up, so it has suppressed quite a bit of booting logging.

2017.07-tld-1 (Sep 05 2017 - 00:34:01 -0700)
Pogoplug V4
....
host 192.168.0.103 is alive
Using egiga0 device
host 192.168.0.103 is alive

You shoud turn off netconsole and use only serial console for debugging. That way we can see clearly what happened.

If you'd rather not turn off netconsole, because you have both console already activated, you need a 2nd terminal running netconsole server opened so you can interrupt u-boot at countdown on that terminal and also see u-boot output during loading the kernel files.

So we need that output log from netconsole here, before we can determine exactly what has caused the rootfs mounting problem.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogoplug 4 uboot update won't boot
June 04, 2018 12:11PM
Bodhi,

I tried renaming the label to "rootfs" but still won't boot, how can I temporarily stop netconsole from running?

Thanks
Re: Pogoplug 4 uboot update won't boot
June 04, 2018 05:05PM
Looker,

There are a few different ways to to stop netconsole from starting (permanently and temporarily).

The easiest way to temporarily stop netconsole is to unplug the Ethernet cable from this Pogo (when you have serial console, you don't need network to troubleshoot booting problem).

Another way is changing the netconsole server (where you would run nc) IP address 192.168.0.103 to something else such as 192.168.0.104.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogoplug 4 uboot update won't boot
June 04, 2018 07:14PM
Bodhi,

sorry to be a pest, per your suggestion, here is the boot without an ethernet cable. This known good working SD card boots fine in another pogo 4 with an older uboot.

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:34:01 -0700)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   MVEBU_MMC: 0
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
No link on egiga0
ping failed; host 192.168.0.103 is not alive
No link on egiga0
ping failed; host 192.168.0.103 is not alive
No link on egiga0
ping failed; host 192.168.0.103 is not alive
No link on egiga0
ping failed; host 192.168.0.103 is not alive
No link on egiga0
ping failed; host 192.168.0.103 is not alive
Hit any key to stop autoboot:  0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: ide_preinit failed

MMC rescan: current device # 0 initialized OK
## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **

no IDE devices available

Partition Map for MMC device 0  --   Partition Type: DOS

Part.Start Sector.Num Sectors.UUID..Type
  1.63        .60645312  .00000000-01.83
loading envs from mmc 0 ...
** File not found /boot/uEnv.txt **
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: ide_preinit failed
device ide 0:1
** Bad device ide 0 **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc

MMC rescan: current device # 0 initialized OK
device mmc 0:1
1 bytes read in 11 ms (0 Bytes/s)
Found bootable drive on mmc 0
loading uImage ...
4600064 bytes read in 127 ms (34.5 MiB/s)
loading uInitrd ...
** File not found /boot/uInitrd **
loading DTB /boot/dts/kirkwood-pogoplug_v4.dtb ...
** File not found /boot/dts/kirkwood-pogoplug_v4.dtb **
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.4.97-1-ARCH
   Created:      2017-11-11   4:51:55 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4600000 Bytes = 4.4 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Using machid 0xf78 from environment

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.4.97-1-ARCH (builduser@leming) (gcc version 7.2.0 (GCC) ) #1 PREEMPT Sat Nov 11 04:51:38 UTC 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Pogoplug V4
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),-(rootfs)
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 119688K/131072K available (6598K kernel code, 550K rwdata, 1880K rodata, 304K init, 725K bss, 11384K 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 : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc084fc70   (8480 kB)
[    0.000000]       .init : 0xc0850000 - 0xc089c000   ( 304 kB)
[    0.000000]       .data : 0xc089c000 - 0xc0925a04   ( 551 kB)
[    0.000000]        .bss : 0xc0925a04 - 0xc09daf98   ( 726 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] .Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:114
[    0.000017] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    8.240278] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    8.240508] Console: colour dummy device 80x30
[    8.240542] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[    8.330367] pid_max: default: 32768 minimum: 301
[    8.330472] Security Framework initialized
[    8.330557] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    8.330578] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    8.331449] Initializing cgroup subsys io
[    8.331488] Initializing cgroup subsys memory
[    8.331550] Initializing cgroup subsys devices
[    8.331579] Initializing cgroup subsys freezer
[    8.331603] Initializing cgroup subsys net_cls
[    8.331624] Initializing cgroup subsys perf_event
[    8.331651] Initializing cgroup subsys net_prio
[    8.331747] CPU: Testing write buffer coherency: ok
[    8.332291] Setting up static identity map for 0x81e0 - 0x8238
[    8.334589] devtmpfs: initialized
[    8.337360] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    8.337409] futex hash table entries: 256 (order: -1, 3072 bytes)
[    8.337995] pinctrl core: initialized pinctrl subsystem
[    8.338896] NET: Registered protocol family 16
[    8.339493] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    8.370382] cpuidle: using governor ladder
[    8.400379] cpuidle: using governor menu
[    8.400570] Kirkwood: MV88F6281-A1, TCLK=166666667.
[    8.400600] Feroceon L2: Enabling L2
[    8.400641] Feroceon L2: Cache support initialised.
[    8.403263] Kirkwood PCIe port 0: link down
[    8.403275] PCI: bus0 uses PCIe port 0
[    8.403544] PCI host bridge to bus 0000:00
[    8.403565] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    8.403578] pci_bus 0000:00: root bus resource [io  0x1000-0xffff]
[    8.403590] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    8.404004] PCI: bus0: Fast back to back transfers disabled
[    8.442080] vgaarb: loaded
[    8.442451] SCSI subsystem initialized
[    8.443031] usbcore: registered new interface driver usbfs
[    8.443117] usbcore: registered new interface driver hub
[    8.443183] usbcore: registered new device driver usb
[    8.443362] pps_core: LinuxPPS API ver. 1 registered
[    8.443372] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    8.443409] PTP clock support registered
[    8.444626] clocksource: Switched to clocksource orion_clocksource
[    8.490956] FS-Cache: Loaded
[    8.505910] NET: Registered protocol family 2
[    8.506814] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    8.506845] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    8.506867] TCP: Hash tables configured (established 1024 bind 1024)
[    8.506959] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    8.506985] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    8.507205] NET: Registered protocol family 1
[    8.507578] RPC: Registered named UNIX socket transport module.
[    8.507592] RPC: Registered udp transport module.
[    8.507600] RPC: Registered tcp transport module.
[    8.507608] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    8.524762] VFS: Disk quotas dquot_6.6.0
[    8.525082] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    8.527475] FS-Cache: Netfs 'nfs' registered for caching
[    8.528783] NFS: Registering the id_resolver key type
[    8.528838] Key type id_resolver registered
[    8.528847] Key type id_legacy registered
[    8.528952] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    8.530486] fuse init (API version 7.23)
[    8.532952] aufs 4.4-20170911
[    8.538943] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    8.538965] io scheduler noop registered
[    8.538980] io scheduler deadline registered
[    8.539289] io scheduler cfq registered
[    8.539590] io scheduler bfq registered (default)
[    8.539600] BFQ I/O-scheduler: v7r11
[    8.539845] mv_xor mv_xor.0: Marvell shared XOR driver
[    8.576057] mv_xor mv_xor.0: Marvell XOR (Registers Mode): ( xor cpy )
[    8.576335] mv_xor mv_xor.1: Marvell shared XOR driver
[    8.616069] mv_xor mv_xor.1: Marvell XOR (Registers Mode): ( xor cpy )
[    8.622554] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    8.623778] console [ttyS0] disabled
[    8.643874] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 10416666) is a 16550A
[    9.229547] console [ttyS0] enabled
[    9.251485] brd: module loaded
[    9.263452] loop: module loaded
[    9.267097] sata_mv sata_mv.0: cannot get optional clkdev
[    9.272545] sata_mv sata_mv.0: slots 32 ports 1
[    9.279064] scsi host0: sata_mv
[    9.282615] ata1: SATA max UDMA/133 irq 21
[    9.287602] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    9.293931] nand: Hynix H27U1G8F2BTR-BC
[    9.297913] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    9.305483] Scanning device for bad blocks
[    9.326489] Bad eraseblock 208 at 0x000001a00000
[    9.350968] Bad eraseblock 454 at 0x0000038c0000
[    9.379262] Bad eraseblock 747 at 0x000005d60000
[    9.392566] Bad eraseblock 855 at 0x000006ae0000
[    9.410797] 2 cmdlinepart partitions found on MTD device orion_nand
[    9.417050] Creating 2 MTD partitions on "orion_nand":
[    9.422174] 0x000000000000-0x000000100000 : "u-boot"
[    9.427711] 0x000000100000-0x000008000000 : "rootfs"
[    9.442441] libphy: orion_mdio_bus: probed
[    9.446700] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    9.644657] ata1: SATA link down (SStatus 0 SControl F300)
[   10.530282] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:31:05:09:c6
[   10.539156] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   10.545683] ehci-pci: EHCI PCI platform driver
[   10.550197] ehci-orion: EHCI orion driver
[   10.554269] orion-ehci orion-ehci.0: EHCI Host Controller
[   10.559694] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   10.567409] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   10.584664] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   10.591681] hub 1-0:1.0: USB hub found
[   10.595515] hub 1-0:1.0: 1 port detected
[   10.600277] usbcore: registered new interface driver uas
[   10.605794] usbcore: registered new interface driver usb-storage
[   10.611840] usbcore: registered new interface driver ums-alauda
[   10.617846] usbcore: registered new interface driver ums-cypress
[   10.623886] usbcore: registered new interface driver ums-datafab
[   10.629952] usbcore: registered new interface driver ums_eneub6250
[   10.636185] usbcore: registered new interface driver ums-freecom
[   10.642219] usbcore: registered new interface driver ums-isd200
[   10.648194] usbcore: registered new interface driver ums-jumpshot
[   10.654322] usbcore: registered new interface driver ums-karma
[   10.660206] usbcore: registered new interface driver ums-onetouch
[   10.666374] usbcore: registered new interface driver ums-realtek
[   10.672409] usbcore: registered new interface driver ums-sddr09
[   10.678383] usbcore: registered new interface driver ums-sddr55
[   10.684331] usbcore: registered new interface driver ums-usbat
[   10.690674] mousedev: PS/2 mouse device common for all mice
[   11.704653] rtc-mv rtc-mv: internal RTC not ticking
[   11.709654] i2c /dev entries driver
[   11.713761] sdhci: Secure Digital Host Controller Interface driver
[   11.719940] sdhci: Copyright(c) Pierre Ossman
[   11.754893] sdhci-pltfm: SDHCI platform and OF driver helper
[   11.764179] ledtrig-cpu: registered to indicate activity on CPUs
[   11.770363] usbcore: registered new interface driver r8712u
[   11.776238] gre: GRE over IPv4 demultiplexor driver
[   11.781179] NET: Registered protocol family 17
[   11.785793] Key type dns_resolver registered
[   11.794311] registered taskstats version 1
[   11.800512] Key type encrypted registered
[   11.805260] console [netcon0] enabled
[   11.808905] netconsole: network logging started
[   11.813860] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[   11.820995] hctosys: unable to open rtc device (rtc0)
[   11.827577] Waiting 10 sec before mounting root device...
[   11.839012] mmc0: host does not support reading read-only switch, assuming write-enable
[   11.851190] mmc0: new high speed SDHC card at address 0007
[   11.857324] mmcblk0: mmc0:0007 SD32G 28.9 GiB 
[   11.863704]  mmcblk0: p1
[   21.834925] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
[   21.842892] Please append a correct "root=" boot option; here are the available partitions:
[   21.851303] 0100            8192 ram0  (driver?)
[   21.855954] 0101            8192 ram1  (driver?)
[   21.860557] 0102            8192 ram2  (driver?)
[   21.865206] 0103            8192 ram3  (driver?)
[   21.869810] 0104            8192 ram4  (driver?)
[   21.874415] 0105            8192 ram5  (driver?)
[   21.879056] 0106            8192 ram6  (driver?)
[   21.883660] 0107            8192 ram7  (driver?)
[   21.888283] 0108            8192 ram8  (driver?)
[   21.892887] 0109            8192 ram9  (driver?)
[   21.897511] 010a            8192 ram10  (driver?)
[   21.902201] 010b            8192 ram11  (driver?)
[   21.906912] 010c            8192 ram12  (driver?)
[   21.911601] 010d            8192 ram13  (driver?)
[   21.916311] 010e            8192 ram14  (driver?)
[   21.921002] 010f            8192 ram15  (driver?)
[   21.925717] b300        30322688 mmcblk0  driver: mmcblk
[   21.931015]   b301        30322656 mmcblk0p1 00000000-01
[   21.936329] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   21.944555] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.97-1-ARCH #1
[   21.950874] Hardware name: Pogoplug V4
[   21.954638] [<c001047c>] (unwind_backtrace) from [<c000d978>] (show_stack+0x10/0x14)
[   21.962351] [<c000d978>] (show_stack) from [<c00cd690>] (panic+0x88/0x208)
[   21.969204] [<c00cd690>] (panic) from [<c08512c0>] (mount_block_root+0x1b8/0x278)
[   21.976657] [<c08512c0>] (mount_block_root) from [<c0851570>] (mount_root+0xf4/0x120)
[   21.984457] [<c0851570>] (mount_root) from [<c08516f4>] (prepare_namespace+0x158/0x1b8)
[   21.992432] [<c08516f4>] (prepare_namespace) from [<c0850e98>] (kernel_init_freeable+0x1f8/0x24c)
[   22.001281] [<c0850e98>] (kernel_init_freeable) from [<c0646e40>] (kernel_init+0x8/0xe8)
[   22.009342] [<c0646e40>] (kernel_init) from [<c000a4b0>] (ret_from_fork+0x14/0x24)
[   22.016884] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   96.744648] random: nonblocking pool is initialized

Thanks again,
Looker
Re: Pogoplug 4 uboot update won't boot
June 04, 2018 08:03PM
Looker,

> sorry to be a pest,

Not at all! this is a common problem when booting with my u-boot envs which was written to boot Debian. For Arch it is a little bit different due to the rootfs structure.

> ## Booting kernel from Legacy Image at 00800000
> ...
>    Image Name:   Linux-4.4.97-1-ARCH
>    Created:      2017-11-11   4:51:55 UTC
>    Image Type:   ARM Linux Kernel Image
> (uncompressed)
>    Data Size:    4600000 Bytes = 4.4 MiB
>    Load Address: 00008000
>    Entry Point:  00008000
>    Verifying Checksum ... OK
>    Loading Kernel Image ... OK
> Using machid 0xf78 from environment


This is the lack of uInitrd problem. Note that it was not loaded.

> [    0.000000] Kernel command line:
> console=ttyS0,115200 root=LABEL=rootfs
> rootdelay=10
> mtdparts=orion_nand:1M(u-boot),-(rootfs)

Note the command line stated that the root device in bootargs is root=LABEL=rootfs.

In order to use this approach, you need uInitrd (a Linux standard, but Arch normally don't use it).

So the quick fix is not to use root=LABEL=rootfs.


- Power up interrupt serial at cound down
- and then modify the bootargs

setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p1 rootdelay=10 $mtdparts $custom_params
and then boot
boot

===================

This simple root device syntax root=/dev/mmcblk0p1 is only a stop gap measure. What you should really do to make it robust is to keep root=LABEL=rootfs in bootargs, and find the uInitrd for this Arch rootfs and copy it into /boot folder.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogoplug 4 uboot update won't boot
June 04, 2018 08:45PM
Thanks Bodhi!
What I might do science I already have a working pogo 4 with Arch is jut install Debian. What's the easiest way from where I'm at right now, do I need to fix any of the environment variables? Can I install it from the serial console as is?
Re: Pogoplug 4 uboot update won't boot
June 04, 2018 09:44PM
Looker,

What you have right now is the latest u-boot and the correct u-boot envs.

To install Debian, you just need to create the rootfs using Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 from the release thread:

https://forum.doozan.com/read.php?2,12096

Quote

Updated 24 Jul 2017:

Basic Debian stretch Kirkwood rootfs for most Kirwood plugs:

- tarball size: 188M
- install size: 488M
- The init system used in this rootfs is sysvinit . To boot with systemd, see note 2 below.
- Installed packages: nano, avahi, ntp, busybox-syslogd (log to RAM), htop, isc-dhcp-client, dialog, bzip2, nfs server/client, iperf, ethtool, sysvinit-core, sysvinit, and sysvinit-utils.
- see LED controls in /etc/rc.local, and /etc/init.d/halt
- see some useful aliases in /root/.profile
- root password: root

Download at Dropbox:

Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2

md5:
bf3d29569943875df348fb5ca03b348c
sha256:
4ed5714fdb123cdb40e973f3d0754e91cd199b75a9874018f2b5dc9cfa8ae8bb


And boot with it, no need to change any u-boot envs.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogoplug 4 uboot update won't boot
June 25, 2018 06:53PM
Bodhi,

Thank you!! I got everything running . . . I tried to use the USB ports but I read this was broken on the Pogo v4 under Debian. Is there a workaround for this?

Thanks again for your help,
Looker
Re: Pogoplug 4 uboot update won't boot
June 25, 2018 07:51PM
Looker Wrote:
-------------------------------------------------------
> Bodhi,
>
> Thank you!! I got everything running . . . I tried
> to use the USB ports but I read this was broken on
> the Pogo v4 under Debian. Is there a workaround
> for this?
>
> Thanks again for your help,
> Looker

No, USB ports definitely not broken. The only restriction is you can not boot with USB 3.0. After booted, they are OK in Debian.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogoplug 4 uboot update won't boot
June 25, 2018 09:36PM
For me they are completely dead , if I place a flash drive in any of them they don't even power them up. When it was in Arch I didn't have a problem , couldn't' boot with them but I could read a flash drive.
Re: Pogoplug 4 uboot update won't boot
June 25, 2018 10:28PM
Looker,

Something strange in your system. The only way is to find out is to observe it booting with serial console.

My Pogo V4's don't have any problem booting with drives attached to USB 3.0 ports. One boots with USB 2.0 on top, and other boot with NFS rootfs. Once in a while, I plugged in a USB 3.0 drive and don't recall any problem.

But it would be great if there is indeed a booting problem and you can report with serial console log! If you can't, let me know and I'll try again to recreate your problem. I do have one with serial console wired up.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
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: