Welcome! Log In Create A New Profile

Advanced

<SOLVED> help booting debian from usb on Pogoplug v4

Posted by marcdm 
<SOLVED> help booting debian from usb on Pogoplug v4
September 12, 2015 03:26PM
I think I killed my Pogoplug v4. No, I know I killed it. But, it's not totally dead. Below I have put what I get when I boot with the USB stick and without. I have the serial console attached - paid a tv-repairman $10 to solder wires from an old firewire dongle onto it.

Environment

env print
arcNumber=3960
baudrate=115200
bootcmd=run bootcmd_uenv; run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset
bootcmd_mmc=run mmc_init; run set_bootargs_mmc; run mmc_boot
bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot;
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot;
bootdelay=10
console=ttyS0,115200
device=0:1
devices=usb mmc ide
ethact=egiga0
ethaddr=00:25:31:05:17:fe
if_netconsole=ping $serverip
ipaddr=10.80.20.71
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=ext2load usb 0:1 0x1c00000 /boot/dts/kirkwood-pogoplug_v4.dtb
load_initrd=ext2load usb 0:1 0x1100000 /boot/uInitrd
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
machid=f78
mainlineLinux=yes
mmc_boot=mw 0x800000 0 1; run mmc_load_uimage; if run mmc_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
mmc_init=mmc rescan
mmc_load_uimage=ext2load mmc $device 0x800000 /boot/uImage
mmc_load_uinitrd=ext2load mmc $device 0x1100000 /boot/uInitrd
mmc_root=/dev/mmcblk0p1
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
rootdelay=10
rootfstype=ext3
sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
sata_init=ide reset
sata_load_uimage=ext2load ide $device 0x800000 /boot/uImage
sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd
sata_root=/dev/sda1
serverip=10.80.20.22
set_bootargs_mmc=setenv bootargs console=$console root=$mmc_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial

With USB Flash disk connected (hoping to boot Debian):


U-Boot 2014.07-tld-2 (Sep 19 2014 - 16:13:05)
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: 10  9  8  7  6  5  4  3  2  1  0 
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Reset IDE: ide_preinit failed

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

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	3831808   	6983b352-01	83 Boot
  2	3833856   	1992704   	6983b352-02	83
  3	5826560   	9508864   	6983b352-03	83
loading envs from usb 0 ...
24 bytes read in 177 ms (0 Bytes/s)

no IDE devices available
importing envs ...
## Info: input data size = 25 = 0x19
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
10028 bytes read in 532 ms (17.6 KiB/s)
3092452 bytes read in 348 ms (8.5 MiB/s)
7127905 bytes read in 428 ms (15.9 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.1.0-kirkwood-tld-1
   Created:      2015-07-05  19:15:38 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3092388 Bytes = 2.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.1.0-kirkwood-tld-1
   Created:      2015-07-05  19:15:56 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7127841 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 0744b000, end 07b17321 ... OK
   Loading Device Tree to 07445000, end 0744a72b ... OK
Using machid 0xf78 from environment

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.1.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #2 PREEMPT Sun Jun 28 01:12:41 PDT 2015
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] 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: 120836K/131072K available (5877K kernel code, 561K rwdata, 1964K rodata, 284K init, 302K bss, 10236K 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 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07b07a0   (7842 kB)
[    0.000000]       .init : 0xc07b1000 - 0xc07f8000   ( 284 kB)
[    0.000000]       .data : 0xc07f8000 - 0xc0884434   ( 562 kB)
[    0.000000]        .bss : 0xc0884434 - 0xc08cff94   ( 303 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.000623] Console: colour dummy device 80x30
[    0.000670] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
[    0.090130] pid_max: default: 32768 minimum: 301
[    0.090315] Security Framework initialized
[    0.090521] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090555] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091813] Initializing cgroup subsys blkio
[    0.091857] Initializing cgroup subsys devices
[    0.091893] Initializing cgroup subsys freezer
[    0.091945] Initializing cgroup subsys net_cls
[    0.092097] CPU: Testing write buffer coherency: ok
[    0.092752] Setting up static identity map for 0x8200 - 0x8258
[    0.093207] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.099208] devtmpfs: initialized
[    0.106555] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.107279] prandom: seed boundary self test passed
[    0.113010] prandom: 100 self tests passed
[    0.113278] pinctrl core: initialized pinctrl subsystem
[    0.115333] NET: Registered protocol family 16
[    0.115966] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.140157] cpuidle: using governor ladder
[    0.170153] cpuidle: using governor menu
[    0.170687] Feroceon L2: Enabling L2
[    0.170753] Feroceon L2: Cache support initialised.
[    0.171320] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.178554] No ATAGs?
[    0.212280] vgaarb: loaded
[    0.212808] usbcore: registered new interface driver usbfs
[    0.212925] usbcore: registered new interface driver hub
[    0.213048] usbcore: registered new device driver usb
[    0.214569] Switched to clocksource orion_clocksource
[    0.294517] NET: Registered protocol family 2
[    0.295680] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.295719] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.295749] TCP: Hash tables configured (established 1024 bind 1024)
[    0.295863] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.295896] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.296174] NET: Registered protocol family 1
[    0.296723] RPC: Registered named UNIX socket transport module.
[    0.296739] RPC: Registered udp transport module.
[    0.296750] RPC: Registered tcp transport module.
[    0.296761] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.297246] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.299158] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.299202] Initialise system trusted keyring
[    0.299335] audit: initializing netlink subsys (disabled)
[    0.299401] audit: type=2000 audit(0.290:1): initialized
[    0.300498] zpool: loaded
[    0.300526] zbud: loaded
[    0.300941] VFS: Disk quotas dquot_6.6.0
[    0.301038] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.301943] NFS: Registering the id_resolver key type
[    0.302014] Key type id_resolver registered
[    0.302028] Key type id_legacy registered
[    0.302070] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.302095] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.302407] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.303069] Key type big_key registered
[    0.307317] alg: No test for stdrng (krng)
[    0.307378] Key type asymmetric registered
[    0.307401] Asymmetric key parser 'x509' registered
[    0.307531] bounce: pool size: 64 pages
[    0.307663] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.307691] io scheduler noop registered
[    0.307712] io scheduler deadline registered
[    0.307780] io scheduler cfq registered (default)
[    0.309069] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 36
[    0.309091] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 37
[    0.309109] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 38
[    0.309125] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 39
[    0.309143] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 40
[    0.309159] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 41
[    0.309177] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 42
[    0.309193] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 43
[    0.309210] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 44
[    0.309227] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 45
[    0.309244] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 46
[    0.309261] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 47
[    0.309278] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 48
[    0.309295] kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 49
[    0.309772] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.310761] irq: Cannot allocate irq_descs @ IRQ34, assuming pre-allocated
[    0.311362] irq: Cannot allocate irq_descs @ IRQ66, assuming pre-allocated
[    0.312599] mvebu-pcie mbus:pcie-controller: PCI host bridge to bus 0000:00
[    0.312628] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.312647] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.312667] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.313234] PCI: bus0: Fast back to back transfers disabled
[    0.313272] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.314319] PCI: bus1: Fast back to back transfers disabled
[    0.314761] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    0.314797] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe000ffff 64bit]
[    0.314836] pci 0000:01:00.0: BAR 2: assigned [mem 0xe0010000-0xe0010fff 64bit]
[    0.314871] pci 0000:01:00.0: BAR 4: assigned [mem 0xe0011000-0xe0011fff 64bit]
[    0.314901] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.314924] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    0.315111] pci 0000:00:01.0: enabling device (0140 -> 0142)
[    0.315162] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    0.315588] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.354681] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
[    0.394701] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
[    0.394976] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.434655] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[    0.474656] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[    0.475286] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.477364] console [ttyS0] disabled
[    0.477448] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 10416666) is a 16550A
[    1.262369] console [ttyS0] enabled
[    1.267770] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    1.274102] nand: Hynix H27U1G8F2BTR-BC
[    1.277973] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.285546] Scanning device for bad blocks
[    1.343537] Bad eraseblock 653 at 0x0000051a0000
[    1.348286] Bad eraseblock 655 at 0x0000051e0000
[    1.386778] libphy: Fixed MDIO Bus: probed
[    1.391334] libphy: orion_mdio_bus: probed
[    1.396621] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.472833] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:31:05:17:fe
[    2.482043] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    2.487319] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    2.496071] xhci_hcd 0000:01:00.0: hcc params 0x200073a1 hci version 0x100 quirks 0x00000010
[    2.504853] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.511625] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.518851] usb usb1: Product: xHCI Host Controller
[    2.523709] usb usb1: Manufacturer: Linux 4.1.0-kirkwood-tld-1 xhci-hcd
[    2.530326] usb usb1: SerialNumber: 0000:01:00.0
[    2.536052] hub 1-0:1.0: USB hub found
[    2.539845] hub 1-0:1.0: 2 ports detected
[    2.544683] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    2.549914] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    2.557613] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    2.564380] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.571631] usb usb2: Product: xHCI Host Controller
[    2.576518] usb usb2: Manufacturer: Linux 4.1.0-kirkwood-tld-1 xhci-hcd
[    2.583108] usb usb2: SerialNumber: 0000:01:00.0
[    2.588754] hub 2-0:1.0: USB hub found
[    2.592542] hub 2-0:1.0: 2 ports detected
[    2.597493] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.604029] ehci-pci: EHCI PCI platform driver
[    2.608637] ehci-orion: EHCI orion driver
[    2.612897] orion-ehci f1050000.ehci: EHCI Host Controller
[    2.618486] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 3
[    2.626363] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    2.644613] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    2.650907] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    2.657709] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.664929] usb usb3: Product: EHCI Host Controller
[    2.669795] usb usb3: Manufacturer: Linux 4.1.0-kirkwood-tld-1 ehci_hcd
[    2.676409] usb usb3: SerialNumber: f1050000.ehci
[    2.682145] hub 3-0:1.0: USB hub found
[    2.685994] hub 3-0:1.0: 1 port detected
[    2.691181] mousedev: PS/2 mouse device common for all mice
[    3.004650] usb 3-1: new high-speed USB device number 2 using orion-ehci
[    3.157867] usb 3-1: New USB device found, idVendor=0951, idProduct=1665
[    3.164597] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.171736] usb 3-1: Product: DataTraveler 2.0
[    3.176193] usb 3-1: Manufacturer: Kingston
[    3.180366] usb 3-1: SerialNumber: 001A4D5E8634BEA019923E49
[    3.704612] rtc-mv f1010300.rtc: internal RTC not ticking
[    3.710294] i2c /dev entries driver
[    3.715653] hidraw: raw HID events driver (C) Jiri Kosina
[    3.721542] drop_monitor: Initializing network drop monitor service
[    3.728206] NET: Registered protocol family 17
[    3.732797] Key type dns_resolver registered
[    3.738211] Loading compiled-in X.509 certificates
[    3.743024] registered taskstats version 1
[    3.748688] hctosys: unable to open rtc device (rtc0)
[    3.756185] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    3.763640] Please append a correct "root=" boot option; here are the available partitions:
[    3.772057] 1f00          131072 mtdblock0  (driver?)
[    3.777160] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    3.785393] CPU: 0 PID: 1 Comm: swapper Not tainted 4.1.0-kirkwood-tld-1 #2
[    3.792324] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    3.798607] [<c0015e74>] (unwind_backtrace) from [<c00122ec>] (show_stack+0x10/0x14)
[    3.806337] [<c00122ec>] (show_stack) from [<c058f10c>] (panic+0x80/0x1f8)
[    3.813198] [<c058f10c>] (panic) from [<c07b2254>] (mount_block_root+0x204/0x24c)
[    3.820656] [<c07b2254>] (mount_block_root) from [<c07b2378>] (mount_root+0xdc/0x104)
[    3.828457] [<c07b2378>] (mount_root) from [<c07b24c4>] (prepare_namespace+0x124/0x184)
[    3.836446] [<c07b24c4>] (prepare_namespace) from [<c07b1e74>] (kernel_init_freeable+0x1fc/0x248)
[    3.845294] [<c07b1e74>] (kernel_init_freeable) from [<c058e854>] (kernel_init+0x8/0xe4)
[    3.853362] [<c058e854>] (kernel_init) from [<c000ef20>] (ret_from_fork+0x14/0x34)
[    3.860910] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)



With usb flash disk disconnected (don't care much for the original OS but would be nice to get something working):

U-Boot 2014.07-tld-2 (Sep 19 2014 - 16:13:05)
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: 10  9  8  7  6  5  4  3  2  1  0 
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: ide_preinit failed

no USB devices available

no IDE devices available
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
** Bad device usb 0 **
** Bad device usb 0 **
** Bad device usb 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
** Bad device mmc 0 **
** Bad device mmc 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!

Reset IDE: ide_preinit failed
** Bad device size - ide 0 **
** Bad device size - ide 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
resetting ...

I figure I just need to fix some environment vars or maybe update a value in /boot/uEnv.txt

Any advice would be greatly appreciated. Thanks and sorry for the long first post.



Edited 1 time(s). Last edit at 09/12/2015 11:23PM by marcdm.
Re: help booting debian from usb on Pogoplug v4
September 12, 2015 04:22PM
marcdm,


> I have the serial console attached -
> paid a tv-repairman $10 to solder wires from an
> old firewire dongle onto it.

Cool! wish I know a tv-repairman who does this:)

No, you have not killed it, there was a mis-step during kernel uImage creation.

The rootfs instruction step 4 has two parts: 4a and 4b. What you have set up above for u-boot was to boot with device tree.

Quote

## Flattened Device Tree blob at 01c00000
Booting using the fdt blob at 0x1c00000
Loading Kernel Image ... OK
Loading Ramdisk to 0744b000, end 07b17321 ... OK
Loading Device

But your uImage must have been recreated with step 4b (DTB appended). So all you should need to do is:

- Mount the USB stick on another Linux box.
- Restore the original uImage, if you have saved it.
- If you don't have the original uImage, then regenerate it (assuming the stick is mounted at /media/sdb1 on another Linux box);
cd /media/sdb1/boot
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.1.0-kirkwood-tld-1 -d vmlinuz-4.1.0-kirkwood-tld-1 uImage
sync

Of course, you can also

- recreate the rootfs from scratch,
- or copy the 3.18.5 uImage to /boot to boot it temporarily, and regenerate it after booted.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: help booting debian from usb on Pogoplug v4
September 12, 2015 11:22PM
Quote
bodhi
Cool! wish I know a tv-repairman who does this:)

There aren't too many TVs to repair so he was available to do some soldering for me. ;)

I can't believe that I that's the reason the thing wouldn't boot. I feel blonde. It's been sittting here for weeks waiting for this JTag thing to arrive (i live on an island) just to find out that I didn't generate the kernel?!?!? I'm almost ashamed.

Thank you thank you bodhi
I definitely owe you a beer (or juice if you prefer :).

- marc
Re: help booting debian from usb on Pogoplug v4
September 13, 2015 02:03AM
marc,


> I can't believe that I that's the reason the thing
> wouldn't boot.

Cool!

That's a very common mis-step, btw :) Because lot of pogoplugs out there are still with stock non-FDT u-boot, so step 4b is still needed for those! Otherwise I would have written instruction only for FDT kernel.

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

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: