Welcome! Log In Create A New Profile

Advanced

pogoplug 4: cannot run Debian

Posted by andr2k 
andr2k
pogoplug 4: cannot run Debian
August 01, 2015 05:57AM
Hello,

I am trying to boot Debian on Pogoplug Series 4.

Followed this tutorial: http://blog.qnology.com/2014/07/hacking-pogoplug-v4-series-4-and-mobile.html

After installing Netconsole, rebooted the device accidentally. Tried to run Debian using my PC for writing an image:
mke2fs -L rootfs -j /dev/sdc1
#download Debian rootfs and md5
mount /dev/sdc1 /tmp/mnt
cd /tmp/mnt
wget http://download.qnology.com/pogoplug/v4/Debian-3.14.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2
tar -xjf Debian-3.14.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2
sync
umounn /dev/sdc1


When I try to boot from USB, it freezes:

U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:59:45)
Pogoplug V4
gcc (Debian 4.6.3-14) 4.6.3
GNU ld (GNU Binutils for Debian) 2.22
Hit any key to stop autoboot:  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
2461416 bytes read in 408 ms (5.8 MiB/s)
6362802 bytes read in 597 ms (10.2 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.14.0-kirkwood-tld-1
   Created:      2014-04-06  20:44:27 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2461352 Bytes = 2.3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-3.14.0-kirkwood-tld-1
   Created:      2014-04-06  20:44:41 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6362738 Bytes = 6.1 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK


Starting kernel ...

[nothing happens here]


Printenv:
U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:59:45)
Pogoplug V4
gcc (Debian 4.6.3-14) 4.6.3
GNU ld (GNU Binutils for Debian) 2.22
Hit any key to stop autoboot:   0 
Pogov4>  p r i n t e n v 
arcNumber=3960
baudrate=115200
bootcmd=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_usb=run usb_init; run set_bootargs_usb; run usb_boot;
bootdelay=10
console=ttyS0,115200
device=0:1
ethact=egiga0
ethaddr=00:25:31:05:29:a8
if_netconsole=ping $serverip
ipaddr=192.168.1.10
led_error=orange blinking
led_exit=green off
led_init=green blinking
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)
ncip=192.168.1.100
partition=nand0,2
preboot=run if_netconsole start_netconsole
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=192.168.1.100
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=nc
stdin=nc
stdout=nc
usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_init=usb start
usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage
usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd
usb_root=/dev/sda1
usb_rootfstype=ext3

Environment size: 2310/131068 bytes

Any chance to install Debian and/or restore original Pogoplug OS?
Re: pogoplug 4: cannot run Debian
August 01, 2015 01:38PM
andr2k,

With netconsole, this is all you will see in the boot log.

Quote

>
> Starting kernel ...
>

Look at your network router or use scanning app such as Linux nmap or IOS Fing to find the Pogo IP address and log in with SSH.

If you can't find it, then verify these:

- Check your rootfs USB file system, is it type Ext3?
- When you extract the rootfs to the USB drive, you must be root user (sudo won't work).
- And the USB rootfs should be the only drive that is attached to the Pogo.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: pogoplug 4: cannot run Debian
August 03, 2015 02:40AM
Hello bohdi. Thank you for the reply.

Unfortunately, router does not get any DHCP requests from the unit. I have also verified all your recommendations with the same result. Wireshark does not see any requests from the unit too.

Looks like the only measure is to use a serial cable.
Re: pogoplug 4: cannot run Debian
August 03, 2015 04:30AM
andr2k,

> Looks like the only measure is to use a serial
> cable.

Not quite there yet! last questions:

What was the LED behavior? did it flash green, then stayed orange (green+red) for brief moment and then solid green? please describe the LED sequence.

Because you've successfully installed u-boot, have set up netconsole. Booting in to Debian is not difficult at all. There must be something missing about rootfs or u-boot envs.Once we know how the LED behave, we can narrow down to the problem area.

Also, was there swap partition on the USB stick?

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



Edited 2 time(s). Last edit at 08/03/2015 04:36AM by bodhi.
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: