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

Help with booting Pogo V4 (no replies)

$
0
0
For a long time now, I've been using a Pogoplug v4 with an 80GB HDD as boot drive and a 2TB drive as a personal NAS (ArchLinux). Since like a year ago, I couldn't update ArchLinux anymore and I didn't give myself the time to see why (and try to fix it) as my NAS was always available. A couple of weeks ago I decided to upgrade my 2TB drive with a 4TB one, and before I swapped it I started poking around my device until I almost bricked it. Luckily I had a USB-to UART adapter lying around from another time I almost bricked it and managed to fix it with such adapter.

As I was trying to reflash my unit with the latest kwboot (uboot.2017.07-tld-1.pogo_v4.mtd0.kwb) following the instructions I found at CloudEngines Pogoplug v4/mobile as it was the most comprehensive guide I could find, I did manage to flash the kwb onto the device, but as I went on, It seems I messed up all my environment variables and now I can't get past the "pogoplugv4>" prompt (only by interrupting the boot process. Here's my bootlog:

# kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.pogo_v4.mtd0.kwb -p pogoV4_basic.patch
Sending boot message. Please reboot the target...-
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:34:01 -0700)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   MVEBU_MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: ide_preinit failed
Card did not respond to voltage select!
mmc_init: -95, time 14
## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **

no IDE devices available
Card did not respond to voltage select!
mmc_init: -95, time 14
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: ide_preinit failed
device ide 0:1
** Bad device ide 0 **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc
Card did not respond to voltage select!
mmc_init: -95, time 14
device mmc 0:1
Card did not respond to voltage select!
mmc_init: -95, time 14
Card did not respond to voltage select!
mmc_init: -95, time 14
** 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 ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
loading DTB /boot/dts/kirkwood-pogoplug_v4 ...
** Bad device usb 0 **
Unknown command 'bootm0x800000' - try 'help'
resetting ...


U-Boot 2020.04 (Sep 22 2020 - 18:58:26 +0000)
Pogoplug V4

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
NAND:  128 MiB
MMC:   
Loading Environment from NAND... OK
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0 
pogoplugv4>

And here my environment variables:

pogoplugv4> printenv
baudrate=115200
bootcmd=ubi part ubi; ubi read 0x800000 kernel; bootm 0x800000
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
bootdelay=3
bootdev=$dev
console=console=ttyS0,115200
device=$disknum:1
ethact=egiga0
ethaddr=00:25:31:05:F9:62
led_errorsetenv=load_dtb_addr 0x1c00000
load_dtb=g DTB $dtb_file ...
load_initd_initrd_addr=/boot/uInitrd
load_uimage=...
machid=0ion_nand
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x1c0000(uboot),0x40000(uboot_env),0x7e00000(ubi)
partitioneboot_nc=run if_netconsole start_netconsole
scan_disk_disk=...
scan_ide="ide reset"
scan_mmc="mmc rescan"
scan_usb="usb start"
stderr=serial
stdin=serial
stdout=serial
uenv_loaded=0
uenv_read=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)

Environment size: 980/131068 bytes
pogoplugv4>

The computer I'm connecting to the Pogoplug from is a Windows laptop with a Debian (10.5.0 x64) VirtualBox, and I'm running all the process from the Debian virtual machine.

As I'm no Linux expert I'm 100% sure I'm making a beginner's mistake, but I can't find a step by step tutorial to get out of this mess.

Any help would be greatly appreciated.

Thanks in advance.

Manuel Orbezo

Viewing all articles
Browse latest Browse all 3247

Trending Articles