Welcome! Log In Create A New Profile

Advanced

help booting debian on Pogoplug mobile

Posted by ahmed 
help booting debian on Pogoplug mobile
October 08, 2017 07:15PM
I don't know if the pogoplug mobile can be recovered at this point. I've a serial port connected to USB and I was able to use screen to monitor the boot progress and/or make setenv changes. I was able to

Here is the boot log (printenv is also included before boot):

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

SoC: Kirkwood 88F6192_A1
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 128 MiB
MMC: kwsdio: 0
In: serial
Out: serial
Err: serial
Net: egiga0
Hit any key to stop autoboot: 0

Pogov4> printenv
Quote
printenv
arcNumber=3960
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-pogoplug_v4.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
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
machid=f78
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
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: 2861/131068 bytes
Pogov4> boot
Quote
Boot log
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 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 1480 3793464 bee049ab-01 0e Boot
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 123 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3814692 bytes read in 346 ms (10.5 MiB/s)
loading uInitrd ...
** File not found /boot/uInitrd **
loading DTB /boot/dts/kirkwood-pogoplug_v4.dtb ...
10284 bytes read in 1131 ms (8.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-4.12.8-kirkwood-tld-1
Created: 2017-10-09 0:15:25 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3814628 Bytes = 3.6 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 07b09000, end 07b0e82b ... OK
Using machid 0xf78 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.12.8-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #1 PREEMPT Thu Aug 17 04:51:51 PDT 2017
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] OF: fdt: Machine model: Pogoplug v4
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyS0,115200
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 116508K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 14564K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0900000 (9184 kB)
[ 0.000000] .init : 0xc0c00000 - 0xc0d00000 (1024 kB)
[ 0.000000] .data : 0xc0d00000 - 0xc0db32d4 ( 717 kB)
[ 0.000000] .bss : 0xc0db9dac - 0xc0e01fc0 ( 289 kB)
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[ 0.000013] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[ 0.000068] Switching to timer-based delay loop, resolution 6ns
[ 0.000782] Console: colour dummy device 80x30
[ 0.000833] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[ 0.000871] pid_max: default: 32768 minimum: 301
[ 0.001166] Security Framework initialized
[ 0.001385] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001415] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.002854] CPU: Testing write buffer coherency: ok
[ 0.004363] Setting up static identity map for 0x100000 - 0x100058
[ 0.004761] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[ 0.010302] devtmpfs: initialized
[ 0.015531] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.015572] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.016129] prandom: seed boundary self test passed
[ 0.022530] prandom: 100 self tests passed
[ 0.022556] pinctrl core: initialized pinctrl subsystem
[ 0.024304] NET: Registered protocol family 16
[ 0.024929] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.027166] cpuidle: using governor ladder
[ 0.027271] cpuidle: using governor menu
[ 0.027807] Feroceon L2: Enabling L2
[ 0.027871] Feroceon L2: Cache support initialised.
[ 0.028402] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[ 0.035398] No ATAGs?
[ 0.048445] vgaarb: loaded
[ 0.048934] SCSI subsystem initialized
[ 0.049591] usbcore: registered new interface driver usbfs
[ 0.049698] usbcore: registered new interface driver hub
[ 0.049822] usbcore: registered new device driver usb
[ 0.051365] clocksource: Switched to clocksource orion_clocksource
[ 0.185004] VFS: Disk quotas dquot_6.6.0
[ 0.185122] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.199918] NET: Registered protocol family 2
[ 0.201000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.201037] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.201068] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.201198] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.201232] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.201560] NET: Registered protocol family 1
[ 0.202137] RPC: Registered named UNIX socket transport module.
[ 0.202155] RPC: Registered udp transport module.
[ 0.202166] RPC: Registered tcp transport module.
[ 0.202176] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.202606] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.203902] audit: initializing netlink subsys (disabled)
[ 0.204567] Initialise system trusted keyrings
[ 0.204650] Key type blacklist registered
[ 0.204777] audit: type=2000 audit(0.202:1): state=initialized audit_enabled=0 res=1
[ 0.204879] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 0.204996] zbud: loaded
[ 0.206375] NFS: Registering the id_resolver key type
[ 0.206413] Key type id_resolver registered
[ 0.206426] Key type id_legacy registered
[ 0.206452] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.206467] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 0.206749] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.207023] fuse init (API version 7.26)
[ 0.207576] orangefs_debugfs_init: called with debug mask: :none: :0:
[ 0.207979] orangefs_init: module version upstream loaded
[ 0.207994] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[ 2.551376] random: fast init done
[ 9.086884] Key type asymmetric registered
[ 9.086906] Asymmetric key parser 'x509' registered
[ 9.087005] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 9.087022] io scheduler noop registered
[ 9.087034] io scheduler deadline registered
[ 9.087148] io scheduler cfq registered (default)
[ 9.088423] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 47
[ 9.088446] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 49
[ 9.088906] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[ 9.092101] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[ 9.092132] pci_bus 0000:00: root bus resource [io 0x1000-0xfffff]
[ 9.092151] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[ 9.092171] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 9.092653] PCI: bus0: Fast back to back transfers disabled
[ 9.092687] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 9.092913] PCI: bus1: Fast back to back transfers enabled
[ 9.093021] pci 0000:00:01.0: PCI bridge to [bus 01]
[ 9.093813] mv_xor f1060800.xor: Marvell shared XOR driver
[ 9.152550] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[ 9.152869] mv_xor f1060900.xor: Marvell shared XOR driver
[ 9.212515] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[ 9.213149] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 9.215035] console [ttyS0] disabled
[ 9.215128] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 10416666) is a 16550A
[ 9.859924] console [ttyS0] enabled
[ 9.875840] loop: module loaded
[ 9.879769] sata_mv f1080000.sata: slots 32 ports 2
[ 9.888556] scsi host0: sata_mv
[ 9.892358] scsi host1: sata_mv
[ 9.895832] ata1: SATA max UDMA/133 irq 32
[ 9.899919] ata2: SATA max UDMA/133 irq 32
[ 9.905311] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[ 9.911742] nand: Hynix H27U1G8F2BTR-BC
[ 9.915567] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 9.923147] Scanning device for bad blocks
[ 10.001892] Bad eraseblock 899 at 0x000007060000
[ 10.016830] 5 ofpart partitions found on MTD device orion_nand
[ 10.022666] Creating 5 MTD partitions on "orion_nand":
[ 10.027789] 0x000000000000-0x000000200000 : "u-boot"
[ 10.034575] 0x000000200000-0x000000500000 : "uImage"
[ 10.041340] 0x000000500000-0x000000800000 : "uImage2"
[ 10.048264] 0x000000800000-0x000001000000 : "failsafe"
[ 10.055437] 0x000001000000-0x000008000000 : "root"
[ 10.064706] libphy: Fixed MDIO Bus: probed
[ 10.069906] libphy: orion_mdio_bus: probed
[ 10.075286] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[ 10.232994] ata1: SATA link down (SStatus 0 SControl F300)
[ 10.582884] ata2: SATA link down (SStatus 0 SControl F300)
[ 11.193383] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[ 11.202264] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 11.208793] ehci-pci: EHCI PCI platform driver
[ 11.213342] ehci-orion: EHCI orion driver
[ 11.217634] orion-ehci f1050000.ehci: EHCI Host Controller
[ 11.223181] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[ 11.231044] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[ 11.261413] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[ 11.267739] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 11.274541] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 11.281760] usb usb1: Product: EHCI Host Controller
[ 11.286624] usb usb1: Manufacturer: Linux 4.12.8-kirkwood-tld-1 ehci_hcd
[ 11.293326] usb usb1: SerialNumber: f1050000.ehci
[ 11.298962] hub 1-0:1.0: USB hub found
[ 11.302827] hub 1-0:1.0: 1 port detected
[ 11.307682] usbcore: registered new interface driver usb-storage
[ 11.314232] mousedev: PS/2 mouse device common for all mice
[ 11.661412] usb 1-1: new high-speed USB device number 2 using orion-ehci
[ 11.904176] usb 1-1: New USB device found, idVendor=058f, idProduct=6387
[ 11.910872] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 11.918032] usb 1-1: Product: Mass Storage
[ 11.922139] usb 1-1: SerialNumber: A66A4259
[ 11.927361] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 11.933952] scsi host2: usb-storage 1-1:1.0
[ 12.401406] rtc-mv f1010300.rtc: internal RTC not ticking
[ 12.407053] i2c /dev entries driver
[ 12.412622] hidraw: raw HID events driver (C) Jiri Kosina
[ 12.418562] drop_monitor: Initializing network drop monitor service
[ 12.425261] NET: Registered protocol family 17
[ 12.429806] Key type dns_resolver registered
[ 12.435111] registered taskstats version 1
[ 12.439195] Loading compiled-in X.509 certificates
[ 12.444091] zswap: loaded using pool lzo/zbud
[ 12.452033] Key type big_key registered
[ 12.458457] Key type encrypted registered
[ 12.464381] hctosys: unable to open rtc device (rtc0)
[ 12.470201] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 12.477877] Please append a correct "root=" boot option; here are the available partitions:
[ 12.486290] 1f00 2048 mtdblock0
[ 12.486297] (driver?)
[ 12.492876] 1f01 3072 mtdblock1
[ 12.492882] (driver?)
[ 12.499397] 1f02 3072 mtdblock2
[ 12.499401] (driver?)
[ 12.505965] 1f03 8192 mtdblock3
[ 12.505971] (driver?)
[ 12.512514] 1f04 114688 mtdblock4
[ 12.512520] (driver?)
[ 12.519034] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 12.527268] CPU: 0 PID: 1 Comm: swapper Not tainted 4.12.8-kirkwood-tld-1 #1
[ 12.534286] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[ 12.540575] [<c010e79c>] (unwind_backtrace) from [<c010a964>] (show_stack+0x10/0x14)
[ 12.548311] [<c010a964>] (show_stack) from [<c01da860>] (panic+0xb0/0x24c)
[ 12.555174] [<c01da860>] (panic) from [<c0c0128c>] (mount_block_root+0x1a4/0x27c)
[ 12.562638] [<c0c0128c>] (mount_block_root) from [<c0c0142c>] (mount_root+0xc8/0x11c)
[ 12.570449] [<c0c0142c>] (mount_root) from [<c0c015c8>] (prepare_namespace+0x148/0x188)
[ 12.578433] [<c0c015c8>] (prepare_namespace) from [<c0c00e68>] (kernel_init_freeable+0x1e4/0x250)
[ 12.587291] [<c0c00e68>] (kernel_init_freeable) from [<c082928c>] (kernel_init+0x8/0x108)
[ 12.595448] [<c082928c>] (kernel_init) from [<c0106f70>] (ret_from_fork+0x14/0x24)
[ 12.603000] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 12.972434] scsi 2:0:0:0: Direct-Access Flash Disk 8.07 PQ: 0 ANSI: 2
[ 12.994359] sd 2:0:0:0: [sda] 3794944 512-byte logical blocks: (1.94 GB/1.81 GiB)
[ 13.011839] sd 2:0:0:0: [sda] Write Protect is off
[ 13.016641] sd 2:0:0:0: [sda] Mode Sense: 03 00 00 00
[ 13.031839] sd 2:0:0:0: [sda] No Caching mode page found
[ 13.037142] sd 2:0:0:0: [sda] Assuming drive cache: write through
[ 13.174059] sda: sda1
[ 13.183342] sd 2:0:0:0: [sda] Attached SCSI removable disk

Any help would be appreciated. I followed the steps in Linux Kernel 4.12.8 Kirkwood package and Debian rootfs

Also, assuming if the issue above can be resolved and I can get the pogoplug boot from USB, I'd appreciate if you can point me towards the required changes so I can get it to boot from SDCard since the pogoplug mobile has one USB port and my goal is to setup it up as SAMBA server and connect a large USB backup drive to the single USB port.
Re: help booting debian on Pogoplug mobile
October 08, 2017 08:02PM
ahmed,


> I don't know if the pogoplug mobile can be
> recovered at this point.

Uboot installation actually looks pretty good.

> I've a serial port
> connected to USB and I was able to use screen to
> monitor the boot progress and/or make setenv
> changes. I was able to
>
> Here is the boot log (printenv is also included
> before boot):
>
>
Quote
Initial Boot
> U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:41:47
> -0700)
> Pogoplug V4
>
> SoC: Kirkwood 88F6192_A1
> DRAM: 128 MiB
> WARNING: Caches not enabled
> NAND: 128 MiB
> MMC: kwsdio: 0
> In: serial
> Out: serial
> Err: serial
> Net: egiga0
> Hit any key to stop autoboot: 0
>
>
> Pogov4> printenv
>
Quote
printenv
> arcNumber=3960
> bootcmd=run bootcmd_uenv; run scan_disk; run
> set_bootargs; run bootcmd_exec
> bootcmd_exec=run load_uimage; if run load_initrd;
> then if run load_dtb; then bootm $load_uimage_addr
> $load_initrd_addr $load_dtb_addr; else bootm
> $load_uimage_addr $load_initrd_addr; fi; else if
> run load_dtb; then bootm $load_uimage_addr -
> $load_dtb_addr; else bootm $load_uimage_addr; fi;
> fi
> bootcmd_uenv=run uenv_load; if test $uenv_loaded
> -eq 1; then run uenv_import; fi
> bootdelay=10
> bootdev=usb
> device=0:1
> devices=usb ide mmc
> disks=0 1 2 3
> dtb_file=/boot/dts/kirkwood-pogoplug_v4.dtb
> ethact=egiga0
> ethaddr=52:3b:20:9c:11:51
> 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
> machid=f78
> mainlineLinux=yes
> mtdids=nand0=orion_nand
> mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
> partition=nand0,2
> preboot_nc=run if_netconsole start_netconsole
> scan_disk=echo running scan_disk ...; scan_done=0;
> setenv scan_usb "usb start"; setenv scan_ide "ide
> reset"; setenv scan_mmc "mmc rescan"; for dev in
> $devices; do if test $scan_done -eq 0; then echo
> Scan device $dev; run scan_$dev; for disknum in
> $disks; do if test $scan_done -eq 0; then echo
> device $dev $disknum:1; if load $dev $disknum:1
> $load_uimage_addr /boot/uImage 1; then
> scan_done=1; echo Found bootable drive on $dev
> $disknum; setenv device $disknum:1; setenv bootdev
> $dev; fi; fi; done; fi; done
> 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: 2861/131068 bytes
>
> Pogov4> boot
>
Quote
Boot log
> starting USB...
> USB0: USB EHCI 1.00
> scanning bus 0 for devices... 2 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 1480 3793464
> bee049ab-01 0e Boot
> 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 123 ms (0 Bytes/s)
> Found bootable drive on usb 0
> loading uImage ...
> 3814692 bytes read in 346 ms (10.5 MiB/s)
> loading uInitrd ...
> ** File not found /boot/uInitrd **

But you somehow lost the uInitrd file in the rootfs /boot folder.


> loading DTB /boot/dts/kirkwood-pogoplug_v4.dtb
> ...
> 10284 bytes read in 1131 ms (8.8 KiB/s)
> ## Booting kernel from Legacy Image at 00800000
> ...
> Image Name: Linux-4.12.8-kirkwood-tld-1
> Created: 2017-10-09 0:15:25 UTC
> Image Type: ARM Linux Kernel Image
> (uncompressed)
> Data Size: 3814628 Bytes = 3.6 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 07b09000, end 07b0e82b
> ... OK
> Using machid 0xf78 from environment
>
> Starting kernel ...
>
> Uncompressing Linux... done, booting the kernel.
> [ 0.000000] Booting Linux on physical CPU 0x0
> [ 0.000000] Linux version 4.12.8-kirkwood-tld-1
> (root@tldDebian) (gcc version 6.3.0 20170516
> (Debian 6.3.0-18) ) #1 PREEMPT Thu Aug 17 04:51:51
> PDT 2017
> [ 0.000000] CPU: Feroceon 88FR131 [56251311]
> revision 1 (ARMv5TE), cr=0005397f
> [ 0.000000] CPU: VIVT data cache, VIVT
> instruction cache
> [ 0.000000] OF: fdt: Machine model: Pogoplug
> v4
> [ 0.000000] Memory policy: Data cache
> writeback
> [ 0.000000] Built 1 zonelists in Zone order,
> mobility grouping on. Total pages: 32512
> [ 0.000000] Kernel command line:
> console=ttyS0,115200
> [ 0.000000] PID hash table entries: 512 (order:
> -1, 2048 bytes)
> [ 0.000000] Dentry cache hash table entries:
> 16384 (order: 4, 65536 bytes)
> [ 0.000000] Inode-cache hash table entries:
> 8192 (order: 3, 32768 bytes)
> [ 0.000000] Memory: 116508K/131072K available
> (8192K kernel code, 716K rwdata, 1972K rodata,
> 1024K init, 288K bss, 14564K reserved, 0K
> cma-reserved)
> [ 0.000000] Virtual kernel memory layout:
> [ 0.000000] vector : 0xffff0000 -
> 0xffff1000 ( 4 kB)
> [ 0.000000] fixmap : 0xffc00000 -
> 0xfff00000 (3072 kB)
> [ 0.000000] vmalloc : 0xc8800000 -
> 0xff800000 ( 880 MB)
> [ 0.000000] lowmem : 0xc0000000 -
> 0xc8000000 ( 128 MB)
> [ 0.000000] modules : 0xbf000000 -
> 0xc0000000 ( 16 MB)
> [ 0.000000] .text : 0xc0008000 -
> 0xc0900000 (9184 kB)
> [ 0.000000] .init : 0xc0c00000 -
> 0xc0d00000 (1024 kB)
> [ 0.000000] .data : 0xc0d00000 -
> 0xc0db32d4 ( 717 kB)
> [ 0.000000] .bss : 0xc0db9dac -
> 0xc0e01fc0 ( 289 kB)
> [ 0.000000] Preemptible hierarchical RCU
> implementation.
> [ 0.000000] NR_IRQS:16 nr_irqs:16 16
> [ 0.000000] clocksource: orion_clocksource:
> mask: 0xffffffff max_cycles: 0xffffffff,
> max_idle_ns: 11467562657 ns
> [ 0.000013] sched_clock: 32 bits at 166MHz,
> resolution 6ns, wraps every 12884901885ns
> [ 0.000068] Switching to timer-based delay
> loop, resolution 6ns
> [ 0.000782] Console: colour dummy device 80x30
> [ 0.000833] Calibrating delay loop (skipped),
> value calculated using timer frequency.. 333.33
> BogoMIPS (lpj=1666666)
> [ 0.000871] pid_max: default: 32768 minimum:
> 301
> [ 0.001166] Security Framework initialized
> [ 0.001385] Mount-cache hash table entries:
> 1024 (order: 0, 4096 bytes)
> [ 0.001415] Mountpoint-cache hash table
> entries: 1024 (order: 0, 4096 bytes)
> [ 0.002854] CPU: Testing write buffer
> coherency: ok
> [ 0.004363] Setting up static identity map for
> 0x100000 - 0x100058
> [ 0.004761] mvebu-soc-id: MVEBU SoC ID=0x6281,
> Rev=0x3
> [ 0.010302] devtmpfs: initialized
> [ 0.015531] clocksource: jiffies: mask:
> 0xffffffff max_cycles: 0xffffffff, max_idle_ns:
> 19112604462750000 ns
> [ 0.015572] futex hash table entries: 256
> (order: -1, 3072 bytes)
> [ 0.016129] prandom: seed boundary self test
> passed
> [ 0.022530] prandom: 100 self tests passed
> [ 0.022556] pinctrl core: initialized pinctrl
> subsystem
> [ 0.024304] NET: Registered protocol family 16
> [ 0.024929] DMA: preallocated 256 KiB pool for
> atomic coherent allocations
> [ 0.027166] cpuidle: using governor ladder
> [ 0.027271] cpuidle: using governor menu
> [ 0.027807] Feroceon L2: Enabling L2
> [ 0.027871] Feroceon L2: Cache support
> initialised.
> [ 0.028402] [Firmware Info]:
> /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0:
> local-mac-address is not set
> [ 0.035398] No ATAGs?
> [ 0.048445] vgaarb: loaded
> [ 0.048934] SCSI subsystem initialized
> [ 0.049591] usbcore: registered new interface
> driver usbfs
> [ 0.049698] usbcore: registered new interface
> driver hub
> [ 0.049822] usbcore: registered new device
> driver usb
> [ 0.051365] clocksource: Switched to
> clocksource orion_clocksource
> [ 0.185004] VFS: Disk quotas dquot_6.6.0
> [ 0.185122] VFS: Dquot-cache hash table
> entries: 1024 (order 0, 4096 bytes)
> [ 0.199918] NET: Registered protocol family 2
> [ 0.201000] TCP established hash table entries:
> 1024 (order: 0, 4096 bytes)
> [ 0.201037] TCP bind hash table entries: 1024
> (order: 0, 4096 bytes)
> [ 0.201068] TCP: Hash tables configured
> (established 1024 bind 1024)
> [ 0.201198] UDP hash table entries: 256 (order:
> 0, 4096 bytes)
> [ 0.201232] UDP-Lite hash table entries: 256
> (order: 0, 4096 bytes)
> [ 0.201560] NET: Registered protocol family 1
> [ 0.202137] RPC: Registered named UNIX socket
> transport module.
> [ 0.202155] RPC: Registered udp transport
> module.
> [ 0.202166] RPC: Registered tcp transport
> module.
> [ 0.202176] RPC: Registered tcp NFSv4.1
> backchannel transport module.
> [ 0.202606] NetWinder Floating Point Emulator
> V0.97 (double precision)
> [ 0.203902] audit: initializing netlink subsys
> (disabled)
> [ 0.204567] Initialise system trusted keyrings
> [ 0.204650] Key type blacklist registered
> [ 0.204777] audit: type=2000 audit(0.202:1):
> state=initialized audit_enabled=0 res=1
> [ 0.204879] workingset: timestamp_bits=30
> max_order=15 bucket_order=0
> [ 0.204996] zbud: loaded
> [ 0.206375] NFS: Registering the id_resolver
> key type
> [ 0.206413] Key type id_resolver registered
> [ 0.206426] Key type id_legacy registered
> [ 0.206452] nfs4filelayout_init: NFSv4 File
> Layout Driver Registering...
> [ 0.206467] Installing knfsd (copyright (C)
> 1996 okir@monad.swb.de).
> [ 0.206749] jffs2: version 2.2. (NAND)
> (SUMMARY) © 2001-2006 Red Hat, Inc.
> [ 0.207023] fuse init (API version 7.26)
> [ 0.207576] orangefs_debugfs_init: called with
> debug mask: :none: :0:
> [ 0.207979] orangefs_init: module version
> upstream loaded
> [ 0.207994] SGI XFS with ACLs, security
> attributes, realtime, no debug enabled
> [ 2.551376] random: fast init done
> [ 9.086884] Key type asymmetric registered
> [ 9.086906] Asymmetric key parser 'x509'
> registered
> [ 9.087005] Block layer SCSI generic (bsg)
> driver version 0.4 loaded (major 249)
> [ 9.087022] io scheduler noop registered
> [ 9.087034] io scheduler deadline registered
> [ 9.087148] io scheduler cfq registered
> (default)
> [ 9.088423] kirkwood-pinctrl
> f1010000.pin-controller: unknown pinctrl group 47
> [ 9.088446] kirkwood-pinctrl
> f1010000.pin-controller: unknown pinctrl group 49
> [ 9.088906] kirkwood-pinctrl
> f1010000.pin-controller: registered pinctrl
> driver
> [ 9.092101] mvebu-pcie
> mbus@f1000000:pcie-controller@82000000: PCI host
> bridge to bus 0000:00
> [ 9.092132] pci_bus 0000:00: root bus resource
> [io 0x1000-0xfffff]
> [ 9.092151] pci_bus 0000:00: root bus resource
> [mem 0xe0000000-0xefffffff]
> [ 9.092171] pci_bus 0000:00: root bus resource
> [bus 00-ff]
> [ 9.092653] PCI: bus0: Fast back to back
> transfers disabled
> [ 9.092687] pci 0000:00:01.0: bridge
> configuration invalid ([bus 00-00]),
> reconfiguring
> [ 9.092913] PCI: bus1: Fast back to back
> transfers enabled
> [ 9.093021] pci 0000:00:01.0: PCI bridge to
> [bus 01]
> [ 9.093813] mv_xor f1060800.xor: Marvell shared
> XOR driver
> [ 9.152550] mv_xor f1060800.xor: Marvell XOR
> (Registers Mode): ( xor cpy sg intr )
> [ 9.152869] mv_xor f1060900.xor: Marvell shared
> XOR driver
> [ 9.212515] mv_xor f1060900.xor: Marvell XOR
> (Registers Mode): ( xor cpy sg intr )
> [ 9.213149] Serial: 8250/16550 driver, 2 ports,
> IRQ sharing disabled
> [ 9.215035] console [ttyS0] disabled
> [ 9.215128] f1012000.serial: ttyS0 at MMIO
> 0xf1012000 (irq = 25, base_baud = 10416666) is a
> 16550A
> [ 9.859924] console [ttyS0] enabled
> [ 9.875840] loop: module loaded
> [ 9.879769] sata_mv f1080000.sata: slots 32
> ports 2
> [ 9.888556] scsi host0: sata_mv
> [ 9.892358] scsi host1: sata_mv
> [ 9.895832] ata1: SATA max UDMA/133 irq 32
> [ 9.899919] ata2: SATA max UDMA/133 irq 32
> [ 9.905311] nand: device found, Manufacturer
> ID: 0xad, Chip ID: 0xf1
> [ 9.911742] nand: Hynix H27U1G8F2BTR-BC
> [ 9.915567] nand: 128 MiB, SLC, erase size: 128
> KiB, page size: 2048, OOB size: 64
> [ 9.923147] Scanning device for bad blocks
> [ 10.001892] Bad eraseblock 899 at
> 0x000007060000
> [ 10.016830] 5 ofpart partitions found on MTD
> device orion_nand
> [ 10.022666] Creating 5 MTD partitions on
> "orion_nand":
> [ 10.027789] 0x000000000000-0x000000200000 :
> "u-boot"
> [ 10.034575] 0x000000200000-0x000000500000 :
> "uImage"
> [ 10.041340] 0x000000500000-0x000000800000 :
> "uImage2"
> [ 10.048264] 0x000000800000-0x000001000000 :
> "failsafe"
> [ 10.055437] 0x000001000000-0x000008000000 :
> "root"
> [ 10.064706] libphy: Fixed MDIO Bus: probed
> [ 10.069906] libphy: orion_mdio_bus: probed
> [ 10.075286] mv643xx_eth: MV-643xx 10/100/1000
> ethernet driver version 1.4
> [ 10.232994] ata1: SATA link down (SStatus 0
> SControl F300)
> [ 10.582884] ata2: SATA link down (SStatus 0
> SControl F300)
> [ 11.193383] mv643xx_eth_port mv643xx_eth_port.0
> eth0: port 0 with MAC address 52:3b:20:9c:11:51
> [ 11.202264] ehci_hcd: USB 2.0 'Enhanced' Host
> Controller (EHCI) Driver
> [ 11.208793] ehci-pci: EHCI PCI platform driver
> [ 11.213342] ehci-orion: EHCI orion driver
> [ 11.217634] orion-ehci f1050000.ehci: EHCI Host
> Controller
> [ 11.223181] orion-ehci f1050000.ehci: new USB
> bus registered, assigned bus number 1
> [ 11.231044] orion-ehci f1050000.ehci: irq 29,
> io mem 0xf1050000
> [ 11.261413] orion-ehci f1050000.ehci: USB 2.0
> started, EHCI 1.00
> [ 11.267739] usb usb1: New USB device found,
> idVendor=1d6b, idProduct=0002
> [ 11.274541] usb usb1: New USB device strings:
> Mfr=3, Product=2, SerialNumber=1
> [ 11.281760] usb usb1: Product: EHCI Host
> Controller
> [ 11.286624] usb usb1: Manufacturer: Linux
> 4.12.8-kirkwood-tld-1 ehci_hcd
> [ 11.293326] usb usb1: SerialNumber:
> f1050000.ehci
> [ 11.298962] hub 1-0:1.0: USB hub found
> [ 11.302827] hub 1-0:1.0: 1 port detected
> [ 11.307682] usbcore: registered new interface
> driver usb-storage
> [ 11.314232] mousedev: PS/2 mouse device common
> for all mice
> [ 11.661412] usb 1-1: new high-speed USB device
> number 2 using orion-ehci
> [ 11.904176] usb 1-1: New USB device found,
> idVendor=058f, idProduct=6387
> [ 11.910872] usb 1-1: New USB device strings:
> Mfr=1, Product=2, SerialNumber=3
> [ 11.918032] usb 1-1: Product: Mass Storage
> [ 11.922139] usb 1-1: SerialNumber: A66A4259
> [ 11.927361] usb-storage 1-1:1.0: USB Mass
> Storage device detected
> [ 11.933952] scsi host2: usb-storage 1-1:1.0
> [ 12.401406] rtc-mv f1010300.rtc: internal RTC
> not ticking
> [ 12.407053] i2c /dev entries driver
> [ 12.412622] hidraw: raw HID events driver (C)
> Jiri Kosina
> [ 12.418562] drop_monitor: Initializing network
> drop monitor service
> [ 12.425261] NET: Registered protocol family 17
> [ 12.429806] Key type dns_resolver registered
> [ 12.435111] registered taskstats version 1
> [ 12.439195] Loading compiled-in X.509
> certificates
> [ 12.444091] zswap: loaded using pool lzo/zbud
> [ 12.452033] Key type big_key registered
> [ 12.458457] Key type encrypted registered
> [ 12.464381] hctosys: unable to open rtc device
> (rtc0)
> [ 12.470201] VFS: Cannot open root device
> "(null)" or unknown-block(0,0): error -6
> [ 12.477877] Please append a correct "root="
> boot option; here are the available partitions:
> [ 12.486290] 1f00 2048 mtdblock0
> [ 12.486297] (driver?)
> [ 12.492876] 1f01 3072 mtdblock1
> [ 12.492882] (driver?)
> [ 12.499397] 1f02 3072 mtdblock2
> [ 12.499401] (driver?)
> [ 12.505965] 1f03 8192 mtdblock3
> [ 12.505971] (driver?)
> [ 12.512514] 1f04 114688 mtdblock4
> [ 12.512520] (driver?)
> [ 12.519034] Kernel panic - not syncing: VFS:
> Unable to mount root fs on unknown-block(0,0)
> [ 12.527268] CPU: 0 PID: 1 Comm: swapper Not
> tainted 4.12.8-kirkwood-tld-1 #1
> [ 12.534286] Hardware name: Marvell Kirkwood
> (Flattened Device Tree)
> [ 12.540575] [<c010e79c>] (unwind_backtrace)
> from [<c010a964>] (show_stack+0x10/0x14)
> [ 12.548311] [<c010a964>] (show_stack) from
> [<c01da860>] (panic+0xb0/0x24c)
> [ 12.555174] [<c01da860>] (panic) from
> [<c0c0128c>] (mount_block_root+0x1a4/0x27c)
> [ 12.562638] [<c0c0128c>] (mount_block_root)
> from [<c0c0142c>] (mount_root+0xc8/0x11c)
> [ 12.570449] [<c0c0142c>] (mount_root) from
> [<c0c015c8>] (prepare_namespace+0x148/0x188)
> [ 12.578433] [<c0c015c8>] (prepare_namespace)
> from [<c0c00e68>]
> (kernel_init_freeable+0x1e4/0x250)
> [ 12.587291] [<c0c00e68>] (kernel_init_freeable)
> from [<c082928c>] (kernel_init+0x8/0x108)
> [ 12.595448] [<c082928c>] (kernel_init) from
> [<c0106f70>] (ret_from_fork+0x14/0x24)
> [ 12.603000] ---[ end Kernel panic - not
> syncing: VFS: Unable to mount root fs on
> unknown-block(0,0)
> [ 12.972434] scsi 2:0:0:0: Direct-Access
> Flash Disk 8.07 PQ: 0 ANSI: 2
> [ 12.994359] sd 2:0:0:0: [sda] 3794944 512-byte
> logical blocks: (1.94 GB/1.81 GiB)
> [ 13.011839] sd 2:0:0:0: [sda] Write Protect is
> off
> [ 13.016641] sd 2:0:0:0: [sda] Mode Sense: 03 00
> 00 00
> [ 13.031839] sd 2:0:0:0: [sda] No Caching mode
> page found
> [ 13.037142] sd 2:0:0:0: [sda] Assuming drive
> cache: write through
> [ 13.174059] sda: sda1
> [ 13.183342] sd 2:0:0:0: [sda] Attached SCSI
> removable disk
>
>
> Any help would be appreciated. I followed the
> steps in
> Linux
> Kernel 4.12.8 Kirkwood package and Debian
> rootfs


The kernel panic above was because no uInitrd loaded.

>
> Also, assuming if the issue above can be resolved
> and I can get the pogoplug boot from USB, I'd
> appreciate if you can point me towards the
> required changes so I can get it to boot from
> SDCard since the pogoplug mobile has one USB port
> and my goal is to setup it up as SAMBA server and
> connect a large USB backup drive to the single USB
> port.

So, you need to extract the roofts again it to another drive, and copy that file over to this one.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: help booting debian on Pogoplug mobile
October 08, 2017 08:03PM
Here is how to clone rootfs:
https://forum.doozan.com/read.php?2,35372,35382#msg-35382

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: help booting debian on Pogoplug mobile
October 08, 2017 08:22PM
Thanks for the prompt response. I re-extracted Debian rootfs and see from the log that it is now loading uInitrd but a kernel panic still occurs. I highlighted below a section where it is unable to open root device "(null)".

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

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   kwsdio: 0
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 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     1480            3793464         bee049ab-01     0e Boot
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 241 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3814692 bytes read in 464 ms (7.8 MiB/s)
loading uInitrd ...
7245696 bytes read in 605 ms (11.4 MiB/s)
loading DTB /boot/dts/kirkwood-pogoplug_v4.dtb ...
10284 bytes read in 619 ms (15.6 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.8-kirkwood-tld-1
   Created:      2017-10-09   1:57:06 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3814628 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes = 6.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 07425000, end 07b0df40 ... OK
   Loading Device Tree to 0741f000, end 0742482b ... OK
Using machid 0xf78 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.8-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #1 PREEMPT Thu Aug 17 04:51:51 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Pogoplug v4
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 116508K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 14564K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db32d4   ( 717 kB)
[    0.000000]        .bss : 0xc0db9dac - 0xc0e01fc0   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000013] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000068] Switching to timer-based delay loop, resolution 6ns
[    0.000782] Console: colour dummy device 80x30
[    0.000833] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.000871] pid_max: default: 32768 minimum: 301
[    0.001166] Security Framework initialized
[    0.001385] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001415] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002854] CPU: Testing write buffer coherency: ok
[    0.004363] Setting up static identity map for 0x100000 - 0x100058
[    0.004761] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.010300] devtmpfs: initialized
[    0.015529] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.015570] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.016130] prandom: seed boundary self test passed
[    0.022535] prandom: 100 self tests passed
[    0.022561] pinctrl core: initialized pinctrl subsystem
[    0.024297] NET: Registered protocol family 16
[    0.024919] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.027159] cpuidle: using governor ladder
[    0.027264] cpuidle: using governor menu
[    0.027797] Feroceon L2: Enabling L2
[    0.027862] Feroceon L2: Cache support initialised.
[    0.028393] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.035386] No ATAGs?
[    0.048412] vgaarb: loaded
[    0.048903] SCSI subsystem initialized
[    0.049563] usbcore: registered new interface driver usbfs
[    0.049670] usbcore: registered new interface driver hub
[    0.049794] usbcore: registered new device driver usb
[    0.051333] clocksource: Switched to clocksource orion_clocksource
[    0.184867] VFS: Disk quotas dquot_6.6.0
[    0.184984] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.199782] NET: Registered protocol family 2
[    0.200856] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.200894] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.200924] TCP: Hash tables configured (established 1024 bind 1024)
[    0.201054] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.201088] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.201409] NET: Registered protocol family 1
[    0.201992] RPC: Registered named UNIX socket transport module.
[    0.202010] RPC: Registered udp transport module.
[    0.202021] RPC: Registered tcp transport module.
[    0.202032] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.202457] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.203755] audit: initializing netlink subsys (disabled)
[    0.204425] Initialise system trusted keyrings
[    0.204493] Key type blacklist registered
[    0.204639] audit: type=2000 audit(0.202:1): state=initialized audit_enabled=0 res=1
[    0.204742] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.204856] zbud: loaded
[    0.206240] NFS: Registering the id_resolver key type
[    0.206279] Key type id_resolver registered
[    0.206291] Key type id_legacy registered
[    0.206317] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.206332] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.206613] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.206889] fuse init (API version 7.26)
[    0.207445] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.207851] orangefs_init: module version upstream loaded
[    0.207866] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.551343] random: fast init done
[    9.086464] Key type asymmetric registered
[    9.086487] Asymmetric key parser 'x509' registered
[    9.086586] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    9.086603] io scheduler noop registered
[    9.086615] io scheduler deadline registered
[    9.086730] io scheduler cfq registered (default)
[    9.088017] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 47
[    9.088041] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 49
[    9.088501] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    9.091679] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    9.091711] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    9.091731] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    9.091750] pci_bus 0000:00: root bus resource [bus 00-ff]
[    9.092242] PCI: bus0: Fast back to back transfers disabled
[    9.092278] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    9.092505] PCI: bus1: Fast back to back transfers enabled
[    9.092613] pci 0000:00:01.0: PCI bridge to [bus 01]
[    9.093410] mv_xor f1060800.xor: Marvell shared XOR driver
[    9.152518] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    9.152839] mv_xor f1060900.xor: Marvell shared XOR driver
[    9.212483] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    9.213121] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    9.215010] console [ttyS0] disabled
[    9.215107] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 10416666) is a 16550A
[    9.859894] console [ttyS0] enabled
[    9.875808] loop: module loaded
[    9.879726] sata_mv f1080000.sata: slots 32 ports 2
[    9.888504] scsi host0: sata_mv
[    9.892309] scsi host1: sata_mv
[    9.895783] ata1: SATA max UDMA/133 irq 32
[    9.899865] ata2: SATA max UDMA/133 irq 32
[    9.905258] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    9.911687] nand: Hynix H27U1G8F2BTR-BC
[    9.915513] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    9.923092] Scanning device for bad blocks
[   10.001766] Bad eraseblock 899 at 0x000007060000
[   10.016705] 5 ofpart partitions found on MTD device orion_nand
[   10.022543] Creating 5 MTD partitions on "orion_nand":
[   10.027673] 0x000000000000-0x000000200000 : "u-boot"
[   10.034453] 0x000000200000-0x000000500000 : "uImage"
[   10.041222] 0x000000500000-0x000000800000 : "uImage2"
[   10.048137] 0x000000800000-0x000001000000 : "failsafe"
[   10.055297] 0x000001000000-0x000008000000 : "root"
[   10.064560] libphy: Fixed MDIO Bus: probed
[   10.069755] libphy: orion_mdio_bus: probed
[   10.075135] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   10.232963] ata1: SATA link down (SStatus 0 SControl F300)
[   10.582852] ata2: SATA link down (SStatus 0 SControl F300)
[   11.193346] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[   11.202229] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   11.208763] ehci-pci: EHCI PCI platform driver
[   11.213312] ehci-orion: EHCI orion driver
[   11.217604] orion-ehci f1050000.ehci: EHCI Host Controller
[   11.223150] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   11.231015] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[   11.261379] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   11.267713] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   11.274519] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   11.281738] usb usb1: Product: EHCI Host Controller
[   11.286603] usb usb1: Manufacturer: Linux 4.12.8-kirkwood-tld-1 ehci_hcd
[   11.293305] usb usb1: SerialNumber: f1050000.ehci
[   11.298934] hub 1-0:1.0: USB hub found
[   11.302807] hub 1-0:1.0: 1 port detected
[   11.307679] usbcore: registered new interface driver usb-storage
[   11.314236] mousedev: PS/2 mouse device common for all mice
[   11.661379] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   11.904148] usb 1-1: New USB device found, idVendor=058f, idProduct=6387
[   11.910844] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   11.918002] usb 1-1: Product: Mass Storage
[   11.922109] usb 1-1: SerialNumber: A66A4259
[   11.927333] usb-storage 1-1:1.0: USB Mass Storage device detected
[   11.933922] scsi host2: usb-storage 1-1:1.0
[   12.401375] rtc-mv f1010300.rtc: internal RTC not ticking
[   12.407025] i2c /dev entries driver
[   12.412591] hidraw: raw HID events driver (C) Jiri Kosina
[   12.418529] drop_monitor: Initializing network drop monitor service
[   12.425225] NET: Registered protocol family 17
[   12.429768] Key type dns_resolver registered
[   12.435079] registered taskstats version 1
[   12.439166] Loading compiled-in X.509 certificates
[   12.444057] zswap: loaded using pool lzo/zbud
[   12.451996] Key type big_key registered
[   12.458416] Key type encrypted registered
[   12.464347] hctosys: unable to open rtc device (rtc0)
[   12.470159] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[   12.477837] Please append a correct "root=" boot option; here are the available partitions:
[   12.486254] 1f00            2048 mtdblock0
[   12.486261]  (driver?)
[   12.492839] 1f01            3072 mtdblock1
[   12.492845]  (driver?)
[   12.499357] 1f02            3072 mtdblock2
[   12.499363]  (driver?)
[   12.505927] 1f03            8192 mtdblock3
[   12.505932]  (driver?)
[   12.512476] 1f04          114688 mtdblock4
[   12.512482]  (driver?)
[   12.518996] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   12.527232] CPU: 0 PID: 1 Comm: swapper Not tainted 4.12.8-kirkwood-tld-1 #1
[   12.534249] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   12.540537] [<c010e79c>] (unwind_backtrace) from [<c010a964>] (show_stack+0x10/0x14)
[   12.548273] [<c010a964>] (show_stack) from [<c01da860>] (panic+0xb0/0x24c)
[   12.555138] [<c01da860>] (panic) from [<c0c0128c>] (mount_block_root+0x1a4/0x27c)
[   12.562601] [<c0c0128c>] (mount_block_root) from [<c0c0142c>] (mount_root+0xc8/0x11c)
[   12.570411] [<c0c0142c>] (mount_root) from [<c0c015c8>] (prepare_namespace+0x148/0x188)
[   12.578395] [<c0c015c8>] (prepare_namespace) from [<c0c00e68>] (kernel_init_freeable+0x1e4/0x250)
[   12.587253] [<c0c00e68>] (kernel_init_freeable) from [<c082928c>] (kernel_init+0x8/0x108)
[   12.595411] [<c082928c>] (kernel_init) from [<c0106f70>] (ret_from_fork+0x14/0x24)
[   12.602963] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   12.972409] scsi 2:0:0:0: Direct-Access              Flash Disk       8.07 PQ: 0 ANSI: 2
[   12.994330] sd 2:0:0:0: [sda] 3794944 512-byte logical blocks: (1.94 GB/1.81 GiB)
[   13.011812] sd 2:0:0:0: [sda] Write Protect is off
[   13.016612] sd 2:0:0:0: [sda] Mode Sense: 03 00 00 00
[   13.031811] sd 2:0:0:0: [sda] No Caching mode page found
[   13.037113] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   13.169156]  sda: sda1
[   13.183315] sd 2:0:0:0: [sda] Attached SCSI removable disk
[  125.021423] random: crng init done
Re: help booting debian on Pogoplug mobile
October 08, 2017 11:02PM
I tried with another device (sdcard) from scratch and got to the same exact error.

[   12.470097] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[   12.477775] Please append a correct "root=" boot option; here are the available partitions:
[   12.486188] 1f00            2048 mtdblock0
[   12.486195]  (driver?)
[   12.492775] 1f01            3072 mtdblock1
[   12.492781]  (driver?)
[   12.499293] 1f02            3072 mtdblock2
[   12.499298]  (driver?)
[   12.505862] 1f03            8192 mtdblock3
[   12.505868]  (driver?)
[   12.512411] 1f04          114688 mtdblock4
[   12.512417]  (driver?)
[   12.518931] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   12.527167] CPU: 0 PID: 1 Comm: swapper Not tainted 4.12.8-kirkwood-tld-1 #1
[   12.534185] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   12.540471] [<c010e79c>] (unwind_backtrace) from [<c010a964>] (show_stack+0x10/0x14)
[   12.548208] [<c010a964>] (show_stack) from [<c01da860>] (panic+0xb0/0x24c)
[   12.555072] [<c01da860>] (panic) from [<c0c0128c>] (mount_block_root+0x1a4/0x27c)
[   12.562537] [<c0c0128c>] (mount_block_root) from [<c0c0142c>] (mount_root+0xc8/0x11c)
[   12.570347] [<c0c0142c>] (mount_root) from [<c0c015c8>] (prepare_namespace+0x148/0x188)
[   12.578330] [<c0c015c8>] (prepare_namespace) from [<c0c00e68>] (kernel_init_freeable+0x1e4/0x250)
[   12.587189] [<c0c00e68>] (kernel_init_freeable) from [<c082928c>] (kernel_init+0x8/0x108)
[   12.595346] [<c082928c>] (kernel_init) from [<c0106f70>] (ret_from_fork+0x14/0x24)
[   12.602898] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Re: help booting debian on Pogoplug mobile
October 08, 2017 11:13PM
ahmed,

The reason for the kernel panic is: your rootfs was created incorrectly. You need to skip step 4, since you already have U-Boot 2016.05-tld-1 installed.


Quote

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

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

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


So reverse this step. Mount the USB drive on another Linu box and (assuming it is mounted as /media/sdb1):

cd /media/sdb1/boot
mv uImage uImage.pogoplug_v4.fdt
cp -a uImage.orig uImage
sync

And take it to the Pogo V4 and boot with it.

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



Edited 1 time(s). Last edit at 10/08/2017 11:15PM by bodhi.
Re: help booting debian on Pogoplug mobile
October 09, 2017 09:29AM
bodhi Wrote:
-------------------------------------------------------
> ahmed,
>
> The reason for the kernel panic is: your rootfs
> was created incorrectly. You need to skip step 4,
> since you already have U-Boot 2016.05-tld-1
> installed.
>
>
>
Quote

4. Create uImage with embedded DTB for
> booting with older u-boots (2012 or earlier). Skip
> this step if you have installed the latest U-Boot
> for Kirkwood (or are installing this u-boot at the
> same time).
> /quote]
>
>
> So reverse this step. Mount the USB drive on
> another Linu box and (assuming it is mounted as
> /media/sdb1):
>
>
> cd /media/sdb1/boot
> mv uImage uImage.pogoplug_v4.fdt
> cp -a uImage.orig uImage
> sync
>
>
> And take it to the Pogo V4 and boot with it.

Thanks bodhi. Reversing uImage solved the kernel panic and now my Pogoplug mobile boots to Debian as expected. Thank you for your help.
Re: help booting debian on Pogoplug mobile
October 09, 2017 06:38PM
Thanks bodhi. Reversing uImage solved the kernel panic and now my Pogoplug mobile boots to Debian as expected. Thank you for your help.
Author:

Your Email:


Subject:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 9 plus 15?
Message: