Ok. So I'm stuck on this one. On the latest Kernel 4.0.1-1 and latest Systemd I can't seem to get past boot when I have more than the "rootfs" usb plugged in the pogoplug. That is, if I try connect a second usb drive before booting up...boot never completes and ends at the same line:
$this->bbcode_second_pass_code('', '[ 38.794659] random: nonblocking pool is initialized')
If I remove all other USB drives from the pogoplug, and just leave the single rootfs usb drive...I can boot successfully and ssh into the device. It's only when I try to connect any other usb devices that boot fails---at the same point every time. I've commented out everything in /etc/fstab and its still the same result.
The full output from captured netconsole output is as follows:
$this->bbcode_second_pass_code('', 'U-Boot 2011.12 (Feb 20 2012 - 21:21:59)
Pogoplug E02
arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1
GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709
Hit any key to stop autoboot: 0
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 4 USB Device(s) found
scanning bus for storage devices... 2 Storage Device(s) found
Loading file "/rescueme" from usb device 0:1 (usbda1)
** File not found /rescueme
reading /rescueme.txt
** Unable to read "/rescueme.txt" from usb 0:1 **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000008000000 : "mtd=3"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 129024 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 2048
UBI: attached mtd1 to ubi0
UBI: MTD device name: "mtd=3"
UBI: MTD device size: 91 MiB
UBI: number of good PEBs: 727
UBI: number of bad PEBs: 1
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 0
UBI: available PEBs: 716
UBI: total number of reserved PEBs: 11
UBI: number of PEBs reserved for bad PEB handling: 7
UBI: max/mean erase counter: 1/1
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs'!
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
1 bytes read
Found bootable drive on usb 0:1
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
4073296 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
2581465 bytes read
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-4.0.1-1-ARCH
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4073232 Bytes = 3.9 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: uInitrd-4.0.1-1-ARCH
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 2581401 Bytes = 2.5 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Using machid 0xdd6 from environment
Starting kernel ...
[ 0.000000] Memory: 248236K/262144K available (5751K kernel code, 331K rwdata, 1756K rodata, 264K init, 698K bss, 13908K 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 - 0xff000000 ( 744 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc075d0f0 (7509 kB)
[ 0.000000] .init : 0xc075e000 - 0xc07a0000 ( 264 kB)
[ 0.000000] .data : 0xc07a0000 - 0xc07f2ec4 ( 332 kB)
[ 0.000000] .bss : 0xc07f2ec4 - 0xc08a1994 ( 699 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:114
[ 0.000014] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[ 3.740586] Console: colour dummy device 80x30
[ 3.740613] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[ 3.830484] pid_max: default: 32768 minimum: 301
[ 3.830572] Security Framework initialized
[ 3.830657] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 3.830678] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 3.831372] Initializing cgroup subsys blkio
[ 3.831404] Initializing cgroup subsys memory
[ 3.831467] Initializing cgroup subsys devices
[ 3.831497] Initializing cgroup subsys freezer
[ 3.831518] Initializing cgroup subsys net_cls
[ 3.831537] Initializing cgroup subsys bfqio
[ 3.831555] Initializing cgroup subsys perf_event
[ 3.831576] Initializing cgroup subsys net_prio
[ 3.831667] CPU: Testing write buffer coherency: ok
[ 3.832111] Setting up static identity map for 0x57ac30 - 0x57ac88
[ 3.834012] devtmpfs: initialized
[ 3.836853] pinctrl core: initialized pinctrl subsystem
[ 3.837554] NET: Registered protocol family 16
[ 3.838069] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 3.860490] cpuidle: using governor ladder
[ 3.890489] cpuidle: using governor menu
[ 3.890691] Kirkwood: MV88F6281-A0, TCLK=200000000.
[ 3.890717] Feroceon L2: Enabling L2
[ 3.890757] Feroceon L2: Cache support initialised.
[ 3.891504] initial MPP regs: 01111111 11113322 00001111 00100000 00000000 00000000 00000000
[ 3.891533] final MPP regs: 01111111 11113322 00001111 00000000 00000000 00000000 00000000
[ 3.921978] vgaarb: loaded
[ 3.922295] SCSI subsystem initialized
[ 3.922476] libata version 3.00 loaded.
[ 3.922818] usbcore: registered new interface driver usbfs
[ 3.922895] usbcore: registered new interface driver hub
[ 3.922956] usbcore: registered new device driver usb
[ 3.923119] pps_core: LinuxPPS API ver. 1 registered
[ 3.923128] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 3.923163] PTP clock support registered
[ 3.924243] Switched to clocksource orion_clocksource
[ 3.941629] FS-Cache: Loaded
[ 3.954733] NET: Registered protocol family 2
[ 3.955613] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[ 3.955652] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 3.955683] TCP: Hash tables configured (established 2048 bind 2048)
[ 3.955749] TCP: reno registered
[ 3.955762] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 3.955784] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 3.955973] NET: Registered protocol family 1
[ 3.956028] PCI: CLS 0 bytes, default 32
[ 3.956286] Trying to unpack rootfs image as initramfs...
[ 4.161611] Freeing initrd memory: 2524K (c1100000 - c1377000)
[ 4.163146] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 4.175977] VFS: Disk quotas dquot_6.5.2
[ 4.176251] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 4.178065] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 4.179138] fuse init (API version 7.23)
[ 4.181384] aufs 4.0-20150427
[ 4.183540] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 4.183563] io scheduler noop registered
[ 4.183577] io scheduler deadline registered
[ 4.183854] io scheduler cfq registered
[ 4.184499] io scheduler bfq registered (default)
[ 4.184509] BFQ I/O-scheduler version: v7r7
[ 4.184732] mv_xor mv_xor.0: Marvell shared XOR driver
[ 4.224354] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[ 4.264320] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[ 4.264505] mv_xor mv_xor.1: Marvell shared XOR driver
[ 4.304318] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[ 4.344316] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[ 4.349776] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 4.350857] console [ttyS0] disabled
[ 4.370962] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[ 4.957349] console [ttyS0] enabled
[ 4.974410] brd: module loaded
[ 4.983741] loop: module loaded
[ 4.988064] nand: Could not find valid ONFI parameter page; aborting
[ 4.994545] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[ 5.000924] nand: Hynix NAND 128MiB 3,3V 8-bit
[ 5.005410] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 5.013021] Scanning device for bad blocks
[ 5.021284] Bad eraseblock 54 at 0x0000006c0000
[ 5.037565] Bad eraseblock 209 at 0x000001a20000
[ 5.060219] Bad eraseblock 447 at 0x0000037e0000
[ 5.108559] 4 cmdlinepart partitions found on MTD device orion_nand
[ 5.114868] Creating 4 MTD partitions on "orion_nand":
[ 5.120037] 0x000000000000-0x000000100000 : "u-boot"
[ 5.125513] 0x000000100000-0x000000500000 : "uImage"
[ 5.130932] 0x000000500000-0x000002500000 : "rootfs"
[ 5.136416] 0x000002500000-0x000008000000 : "data"
[ 5.154562] libphy: orion_mdio_bus: probed
[ 5.158801] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[ 6.245298] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:31:04:b1:36
[ 6.254282] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 6.260848] ehci-pci: EHCI PCI platform driver
[ 6.265389] ehci-orion: EHCI orion driver
[ 6.269495] orion-ehci orion-ehci.0: EHCI Host Controller
[ 6.274966] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[ 6.282805] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[ 6.304276] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[ 6.311162] hub 1-0:1.0: USB hub found
[ 6.315017] hub 1-0:1.0: 1 port detected
[ 6.319558] usbcore: registered new interface driver uas
[ 6.325081] usbcore: registered new interface driver usb-storage
[ 6.331170] usbcore: registered new interface driver ums-alauda
[ 6.337214] usbcore: registered new interface driver ums-cypress
[ 6.343297] usbcore: registered new interface driver ums-datafab
[ 6.349408] usbcore: registered new interface driver ums_eneub6250
[ 6.355692] usbcore: registered new interface driver ums-freecom
[ 6.361775] usbcore: registered new interface driver ums-isd200
[ 6.367796] usbcore: registered new interface driver ums-jumpshot
[ 6.373965] usbcore: registered new interface driver ums-karma
[ 6.379900] usbcore: registered new interface driver ums-onetouch
[ 6.386113] usbcore: registered new interface driver ums-realtek
[ 6.392207] usbcore: registered new interface driver ums-sddr09
[ 6.398237] usbcore: registered new interface driver ums-sddr55
[ 6.404234] usbcore: registered new interface driver ums-usbat
[ 6.410559] mousedev: PS/2 mouse device common for all mice
[ 6.634302] usb 1-1: new high-speed USB device number 2 using orion-ehci
[ 6.786803] hub 1-1:1.0: USB hub found
[ 6.790940] hub 1-1:1.0: 4 ports detected
[ 10.630141] console [netcon0] enabled
[ 10.633839] netconsole: network logging started
[ 10.638541] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 10.646711] Freeing unused kernel memory: 264K (c075e000 - c07a0000)
[ 10.702576] random: systemd-tmpfile urandom read with 35 bits of entropy available
[ 38.794659] random: nonblocking pool is initialized
')
Here is my fw_printenv output:
$this->bbcode_second_pass_code('', '┌─[root@pogoplug]─[~]
└──> fw_printenv
ethact=egiga0
bootdelay=3
baudrate=115200
mainlineLinux=yes
console=ttyS0,115200
led_init=green blinking
led_exit=green off
led_error=orange blinking
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtdids=nand0=orion_nand
partition=nand0,2
stdin=serial
stdout=serial
stderr=serial
rescue_installed=0
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
force_rescue=0
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi
usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done
usb_scan_list=1 2 3 4
usb_scan_1=usb=0:1 dev=sda1
usb_scan_2=usb=1:1 dev=sdb1
usb_scan_3=usb=2:1 dev=sdc1
usb_scan_4=usb=3:1 dev=sdd1
usb_device=0:1
usb_root=/dev/sda1
usb_rootdelay=10
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset
ethaddr=00:25:31:04:B1:36
arcNumber=3542
machid=dd6
usb_rootfstype=ext3
serverip=192.168.1.104
ipaddr=192.168.1.114
if_netconsole=ping $serverip
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
preboot=run if_netconsole start_netconsole
usb_init=run usb_scan
usb_custom_params=ignore_loglevel netconsole=6666@192.168.1.114/eth0,6666@192.168.1.104/
')
Again, I can access the system with a successful boot only when the rootfs USB is attached alone. Multiple USB attachements result in the "random: nonblocking pool is initialized" error noted above.
Any ideas?