Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3190

Pogoplug V4 fails to boot 4.12.8 (1 reply)

$
0
0
I'll start by saying that whoever at Cloud Engines eliminated the "Enable SSH" option should be staked out in the warm, friendly sun to concentrate their sugars for the benefit of our hard-working friends, the ants. Connecting to the serial header on the V4 is a colossal annoyance. Then I went through three USB-to-logic-level serial adapters before finding one that the Pogoplug would condescend to speak to, all the time wondering if I'd fried the board while wiring on the serial port vias.

But I got the new u-boot loaded in, and then as usual everything went straight into the outhouse. I cannot get this board to boot any of my known working images for the E02, and I can't get it to boot the 4.12.8 distributed either. For the E02 images it hangs right after "OK, booting the kernel" and for the 4.12.8 it simply whines that it can't get the kernel image.

I have a working E02 which I'm using to generate the images and boot drives for the V4.

That said, here's the background.

========================= Environment ========================

This is pretty much a standard environment as distributed, with the exceptions
of dtb_file, load_dtb and machid.

Pogov4> printenv
arcNumber=2097
baudrate=115200
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm ; else bootm ; fi; else if run load_dtb; then bootm - ; else bootm ; fi; fi
bootcmd_uenv=run uenv_load; if test -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
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.0.212
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB /boot/dts/kirkwood-pogoplug_v4.dtb ...; load usb 0:1 0x1c00000 /boot/dts/kirkwood-pogoplug_v4.dtb
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load usb 0:1 0x1100000 /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load usb 0:1 0x800000 /boot/uImage
load_uimage_addr=0x800000
machid=ffffffff
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done;
uenv_loaded=0
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi
usb_ready_retry=15

Environment size: 3003/131068 bytes
Pogov4>

===================== BOOT DEVICE GENERATION ==================

root:/tmp/sdd1> cd etc
root:/tmp/sdd1/etc> ed fstab
(editing session removed)
root:/tmp/sdd1/etc>cat fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>

LABEL=rootfs / ext4 noatime,user_xattr,commit=300,errors=continue 0 1
root:/tmp/sdd1/etc> cd /tmp/sdd1/boot
root:/tmp/sdd1/boot> ls
System.map-4.12.1-kirkwood-tld-1 uImage
config-4.12.1-kirkwood-tld-1 uInitrd
dts vmlinuz-4.12.1-kirkwood-tld-1
initrd.img-4.12.1-kirkwood-tld-1 zImage-4.12.1-kirkwood-tld-1
linux-headers-4.12.1-kirkwood-tld-1_1.0_armel.deb
root:/tmp/sdd1/boot> cp -a zImage-4.12.1-kirkwood-tld-1 zImage.fdt
root:/tmp/sdd1/boot> cat dts/kirkwood-pogoplug_v4.dtb >> zImage.fdt
root:/tmp/sdd1/boot> mv uImage uImage.orig
root:/tmp/sdd1/boot> 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
Image Name: Linux-4.12.1-kirkwood-tld-1
Created: Sat Sep 30 23:06:45 2017
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3831812 Bytes = 3742.00 kB = 3.65 MB
Load Address: 00008000
Entry Point: 00008000
root:/tmp/sdd1/boot> sync
root:/tmp/sdd1/boot> sync

================================= AT BOOT TIME =========================

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 63 6249222 0002c900-01 83 Boot
2 6249285 385560 0002c900-02 82
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
Card did not respond to voltage select!
importing envs ...
## Info: input data size = 129 = 0x81
running scan_disk ...
Scan device usb
device usb 0:1
** File not found /boot/uImage **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: ide_preinit failed
device ide 0:1
** Bad device size - ide 0 **
device ide 1:1
** Bad device size - ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc
device mmc 0:1
Card did not respond to voltage select!
** Bad device mmc 0 **
device mmc 1:1
MMC Device 1 not found
MMC Device 1 not found
** Bad device mmc 1 **
device mmc 2:1
MMC Device 2 not found
MMC Device 2 not found
** Bad device mmc 2 **
device mmc 3:1
MMC Device 3 not found
MMC Device 3 not found
** Bad device mmc 3 **
loading uImage ...
** File not found /boot/uImage **
loading uInitrd ...
** File not found /boot/uInitrd **
loading DTB /boot/dts/kirkwood-pogoplug_v4.dtb ...
** File not found /boot/dts/kirkwood-pogoplug_v4.dtb **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Pogov4>

==================================================================

/boot/dts/kirkwood-pogoplug_v4.dtb must be there; I generated the new uimage from it.

Suggestions will be gladly received.

Viewing all articles
Browse latest Browse all 3190

Latest Images

Trending Articles



Latest Images