Welcome! Log In Create A New Profile

Advanced

(Resolved) Pogoplug E02 can't boot into Debian rootfs with new uBoot 2017.07

Posted by hachigo 
(Resolved) Pogoplug E02 can't boot into Debian rootfs with new uBoot 2017.07
December 13, 2017 04:28PM
I recently updated my uBoot on my pogoplug E02 to the 2017 version. I saved my current env settings before flashing over uboot.2016.05-tld-1.environment.img, I followed the instructions and changed my ethaddr, machID and arcNumber to pogo E02. I used a new hard drive and extracted the Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 and followed the directions as stated. Plugged in the harddrive to my pogoplug, but it doesn't boot. I have a serial connection but do not understand what it's outputting on the screen. It does report that I have the new 2017 uBoot, but after that it doesn't boot.

Thanks in advance.



Edited 2 time(s). Last edit at 12/13/2017 09:37PM by hachigo.
Re: Pogoplug E02 can't boot into Debian rootfs with new uBoot 2017.07
December 13, 2017 04:59PM
I think I know what bodhi would say. ;) Since you have the serial connection, copy and paste the entire output from the U-Boot banner until it says, "Booting the kernel..." (or whatever the message is). Also, on another boot attempt, press a key to interrupt the boot process and type printenv and post the entire output.

-JT
Re: Pogoplug E02 can't boot into Debian rootfs with new uBoot 2017.07
December 13, 2017 05:48PM
Good call.

This is the printenv output.
arcNumber=3542
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
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-pogo_e02.dtb
ethact=egiga0
ethaddr=00:25:31:04:B2:90
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.0.231
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=dd6
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
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
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.0.220
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_loaded=0
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: 3127/131068 bytes

This is what it looks like with the Debian rootfs harddrive attached.

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:13:18 -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
Hit any key to stop autoboot:  0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            234439600       7cd53fa0-01     83

## 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 ...
** File not found /boot/uEnv.txt **
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 723 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3832036 bytes read in 941 ms (3.9 MiB/s)
loading uInitrd ...
7245696 bytes read in 983 ms (7 MiB/s)
loading DTB /boot/dts/kirkwood-pogo_e02.dtb ...
10444 bytes read in 3631 ms (2 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-12-13  21:39:25 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3831972 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes = 6.9 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 0f426000, end 0fb0ef40 ... OK
   Loading Device Tree to 0f420000, end 0f4258cb ... OK
Using machid 0xdd6 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: 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: 246456K/262144K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 15688K 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 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    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.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007981] Switching to timer-based delay loop, resolution 5ns
[    0.014464] Console: colour dummy device 80x30
[    0.019091] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.029796] pid_max: default: 32768 minimum: 301
[    0.034713] Security Framework initialized
[    0.039079] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.045817] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053886] CPU: Testing write buffer coherency: ok
[    0.059952] Setting up static identity map for 0x100000 - 0x100058
[    0.066493] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.075133] devtmpfs: initialized
[    0.082481] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.092540] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.099197] prandom: seed boundary self test passed
[    0.107928] prandom: 100 self tests passed
[    0.112179] pinctrl core: initialized pinctrl subsystem
[    0.118724] NET: Registered protocol family 16
[    0.123739] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.132344] cpuidle: using governor ladder
[    0.136610] cpuidle: using governor menu
[    0.141105] Feroceon L2: Enabling L2
[    0.144820] Feroceon L2: Cache support initialised.
[    0.150215] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.165244] No ATAGs?
[    0.174310] vgaarb: loaded
[    0.179847] SCSI subsystem initialized
[    0.184160] usbcore: registered new interface driver usbfs
[    0.189875] usbcore: registered new interface driver hub
[    0.195370] usbcore: registered new device driver usb
[    0.201641] clocksource: Switched to clocksource orion_clocksource
[    0.297549] VFS: Disk quotas dquot_6.6.0
[    0.301713] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.319400] NET: Registered protocol family 2
[    0.324667] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.331810] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.338301] TCP: Hash tables configured (established 2048 bind 2048)
[    0.344872] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.350832] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.357404] NET: Registered protocol family 1
[    0.362303] RPC: Registered named UNIX socket transport module.
[    0.368337] RPC: Registered udp transport module.
[    0.373216] RPC: Registered tcp transport module.
[    0.378024] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.384977] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.392561] audit: initializing netlink subsys (disabled)
[    0.398506] Initialise system trusted keyrings
[    0.403140] audit: type=2000 audit(0.386:1): state=initialized audit_enabled=0 res=1
[    0.411056] Key type blacklist registered
[    0.415357] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.422036] zbud: loaded
[    0.425646] NFS: Registering the id_resolver key type
[    0.430822] Key type id_resolver registered
[    0.435207] Key type id_legacy registered
[    0.439329] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.446183] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.452865] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.460218] fuse init (API version 7.26)
[    0.464646] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.471467] orangefs_init: module version upstream loaded
[    0.477011] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.561648] random: fast init done
[    6.353992] Key type asymmetric registered
[    6.358203] Asymmetric key parser 'x509' registered
[    6.363545] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    6.371064] io scheduler noop registered
[    6.375160] io scheduler deadline registered
[    6.379609] io scheduler cfq registered (default)
[    6.385827] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.395178] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.462385] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.470292] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.532380] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.540474] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.548221] console [ttyS0] disabled
[    6.552022] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    6.561145] console [ttyS0] enabled
[    6.561145] console [ttyS0] enabled
[    6.568282] bootconsole [earlycon0] disabled
[    6.568282] bootconsole [earlycon0] disabled
[    6.585557] loop: module loaded
[    6.589863] nand: Could not find valid ONFI parameter page; aborting
[    6.596334] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    6.602753] nand: Hynix NAND 128MiB 3,3V 8-bit
[    6.607220] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    6.614850] Scanning device for bad blocks
[    6.657932] Bad eraseblock 366 at 0x000002dc0000
[    6.732489] 4 ofpart partitions found on MTD device orion_nand
[    6.738351] Creating 4 MTD partitions on "orion_nand":
[    6.743540] 0x000000000000-0x000000100000 : "u-boot"
[    6.749729] 0x000000100000-0x000000600000 : "uImage"
[    6.755950] 0x000000500000-0x000002a00000 : "pogoplug"
[    6.762565] 0x000002500000-0x000009100000 : "root"
[    6.767381] mtd: partition "root" extends beyond the end of device "orion_nand" -- size truncated to 0x5b00000
[    6.780399] libphy: Fixed MDIO Bus: probed
[    6.785408] libphy: orion_mdio_bus: probed
[    6.790313] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.893392] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:31:04:b2:90
[    7.902293] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.908872] ehci-pci: EHCI PCI platform driver
[    7.913427] ehci-orion: EHCI orion driver
[    7.917641] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.923215] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.931074] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    7.961675] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.967970] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    7.974818] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.982097] usb usb1: Product: EHCI Host Controller
[    7.986994] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    7.993746] usb usb1: SerialNumber: f1050000.ehci
[    7.999230] hub 1-0:1.0: USB hub found
[    8.003099] hub 1-0:1.0: 1 port detected
[    8.007727] usbcore: registered new interface driver usb-storage
[    8.014142] mousedev: PS/2 mouse device common for all mice
[    8.361676] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.553452] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    8.560202] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    8.567410] usb 1-1: Product: USB2.0 Hub
[    8.572249] hub 1-1:1.0: USB hub found
[    8.576326] hub 1-1:1.0: 4 ports detected
[    8.901668] usb 1-1.4: new high-speed USB device number 3 using orion-ehci
[    9.051668] rtc-mv f1010300.rtc: internal RTC not ticking
[    9.057259] i2c /dev entries driver
[    9.062296] hidraw: raw HID events driver (C) Jiri Kosina
[    9.068193] drop_monitor: Initializing network drop monitor service
[    9.074906] NET: Registered protocol family 17
[    9.079508] Key type dns_resolver registered
[    9.084083] usb 1-1.4: New USB device found, idVendor=0bc2, idProduct=2321
[    9.091007] usb 1-1.4: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[    9.099021] registered taskstats version 1
[    9.099026] Loading compiled-in X.509 certificates
[    9.099081] zswap: loaded using pool lzo/zbud
[    9.101524] Key type big_key registered
[    9.116850] Key type encrypted registered
[    9.125914] usb 1-1.4: Product: Expansion
[    9.129942] usb 1-1.4: Manufacturer: Seagate
[    9.134297] usb 1-1.4: SerialNumber: 2HC015KJ
[    9.139427] hctosys: unable to open rtc device (rtc0)
[    9.145501] Waiting 10 sec before mounting root device...
[   19.691872] VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
[   19.699219] Please append a correct "root=" boot option; here are the available partitions:
[   19.707675] 1f00            1024 mtdblock0
[   19.707681]  (driver?)
[   19.714292] 1f01            5120 mtdblock1
[   19.714296]  (driver?)
[   19.720874] 1f02           37888 mtdblock2
[   19.720878]  (driver?)
[   19.727493] 1f03           93184 mtdblock3
[   19.727498]  (driver?)
[   19.734094] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   19.742395] CPU: 0 PID: 1 Comm: swapper Not tainted 4.12.1-kirkwood-tld-1 #1
[   19.749470] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   19.755791] [<c010ea54>] (unwind_backtrace) from [<c010ab48>] (show_stack+0x10/0x14)
[   19.763580] [<c010ab48>] (show_stack) from [<c01dba9c>] (panic+0xb0/0x250)
[   19.770499] [<c01dba9c>] (panic) from [<c0c01274>] (mount_block_root+0x204/0x27c)
[   19.778019] [<c0c01274>] (mount_block_root) from [<c0c013d8>] (mount_root+0xec/0x118)
[   19.785892] [<c0c013d8>] (mount_root) from [<c0c01528>] (prepare_namespace+0x124/0x184)
[   19.793932] [<c0c01528>] (prepare_namespace) from [<c0c00e90>] (kernel_init_freeable+0x210/0x260)
[   19.802851] [<c0c00e90>] (kernel_init_freeable) from [<c0833200>] (kernel_init+0x8/0x10c)
[   19.811071] [<c0833200>] (kernel_init) from [<c01070f0>] (ret_from_fork+0x14/0x24)
[   19.818683] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Re: Pogoplug E02 can't boot into Debian rootfs with new uBoot 2017.07
December 13, 2017 08:11PM
hachigo,

You did Step 4 while creating the rootfs:

Quote

4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).

Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts for the exact spelling of your Kirkwood box name).

Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-4.12.1-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.1-kirkwood-tld-1 -d zImage.fdt uImage
sync

If your Linux box does not have mkimage, then install it

apt-get install u-boot-tools

You are booting with the new u-boot, so Step 4 should have been skipped. Mount the USB drive on another Linux box and reverse it. Assuming it is mounted at /media/sdb1.

cd /media/sdb1/boot
cp -a uImage uImage.pogo_e02
cp -a uImage.orig uImage
sync

And now you can bring it back to the Pogo and boot with it.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: (Resolved) Pogoplug E02 can't boot into Debian rootfs with new uBoot 2017.07
December 13, 2017 08:51PM
Tried what you just suggested.

cd /media/sdb1/boot
cp -a uImage uImage.pogo_e02
cp -a uImage.orig uImage
sync

This is what I see now. I am not sure if it is normal. There is no login for a user/root. It just gives me a (initramfs). This is the serial connection output.

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:13:18 -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
Hit any key to stop autoboot:  0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            234439600       7cd53fa0-01     83

## 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 ...
** File not found /boot/uEnv.txt **
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 722 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3821592 bytes read in 952 ms (3.8 MiB/s)
loading uInitrd ...
7245696 bytes read in 987 ms (7 MiB/s)
loading DTB /boot/dts/kirkwood-pogo_e02.dtb ...
10444 bytes read in 3630 ms (2 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-07-20   8:11:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes = 6.9 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 0f426000, end 0fb0ef40 ... OK
   Loading Device Tree to 0f420000, end 0f4258cb ... OK
Using machid 0xdd6 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: CloudEngines Pogoplug E02
[    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,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    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: 239376K/262144K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 22768K 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 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    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.000008] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000044] Switching to timer-based delay loop, resolution 5ns
[    0.000505] Console: colour dummy device 80x30
[    0.000539] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000562] pid_max: default: 32768 minimum: 301
[    0.000759] Security Framework initialized
[    0.000881] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000901] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001767] CPU: Testing write buffer coherency: ok
[    0.002815] Setting up static identity map for 0x100000 - 0x100058
[    0.003077] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.006379] devtmpfs: initialized
[    0.010316] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.010343] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.010746] prandom: seed boundary self test passed
[    0.014503] prandom: 100 self tests passed
[    0.014515] pinctrl core: initialized pinctrl subsystem
[    0.015667] NET: Registered protocol family 16
[    0.016139] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.017734] cpuidle: using governor ladder
[    0.017805] cpuidle: using governor menu
[    0.018232] Feroceon L2: Enabling L2
[    0.018279] Feroceon L2: Cache support initialised.
[    0.018650] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.023146] No ATAGs?
[    0.032219] vgaarb: loaded
[    0.032542] SCSI subsystem initialized
[    0.033021] usbcore: registered new interface driver usbfs
[    0.033097] usbcore: registered new interface driver hub
[    0.033178] usbcore: registered new device driver usb
[    0.034285] clocksource: Switched to clocksource orion_clocksource
[    0.123856] VFS: Disk quotas dquot_6.6.0
[    0.123940] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.134666] NET: Registered protocol family 2
[    0.135421] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.135459] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.135490] TCP: Hash tables configured (established 2048 bind 2048)
[    0.135579] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.135603] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.135783] NET: Registered protocol family 1
[    0.136208] RPC: Registered named UNIX socket transport module.
[    0.136221] RPC: Registered udp transport module.
[    0.136229] RPC: Registered tcp transport module.
[    0.136236] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.136477] Unpacking initramfs...
[    0.797209] Freeing initrd memory: 7076K
[    0.797351] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.798317] audit: initializing netlink subsys (disabled)
[    0.798811] Initialise system trusted keyrings
[    0.798867] Key type blacklist registered
[    0.798963] audit: type=2000 audit(0.794:1): state=initialized audit_enabled=0 res=1
[    0.799057] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.799128] zbud: loaded
[    0.800120] NFS: Registering the id_resolver key type
[    0.800150] Key type id_resolver registered
[    0.800158] Key type id_legacy registered
[    0.800177] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.800186] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.800383] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.800579] fuse init (API version 7.26)
[    0.800950] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.801222] orangefs_init: module version upstream loaded
[    0.801233] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.554291] random: fast init done
[    6.676759] Key type asymmetric registered
[    6.676777] Asymmetric key parser 'x509' registered
[    6.676847] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    6.676858] io scheduler noop registered
[    6.676867] io scheduler deadline registered
[    6.676950] io scheduler cfq registered (default)
[    6.678260] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.680119] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.735023] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.735257] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.795035] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.795465] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.796711] console [ttyS0] disabled
[    6.796782] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    7.397042] console [ttyS0] enabled
[    7.409074] loop: module loaded
[    7.413393] nand: Could not find valid ONFI parameter page; aborting
[    7.419869] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    7.426283] nand: Hynix NAND 128MiB 3,3V 8-bit
[    7.430752] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.438382] Scanning device for bad blocks
[    7.481478] Bad eraseblock 366 at 0x000002dc0000
[    7.556019] 4 cmdlinepart partitions found on MTD device orion_nand
[    7.562316] Creating 4 MTD partitions on "orion_nand":
[    7.567507] 0x000000000000-0x000000100000 : "u-boot"
[    7.573688] 0x000000100000-0x000000500000 : "uImage"
[    7.579892] 0x000000500000-0x000002500000 : "rootfs"
[    7.586280] 0x000002500000-0x000008000000 : "data"
[    7.593988] libphy: Fixed MDIO Bus: probed
[    7.598993] libphy: orion_mdio_bus: probed
[    7.608171] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.716037] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:31:04:b2:90
[    8.724944] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.731524] ehci-pci: EHCI PCI platform driver
[    8.736075] ehci-orion: EHCI orion driver
[    8.740297] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.745872] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.753738] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    8.784320] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.790607] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    8.797460] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.804739] usb usb1: Product: EHCI Host Controller
[    8.809637] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    8.816387] usb usb1: SerialNumber: f1050000.ehci
[    8.821882] hub 1-0:1.0: USB hub found
[    8.825750] hub 1-0:1.0: 1 port detected
[    8.830388] usbcore: registered new interface driver usb-storage
[    8.836794] mousedev: PS/2 mouse device common for all mice
[    9.184320] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.375990] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    9.382739] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    9.389946] usb 1-1: Product: USB2.0 Hub
[    9.394669] hub 1-1:1.0: USB hub found
[    9.398739] hub 1-1:1.0: 4 ports detected
[    9.724311] usb 1-1.4: new high-speed USB device number 3 using orion-ehci
[    9.886613] usb 1-1.4: New USB device found, idVendor=0bc2, idProduct=2321
[    9.893537] usb 1-1.4: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[    9.900919] usb 1-1.4: Product: Expansion
[    9.904967] usb 1-1.4: Manufacturer: Seagate
[    9.909254] usb 1-1.4: SerialNumber: 2HC015KJ
[    9.924315] rtc-mv f1010300.rtc: internal RTC not ticking
[    9.929904] i2c /dev entries driver
[    9.934804] hidraw: raw HID events driver (C) Jiri Kosina
[    9.940609] drop_monitor: Initializing network drop monitor service
[    9.947181] NET: Registered protocol family 17
[    9.951732] Key type dns_resolver registered
[    9.956803] registered taskstats version 1
[    9.960919] Loading compiled-in X.509 certificates
[    9.965820] zswap: loaded using pool lzo/zbud
[    9.980446] Key type big_key registered
[    9.993828] Key type encrypted registered
[    9.999341] hctosys: unable to open rtc device (rtc0)
[   10.007865] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[   10.440779] scsi host0: uas
[   10.449941] usbcore: registered new interface driver uas
[   10.456184] scsi 0:0:0:0: Direct-Access     Seagate  Expansion        0502 PQ: 0 ANSI: 6
[   10.507784] sd 0:0:0:0: [sda] 234441647 512-byte logical blocks: (120 GB/112 GiB)
[   12.293549] sd 0:0:0:0: [sda] Write Protect is off
[   12.299134] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.339264]  sda: sda1
[   12.341676] sda: p1 size 234439600 extends beyond EOD, enabling native capacity
[   12.354106]  sda: sda1
[   12.356556] sda: p1 size 234439600 extends beyond EOD, truncated
[   12.368256] sd 0:0:0:0: [sda] Attached SCSI disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
[   22.805071] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   22.813394] EXT4-fs (sda1): bad geometry: block count 29304950 exceeds size of device (29304949 blocks)
mount: mounting /dev/sda1 on /root failed: Invalid argument
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /dev on /root/dev failed: No such file or directory
done.
mount: mounting /run on /root/run failed: No such file or directory
run-init: current directory on the same filesystem as the root: error 0
Target filesystem doesn't have requested /sbin/init.
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
No init found. Try passing init= bootarg.


BusyBox v1.22.1 (Debian 1:1.22.0-19+b3) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)

I will try to make another Debian rootfs without step 4. I think I did do this before with the same results as above. But I will try again.

==Update Resolved==
For anyone who switches between SATA and USB controllers a lot with 2.5in harddrives, this may help you.
I created the Debian rootfs using the SATA connection on my main computer and then connected it to a USB controller from a seagate enclosure and then connect to pogoplug. When I plug that harddrive I just created back into my main computer with the USB connection it doesn't work but when I use SATA it does.

Anyway, I remade the Debian rootfs with the harddrive connected to the USB seagate enclosure. And it is working now. I have no idea why using either connection would make a difference when just extracting the Debian rootfs.

Thanks for your help.



Edited 4 time(s). Last edit at 12/13/2017 09:31PM by hachigo.
Re: (Resolved) Pogoplug E02 can't boot into Debian rootfs with new uBoot 2017.07
December 14, 2017 01:53AM
hachigo,

That's still not the ideal configurtion. You still have not finalized your set up.

The reason you have trouble booting with muliple drives SATA and USB: the rootfs must be labeled rootfs. Once you have only one partition with label rootfs, then it does not matter what being plugged in, or how many drives/partition there are, the system always boot correctly to that rootfs.

And remember, you need to have only one rootfs exists among all partitions on all drives (USB and.or SATA).

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 12/14/2017 01:55AM by bodhi.
Re: (Resolved) Pogoplug E02 can't boot into Debian rootfs with new uBoot 2017.07
December 14, 2017 01:45PM
Bodhi,

I have finalized the setup with the steps outlined in your guides. New ssh-keygen and everything. Followed the instructions to a T.
All steps were followed exactly all the way to the end using your guides on the uBoot and Debian rootfs harddrive.

I have even reproduced the problem. The only difference that I saw that resulted in a working harddrive Debian rootfs was in the connection I used to make the harddrive, SATA vs USB enclosure.

Here are my steps to make the Debian rootfs. Plugged it in to my main comp running Ubuntu 16.04.3 LTS. All steps done as Root user not as sudo. Then fdisk /dev/hdd and made new partion table (only 1 as stated in the guide). Did mke2fs -L rootfs -j /dev/hdd. Then I extracted your provided Debian rootfs file to the newly labeled and formatted harddrive.

I repeated the procedure a couple of times to make sure. Again only difference was using a SATA or USB enclosure when making the Debian rootfs with the steps just stated above. When a SATA connection is used in the process, I can see the harddrive just fine on my main computer, but the pogoplug cannot and doesn't boot. When I make the Debian rootfs harddrive with the USB enclosure, I can see it fine on my main computer and boots fine on the pogoplug. BUT when I take this harddrive out of its USB enclosure and attach it to the SATA connection my computer it doesn't read/mount the harddrive. Or vice versa, if I made the harddrive with SATA connection then put the harddrive in the USB enclosure my main computer will not read/mount it.

I hope that clears up what I was saying. I don't know why if it would make a difference if I used SATA or USB enclosure. In the past I was able to shuck a harddrive from Seagate enclosures and still read the harddrives fine with SATA connected.
Re: (Resolved) Pogoplug E02 can't boot into Debian rootfs with new uBoot 2017.07
December 14, 2017 09:35PM
hachigo,

I see. I'd think the USB enclosure is the problem. Some controller inside has some weird logic that mess with the partition table.

So if you can, post the enclosure make and model, it would help others to avoid it.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: (Resolved) Pogoplug E02 can't boot into Debian rootfs with new uBoot 2017.07
December 16, 2017 01:23AM
Hi Bodhi,

The USB controller is from a Seagate 1.5 tb USB harddrive. I don't know how to find the make and model of it. No brand on it, really just a small green pcb.

As a side note, I still sometimes get the "EHCI timed out on TD" when cold booting the pogoplug E02 after its been sitting for awhile disconnected from power source. Once it's on, I just power off and then power on and it doesn't show the message. Which is weird.
I also noticed that when connecting more than one USB harddrive (I use it as a NAS), it will sometimes not boot from the Debian rootfs harddrive even though I only have one harddrive with rootfs label. I'm not sure if the harddrives don't have enough time to spin up the harddrives or what. But this is also remedied by powering on and off again the pogoplug E02.

One last question. When I issue the command blkid I get this output (below). Should I be concerned?

root@debian:~# blkid
[ 5572.492710] __nand_correct_data: uncorrectable ECC error
[ 5572.498096] blk_update_request: I/O error, dev mtdblock0, sector 2040
[ 5572.505430] __nand_correct_data: uncorrectable ECC error
[ 5572.510814] blk_update_request: I/O error, dev mtdblock0, sector 2040
[ 5572.517289] Buffer I/O error on dev mtdblock0, logical block 255, async page read
/dev/sda1: LABEL="rootfs" UUID="f94e2a21-2a95-47a0-80e7-81ca6643f92f" TYPE="ext3" PARTUUID="4da487ae-01"
Re: (Resolved) Pogoplug E02 can't boot into Debian rootfs with new uBoot 2017.07
December 16, 2017 08:28AM
hachigo,

> As a side note, I still sometimes get the "EHCI
> timed out on TD" when cold booting the pogoplug
> E02 after its been sitting for awhile disconnected
> from power source. Once it's on, I just power off
> and then power on and it doesn't show the message.
> Which is weird.

Thanks for reporting this. You should not get "EHCI timed out on TD" error with the 2017.07-tld-1 u-boot.

> I also noticed that when connecting more than one
> USB harddrive (I use it as a NAS), it will
> sometimes not boot from the Debian rootfs
> harddrive even though I only have one harddrive
> with rootfs label. I'm not sure if the harddrives
> don't have enough time to spin up the harddrives
> or what. But this is also remedied by powering on
> and off again the pogoplug E02.
>

That's likely a result of the EHCI error.

> One last question. When I issue the command blkid
> I get this output (below). Should I be concerned?
>
>
> root@debian:~# blkid
> [ 5572.492710] __nand_correct_data: uncorrectable
> ECC error
> [ 5572.498096] blk_update_request: I/O error, dev
> mtdblock0, sector 2040
> [ 5572.505430] __nand_correct_data: uncorrectable
> ECC error
> [ 5572.510814] blk_update_request: I/O error, dev
> mtdblock0, sector 2040
> [ 5572.517289] Buffer I/O error on dev mtdblock0,
> logical block 255, async page read
> /dev/sda1: LABEL="rootfs"
> UUID="f94e2a21-2a95-47a0-80e7-81ca6643f92f"
> TYPE="ext3" PARTUUID="4da487ae-01"
>

This is normal. mtdblock module need to be running when you want to access mtd block id.

-bodhi
===========================
Forum Wiki
bodhi's corner
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: