Welcome! Log In Create A New Profile

Advanced

Debian on GlobalScale Dreamplug

Posted by rayknight 
Re: GlobalScale Dreamplug
June 03, 2017 01:14PM
bobafetthotmail Wrote:
-------------------------------------------------------
> feas Wrote:
> --------------------------------------------------
> -----
> >
> > The serial interface with this box seems pretty
> to
> > uchy though, had a tough time with ckermit getti
> ng
> > a connection to it, but of course it could be my
> p
> > rison style looking soldering job of the usb-ser
> ia
> > l cable and the JST cable.
>
> For soldering tiny and frail cables I usually sold
> er them on a tiny board and wrap some metallic wir
> e downstream to move the stress point from the sol
> der job to the actual cable (which is far more res
> istant). In this case I also used a header because
> it was convenient for connection to various other
> dongles.
>
> I've attached some pics of the JST cable I made fo
> r the hp thinclient thing, as it's easier to expla
> in with images.

Very well done :)

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: GlobalScale Dreamplug
June 03, 2017 05:02PM
feas Wrote:
-------------------------------------------------------
> bobafetthotmail Wrote:
> --------------------------------------------------
> -----
>
> > For a permanent solution that looks professional
> I
> > recommend drilling a hole in the case (or punch
> it
> > with the soldering iron to melt a hole) and use
> au
> > dio jacks (female on the case, male on the usb-s
> er
> > ial side).
> > Most of my kirkwoods have an external audio jack
> s
> > o I can connect serial without having to disasse
> mb
> > le the thing ever again.
>
> Another great idea. Do you have a brand you like t
> o use?
>
> Most of my audio jacks seem to have play and I end
> up having to
> jiggle them to get and keep stereo which could cau
> se connection
> issues with the serial comms.
> I would need to take it apart again and look close
> r but going from
> memory I think I would need to route the wire and
> female audio
> connection to the opposite side for clearance.

I bought some random chinese connectors that looked like this https://images.duckduckgo.com/iu/?u=http%3A%2F%2Fmklec.com%2Fimage%2Fdata%2Fconnectors%2FTRS-3-pole-3.5mm-female-socket-panel-mount-1.jpg&f=1 but are not available anymore it seems.

If you are worried about play, I think you should buy open-framed ones like these http://www.ebay.com/itm/3-5mm-Stereo-Audio-Female-Jack-Socket-Connector-Panel-Mount-Solder-Lot-1-8Inches/272214101824 where you can easily adjust that by bending the metal flap that makes the contact (and the metal flaps are kinda strong on their own too as they are both the contact and the spring)
Re: GlobalScale Dreamplug
June 03, 2017 11:36PM
Great! Thank you!
Re: GlobalScale Dreamplug
June 15, 2017 02:01PM
Here is the new Dreamplug u-boot for testing.

1. Prepare the USB rootfs using Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 from the kernel/rootfs thread (or using a Kirkwood rootfs that you already have). And plug in this USB rootfs to the box.

Note: this rootfs should have the original uImage (no DTB appended to it).

2. kwboot the box with command

./kwboot  -t -B 115200 /dev/ttyUSB0 -b uboot.2016.05-tld-4-rc1.dreamplug.mtd0.kwb  -p

3. We are booting this new u-boot with its default envs. So after kwboot has loaded the u-boot image, there is no need to change envs other than one specific to your box

ethaddr
eth1addr
ipaddr
serverip

And then

printenv
boot

There is some HW aspects of this box that I have not looked into closely. Please post your observations if you know what is missing (dmesg might have some error in loading FW, or LED is not flashing correctly, mtdparts seems to be wrong...etc).

Please post serial console log here.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 06/15/2017 02:02PM by bodhi.
Attachments:
open | download - uboot.2016.05-tld-4-rc1.dreamplug.mtd0.kwb (512 KB)
Re: GlobalScale Dreamplug
June 15, 2017 05:36PM
Re: GlobalScale Dreamplug
June 16, 2017 02:14PM
Here is the new Dreamplug u-boot RC2 for testing (u-boot SD card is not working yet).

1. Prepare the USB rootfs using Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 from the kernel/rootfs thread (or using a Kirkwood rootfs that you already have). And plug in this USB rootfs to the box.

Note: this rootfs should have the original uImage (no DTB appended to it).

2. kwboot the box with command

./kwboot  -t -B 115200 /dev/ttyUSB0 -b uboot.2016.05-tld-4-rc2.dreamplug.mtd0.kwb  -p

3. We are booting this new u-boot with its default envs. So after kwboot has loaded the u-boot image, there is no need to change envs other than one specific to your box

ethaddr
eth1addr
ipaddr
serverip

And then

printenv
boot

After booted into Debian, to get Wifi, Bluetooth, and the SD card working, install libertas firmware (this is available in jessie non-free apt sources):
apt-get install firmware-libertas


There is some HW aspects of this box that I have not looked into closely. Please post your observations if you know what is missing (dmesg might have some error in loading FW, or LED is not flashing correctly,..etc).

Please post serial console log here.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 2 time(s). Last edit at 06/16/2017 02:16PM by bodhi.
Attachments:
open | download - uboot.2016.05-tld-4-rc2.dreamplug.mtd0.kwb (512 KB)
Re: GlobalScale Dreamplug
June 16, 2017 05:36PM
So here is what I have so far. I have the old micro sd card inside still and a bad rootfs on a usb drive. I can't seem to make a good rootfs but got uImage set in /boot on the usb to get this far. Can't get the debs to install from an error can't do arm on x86 or something.

But here it is if helpful.

U-Boot 2016.05-tld-4-rc2 (Jun 16 2017 - 02:33:53 -0700)
Marvell-DreamPlug

SoC:   Kirkwood 88F6281_A1
SPI:   ready
DRAM:  512 MiB
WARNING: Caches not enabled
MMC:   kwsdio: 0
SF: Detected MX25L1605D with page size 256 Bytes, erase size 64 KiB, total 2 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0, egiga1
88E1116 Initialized on egiga0
88E1116 Initialized on egiga1
Hit any key to stop autoboot:  0 
Dreamplug> printenv
arcNumber=3550
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset
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 mmc ide
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-dreamplug.dtb
eth1addr=7e:16:30:7e:c8:ac
ethact=egiga0
ethaddr=b6:d0:5e:0f:a1:17
if_netconsole=ping $serverip
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
mainlineLinux=yes
mtdparts=mtdparts=spi0.0:0x100000@0(u-boot),0x10000@0x100000(stock_u_boot_env),0x10000@0x180000(stock_dtb)
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
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_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: 2889/65532 bytes
Dreamplug> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... ERROR: Invalid USB EP length (9)
ERROR: Invalid USB EP length (9)
5 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)

Use USB retry period from the environment: 15 second(s)
Device NOT ready
   Request Sense returned 02 3A 00
raise: Signal # 8 caught

Use USB retry period from the environment: 15 second(s)
3 Storage Device(s) found

Reset IDE: ide_preinit failed

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

Part	Start Sector	Num Sectors	UUID		Type
  1	53        	212583    	b74937c3-01	06 Boot
  2	212636    	7611118   	b74937c3-02	83

## Unknown partition table type 0


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

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	61052928  	8bf8da69-01	83 Boot
loading envs from usb 0 ...
reading /boot/uEnv.txt
** Unable to read file /boot/uEnv.txt **

no IDE devices available
running scan_disk ...
Scan device usb
device usb 0:1
reading /boot/uImage
** Unable to read file /boot/uImage **
device usb 1:1
** Bad device size - usb 1 **
device usb 2:1
1 bytes read in 252 ms (0 Bytes/s)
Found bootable drive on usb 2
loading uImage ...
3165163 bytes read in 379 ms (8 MiB/s)
loading uInitrd ...
** File not found /boot/uInitrd **
loading DTB /boot/dts/kirkwood-dreamplug.dtb ...
10267 bytes read in 575 ms (16.6 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   linux-4.4.0-kirkwood-tld-1
   Created:      2017-06-16  22:30:46 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3165099 Bytes = 3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Device Tree to 0fffa000, end 0ffff81a ... OK

Starting kernel ...

Uncompressing Linux... done, booting the 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.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Jan 25 20:35:24 PST 2016
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Globalscale Technologies Dreamplug
[    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: 130048
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 510488K/524288K available (6007K kernel code, 573K rwdata, 1992K rodata, 296K init, 312K bss, 13800K 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 : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07d7ef4   (8000 kB)
[    0.000000]       .init : 0xc07d8000 - 0xc0822000   ( 296 kB)
[    0.000000]       .data : 0xc0822000 - 0xc08b169c   ( 574 kB)
[    0.000000]        .bss : 0xc08b169c - 0xc08ff9d0   ( 313 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.008265] Console: colour dummy device 80x30
[    0.012836] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.100931] pid_max: default: 32768 minimum: 301
[    0.105758] Security Framework initialized
[    0.110069] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.116816] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.124880] Initializing cgroup subsys io
[    0.129064] Initializing cgroup subsys devices
[    0.133633] Initializing cgroup subsys freezer
[    0.138249] Initializing cgroup subsys net_cls
[    0.142877] CPU: Testing write buffer coherency: ok
[    0.148353] Setting up static identity map for 0x8200 - 0x8258
[    0.154585] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.163482] devtmpfs: initialized
[    0.171351] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.181823] prandom: seed boundary self test passed
[    0.190639] prandom: 100 self tests passed
[    0.194866] pinctrl core: initialized pinctrl subsystem
[    0.201596] NET: Registered protocol family 16
[    0.206552] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.238050] cpuidle: using governor ladder
[    0.268049] cpuidle: using governor menu
[    0.272450] Feroceon L2: Enabling L2
[    0.276160] Feroceon L2: Cache support initialised.
[    0.281564] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.292248] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    0.308016] No ATAGs?
[    0.339534] vgaarb: loaded
[    0.342950] usbcore: registered new interface driver usbfs
[    0.348678] usbcore: registered new interface driver hub
[    0.354166] usbcore: registered new device driver usb
[    0.360407] clocksource: Switched to clocksource orion_clocksource
[    0.422036] NET: Registered protocol family 2
[    0.427278] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.434614] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.441242] TCP: Hash tables configured (established 4096 bind 4096)
[    0.447766] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.453750] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.460331] NET: Registered protocol family 1
[    0.465166] RPC: Registered named UNIX socket transport module.
[    0.471244] RPC: Registered udp transport module.
[    0.476053] RPC: Registered tcp transport module.
[    0.480878] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.487796] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.495507] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.501843] audit: initializing netlink subsys (disabled)
[    0.507383] audit: type=2000 audit(0.490:1): initialized
[    0.513211] Initialise system trusted keyring
[    0.518004] zbud: loaded
[    0.520971] VFS: Disk quotas dquot_6.6.0
[    0.525050] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.532710] NFS: Registering the id_resolver key type
[    0.537918] Key type id_resolver registered
[    0.542254] Key type id_legacy registered
[    0.546384] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.553227] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.559920] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.567625] Key type big_key registered
[    0.582905] Key type asymmetric registered
[    0.587120] Asymmetric key parser 'x509' registered
[    0.592281] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.599810] io scheduler noop registered
[    0.604023] io scheduler deadline registered
[    0.608454] io scheduler cfq registered (default)
[    0.614654] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.622861] irq: Cannot allocate irq_descs @ IRQ35, assuming pre-allocated
[    0.630266] irq: Cannot allocate irq_descs @ IRQ67, assuming pre-allocated
[    0.637820] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.681100] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.688740] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.731089] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.738995] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.746875] console [ttyS0] disabled
[    0.750668] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    0.759787] console [ttyS0] enabled
[    0.759787] console [ttyS0] enabled
[    0.766926] bootconsole [earlycon0] disabled
[    0.766926] bootconsole [earlycon0] disabled
[    0.777639] m25p80 spi0.0: mx25l1606e (2048 Kbytes)
[    0.784984] libphy: Fixed MDIO Bus: probed
[    0.789438] libphy: orion_mdio_bus: probed
[    0.794859] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    0.803293] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address b6:d0:5e:0f:a1:17
[    0.812870] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 7e:16:30:7e:c8:ac
[    0.821862] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.828459] ehci-pci: EHCI PCI platform driver
[    0.833045] ehci-orion: EHCI orion driver
[    0.837243] orion-ehci f1050000.ehci: EHCI Host Controller
[    0.842836] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    0.850707] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    0.870444] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    0.876702] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.883553] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.890826] usb usb1: Product: EHCI Host Controller
[    0.895725] usb usb1: Manufacturer: Linux 4.4.0-kirkwood-tld-1 ehci_hcd
[    0.902386] usb usb1: SerialNumber: f1050000.ehci
[    0.907854] hub 1-0:1.0: USB hub found
[    0.911706] hub 1-0:1.0: 1 port detected
[    0.916654] mousedev: PS/2 mouse device common for all mice
[    0.922982] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    0.930054] i2c /dev entries driver
[    0.935054] hidraw: raw HID events driver (C) Jiri Kosina
[    0.940917] drop_monitor: Initializing network drop monitor service
[    0.947473] NET: Registered protocol family 17
[    0.952237] Key type dns_resolver registered
[    0.957353] registered taskstats version 1
[    0.961550] Loading compiled-in X.509 certificates
[    0.966427] zswap: loaded using pool lzo/zbud
[    0.971908] Key type encrypted registered
[    0.976468] rtc-mv f1010300.rtc: setting system clock to 2013-01-01 00:39:40 UTC (1357000780)
[    0.986729] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    0.994324] Please append a correct "root=" boot option; here are the available partitions:
[    1.002826] 1f00            2048 mtdblock0  (driver?)
[    1.007908] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.016210] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.0-kirkwood-tld-1 #1
[    1.023199] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    1.029524] [<c0016784>] (unwind_backtrace) from [<c00129f8>] (show_stack+0x10/0x14)
[    1.037309] [<c00129f8>] (show_stack) from [<c00c2200>] (panic+0x80/0x214)
[    1.044225] [<c00c2200>] (panic) from [<c07d9280>] (mount_block_root+0x204/0x24c)
[    1.051748] [<c07d9280>] (mount_block_root) from [<c07d93b4>] (mount_root+0xec/0x118)
[    1.059621] [<c07d93b4>] (mount_root) from [<c07d9504>] (prepare_namespace+0x124/0x184)
[    1.067661] [<c07d9504>] (prepare_namespace) from [<c07d8e9c>] (kernel_init_freeable+0x208/0x258)
[    1.076579] [<c07d8e9c>] (kernel_init_freeable) from [<c05b16b4>] (kernel_init+0x8/0xe4)
[    1.084711] [<c05b16b4>] (kernel_init) from [<c000f090>] (ret_from_fork+0x14/0x24)
[    1.092322] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   82.490432] random: nonblocking pool is initialized
Re: GlobalScale Dreamplug
June 16, 2017 05:51PM
feas,

> I can't seem to make a good rootfs but got u
> Image set in /boot on the usb to get this far.

You also need uInitrd. That's the panic at the end was about

** File not found /boot/uInitrd **
[    1.007908] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

> Can
> 't get the debs to install from an error can't do
> arm on x86 or something.
>

This error is when you prepare the rootfs on your x86 laptop. You can run dpkg on ARM rootfs while in x86 Linux, but you need to chroot into it and with qemu already installed.

It is best that you just use a new USB drive and tar the rootfs to it. No additional steps, just like you did way back to create USB rootfs.

The rest of the log looks good!

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: GlobalScale Dreamplug
June 16, 2017 06:08PM
bodhi Wrote:
-------------------------------------------------------
> feas,
>
> > I can't seem to make a good rootfs but got u
> > Image set in /boot on the usb to get this far.
>
> You also need uInitrd. That's the panic at the end
> was about
>
Right but wasn't having any luck in doing so so just went with what I had.
>
> ** File not found /boot/uInitrd **
>
>
> [    1.007908] Kernel panic - not syncing: VFS: Un
> able to mount root fs on unknown-block(0,0)
>
>
> > Can
> > 't get the debs to install from an error can't d
> o
> > arm on x86 or something.
> >
>
> This error is when you prepare the rootfs on your
> x86 laptop. You can run dpkg on ARM rootfs while i
> n x86 Linux, but you need to chroot into it and wi
> th qemu already installed.
>

Right but I wasn't trying to chroot to make a rootfs just run install your deb's.

> It is best that you just use a new USB drive and t
> ar the rootfs to it. No additional steps, just lik
> e you did way back to create USB rootfs.
>
That is what I did but it didn't work properly. I think there was some trick I had to do that I can't remember.

> The rest of the log looks good!

I will keep messing around and see if I can get it to work.
Re: GlobalScale Dreamplug
June 16, 2017 06:15PM
feas,

> Right but I wasn't trying to chroot to make a root
> fs just run install your deb's.

When you create a new rootfs, there is no deb installation (the kernel is already installed on it). Only a tar command is needed to be run to extract it.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: GlobalScale Dreamplug
June 16, 2017 06:27PM
bodhi Wrote:
-------------------------------------------------------
> feas,
>
> > Right but I wasn't trying to chroot to make a ro
> ot
> > fs just run install your deb's.
>
> When you create a new rootfs, there is no deb inst
> allation (the kernel is already installed on it).
> Only a tar command is needed to be run to extract
> it.

when I tar it to a newly formated ext3 usb I see on it:

.
..
config-4.4.0-kirkwood-tld-1
linux-4.4.0-kirkwood-tld-1.patch
linux-dtb-4.4.0-kirkwood-tld-1.tar
linux-headers-4.4.0-kirkwood-tld-1_1.0_armel.deb
linux-image-4.4.0-kirkwood-tld-1_1.0_armel.deb
zImage-4.4.0-kirkwood-tld-1

There is no file system just these files.

Maybe time to take meds early, having a hard time concentrating anyway.
Re: GlobalScale Dreamplug
June 16, 2017 07:40PM
Hi feas,

> config-4.4.0-kirkwood-tld-1
> linux-4.4.0-kirkwood-tld-1.patch
> linux-dtb-4.4.0-kirkwood-tld-1.tar
> linux-headers-4.4.0-kirkwood-tld-1_1.0_armel.deb
> linux-image-4.4.0-kirkwood-tld-1_1.0_armel.deb
> zImage-4.4.0-kirkwood-tld-1
>
> There is no file system just these files.

I see. You're tarred the wrong file! This tarball was the kernel tarball, not the rootfs.

The rootfs tarball is Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2:
http://forum.doozan.com/read.php?2,12096

Quote

Updated 20 Feb 2016:

This Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 is to keep in sync with kernel Linux-4.4.0-kirkwood-tld-1.

Basic minimal Debian Kirkwood rootfs for most Kirwood plugs:

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

> Maybe time to take meds early, having a hard time concentrating anyway.

Take care!

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: GlobalScale Dreamplug
June 16, 2017 08:34PM
bodhi Wrote:
-------------------------------------------------------
> Hi feas,
>
> > config-4.4.0-kirkwood-tld-1
> > linux-4.4.0-kirkwood-tld-1.patch
> > linux-dtb-4.4.0-kirkwood-tld-1.tar
> > linux-headers-4.4.0-kirkwood-tld-1_1.0_armel.deb
> > linux-image-4.4.0-kirkwood-tld-1_1.0_armel.deb
> > zImage-4.4.0-kirkwood-tld-1
> >
> > There is no file system just these files.
>
> I see. You're tarred the wrong file! This tarball
> was the kernel tarball, not the rootfs.
>
> The rootfs tarball is Debian-4.4.0-kirkwood-tld-1-
> rootfs-bodhi.tar.bz2:
> http://forum.doozan.com/read.php?2,12096
>
>
Quote

Updated 20 Feb 2016:
>
> This Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.
> bz2 is to keep in sync with kernel Linux-4.4.0-kir
> kwood-tld-1.
>
> Basic minimal Debian Kirkwood rootfs for most Kirw
> ood plugs:
>
> - tarball size: 137M
> - install size: 398M
> - a basic jessie rootfs.
> - The init system used in this rootfs is sysvinit
> . To boot with systemd, see note 2 below.
> - Installed packages: nano, avahi, ntp, busybox-sy
> slogd (log to RAM), htop, isc-dhcp-client, dialog,
> bzip2, nfs server/client, iperf, ethtool, sysvinit
> -core, sysvinit, and sysvinit-utils.
> - see LED controls in /etc/rc.local, and /etc/init
> .d/halt
> - see some useful aliases in /root/.profile
> - root password: root
>
> > Maybe time to take meds early, having a hard tim
> e concentrating anyway.
>
> Take care!

I'm sorry, embarrassed and humbled to have wasted your time.

I will get myself squared away and then give you the proper info back on the booting.
Re: GlobalScale Dreamplug
June 16, 2017 08:56PM
Hey feas,

Nothing to be sorry! senior moment happens. I recall more than a few times getting to the parking lot after work and completely forgot where I parked my car. I had a good exercise and must have worn out my car remote control battery :))

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: GlobalScale Dreamplug
June 16, 2017 09:21PM
bodhi Wrote:
-------------------------------------------------------
> Hey feas,
>
> Nothing to be sorry! senior moment happens. I reca
> ll more than a few times getting to the parking lo
> t after work and completely forgot where I parked
> my car. I had a good exercise and must have worn o
> ut my car remote control battery :))

I use to tell my friends to put me down when I forget to put my pants on before leaving the house.

That day is near!
Re: GlobalScale Dreamplug
June 17, 2017 12:07AM
Ok so I think I have my head on straight this time. Still ends in a kernel panic unknown block 0,0.

U-Boot 2016.05-tld-4-rc2 (Jun 16 2017 - 02:33:53 -0700)
Marvell-DreamPlug

SoC:   Kirkwood 88F6281_A1
SPI:   ready
DRAM:  512 MiB
WARNING: Caches not enabled
MMC:   kwsdio: 0
SF: Detected MX25L1605D with page size 256 Bytes, erase size 64 KiB, total 2 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0, egiga1
88E1116 Initialized on egiga0
88E1116 Initialized on egiga1
Hit any key to stop autoboot:  0 
Dreamplug> printenv
arcNumber=3550
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset
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 mmc ide
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-dreamplug.dtb
eth1addr=7e:16:30:7e:c8:ac
ethact=egiga0
ethaddr=b6:d0:5e:0f:a1:17
if_netconsole=ping $serverip
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
mainlineLinux=yes
mtdparts=mtdparts=spi0.0:0x100000@0(u-boot),0x10000@0x100000(stock_u_boot_env),0x10000@0x180000(stock_dtb)
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
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_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: 2889/65532 bytes
Dreamplug> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... ERROR: Invalid USB EP length (9)
ERROR: Invalid USB EP length (9)
5 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)

Use USB retry period from the environment: 15 second(s)

Use USB retry period from the environment: 15 second(s)
Device NOT ready
   Request Sense returned 02 3A 00
raise: Signal # 8 caught
3 Storage Device(s) found

Reset IDE: ide_preinit failed

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

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	61052928  	8bf8da69-01	83 Boot


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

Part	Start Sector	Num Sectors	UUID		Type
  1	53        	212583    	b74937c3-01	06 Boot
  2	212636    	7611118   	b74937c3-02	83

## Unknown partition table type 0
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 242 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3165163 bytes read in 395 ms (7.6 MiB/s)
loading uInitrd ...
7179935 bytes read in 496 ms (13.8 MiB/s)
loading DTB /boot/dts/kirkwood-dreamplug.dtb ...
10267 bytes read in 758 ms (12.7 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.4.0-kirkwood-tld-1
   Created:      2017-06-17   5:05:05 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3165099 Bytes = 3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.4.0-kirkwood-tld-1
   Created:      2016-02-19   7:33:04 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7179871 Bytes = 6.8 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 0f927000, end 0ffffe5f ... OK
   Loading Device Tree to 0f921000, end 0f92681a ... OK

Starting kernel ...

Uncompressing Linux... done, booting the 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.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Jan 25 20:35:24 PST 2016
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Globalscale Technologies Dreamplug
[    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: 130048
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 510488K/524288K available (6007K kernel code, 573K rwdata, 1992K rodata, 296K init, 312K bss, 13800K 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 : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07d7ef4   (8000 kB)
[    0.000000]       .init : 0xc07d8000 - 0xc0822000   ( 296 kB)
[    0.000000]       .data : 0xc0822000 - 0xc08b169c   ( 574 kB)
[    0.000000]        .bss : 0xc08b169c - 0xc08ff9d0   ( 313 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.008266] Console: colour dummy device 80x30
[    0.012837] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.100932] pid_max: default: 32768 minimum: 301
[    0.105759] Security Framework initialized
[    0.110069] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.116816] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.124877] Initializing cgroup subsys io
[    0.129063] Initializing cgroup subsys devices
[    0.133635] Initializing cgroup subsys freezer
[    0.138248] Initializing cgroup subsys net_cls
[    0.142874] CPU: Testing write buffer coherency: ok
[    0.148345] Setting up static identity map for 0x8200 - 0x8258
[    0.154577] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.163474] devtmpfs: initialized
[    0.171354] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.181822] prandom: seed boundary self test passed
[    0.190631] prandom: 100 self tests passed
[    0.194856] pinctrl core: initialized pinctrl subsystem
[    0.201582] NET: Registered protocol family 16
[    0.206534] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.238048] cpuidle: using governor ladder
[    0.268049] cpuidle: using governor menu
[    0.272450] Feroceon L2: Enabling L2
[    0.276169] Feroceon L2: Cache support initialised.
[    0.281573] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.292256] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    0.308026] No ATAGs?
[    0.339535] vgaarb: loaded
[    0.342948] usbcore: registered new interface driver usbfs
[    0.348670] usbcore: registered new interface driver hub
[    0.354158] usbcore: registered new device driver usb
[    0.360395] clocksource: Switched to clocksource orion_clocksource
[    0.422002] NET: Registered protocol family 2
[    0.427243] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.434577] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.441198] TCP: Hash tables configured (established 4096 bind 4096)
[    0.447723] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.453708] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.460288] NET: Registered protocol family 1
[    0.465123] RPC: Registered named UNIX socket transport module.
[    0.471202] RPC: Registered udp transport module.
[    0.476009] RPC: Registered tcp transport module.
[    0.480835] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.487749] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.495451] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.501792] audit: initializing netlink subsys (disabled)
[    0.507331] audit: type=2000 audit(0.490:1): initialized
[    0.513167] Initialise system trusted keyring
[    0.517958] zbud: loaded
[    0.520922] VFS: Disk quotas dquot_6.6.0
[    0.524997] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.532646] NFS: Registering the id_resolver key type
[    0.537858] Key type id_resolver registered
[    0.542193] Key type id_legacy registered
[    0.546323] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.553167] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.559861] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.567567] Key type big_key registered
[    0.582853] Key type asymmetric registered
[    0.587068] Asymmetric key parser 'x509' registered
[    0.592229] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.599758] io scheduler noop registered
[    0.603972] io scheduler deadline registered
[    0.608403] io scheduler cfq registered (default)
[    0.614602] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.622809] irq: Cannot allocate irq_descs @ IRQ35, assuming pre-allocated
[    0.630213] irq: Cannot allocate irq_descs @ IRQ67, assuming pre-allocated
[    0.637768] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.681089] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.688732] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.731077] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.738980] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.746860] console [ttyS0] disabled
[    0.750649] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    0.759769] console [ttyS0] enabled
[    0.759769] console [ttyS0] enabled
[    0.766907] bootconsole [earlycon0] disabled
[    0.766907] bootconsole [earlycon0] disabled
[    0.777615] m25p80 spi0.0: mx25l1606e (2048 Kbytes)
[    0.784966] libphy: Fixed MDIO Bus: probed
[    0.789421] libphy: orion_mdio_bus: probed
[    0.794830] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    0.803257] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address b6:d0:5e:0f:a1:17
[    0.812836] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 7e:16:30:7e:c8:ac
[    0.821827] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.828424] ehci-pci: EHCI PCI platform driver
[    0.833011] ehci-orion: EHCI orion driver
[    0.837209] orion-ehci f1050000.ehci: EHCI Host Controller
[    0.842801] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    0.850672] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    0.870432] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    0.876691] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.883536] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.890809] usb usb1: Product: EHCI Host Controller
[    0.895708] usb usb1: Manufacturer: Linux 4.4.0-kirkwood-tld-1 ehci_hcd
[    0.902370] usb usb1: SerialNumber: f1050000.ehci
[    0.907833] hub 1-0:1.0: USB hub found
[    0.911688] hub 1-0:1.0: 1 port detected
[    0.916636] mousedev: PS/2 mouse device common for all mice
[    0.922968] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    0.930046] i2c /dev entries driver
[    0.935041] hidraw: raw HID events driver (C) Jiri Kosina
[    0.940900] drop_monitor: Initializing network drop monitor service
[    0.947456] NET: Registered protocol family 17
[    0.952215] Key type dns_resolver registered
[    0.957336] registered taskstats version 1
[    0.961536] Loading compiled-in X.509 certificates
[    0.966410] zswap: loaded using pool lzo/zbud
[    0.971896] Key type encrypted registered
[    0.976457] rtc-mv f1010300.rtc: setting system clock to 2013-01-01 06:24:44 UTC (1357021484)
[    0.986718] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    0.994307] Please append a correct "root=" boot option; here are the available partitions:
[    1.002807] 1f00            2048 mtdblock0  (driver?)
[    1.007892] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.016194] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.0-kirkwood-tld-1 #1
[    1.023182] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    1.029507] [<c0016784>] (unwind_backtrace) from [<c00129f8>] (show_stack+0x10/0x14)
[    1.037292] [<c00129f8>] (show_stack) from [<c00c2200>] (panic+0x80/0x214)
[    1.044209] [<c00c2200>] (panic) from [<c07d9280>] (mount_block_root+0x204/0x24c)
[    1.051730] [<c07d9280>] (mount_block_root) from [<c07d93b4>] (mount_root+0xec/0x118)
[    1.059595] [<c07d93b4>] (mount_root) from [<c07d9504>] (prepare_namespace+0x124/0x184)
[    1.067635] [<c07d9504>] (prepare_namespace) from [<c07d8e9c>] (kernel_init_freeable+0x208/0x258)
[    1.076553] [<c07d8e9c>] (kernel_init_freeable) from [<c05b16b4>] (kernel_init+0x8/0xe4)
[    1.084686] [<c05b16b4>] (kernel_init) from [<c000f090>] (ret_from_fork+0x14/0x24)
[    1.092296] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   82.490421] random: nonblocking pool is initialized


So I was going into the deep end without my floaties on and thought perhaps the internal micro sd card was causing issues so I took it out and retried with the same kernel panic.

U-Boot 2016.05-tld-4-rc2 (Jun 16 2017 - 02:33:53 -0700)
Marvell-DreamPlug

SoC:   Kirkwood 88F6281_A1
SPI:   ready
DRAM:  512 MiB
WARNING: Caches not enabled
MMC:   kwsdio: 0
SF: Detected MX25L1605D with page size 256 Bytes, erase size 64 KiB, total 2 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0, egiga1
88E1116 Initialized on egiga0
88E1116 Initialized on egiga1
Hit any key to stop autoboot:  0 
Dreamplug> printenv
arcNumber=3550
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset
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 mmc ide
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-dreamplug.dtb
eth1addr=7e:16:30:7e:c8:ac
ethact=egiga0
ethaddr=b6:d0:5e:0f:a1:17
if_netconsole=ping $serverip
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
mainlineLinux=yes
mtdparts=mtdparts=spi0.0:0x100000@0(u-boot),0x10000@0x100000(stock_u_boot_env),0x10000@0x180000(stock_dtb)
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
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_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: 2889/65532 bytes
Dreamplug> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... ERROR: Invalid USB EP length (9)
ERROR: Invalid USB EP length (9)
4 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: ide_preinit failed

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

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	61052928  	8bf8da69-01	83 Boot
loading envs from usb 0 ...
2845 bytes read in 301 ms (8.8 KiB/s)

no IDE devices available
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 242 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3165163 bytes read in 395 ms (7.6 MiB/s)
loading uInitrd ...
7179935 bytes read in 496 ms (13.8 MiB/s)
loading DTB /boot/dts/kirkwood-dreamplug.dtb ...
10267 bytes read in 758 ms (12.7 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.4.0-kirkwood-tld-1
   Created:      2017-06-17   5:05:05 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3165099 Bytes = 3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.4.0-kirkwood-tld-1
   Created:      2016-02-19   7:33:04 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7179871 Bytes = 6.8 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 0f927000, end 0ffffe5f ... OK
   Loading Device Tree to 0f921000, end 0f92681a ... OK

Starting kernel ...

Uncompressing Linux... done, booting the 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.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Jan 25 20:35:24 PST 2016
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Globalscale Technologies Dreamplug
[    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: 130048
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 510488K/524288K available (6007K kernel code, 573K rwdata, 1992K rodata, 296K init, 312K bss, 13800K 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 : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07d7ef4   (8000 kB)
[    0.000000]       .init : 0xc07d8000 - 0xc0822000   ( 296 kB)
[    0.000000]       .data : 0xc0822000 - 0xc08b169c   ( 574 kB)
[    0.000000]        .bss : 0xc08b169c - 0xc08ff9d0   ( 313 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.008265] Console: colour dummy device 80x30
[    0.012837] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.100932] pid_max: default: 32768 minimum: 301
[    0.105758] Security Framework initialized
[    0.110069] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.116816] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.124876] Initializing cgroup subsys io
[    0.129063] Initializing cgroup subsys devices
[    0.133635] Initializing cgroup subsys freezer
[    0.138247] Initializing cgroup subsys net_cls
[    0.142874] CPU: Testing write buffer coherency: ok
[    0.148345] Setting up static identity map for 0x8200 - 0x8258
[    0.154578] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.163473] devtmpfs: initialized
[    0.171353] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.181821] prandom: seed boundary self test passed
[    0.190631] prandom: 100 self tests passed
[    0.194856] pinctrl core: initialized pinctrl subsystem
[    0.201582] NET: Registered protocol family 16
[    0.206534] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.238048] cpuidle: using governor ladder
[    0.268048] cpuidle: using governor menu
[    0.272451] Feroceon L2: Enabling L2
[    0.276169] Feroceon L2: Cache support initialised.
[    0.281572] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.292256] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    0.308025] No ATAGs?
[    0.339536] vgaarb: loaded
[    0.342957] usbcore: registered new interface driver usbfs
[    0.348687] usbcore: registered new interface driver hub
[    0.354175] usbcore: registered new device driver usb
[    0.360411] clocksource: Switched to clocksource orion_clocksource
[    0.422033] NET: Registered protocol family 2
[    0.427271] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.434614] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.441242] TCP: Hash tables configured (established 4096 bind 4096)
[    0.447767] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.453751] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.460331] NET: Registered protocol family 1
[    0.465169] RPC: Registered named UNIX socket transport module.
[    0.471255] RPC: Registered udp transport module.
[    0.476061] RPC: Registered tcp transport module.
[    0.480887] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.487803] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.495504] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.501843] audit: initializing netlink subsys (disabled)
[    0.507382] audit: type=2000 audit(0.490:1): initialized
[    0.513209] Initialise system trusted keyring
[    0.518003] zbud: loaded
[    0.520972] VFS: Disk quotas dquot_6.6.0
[    0.525049] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.532698] NFS: Registering the id_resolver key type
[    0.537909] Key type id_resolver registered
[    0.542245] Key type id_legacy registered
[    0.546383] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.553228] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.559923] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.567628] Key type big_key registered
[    0.582920] Key type asymmetric registered
[    0.587137] Asymmetric key parser 'x509' registered
[    0.592299] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.599827] io scheduler noop registered
[    0.604041] io scheduler deadline registered
[    0.608471] io scheduler cfq registered (default)
[    0.614675] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.622880] irq: Cannot allocate irq_descs @ IRQ35, assuming pre-allocated
[    0.630284] irq: Cannot allocate irq_descs @ IRQ67, assuming pre-allocated
[    0.637835] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.681099] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.688739] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.731099] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.739004] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.746884] console [ttyS0] disabled
[    0.750667] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    0.759787] console [ttyS0] enabled
[    0.759787] console [ttyS0] enabled
[    0.766925] bootconsole [earlycon0] disabled
[    0.766925] bootconsole [earlycon0] disabled
[    0.777631] m25p80 spi0.0: mx25l1606e (2048 Kbytes)
[    0.784976] libphy: Fixed MDIO Bus: probed
[    0.789429] libphy: orion_mdio_bus: probed
[    0.794835] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    0.803269] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address b6:d0:5e:0f:a1:17
[    0.812845] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 7e:16:30:7e:c8:ac
[    0.821838] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.828431] ehci-pci: EHCI PCI platform driver
[    0.833020] ehci-orion: EHCI orion driver
[    0.837217] orion-ehci f1050000.ehci: EHCI Host Controller
[    0.842810] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    0.850679] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    0.870449] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    0.876709] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.883562] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.890835] usb usb1: Product: EHCI Host Controller
[    0.895734] usb usb1: Manufacturer: Linux 4.4.0-kirkwood-tld-1 ehci_hcd
[    0.902397] usb usb1: SerialNumber: f1050000.ehci
[    0.907865] hub 1-0:1.0: USB hub found
[    0.911722] hub 1-0:1.0: 1 port detected
[    0.916675] mousedev: PS/2 mouse device common for all mice
[    0.922999] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    0.930076] i2c /dev entries driver
[    0.935079] hidraw: raw HID events driver (C) Jiri Kosina
[    0.940942] drop_monitor: Initializing network drop monitor service
[    0.947498] NET: Registered protocol family 17
[    0.952269] Key type dns_resolver registered
[    0.957390] registered taskstats version 1
[    0.961586] Loading compiled-in X.509 certificates
[    0.966463] zswap: loaded using pool lzo/zbud
[    0.971956] Key type encrypted registered
[    0.976521] rtc-mv f1010300.rtc: setting system clock to 2013-01-01 07:09:42 UTC (1357024182)
[    0.986783] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    0.994377] Please append a correct "root=" boot option; here are the available partitions:
[    1.002878] 1f00            2048 mtdblock0  (driver?)
[    1.007961] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.016263] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.0-kirkwood-tld-1 #1
[    1.023251] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    1.029568] [<c0016784>] (unwind_backtrace) from [<c00129f8>] (show_stack+0x10/0x14)
[    1.037354] [<c00129f8>] (show_stack) from [<c00c2200>] (panic+0x80/0x214)
[    1.044269] [<c00c2200>] (panic) from [<c07d9280>] (mount_block_root+0x204/0x24c)
[    1.051792] [<c07d9280>] (mount_block_root) from [<c07d93b4>] (mount_root+0xec/0x118)
[    1.059665] [<c07d93b4>] (mount_root) from [<c07d9504>] (prepare_namespace+0x124/0x184)
[    1.067706] [<c07d9504>] (prepare_namespace) from [<c07d8e9c>] (kernel_init_freeable+0x208/0x258)
[    1.076622] [<c07d8e9c>] (kernel_init_freeable) from [<c05b16b4>] (kernel_init+0x8/0xe4)
[    1.084756] [<c05b16b4>] (kernel_init) from [<c000f090>] (ret_from_fork+0x14/0x24)
[    1.092366] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   82.490436] random: nonblocking pool is initialized


using a new sandisk cruizer glide 32GB formatted ext3 boot flag and rootfs label

it does boot into the root fs with old u-boot using the micro sd card
Re: GlobalScale Dreamplug
June 17, 2017 01:24AM
Success!!! Grabbed another usb stick same type and made the rootfs but also added a /boot/uEnvt.txt with the following:

dtb_file=/boot/dts/kirkwood-goflexnet.dtb

## yep forgot to change it and it worked, when changed to dreamplug it didn't work an bad machine id error

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x00000dde).

Available machine support:

ID (hex)	NAME
ffffffff	Generic DT based system
ffffffff	Marvell Kirkwood (Flattened Device Tree)

Please check your kernel config and/or bootloader.


devices=usb
devices=mmc usb ide
disks=0 1 2 3 4 5 6 7


here is the boot log

U-Boot 2016.05-tld-4-rc2 (Jun 16 2017 - 02:33:53 -0700)
Marvell-DreamPlug

SoC:   Kirkwood 88F6281_A1
SPI:   ready
DRAM:  512 MiB
WARNING: Caches not enabled
MMC:   kwsdio: 0
SF: Detected MX25L1605D with page size 256 Bytes, erase size 64 KiB, total 2 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0, egiga1
88E1116 Initialized on egiga0
88E1116 Initialized on egiga1
Hit any key to stop autoboot:  0 
Dreamplug> printenv
arcNumber=3550
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset
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 mmc ide
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-dreamplug.dtb
eth1addr=7e:16:30:7e:c8:ac
ethact=egiga0
ethaddr=b6:d0:5e:0f:a1:17
if_netconsole=ping $serverip
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
mainlineLinux=yes
mtdparts=mtdparts=spi0.0:0x100000@0(u-boot),0x10000@0x100000(stock_u_boot_env),0x10000@0x180000(stock_dtb)
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
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_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: 2889/65532 bytes
Dreamplug> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... ERROR: Invalid USB EP length (9)
ERROR: Invalid USB EP length (9)
5 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
Device NOT ready
   Request Sense returned 03 30 00
raise: Signal # 8 caught

Use USB retry period from the environment: 15 second(s)
Device NOT ready
   Request Sense returned 02 3A 00
raise: Signal # 8 caught

Use USB retry period from the environment: 15 second(s)
3 Storage Device(s) found

Reset IDE: ide_preinit failed
## Unknown partition table type 0

## Unknown partition table type 0


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

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	61315072  	d43b08e6-01	83 Boot
loading envs from usb 0 ...
** Bad device size - usb 0 **

no IDE devices available
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device size - usb 0 **
device usb 1:1
** Bad device size - usb 1 **
device usb 2:1
1 bytes read in 242 ms (0 Bytes/s)
Found bootable drive on usb 2
loading uImage ...
3154896 bytes read in 382 ms (7.9 MiB/s)
loading uInitrd ...
7179935 bytes read in 485 ms (14.1 MiB/s)
loading DTB /boot/dts/kirkwood-dreamplug.dtb ...
10267 bytes read in 758 ms (12.7 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.4.0-kirkwood-tld-1
   Created:      2016-02-19   5:55:25 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3154832 Bytes = 3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.4.0-kirkwood-tld-1
   Created:      2016-02-19   7:33:04 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7179871 Bytes = 6.8 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 0f927000, end 0ffffe5f ... OK
   Loading Device Tree to 0f921000, end 0f92681a ... OK

Starting kernel ...

Uncompressing Linux... done, booting the 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.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Jan 25 20:35:24 PST 2016
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Globalscale Technologies Dreamplug
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:0x100000@0(u-boot),0x10000@0x100000(stock_u_boot_env),0x10000@0x180000(stock_dtb)
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 503472K/524288K available (6007K kernel code, 573K rwdata, 1992K rodata, 296K init, 312K bss, 20816K 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 : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07d7ef4   (8000 kB)
[    0.000000]       .init : 0xc07d8000 - 0xc0822000   ( 296 kB)
[    0.000000]       .data : 0xc0822000 - 0xc08b169c   ( 574 kB)
[    0.000000]        .bss : 0xc08b169c - 0xc08ff9d0   ( 313 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000325] Console: colour dummy device 80x30
[    0.000357] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.090104] pid_max: default: 32768 minimum: 301
[    0.090218] Security Framework initialized
[    0.090296] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090317] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091110] Initializing cgroup subsys io
[    0.091144] Initializing cgroup subsys devices
[    0.091169] Initializing cgroup subsys freezer
[    0.091202] Initializing cgroup subsys net_cls
[    0.091285] CPU: Testing write buffer coherency: ok
[    0.091737] Setting up static identity map for 0x8200 - 0x8258
[    0.092036] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.095748] devtmpfs: initialized
[    0.100271] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.100733] prandom: seed boundary self test passed
[    0.104491] prandom: 100 self tests passed
[    0.104516] pinctrl core: initialized pinctrl subsystem
[    0.105890] NET: Registered protocol family 16
[    0.106340] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.130106] cpuidle: using governor ladder
[    0.160106] cpuidle: using governor menu
[    0.160526] Feroceon L2: Enabling L2
[    0.160572] Feroceon L2: Cache support initialised.
[    0.160954] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.161063] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    0.166230] No ATAGs?
[    0.201597] vgaarb: loaded
[    0.201960] usbcore: registered new interface driver usbfs
[    0.202043] usbcore: registered new interface driver hub
[    0.202106] usbcore: registered new device driver usb
[    0.203198] clocksource: Switched to clocksource orion_clocksource
[    0.258539] NET: Registered protocol family 2
[    0.259326] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.259389] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.259441] TCP: Hash tables configured (established 4096 bind 4096)
[    0.259509] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.259533] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.259730] NET: Registered protocol family 1
[    0.260128] RPC: Registered named UNIX socket transport module.
[    0.260141] RPC: Registered udp transport module.
[    0.260148] RPC: Registered tcp transport module.
[    0.260156] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.260434] Unpacking initramfs...
[    0.903417] Freeing initrd memory: 7012K (cf927000 - d0000000)
[    0.903542] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.904631] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.904704] audit: initializing netlink subsys (disabled)
[    0.904755] audit: type=2000 audit(0.900:1): initialized
[    0.905106] Initialise system trusted keyring
[    0.905498] zbud: loaded
[    0.905792] VFS: Disk quotas dquot_6.6.0
[    0.905851] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.906392] NFS: Registering the id_resolver key type
[    0.906438] Key type id_resolver registered
[    0.906447] Key type id_legacy registered
[    0.906473] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.906488] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.906718] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.907259] Key type big_key registered
[    0.927476] Key type asymmetric registered
[    0.927499] Asymmetric key parser 'x509' registered
[    0.927599] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.927620] io scheduler noop registered
[    0.927636] io scheduler deadline registered
[    0.927699] io scheduler cfq registered (default)
[    0.929050] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.929728] irq: Cannot allocate irq_descs @ IRQ35, assuming pre-allocated
[    0.930152] irq: Cannot allocate irq_descs @ IRQ67, assuming pre-allocated
[    0.930683] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.963899] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.964125] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.003897] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.004383] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.005779] console [ttyS0] disabled
[    1.005841] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    1.620870] console [ttyS0] enabled
[    1.626398] m25p80 spi0.0: mx25l1606e (2048 Kbytes)
[    1.631319] 3 cmdlinepart partitions found on MTD device spi0.0
[    1.637324] Creating 3 MTD partitions on "spi0.0":
[    1.642139] 0x000000000000-0x000000100000 : "u-boot"
[    1.648412] 0x000000100000-0x000000110000 : "stock_u_boot_env"
[    1.655538] 0x000000180000-0x000000190000 : "stock_dtb"
[    1.662949] libphy: Fixed MDIO Bus: probed
[    1.667457] libphy: orion_mdio_bus: probed
[    1.681004] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    1.689568] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address b6:d0:5e:0f:a1:17
[    1.699148] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 7e:16:30:7e:c8:ac
[    1.708143] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.714779] ehci-pci: EHCI PCI platform driver
[    1.719318] ehci-orion: EHCI orion driver
[    1.723577] orion-ehci f1050000.ehci: EHCI Host Controller
[    1.729117] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    1.737018] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    1.753237] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    1.759493] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.766345] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.773618] usb usb1: Product: EHCI Host Controller
[    1.778517] usb usb1: Manufacturer: Linux 4.4.0-kirkwood-tld-1 ehci_hcd
[    1.785180] usb usb1: SerialNumber: f1050000.ehci
[    1.790692] hub 1-0:1.0: USB hub found
[    1.794549] hub 1-0:1.0: 1 port detected
[    1.799493] mousedev: PS/2 mouse device common for all mice
[    1.805825] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    1.812904] i2c /dev entries driver
[    1.817876] hidraw: raw HID events driver (C) Jiri Kosina
[    1.823726] drop_monitor: Initializing network drop monitor service
[    1.830281] NET: Registered protocol family 17
[    1.835075] Key type dns_resolver registered
[    1.840208] registered taskstats version 1
[    1.844406] Loading compiled-in X.509 certificates
[    1.849272] zswap: loaded using pool lzo/zbud
[    1.862380] Key type encrypted registered
[    1.867050] rtc-mv f1010300.rtc: setting system clock to 2013-01-01 07:48:48 UTC (1357026528)
[    1.877973] Freeing unused kernel memory: 296K (c07d8000 - c0822000)
Loading, please wait...
[    1.954810] systemd-udevd[83]: starting version 215
[    1.961742] random: systemd-udevd urandom read with 3 bits of entropy available
[    2.113295] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.141601] SCSI subsystem initialized
[    2.217825] sata_mv f1080000.sata: slots 32 ports 1
[    2.239164] mmc0: new high speed SDIO card at address 0001
[    2.262300] scsi host0: sata_mv
[    2.273058] ata1: SATA max UDMA/133 irq 33
[    2.278034] usb 1-1: New USB device found, idVendor=1a40, idProduct=0101
[    2.290400] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.304948] usb 1-1: Product: USB 2.0 Hub
[    2.314056] hub 1-1:1.0: USB hub found
[    2.321902] hub 1-1:1.0: 4 ports detected
[    2.603228] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[    2.653237] ata1: SATA link down (SStatus 0 SControl F300)
[    2.715670] usb 1-1.1: New USB device found, idVendor=05e3, idProduct=0726
[    2.722613] usb 1-1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=2
[    2.731608] usb 1-1.1: Product: USB Storage
[    2.735969] usb 1-1.1: SerialNumber: 000000009910
[    2.751055] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[    2.757792] scsi host1: usb-storage 1-1.1:1.0
[    2.764162] usbcore: registered new interface driver usb-storage
[    2.773368] usbcore: registered new interface driver uas
[    2.823240] usb 1-1.2: new high-speed USB device number 4 using orion-ehci
[    2.934153] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5575
[    2.941076] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.948454] usb 1-1.2: Product: Cruzer Glide
[    2.952743] usb 1-1.2: Manufacturer: SanDisk
[    2.957054] usb 1-1.2: SerialNumber: 4C530001101019121442
[    2.965927] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    2.974098] scsi host2: usb-storage 1-1.2:1.0
[    3.053232] usb 1-1.4: new full-speed USB device number 5 using orion-ehci
[    3.164403] usb 1-1.4: New USB device found, idVendor=0d8c, idProduct=000c
[    3.171325] usb 1-1.4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    3.178706] usb 1-1.4: Product: C-Media USB Headphone Set  
[    3.199089] input: C-Media USB Headphone Set   as /devices/platform/ocp@f1000000/f1050000.ehci/usb1/1-1/1-1.4/1-1.4:1.3/0003:0D8C:000C.0001/input/input0
[    3.263720] hid-generic 0003:0D8C:000C.0001: input,hidraw0: USB HID v1.00 Device [C-Media USB Headphone Set  ] on usb-f1050000.ehci-1.4/input3
[    3.277603] usbcore: registered new interface driver usbhid
[    3.283270] usbhid: USB HID core driver
[    3.774249] scsi 1:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9910 PQ: 0 ANSI: 0
[    3.783104] scsi 1:0:0:1: Direct-Access     Generic  STORAGE DEVICE   9910 PQ: 0 ANSI: 0
[    3.805897] sd 1:0:0:0: [sda] Unit Not Ready
[    3.810207] sd 1:0:0:0: [sda] Sense Key : Medium Error [current] 
[    3.817951] sd 1:0:0:1: [sdb] Attached SCSI removable disk
[    3.824245] sd 1:0:0:0: [sda] Add. Sense: Incompatible medium installed
[    3.834311] sd 1:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[    3.843817] sd 1:0:0:0: [sda] Sense Key : Medium Error [current] 
[    3.849954] sd 1:0:0:0: [sda] Add. Sense: Incompatible medium installed
[    3.857688] sd 1:0:0:0: [sda] Test WP failed, assume Write Enabled
[    3.865059] sd 1:0:0:0: [sda] Asking for cache data failed
[    3.870579] sd 1:0:0:0: [sda] Assuming drive cache: write through
[    3.881302] sd 1:0:0:0: [sda] Unit Not Ready
[    3.885686] sd 1:0:0:0: [sda] Sense Key : Medium Error [current] 
[    3.891820] sd 1:0:0:0: [sda] Add. Sense: Incompatible medium installed
[    3.901558] sd 1:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[    3.911062] sd 1:0:0:0: [sda] Sense Key : Medium Error [current] 
[    3.917227] sd 1:0:0:0: [sda] Add. Sense: Incompatible medium installed
[    3.925939] sd 1:0:0:0: [sda] Attached SCSI removable disk
[    3.933929] sd 1:0:0:0: Attached scsi generic sg0 type 0
[    3.942310] sd 1:0:0:1: Attached scsi generic sg1 type 0
[    3.954964] sd 1:0:0:0: ioctl_internal_command return code = 8000002
[    3.961356] sd 1:0:0:0: Sense Key : Medium Error [current] 
[    3.979667] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Glide     1.27 PQ: 0 ANSI: 6
[    3.992295] sd 1:0:0:0: Add. Sense: Incompatible medium installed
[    4.000794] sd 2:0:0:0: Attached scsi generic sg2 type 0
[    4.006360] sd 2:0:0:0: [sdc] 61318208 512-byte logical blocks: (31.3 GB/29.2 GiB)
[    4.018203] sd 2:0:0:0: [sdc] Write Protect is off
[    4.029732] sd 2:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.051728]  sdc: sdc1
[    4.058350] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[    4.079060] sd 1:0:0:0: ioctl_internal_command return code = 8000002
[    4.085598] sd 1:0:0:0: Sense Key : Medium Error [current] 
[    4.091255] sd 1:0:0:0: Add. Sense: Incompatible medium installed
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.
modprobe: module ext3 not found in modules.dep
Begin: Checking root file system ... fsck from util-linux 2.25.2
fsck: error 2 (No such file or directory) while executing fsck.ext3 for /dev/sdc1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[   17.883856] EXT4-fs (sdc1): mounting ext3 file system using the ext4 subsystem
[   17.903937] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   19.216794] systemd-udevd[302]: starting version 215
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   19.758432] orion_wdt: Initial timeout 21 sec
[   19.768708] marvell-cesa: probe of f1030000.crypto failed with error -524
[   19.935093] sd 1:0:0:0: ioctl_internal_command return code = 8000002
[   19.941523] sd 1:0:0:0: Sense Key : Medium Error [current] 
[   20.035441] sd 1:0:0:0: Add. Sense: Incompatible medium installed
[   20.161297] random: nonblocking pool is initialized
[   20.174741] sd 1:0:0:0: ioctl_internal_command return code = 8000002
[   20.181421] sd 1:0:0:0: Sense Key : Medium Error [current] 
[   20.213993] Bluetooth: Core ver 2.21
[   20.217698] NET: Registered protocol family 31
[   20.222162] Bluetooth: HCI device and connection manager initialized
[   20.238726] sd 1:0:0:0: Add. Sense: Incompatible medium installed
[   20.255463] usbcore: registered new interface driver snd-usb-audio
[   20.322703] Bluetooth: HCI socket layer initialized
[   20.355814] Bluetooth: L2CAP socket layer initialized
[   20.360933] Bluetooth: SCO socket layer initialized
[   20.368026] mwifiex_sdio mmc0:0001:1: Direct firmware load for mrvl/sd8787_uapsta.bin failed with error -2
[   20.386003] mwifiex_sdio mmc0:0001:1: Failed to get firmware mrvl/sd8787_uapsta.bin
[   20.401917] mwifiex_sdio mmc0:0001:1: info: mwifiex_fw_dpc: unregister device
[   20.441004] Bluetooth: vendor=0x2df, device=0x911a, class=255, fn=2
[   20.493403] btmrvl_sdio mmc0:0001:2: Direct firmware load for mrvl/sd8787_uapsta.bin failed with error -2
[   20.503038] Bluetooth: request_firmware(firmware) failed, error code = -2
[   20.527504] Bluetooth: Failed to download firmware!
[   20.532415] Bluetooth: Downloading firmware failed!
[   20.537712] Bluetooth: vendor=0x2df, device=0x911b, class=255, fn=3
[   20.563323] btmrvl_sdio mmc0:0001:3: Direct firmware load for mrvl/sd8787_uapsta.bin failed with error -2
[   20.572939] Bluetooth: request_firmware(firmware) failed, error code = -2
[   20.579800] Bluetooth: Failed to download firmware!
[   20.584738] Bluetooth: Downloading firmware failed!
done.
[ ok ] Activating swap...done.
[   21.348625] EXT4-fs (sdc1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: Superblock last mount time (Fri Jun 16 23:22:33 2017,
	now = Mon Dec 31 23:49:07 2012) is in the future.
FIXED.
rootfs: Superblock last write time (Fri Jun 16 23:33:10 2017,
	now = Mon Dec 31 23:49:07 2012) is in the future.
FIXED.
rootfs: 14516/1916928 files (7.3% non-contiguous), 296658/7664384 blocks       
done.
[   48.444375] EXT4-fs (sdc1): re-mounted. Opts: errors=remount-ro
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.
[ ok ] Loading kernel modules...done.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[   50.921785] NET: Registered protocol family 10
[   51.013660] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/b6:d0:5e:0f:a1:17
Sending on   LPF/eth0/b6:d0:5e:0f:a1:17
Sending on   Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
No DHCPOFFERS received.
Trying recorded lease 192.168.0.16
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.

--- 192.168.0.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

bound: renewal in 98914792 seconds.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1248 (syslogd)
. ok 
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1247 (klogd)
. ok 

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password: 
Last login: Fri Feb 19 20:08:26 PST 2016 from 192.168.0.100 on pts/0
Linux debian 4.4.0-kirkwood-tld-1 #1 PREEMPT Mon Jan 25 20:35:24 PST 2016 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~# uname -a
Linux debian 4.4.0-kirkwood-tld-1 #1 PREEMPT Mon Jan 25 20:35:24 PST 2016 armv5tel GNU/Linux
Re: GlobalScale Dreamplug
June 17, 2017 02:10AM
Cool!

1. The /boot/uEnvt.txt should not be there. The dtb_file was loaded correctly:

loading DTB /boot/dts/kirkwood-dreamplug.dtb ...

So you should remove /boot/uEnvt.txt. To make sure it does not interfer with the boot envs in the future.

2. Everything in your log looks good as my first boot. And the reason dmesg showed Wifi and Bluetooth FW errors was because you have not installed libertas-firmware.


Where we are:

- Have not tried booting with eSATA yet.

- We should try Wifi and Bluetooth. It seems working OK. But sometimes it spits out errors during initialization and then completed successfully.

- The SD card still have problem in u-boot, but should work fine in Debian. It seems the Kirkwood u-boot MMC driver that I am using having some timing problem with this drive. But in Debian it is working fine. If I can't figure out the u-boot MMC driver then we'll live without booting with it for a while. There is no GPL for this so it is hard to find out info.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 06/17/2017 02:16AM by bodhi.
Dojo
Re: GlobalScale Dreamplug
June 17, 2017 02:29AM
bodhi Wrote:
-------------------------------------------------------
> - The SD card still have problem in u-boot, but sh
> ould work fine in Debian. It seems the Kirkwood u-
> boot MMC driver that I am using having some timing
> problem with this drive. But in Debian it is worki
> ng fine. If I can't figure out the u-boot MMC driv
> er then we'll live without booting with it for a w
> hile. There is no GPL for this so it is hard to fi
> nd out info.

Internal and external SD card readers are considered USB devices on Dreamplug AFAIK..
Re: GlobalScale Dreamplug
June 17, 2017 02:57AM
Dojo,

> Internal and external SD card readers are consider
> ed USB devices on Dreamplug AFAIK..

Yes, I've also noticed the drive letter is for USB/HDD, i.e. /dev/sda for internal and /dev/sdb for external.

Are they wired to the USB bus?

----

Ah, I see. They are indeed USB internally.

root@Dreamplug:~# lsusb
Bus 001 Device 005: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter
Bus 001 Device 004: ID 0781:5583 SanDisk Corp. 
Bus 001 Device 003: ID 05e3:0726 Genesys Logic, Inc. SD Card Reader
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Thanks for the hint :)

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 2 time(s). Last edit at 06/17/2017 03:09AM by bodhi.
Re: GlobalScale Dreamplug
June 17, 2017 04:19PM
Where we are:


- We should try Wifi and Bluetooth. It seems working OK. But sometimes it spits out errors during initialization and then completed successfully.

- The SD card and USB port booting is now working. Thanks to Dojo info! I took a closer look, and it is just a USB SD card reader that provides 2 USB devices (sda and sdb). The external SD slot is sdb and internal slot is sda. The external USB port is sdc.

- Have not tried booting with eSATA yet.

- LEDs currently have 3 controllable settings. Have not figured out what GPIO the System LED is on, and that's needed to turn it off. Perhaps we can find out somewhere in stock rootfs.

/sys/class/leds/dreamplug:blue:bluetooth
/sys/class/leds/dreamplug:green:wifi
/sys/class/leds/dreamplug:green:wifi_ap

stock OS is on:

/dev/sda2 on /media/dream_fs type ext3 (rw,nosuid,nodev,noexec,noatime,errors=remount-ro,data=ordered,user)

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: GlobalScale Dreamplug
June 17, 2017 11:02PM
bodhi Wrote:
-------------------------------------------------------
> Where we are:
>
>
> - We should try Wifi and Bluetooth. It seems worki
> ng OK. But sometimes it spits out errors during in
> itialization and then completed successfully.
>
> - The SD card and USB port booting is now working.
> Thanks to Dojo info! I took a closer look, and it
> is just a USB SD card reader that provides 2 USB d
> evices (sda and sdb). The external SD slot is sdb
> and internal slot is sda. The external USB port is
> sdc.
>
> - Have not tried booting with eSATA yet.
>
> - LEDs currently have 3 controllable settings. Hav
> e not figured out what GPIO the System LED is on,
> and that's needed to turn it off. Perhaps we can f
> ind out somewhere in stock rootfs.
>
>
> /sys/class/leds/dreamplug:blue:bluetooth
> /sys/class/leds/dreamplug:green:wifi
> /sys/class/leds/dreamplug:green:wifi_ap
>
>

this what you lookin for?

http://elixir.free-electrons.com/linux/v3.6/source/arch/arm/boot/dts/kirkwood-dreamplug.dts

> stock OS is on:
>
>
> /dev/sda2 on /media/dream_fs type ext3 (rw,nosuid,
> nodev,noexec,noatime,errors=remount-ro,data=ordere
> d,user)
> 
Re: GlobalScale Dreamplug
June 18, 2017 12:35AM
feas,

We already are using that definition. The latest (best) DTS is in the mainline kernel DTS. So in Debian now, you can see these LEDs

And control them. Example:
echo default-on > /sys/class/leds/dreamplug:blue:bluetooth
or
echo none > /sys/class/leds/dreamplug:blue:bluetooth

What I was looking for is whether it is possible to control the Power LED. To do this, it needs to be a GPIO enable LED (not something hardwired). You could boot into stock OS, and do a shutdown to see if the LED was turned off. If that is the case, then there is a strong possibility that is a GPIO that nobody knows about yet.

I browsed the stock rootfs (mouting it), but have not found LED control for the Power LED. My current testing box's stock root password is not the default, so I cannot log in the running stock system and have not fixed that yet.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 06/18/2017 12:39AM by bodhi.
Re: GlobalScale Dreamplug
June 18, 2017 12:58AM
bodhi Wrote:
-------------------------------------------------------
> feas,
>
> We already are using that definition. The latest (
> best) DTS is in the mainline kernel DTS. So in Deb
> ian now, you can see these LEDs
>
> And control them. Example:
>
> echo default-on > /sys/class/leds/dreamplug:blue:b
> luetooth
>
> or
>
> echo none > /sys/class/leds/dreamplug:blue:bluetoo
> th
>
>
> What I was looking for is whether it is possible t
> o control the Power LED. To do this, it needs to b
> e a GPIO enable LED (not something hardwired). You
> could boot into stock OS, and do a shutdown to see
> if the LED was turned off. If that is the case, th
> en there is a strong possibility that is a GPIO th
> at nobody knows about yet.
>

The green light always stays on when power is available even when shutdown.

> I browsed the stock rootfs (mouting it), but have
> not found LED control for the Power LED. My curren
> t testing box's stock root password is not the def
> ault, so I cannot log in the running stock system
> and have not fixed that yet.
Re: GlobalScale Dreamplug
June 18, 2017 01:14AM
> The green light always stays on when power is avai
> lable even when shutdown.
>

Bad news :) if stock OS left it on, then perhaps it is not possible to comletely power off (like the Dockstar).

I'm going to flash RC3 version to SPI and then upload it here. It is a little easier to test with u-boot permanently flashed.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: GlobalScale Dreamplug
June 18, 2017 02:32AM
Don't know if you have come across this but it seems like a good resource to me.

https://www.spinifex.com.au/plugs/dplugintro.html
Re: GlobalScale Dreamplug
June 18, 2017 03:51AM
Thanks feas! that's a good source that I have not seen. But it did not give me any more info than we already have. Except about Wifi (I have not done for Wifi anything other than installing firmware-libertas).

And interestingly, it shows an older version than what I have on my box. Looks like there are many FW versions out there.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: GlobalScale Dreamplug
June 18, 2017 04:15AM
Hi feas,

Here is an interesting piece of info in u-boot.

#define DREAMPLUG_OE_VAL_HIGH	(0xf << 16) /* 4 LED Pins high */

Does (0xf << 16) result in bits 15, 16, 17, and 18 set to 1? I hate clever math :) Can you doublecheck my calculation?

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: GlobalScale Dreamplug
June 18, 2017 09:16AM
bodhi Wrote:
-------------------------------------------------------
> Hi feas,
>
> Here is an interesting piece of info in u-boot.
>
>
> #define DREAMPLUG_OE_VAL_HIGH	(0xf << 16) /* 4 LED
> Pins high */
>
>
> Does (0xf << 16) result in bits 15, 16, 17, and 18
> set to 1? I hate clever math :) Can you doublechec
> k my calculation?

sorry :( I don't even balance my check book.

But if it helps. I did find the same in other .h files



Edited 1 time(s). Last edit at 06/18/2017 10:18AM by feas.
Re: GlobalScale Dreamplug
June 18, 2017 12:46PM
(0xf << 16) = 0xF0000, so bits 16, 17, 18, and 19 are 1s (assuming the first bit is 0).



Edited 1 time(s). Last edit at 06/18/2017 12:54PM by renojim.
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: