Welcome! Log In Create A New Profile

Advanced

How to use usbboot? soft-bricked v4 pogoplug

Posted by scales11 
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 27, 2016 10:59PM
Bodhi,

Thanks for the reply. Here is the current situation:

1. I checked the md5sum of the Debian-4.4.0 tar.bz2
2. I have made a new rootfs according to your forum post (I think correctly)
3. I copied "uboot.2016.05-tld-1.environment" to the /boot/ folder on the rootfs (after I modified the dtb_file=/boot/dts/kirkwood-pogoplug_v4.dtb)...I think this may be wrong or irrelevant.
4. The pogoplug does not boot on its own (no lights flash after power is supplied), using a serial connection and watching the device during boot does not provide any feedback...just blank screen
5. If I use kwboot, I can get into uboot and the light starts flashing, but so far I am unable to get debian to boot (again).
6. I think this issue began after I flashed the new uboot per your directions in an earlier post.
7. Here is what I get if I try booting (using kwboot) with the rootfs usb stick plugged in:
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:41:47 -0700)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   kwsdio: 0
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0 
No link on egiga0
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Pogov4> printenv
arcNumber=3960
baudrate=115200
bootargs=root=/dev/nfs nfsroot=: ip=::::::off
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootdelay=3
dtb_file=/boot/dts/kirkwood-pogoplug_v4.dtb
ethact=egiga0
ethaddr=B6:D0:5E:0F:A1:17
machid=f78
stderr=serial
stdin=serial
stdout=serial

Environment size: 400/131068 bytes
Pogov4> usb start
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
Pogov4> boot     
No link on egiga0
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Pogov4>

Any ideas?
Re: How to use usbboot? soft-bricked v4 pogoplug
December 28, 2016 02:43AM
scales11,

Your envs on NAND were all messed up. So kwboot and interrupting serial console, you can then do either 1 or 2 below to set the envs to appropriate values:

1. load the script file as I instructed
ext2load usb 0:1 0x800000 /boot/uboot.2016.05-tld-1.environment.scr
source 0x800000

or if you can't load the script file for whatever reason, then:

2. Enter each env manually at the prompt:

setenv 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'
setenv bootcmd 'run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec'
setenv bootcmd_uenv 'run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi'
setenv bootdelay '10'
setenv bootdev 'usb'
setenv device '0:1'
setenv devices 'usb ide mmc'
setenv disks '0 1 2 3'
setenv ethact 'egiga0'
setenv if_netconsole 'ping $serverip'
setenv ipaddr '192.168.0.231'
setenv led_error 'orange blinking'
setenv led_exit 'green off'
setenv led_init 'green blinking'
setenv dtb_file '/boot/dts/kirkwood-pogoplug_v4.dtb
setenv load_dtb_addr '0x1c00000'
setenv load_initrd_addr '0x1100000'
setenv load_uimage_addr '0x800000'
setenv load_dtb 'echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file'
setenv load_initrd 'echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd'
setenv load_uimage 'echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage'
setenv machid '0x831'
setenv mainlineLinux 'yes'
setenv mtdids 'nand0=orion_nand'
setenv partition 'nand0,2'
setenv preboot_nc 'run if_netconsole start_netconsole'
setenv 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'
setenv serverip '192.168.0.220'
setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params'
setenv start_netconsole 'setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;'
setenv stderr 'serial'
setenv stdin 'serial'
setenv stdout 'serial'
setenv uenv_addr '0x810000'
setenv uenv_import 'echo importing envs ...; env import -t $uenv_addr $filesize'
setenv 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;'
setenv 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;'
setenv 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'
setenv uenv_read 'echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi'
setenv usb_ready_retry '15'
setenv mtdparts 'mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)'

3. and then boot
boot

After you have booted successfully into Debian, then you will need to save these evns in the next boot at u-boot console, or reflash the default envs in Debian. If not sure how, just make sure you can boot into Debian and come back here for that.

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



Edited 1 time(s). Last edit at 12/28/2016 02:48AM by bodhi.
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 28, 2016 07:20AM
Thank you again.

I was able load the script, but I do get the following error...

Pogov4> usb start
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
Pogov4> ext2load usb 0:1 0x800000 /boot/uboot.2016.05-tld-1.environment.scr
3235 bytes read in 269 ms (11.7 KiB/s)
Pogov4> source 0x800000
## Executing script at 00800000
Bad data crc
Pogov4> 
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 28, 2016 07:25AM
Here is a little more info, I will re-read over everything and do some searching to look for answers in the mean time.

Pogov4> usb start
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
Pogov4> ext2load usb 0:1 0x800000 /boot/uboot.2016.05-tld-1.environment.scr
3235 bytes read in 269 ms (11.7 KiB/s)
Pogov4> source 0x800000
## Executing script at 00800000
Bad data crc
Pogov4> boot
No link on egiga0
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   uboot.2016.05-tld-1.environment.
   Created:      2016-08-07  22:21:47 UTC
   Image Type:   ARM Linux Script (uncompressed)
   Data Size:    3168 Bytes = 3.1 KiB
   Load Address: 00000000
   Entry Point:  00000000
   Contents:
      Image 0: 3160 Bytes = 3.1 KiB
   Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
Pogov4> printenv
arcNumber=3960
baudrate=115200
bootargs=root=/dev/nfs nfsroot=: ip=::::::off
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootdelay=3
dtb_file=/boot/dts/kirkwood-pogoplug_v4.dtb
ethact=egiga0
ethaddr=B6:D0:5E:0F:A1:17
fileaddr=800000
filesize=ca3
machid=f78
stderr=serial
stdin=serial
stdout=serial

Environment size: 433/131068 bytes
Pogov4> 
Re: How to use usbboot? soft-bricked v4 pogoplug
December 28, 2016 03:30PM
scales11,

Do option 2 above: copy/paste each of these commands at u-boot console (no need to retype them).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 29, 2016 08:13AM
Bodhi,

OK that worked, thank you!

1. Now I am connected over the serial line and have a shell for the pogoplug (currently booted off the debian rootfs). I am not sure how to save the default envs, but am looking.

2. If I open the script that you linked to before (uboot.2016.05-tld-1.environment.scr) the first several lines look like jibberish...is that normal?

'^E^YV^A ^ MW  {^@^@^L`^@^@^@^@^@^@^@^@|  ^E^E^B^F^@uboot.2016.05-tld-1.environ$
setenv bootcmd_exec 'run load_uimage; if run load_initrd; then if run load_dtb;$
setenv bootcmd 'run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_$
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 29, 2016 11:36AM
Bodhi,

3. since my nand is messed up (I think it is?)

Should I try re-flashing the nand as described here:
http://forum.doozan.com/read.php?3,12381

or restore the nand as described here
http://forum.doozan.com/read.php?3,29362,29390#msg-29390

4. Will either of those save the envs?
Re: How to use usbboot? soft-bricked v4 pogoplug
December 29, 2016 04:04PM
scales11,

> 3. since my nand is messed up (I think it is?)
>
> Should I try re-flashing the nand as described
> here:
> http://forum.doozan.com/read.php?3,12381

Yes, in Debian, follow the instruction and flash u-boot and the default env images.

Keep the log of what you do during the installation, and when you see any error or something unexpected, post the log before proceed to next step.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 30, 2016 08:25AM
Quote
bodhi

> 3. since my nand is messed up (I think it is?)
>
> Should I try re-flashing the nand as described
> here:
> http://forum.doozan.com/read.php?3,12381

Yes, in Debian, follow the instruction and flash u-boot and the default env images.

Keep the log of what you do during the installation, and when you see any error or something unexpected, post the log before proceed to next step.

-bodhi

Whooho! After reading and patiently trying your other suggestions/instructions, I now have a working, updated/hacked pogoplug!

I re-flashed the nand, and then the uboot (including the default envs) as instructed in the above linked posts.

I have a serial connection to the device and am ready to try the archlinux booting script.

I will create my archlinux sd card and return with the results
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 30, 2016 08:43AM
One question:

In order for things to work, I had to manually copy and paste all of the envs in.

1. Why did the .scr fail to work? It did seem to load correctly the last time I tried, but when I tried to boot, it did not.

2. Is there a way to make a new .scr with my current settings? For future/backup use?
I did see this line in the guide:
Save envs (stock OS might not have fw_printenv, so try blparam):
......
fw_printenv > current_envs.txt

but that makes a txt file and I do not know if there is anything special about the scr
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 31, 2016 08:01AM
Ok I tried booting the arch rootfs according to your suggestion back on the first page. It fails, here is what I see:


no USB devices available

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            5859328         e7380d5a-01     83
loading envs from mmc 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
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 mmc

MMC rescan: current device # 0 initialized OK
device mmc 0:1
1 bytes read in 433 ms (0 Bytes/s)
Found bootable drive on mmc 0
loading uImage ...
4603624 bytes read in 1158 ms (3.8 MiB/s)
loading uInitrd ...
** File not found /boot/uInitrd **
loading DTB file ...
** File not found /boot/dts/kirkwood-pogoplug_v4.dtb **
** File not found /boot/dtbs/kirkwood-pogoplug_v4.dtb **
*** DTB file not found
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.4.34-1-ARCH
   Created:      2016-11-22   9:02:43 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4603560 Bytes = 4.4 MiB
   Load Address: 00008000
   Entry Point:  00008000                                                                                                                                   
   Pogov4>   
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
December 31, 2016 08:17AM
I just realized that my paste got cut off. Here are the full outputs:

1. The default output if I do not change anything and just let it try to boot off of the archlinux sd card:

U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:41:47 -0700)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   kwsdio: 0
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... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

MMC rescan: current device # 0 initialized OK

Reset IDE: ide_preinit failed

no USB devices available

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

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	5859328   	e7380d5a-01	83
loading envs from mmc 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
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 mmc

MMC rescan: current device # 0 initialized OK
device mmc 0:1
1 bytes read in 432 ms (0 Bytes/s)
Found bootable drive on mmc 0
loading uImage ...
4603624 bytes read in 1159 ms (3.8 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.34-1-ARCH
   Created:      2016-11-22   9:02:43 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4603560 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.34-1-ARCH (builduser@leming) (gcc version 6.2.1 20160830 (GCC) ) #1 PREEMPT Tue Nov 22 02:02:24 MST 2016
[    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),4M(uImage),32M(rootfs),-(data)
[    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: 119696K/131072K available (6601K kernel code, 547K rwdata, 1876K rodata, 296K init, 725K bss, 11376K 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 - 0xc084f9dc   (8479 kB)
[    0.000000]       .init : 0xc0850000 - 0xc089a000   ( 296 kB)
[    0.000000]       .data : 0xc089a000 - 0xc0922e0c   ( 548 kB)
[    0.000000]        .bss : 0xc0922e0c - 0xc09d83d8   ( 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.000019] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    7.634888] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    7.635169] Console: colour dummy device 80x30
[    7.635211] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
[    7.724994] pid_max: default: 32768 minimum: 301
[    7.725141] Security Framework initialized
[    7.725252] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    7.725279] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    7.726403] Initializing cgroup subsys io
[    7.726454] Initializing cgroup subsys memory
[    7.726534] Initializing cgroup subsys devices
[    7.726573] Initializing cgroup subsys freezer
[    7.726605] Initializing cgroup subsys net_cls
[    7.726633] Initializing cgroup subsys perf_event
[    7.726665] Initializing cgroup subsys net_prio
[    7.726789] CPU: Testing write buffer coherency: ok
[    7.727471] Setting up static identity map for 0x81e0 - 0x8238
[    7.730407] devtmpfs: initialized
[    7.733924] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    7.734650] pinctrl core: initialized pinctrl subsystem
[    7.735888] NET: Registered protocol family 16
[    7.736641] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    7.765023] cpuidle: using governor ladder
[    7.795019] cpuidle: using governor menu
[    7.795251] Kirkwood: MV88F6281-A1, TCLK=166666667.
[    7.795287] Feroceon L2: Enabling L2
[    7.795340] Feroceon L2: Cache support initialised.
[    7.798703] Kirkwood PCIe port 0: link up
[    7.798719] PCI: bus0 uses PCIe port 0
[    7.799059] PCI host bridge to bus 0000:00
[    7.799086] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    7.799103] pci_bus 0000:00: root bus resource [io  0x1000-0xffff]
[    7.799118] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    7.800256] PCI: bus0: Fast back to back transfers disabled
[    7.800326] pci 0000:00:01.0: BAR 0: assigned [mem 0xe0000000-0xe000ffff 64bit]
[    7.800359] pci 0000:00:01.0: BAR 2: assigned [mem 0xe0010000-0xe0010fff 64bit]
[    7.800389] pci 0000:00:01.0: BAR 4: assigned [mem 0xe0011000-0xe0011fff 64bit]
[    7.837189] vgaarb: loaded
[    7.837652] SCSI subsystem initialized
[    7.838387] usbcore: registered new interface driver usbfs
[    7.838512] usbcore: registered new interface driver hub
[    7.838601] usbcore: registered new device driver usb
[    7.838844] pps_core: LinuxPPS API ver. 1 registered
[    7.838857] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.838906] PTP clock support registered
[    7.840488] clocksource: Switched to clocksource orion_clocksource
[    7.897656] FS-Cache: Loaded
[    7.916601] NET: Registered protocol family 2
[    7.917765] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    7.917803] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    7.917832] TCP: Hash tables configured (established 1024 bind 1024)
[    7.917940] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    7.917975] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    7.918247] NET: Registered protocol family 1
[    7.918717] RPC: Registered named UNIX socket transport module.
[    7.918735] RPC: Registered udp transport module.
[    7.918745] RPC: Registered tcp transport module.
[    7.918754] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    7.918825] pci 0000:00:01.0: enabling device (0140 -> 0142)
[    7.921898] futex hash table entries: 256 (order: -1, 3072 bytes)
[    7.940978] VFS: Disk quotas dquot_6.6.0
[    7.941387] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    7.944419] FS-Cache: Netfs 'nfs' registered for caching
[    7.946090] NFS: Registering the id_resolver key type
[    7.946169] Key type id_resolver registered
[    7.946181] Key type id_legacy registered
[    7.946302] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    7.948225] fuse init (API version 7.23)
[    7.951492] aufs 4.4-20160912
[    7.959070] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    7.959105] io scheduler noop registered
[    7.959127] io scheduler deadline registered
[    7.959523] io scheduler cfq registered
[    7.959919] io scheduler bfq registered (default)
[    7.959932] BFQ I/O-scheduler: v7r11
[    7.960238] mv_xor mv_xor.0: Marvell shared XOR driver
[    8.002441] mv_xor mv_xor.0: Marvell XOR (Registers Mode): ( xor cpy )
[    8.002788] mv_xor mv_xor.1: Marvell shared XOR driver
[    8.042332] mv_xor mv_xor.1: Marvell XOR (Registers Mode): ( xor cpy )
[    8.050628] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    8.052147] console [ttyS0] disabled
[    8.072232] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 10416666) is a 16550A
[    8.687927] console [ttyS0] enabled
[    8.714763] brd: module loaded
[    8.729172] loop: module loaded
[    8.732944] sata_mv sata_mv.0: cannot get optional clkdev
[    8.738410] sata_mv sata_mv.0: slots 32 ports 1
[    8.745484] scsi host0: sata_mv
[    8.749163] ata1: SATA max UDMA/133 irq 21
[    8.754336] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    8.760866] nand: Hynix H27U1G8F2BTR-BC
[    8.764694] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    8.772276] Scanning device for bad blocks
[    8.860238] 4 cmdlinepart partitions found on MTD device orion_nand
[    8.866499] Creating 4 MTD partitions on "orion_nand":
[    8.871647] 0x000000000000-0x000000100000 : "u-boot"
[    8.877332] 0x000000100000-0x000000500000 : "uImage"
[    8.882987] 0x000000500000-0x000002500000 : "rootfs"
[    8.888645] 0x000002500000-0x000008000000 : "data"
[    8.903973] libphy: orion_mdio_bus: probed
[    8.908216] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    9.110527] ata1: SATA link down (SStatus 0 SControl F300)
[    9.994918] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address b6:d0:5e:0f:a1:17
[   10.003844] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   10.010353] ehci-pci: EHCI PCI platform driver
[   10.014917] ehci-orion: EHCI orion driver
[   10.019031] orion-ehci orion-ehci.0: EHCI Host Controller
[   10.024484] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   10.032253] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   10.050537] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   10.057909] hub 1-0:1.0: USB hub found
[   10.061770] hub 1-0:1.0: 1 port detected
[   10.066680] xhci_hcd 0000:00:01.0: xHCI Host Controller
[   10.072001] xhci_hcd 0000:00:01.0: new USB bus registered, assigned bus number 2
[   10.080799] xhci_hcd 0000:00:01.0: hcc params 0x200073a1 hci version 0x100 quirks 0x00080010
[   10.090601] hub 2-0:1.0: USB hub found
[   10.094391] hub 2-0:1.0: 2 ports detected
[   10.099254] xhci_hcd 0000:00:01.0: xHCI Host Controller
[   10.104549] xhci_hcd 0000:00:01.0: new USB bus registered, assigned bus number 3
[   10.112075] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[   10.121393] hub 3-0:1.0: USB hub found
[   10.125182] hub 3-0:1.0: 2 ports detected
[   10.130288] usbcore: registered new interface driver uas
[   10.135906] usbcore: registered new interface driver usb-storage
[   10.142039] usbcore: registered new interface driver ums-alauda
[   10.148015] usbcore: registered new interface driver ums-cypress
[   10.154132] usbcore: registered new interface driver ums-datafab
[   10.160197] usbcore: registered new interface driver ums_eneub6250
[   10.167241] usbcore: registered new interface driver ums-freecom
[   10.173341] usbcore: registered new interface driver ums-isd200
[   10.179318] usbcore: registered new interface driver ums-jumpshot
[   10.185490] usbcore: registered new interface driver ums-karma
[   10.191579] usbcore: registered new interface driver ums-onetouch
[   10.197775] usbcore: registered new interface driver ums-realtek
[   10.203873] usbcore: registered new interface driver ums-sddr09
[   10.209852] usbcore: registered new interface driver ums-sddr55
[   10.215852] usbcore: registered new interface driver ums-usbat
[   10.222582] mousedev: PS/2 mouse device common for all mice
[   11.230528] rtc-mv rtc-mv: internal RTC not ticking
[   11.235595] i2c /dev entries driver
[   11.239948] sdhci: Secure Digital Host Controller Interface driver
[   11.246141] sdhci: Copyright(c) Pierre Ossman
[   11.290846] sdhci-pltfm: SDHCI platform and OF driver helper
[   11.300413] ledtrig-cpu: registered to indicate activity on CPUs
[   11.306685] usbcore: registered new interface driver r8712u
[   11.312696] gre: GRE over IPv4 demultiplexor driver
[   11.317649] NET: Registered protocol family 17
[   11.322332] Key type dns_resolver registered
[   11.331256] registered taskstats version 1
[   11.338045] Key type encrypted registered
[   11.343057] console [netcon0] enabled
[   11.346711] netconsole: network logging started
[   11.352038] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[   11.359229] hctosys: unable to open rtc device (rtc0)
[   11.366249] Waiting 10 sec before mounting root device...
[   11.374535] mmc0: host does not support reading read-only switch, assuming write-enable
[   11.386540] mmc0: new high speed SDHC card at address 0007
[   11.392892] mmcblk0: mmc0:0007 SD16G 14.5 GiB 
[   11.399071]  mmcblk0: p1
[   21.380862] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
[   21.388835] Please append a correct "root=" boot option; here are the available partitions:
[   21.397275] 0100            8192 ram0  (driver?)
[   21.401951] 0101            8192 ram1  (driver?)
[   21.406561] 0102            8192 ram2  (driver?)
[   21.411221] 0103            8192 ram3  (driver?)
[   21.415832] 0104            8192 ram4  (driver?)
[   21.420437] 0105            8192 ram5  (driver?)
[   21.425096] 0106            8192 ram6  (driver?)
[   21.429707] 0107            8192 ram7  (driver?)
[   21.434339] 0108            8192 ram8  (driver?)
[   21.438943] 0109            8192 ram9  (driver?)
[   21.443575] 010a            8192 ram10  (driver?)
[   21.448266] 010b            8192 ram11  (driver?)
[   21.452984] 010c            8192 ram12  (driver?)
[   21.457675] 010d            8192 ram13  (driver?)
[   21.462385] 010e            8192 ram14  (driver?)
[   21.467083] 010f            8192 ram15  (driver?)
[   21.471809] b300        15159296 mmcblk0  driver: mmcblk
[   21.477107]   b301         2929664 mmcblk0p1 e7380d5a-01
[   21.482419] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   21.490654] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.34-1-ARCH #1
[   21.496981] Hardware name: Pogoplug V4
[   21.500752] [<c0010524>] (unwind_backtrace) from [<c000d9d0>] (show_stack+0x10/0x14)
[   21.508468] [<c000d9d0>] (show_stack) from [<c00cd8b4>] (panic+0x88/0x208)
[   21.515319] [<c00cd8b4>] (panic) from [<c08512c8>] (mount_block_root+0x1a0/0x260)
[   21.522772] [<c08512c8>] (mount_block_root) from [<c0851578>] (mount_root+0xf4/0x120)
[   21.530573] [<c0851578>] (mount_root) from [<c0851700>] (prepare_namespace+0x15c/0x1bc)
[   21.538561] [<c0851700>] (prepare_namespace) from [<c0850eb4>] (kernel_init_freeable+0x1fc/0x254)
[   21.547408] [<c0850eb4>] (kernel_init_freeable) from [<c0647b0c>] (kernel_init+0x8/0xe8)
[   21.555469] [<c0647b0c>] (kernel_init) from [<c000a4d0>] (ret_from_fork+0x14/0x24)
[   21.563011] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Here is what I see if I use your commands:

U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:41:47 -0700)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   kwsdio: 0
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0 
Pogov4> setenv dtb_file_alt '/boot/dtbs/kirkwood-pogoplug_v4.dtb'
Pogov4> setenv load_dtb 'echo loading DTB file ... ; if load $bootdev $device $load_dtb_addr $dtb_file; then echo $dtb_file; else if load $bootdev $device $load_dtb_addr $dtb_file_alt; then echo $dtb_file_alt; else echo *** DTB file not found; fi; fi'
Pogov4> boot
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

MMC rescan: current device # 0 initialized OK

Reset IDE: ide_preinit failed

no USB devices available

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

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	5859328   	e7380d5a-01	83
loading envs from mmc 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
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 mmc

MMC rescan: current device # 0 initialized OK
device mmc 0:1
1 bytes read in 433 ms (0 Bytes/s)
Found bootable drive on mmc 0
loading uImage ...
4603624 bytes read in 1158 ms (3.8 MiB/s)
loading uInitrd ...
** File not found /boot/uInitrd **
loading DTB file ...
** File not found /boot/dts/kirkwood-pogoplug_v4.dtb **
** File not found /boot/dtbs/kirkwood-pogoplug_v4.dtb **
*** DTB file not found
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.4.34-1-ARCH
   Created:      2016-11-22   9:02:43 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4603560 Bytes = 4.4 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
Pogov4> 
Re: How to use usbboot? soft-bricked v4 pogoplug
December 31, 2016 04:03PM
scales1,

It looks like Arch use a different version of the pogo v4 DTS now. They probably use whatever from mainline.
** File not found /boot/dtbs/kirkwood-pogoplug_v4.dtb **

To verify, mount this rootfs on another Linux box and find it. If the SD card is mounted as mmcblk0p1 then:

ls -l /media/mmcblk0p1/boot/dtbs/kirkwood-pogo*.dtb

See if the file name is different (e.g. kirkwood-pogoplug-series-4.dtb). If it is then just copy it

cp -a  /media/mmcblk0p1/boot/dtbs/kirkwood-pogoplug-series-4.dtb /media/mmcblk0p1/boot/dtbs/kirkwood-pogoplug_v4.dtb
sync
That's it. It should boot properly now.

-------

Note that if you want to use my version (I think it is better), then copy the kirkwood-pogoplug_v4.dtb from Debian rootfs /boot/dts/ over to Arch /boot/dtbs/.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
January 01, 2017 07:53AM
Strange, but there is no DTB file. Below I have ssh'ed into another pogoplug running this rootfs SD card.

login as: alarm
alarm@192.168.1.3's password:
Last login: Sat Dec 31 18:04:56 2016 from 192.168.1.2
[alarm@alarm ~]$ ls /boot/
initramfs-linux.img  uImage
[alarm@alarm ~]$

I know this SD card works because I have a second identical Pogoplug that boots it...I just cannot recall how I set it up to boot from the SD card in the first place...
Re: How to use usbboot? soft-bricked v4 pogoplug
January 01, 2017 03:02PM
scales11 Wrote:
-------------------------------------------------------
> Strange, but there is no DTB file. Below I have
> ssh'ed into another pogoplug running this rootfs
> SD card.
>
>
> login as: alarm
> alarm@192.168.1.3's password:
> Last login: Sat Dec 31 18:04:56 2016 from
> 192.168.1.2
> [alarm@alarm ~]$ ls /boot/
> initramfs-linux.img  uImage
> [alarm@alarm ~]$
>
>
> I know this SD card works because I have a second
> identical Pogoplug that boots it...I just cannot
> recall how I set it up to boot from the SD card in
> the first place...

Then Arch uImage has the DTB already appended to it. Even if it was, it should boot with no DTB file present in the /boot/dts, /boot/dtbs. So I think the script needs more.

------

Boot, and interrupt serial console, run the same procedure

U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:41:47 -0700)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   kwsdio: 0
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0 
Pogov4> setenv dtb_file_alt '/boot/dtbs/kirkwood-pogoplug_v4.dtb'
Pogov4> setenv load_dtb 'echo loading DTB file ... ; if load $bootdev $device $load_dtb_addr $dtb_file; then echo $dtb_file; else if load $bootdev $device $load_dtb_addr $dtb_file_alt; then echo $dtb_file_alt; else echo *** DTB file not found; fi; fi'
Pogov4> boot
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

MMC rescan: current device # 0 initialized OK

Reset IDE: ide_preinit failed

no USB devices available

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

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	5859328   	e7380d5a-01	83
loading envs from mmc 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
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 mmc

MMC rescan: current device # 0 initialized OK
device mmc 0:1
1 bytes read in 433 ms (0 Bytes/s)
Found bootable drive on mmc 0
loading uImage ...
4603624 bytes read in 1158 ms (3.8 MiB/s)
loading uInitrd ...
** File not found /boot/uInitrd **
loading DTB file ...
** File not found /boot/dts/kirkwood-pogoplug_v4.dtb **
** File not found /boot/dtbs/kirkwood-pogoplug_v4.dtb **
*** DTB file not found
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.4.34-1-ARCH
   Created:      2016-11-22   9:02:43 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4603560 Bytes = 4.4 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
Pogov4>

At this point, at the prompt.

Please get the listing of the envs, and post here
printenv

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
January 14, 2017 05:01PM
Well its been a while and I may have missed something, but I just put a different SD card into the pogoplug (one that I have been booting archlinux off for a while on my other pogoplugs) and here is what I got:

U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:41:47 -0700)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   kwsdio: 0
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... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

MMC rescan: current device # 0 initialized OK

Reset IDE: ide_preinit failed

no USB devices available

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

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	5859328   	e7380d5a-01	83
loading envs from mmc 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
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 mmc

MMC rescan: current device # 0 initialized OK
device mmc 0:1
1 bytes read in 428 ms (0 Bytes/s)
Found bootable drive on mmc 0
loading uImage ...
4603376 bytes read in 1058 ms (4.1 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.39-1-ARCH
   Created:      2016-12-21  14:43:30 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4603312 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.39-1-ARCH (builduser@leming) (gcc version 6.2.1 20160830 (GCC) ) #1 PREEMPT Wed Dec 21 07:43:11 MST 2016
[    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),4M(uImage),32M(rootfs),-(data)
[    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: 119696K/131072K available (6602K kernel code, 547K rwdata, 1876K rodata, 296K init, 725K bss, 11376K 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 - 0xc084f9f4   (8479 kB)
[    0.000000]       .init : 0xc0850000 - 0xc089a000   ( 296 kB)
[    0.000000]       .data : 0xc089a000 - 0xc0922e4c   ( 548 kB)
[    0.000000]        .bss : 0xc0922e4c - 0xc09d8418   ( 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.000019] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    7.563122] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    7.563403] Console: colour dummy device 80x30
[    7.563445] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
[    7.653232] pid_max: default: 32768 minimum: 301
[    7.653371] Security Framework initialized
[    7.653483] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    7.653512] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    7.654634] Initializing cgroup subsys io
[    7.654684] Initializing cgroup subsys memory
[    7.654773] Initializing cgroup subsys devices
[    7.654812] Initializing cgroup subsys freezer
[    7.654846] Initializing cgroup subsys net_cls
[    7.654875] Initializing cgroup subsys perf_event
[    7.654907] Initializing cgroup subsys net_prio
[    7.655032] CPU: Testing write buffer coherency: ok
[    7.655720] Setting up static identity map for 0x81e0 - 0x8238
[    7.658668] devtmpfs: initialized
[    7.662384] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    7.663110] pinctrl core: initialized pinctrl subsystem
[    7.664377] NET: Registered protocol family 16
[    7.665122] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    7.693257] cpuidle: using governor ladder
[    7.723253] cpuidle: using governor menu
[    7.723486] Kirkwood: MV88F6281-A1, TCLK=166666667.
[    7.723525] Feroceon L2: Enabling L2
[    7.723576] Feroceon L2: Cache support initialised.
[    7.726922] Kirkwood PCIe port 0: link up
[    7.726938] PCI: bus0 uses PCIe port 0
[    7.727278] PCI host bridge to bus 0000:00
[    7.727305] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    7.727322] pci_bus 0000:00: root bus resource [io  0x1000-0xffff]
[    7.727338] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    7.728482] PCI: bus0: Fast back to back transfers disabled
[    7.728553] pci 0000:00:01.0: BAR 0: assigned [mem 0xe0000000-0xe000ffff 64bit]
[    7.728586] pci 0000:00:01.0: BAR 2: assigned [mem 0xe0010000-0xe0010fff 64bit]
[    7.728616] pci 0000:00:01.0: BAR 4: assigned [mem 0xe0011000-0xe0011fff 64bit]
[    7.765434] vgaarb: loaded
[    7.765898] SCSI subsystem initialized
[    7.766635] usbcore: registered new interface driver usbfs
[    7.766761] usbcore: registered new interface driver hub
[    7.766849] usbcore: registered new device driver usb
[    7.767090] pps_core: LinuxPPS API ver. 1 registered
[    7.767104] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.767152] PTP clock support registered
[    7.768734] clocksource: Switched to clocksource orion_clocksource
[    7.825971] FS-Cache: Loaded
[    7.844947] NET: Registered protocol family 2
[    7.846113] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    7.846153] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    7.846183] TCP: Hash tables configured (established 1024 bind 1024)
[    7.846290] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    7.846326] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    7.846601] NET: Registered protocol family 1
[    7.847069] RPC: Registered named UNIX socket transport module.
[    7.847086] RPC: Registered udp transport module.
[    7.847096] RPC: Registered tcp transport module.
[    7.847106] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    7.847178] pci 0000:00:01.0: enabling device (0140 -> 0142)
[    7.850271] futex hash table entries: 256 (order: -1, 3072 bytes)
[    7.869324] VFS: Disk quotas dquot_6.6.0
[    7.869725] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    7.872739] FS-Cache: Netfs 'nfs' registered for caching
[    7.874407] NFS: Registering the id_resolver key type
[    7.874478] Key type id_resolver registered
[    7.874490] Key type id_legacy registered
[    7.874613] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    7.876534] fuse init (API version 7.23)
[    7.879801] aufs 4.4-20161219
[    7.887352] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    7.887389] io scheduler noop registered
[    7.887411] io scheduler deadline registered
[    7.887809] io scheduler cfq registered
[    7.888207] io scheduler bfq registered (default)
[    7.888219] BFQ I/O-scheduler: v7r11
[    7.888527] mv_xor mv_xor.0: Marvell shared XOR driver
[    7.930691] mv_xor mv_xor.0: Marvell XOR (Registers Mode): ( xor cpy )
[    7.931035] mv_xor mv_xor.1: Marvell shared XOR driver
[    7.970582] mv_xor mv_xor.1: Marvell XOR (Registers Mode): ( xor cpy )
[    7.978894] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    7.980403] console [ttyS0] disabled
[    8.000488] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 10416666) is a 16550A
[    8.616188] console [ttyS0] enabled
[    8.643124] brd: module loaded
[    8.657521] loop: module loaded
[    8.661302] sata_mv sata_mv.0: cannot get optional clkdev
[    8.666765] sata_mv sata_mv.0: slots 32 ports 1
[    8.673825] scsi host0: sata_mv
[    8.677502] ata1: SATA max UDMA/133 irq 21
[    8.682668] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    8.689193] nand: Hynix H27U1G8F2BTR-BC
[    8.693023] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    8.700606] Scanning device for bad blocks
[    8.788527] 4 cmdlinepart partitions found on MTD device orion_nand
[    8.794793] Creating 4 MTD partitions on "orion_nand":
[    8.799942] 0x000000000000-0x000000100000 : "u-boot"
[    8.805626] 0x000000100000-0x000000500000 : "uImage"
[    8.811282] 0x000000500000-0x000002500000 : "rootfs"
[    8.816939] 0x000002500000-0x000008000000 : "data"
[    8.832255] libphy: orion_mdio_bus: probed
[    8.836493] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    9.038773] ata1: SATA link down (SStatus 0 SControl F300)
[    9.923200] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address b6:d0:5e:0f:a1:17
[    9.932134] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    9.938639] ehci-pci: EHCI PCI platform driver
[    9.943204] ehci-orion: EHCI orion driver
[    9.947316] orion-ehci orion-ehci.0: EHCI Host Controller
[    9.952772] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[    9.960538] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[    9.978784] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[    9.986157] hub 1-0:1.0: USB hub found
[    9.990022] hub 1-0:1.0: 1 port detected
[    9.994928] xhci_hcd 0000:00:01.0: xHCI Host Controller
[   10.000246] xhci_hcd 0000:00:01.0: new USB bus registered, assigned bus number 2
[   10.009043] xhci_hcd 0000:00:01.0: hcc params 0x200073a1 hci version 0x100 quirks 0x00080010
[   10.018845] hub 2-0:1.0: USB hub found
[   10.022636] hub 2-0:1.0: 2 ports detected
[   10.027496] xhci_hcd 0000:00:01.0: xHCI Host Controller
[   10.032793] xhci_hcd 0000:00:01.0: new USB bus registered, assigned bus number 3
[   10.040321] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[   10.049636] hub 3-0:1.0: USB hub found
[   10.053425] hub 3-0:1.0: 2 ports detected
[   10.058533] usbcore: registered new interface driver uas
[   10.064156] usbcore: registered new interface driver usb-storage
[   10.070290] usbcore: registered new interface driver ums-alauda
[   10.076268] usbcore: registered new interface driver ums-cypress
[   10.082384] usbcore: registered new interface driver ums-datafab
[   10.088449] usbcore: registered new interface driver ums_eneub6250
[   10.095522] usbcore: registered new interface driver ums-freecom
[   10.101618] usbcore: registered new interface driver ums-isd200
[   10.107595] usbcore: registered new interface driver ums-jumpshot
[   10.113767] usbcore: registered new interface driver ums-karma
[   10.119856] usbcore: registered new interface driver ums-onetouch
[   10.126055] usbcore: registered new interface driver ums-realtek
[   10.132154] usbcore: registered new interface driver ums-sddr09
[   10.138131] usbcore: registered new interface driver ums-sddr55
[   10.144139] usbcore: registered new interface driver ums-usbat
[   10.150869] mousedev: PS/2 mouse device common for all mice
[   11.158776] rtc-mv rtc-mv: internal RTC not ticking
[   11.163838] i2c /dev entries driver
[   11.168187] sdhci: Secure Digital Host Controller Interface driver
[   11.174376] sdhci: Copyright(c) Pierre Ossman
[   11.219093] sdhci-pltfm: SDHCI platform and OF driver helper
[   11.228655] ledtrig-cpu: registered to indicate activity on CPUs
[   11.234916] usbcore: registered new interface driver r8712u
[   11.240922] gre: GRE over IPv4 demultiplexor driver
[   11.245876] NET: Registered protocol family 17
[   11.250563] Key type dns_resolver registered
[   11.259475] registered taskstats version 1
[   11.266214] Key type encrypted registered
[   11.271235] console [netcon0] enabled
[   11.274884] netconsole: network logging started
[   11.280214] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[   11.287397] hctosys: unable to open rtc device (rtc0)
[   11.294403] Waiting 10 sec before mounting root device...
[   11.302578] mmc0: host does not support reading read-only switch, assuming write-enable
[   11.314506] mmc0: new high speed SDHC card at address 1234
[   11.320861] mmcblk0: mmc0:1234 SD04G 3.81 GiB 
[   11.326798]  mmcblk0: p1
[   21.309104] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
[   21.317080] Please append a correct "root=" boot option; here are the available partitions:
[   21.325515] 0100            8192 ram0  (driver?)
[   21.330195] 0101            8192 ram1  (driver?)
[   21.334804] 0102            8192 ram2  (driver?)
[   21.339465] 0103            8192 ram3  (driver?)
[   21.344076] 0104            8192 ram4  (driver?)
[   21.348680] 0105            8192 ram5  (driver?)
[   21.353340] 0106            8192 ram6  (driver?)
[   21.357952] 0107            8192 ram7  (driver?)
[   21.362584] 0108            8192 ram8  (driver?)
[   21.367196] 0109            8192 ram9  (driver?)
[   21.371820] 010a            8192 ram10  (driver?)
[   21.376519] 010b            8192 ram11  (driver?)
[   21.381236] 010c            8192 ram12  (driver?)
[   21.385928] 010d            8192 ram13  (driver?)
[   21.390646] 010e            8192 ram14  (driver?)
[   21.395337] 010f            8192 ram15  (driver?)
[   21.400053] b300         3993600 mmcblk0  driver: mmcblk
[   21.405350]   b301         2929664 mmcblk0p1 e7380d5a-01
[   21.410665] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   21.418899] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.39-1-ARCH #1
[   21.425224] Hardware name: Pogoplug V4
[   21.428995] [<c0010524>] (unwind_backtrace) from [<c000d9d0>] (show_stack+0x10/0x14)
[   21.436712] [<c000d9d0>] (show_stack) from [<c00cd8d4>] (panic+0x88/0x208)
[   21.443563] [<c00cd8d4>] (panic) from [<c08512c8>] (mount_block_root+0x1a0/0x260)
[   21.451018] [<c08512c8>] (mount_block_root) from [<c0851578>] (mount_root+0xf4/0x120)
[   21.458817] [<c0851578>] (mount_root) from [<c0851700>] (prepare_namespace+0x15c/0x1bc)
[   21.466807] [<c0851700>] (prepare_namespace) from [<c0850eb4>] (kernel_init_freeable+0x1fc/0x254)
[   21.475661] [<c0850eb4>] (kernel_init_freeable) from [<c0647d1c>] (kernel_init+0x8/0xe8)
[   21.483721] [<c0647d1c>] (kernel_init) from [<c000a4d0>] (ret_from_fork+0x14/0x24)
[   21.491263] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Re: How to use usbboot? soft-bricked v4 pogoplug
January 14, 2017 06:04PM
scales11,

You can't boot the Arch rootfs out of the box, with the current envs setting. We are booting with the rootfs label.

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

In order to boot this way, so that multiple drives can be plugged in at boot (this is applicable to both Debian and Arch rootfs):

- The kernel initrd image must be on /boot (i.e. its uInitrd must be generated from that).
- The u-boot envs must be adjusted to boot using both uImage and uInitrd.

The other alternative is to boot the rootfs with only the SD card. You can plug in as many drive as you want, but only the SD is used for rootfs. If this is your only goal, and the configuration will never change, then it is easy to adjust the u-boot env to do that. Is this you preference?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
scales11
Re: How to use usbboot? soft-bricked v4 pogoplug
January 15, 2017 02:09PM
Bodhi,

My goal is to ONLY boot off of the SD card. I would like to use the usb ports for other things (arduino, webcam, wifi, etc).

I am a little hazy on the uInitrd being changed/setup differently...I simply don't know how to do that yet.
Re: How to use usbboot? soft-bricked v4 pogoplug
January 15, 2017 03:30PM
scales11,

> My goal is to ONLY boot off of the SD card. I
> would like to use the usb ports for other things
> (arduino, webcam, wifi, etc).

Then the change is quite simple.

- Boot with serial console, interrupt it at count down and
printenv set_bootargs
If the output is
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params

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

See if it boot all the way into Arch.

-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: