Welcome! Log In Create A New Profile

Advanced

Pogoplug mobile instalation went hideously wrong

Posted by novaforme 
Pogoplug mobile instalation went hideously wrong
September 20, 2014 05:50PM
So I purchased a Pogoplug Mobile last week and wanted to play around with installing arch linux on to it.

I was following the guide here http://blog.qnology.com/2014/07/hacking-pogoplug-v4-series-4-and-mobile.html and was going well until I ran into this part.

#SET MACADDRESS
/tmp/fw_setenv ethaddr "$(cat /sys/class/net/eth0/address)"

When I typed this in I was getting a error defined message and everything I typed after that I received the same error.

So what do I do? reboot it... and all H&ll breaks loose. :?:

I can't get an IP address on the little black box :( It just blinks green.

So I make a serial cable and putty my way in and the first thing I see is the no mac address set message when it tries to boot.

I go in, setenv ethaddr yadayadayada, I also set an IP address for it and I still can't talk to my little black box via IP/SSH

I went through several post on here trying different things and I'm sure I messed it up even more... I'm stuck

This is what it currently boots up to.

U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:59:45)
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

NAND read: device 0 offset 0x100000, size 0x300000
 3145728 bytes read: OK
Unknown command '$(bootargs_root)' - try 'help'
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Pogov4>

If anyone can help that would be great. I would like to just start over and try again but I think i'm in too deep now.
Re: Pogoplug mobile instalation went hideously wrong
September 20, 2014 05:51PM
This is my printenv

Pogov4> printenv
baudrate=115200
bootargs=$(console)
bootargs_root=root=/dev/mtdblock2 ro
bootcmd=nand read.e 0x800000 0x100000 0x300000; setenv bootargs $(console)\
$(bootargs_root); bootm 0x800000
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
cesvcid=lfacmwmv6qxju8njpe79dululw
console=console=ttyS0,115200
device=0:1
dnsaddr=8.8.8.8
ethact=egiga0
ethaddr=00:25:31:05:c6:3f
if_netconsole=ping $serverip
ipaddr=192.168.1.150
led_error=orange blinking
led_exit=green off
led_init=green blinking
machid=0x831
mainlineLinux=no
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
mtddevname=rootfs
mtddevnum=2
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
rm=ethaddr
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.220
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
stdin=serial
stdout=serial
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

Environment size: 2417/131068 bytes
Pogov4>
Re: Pogoplug mobile instalation went hideously wrong
September 20, 2014 06:26PM
novaforme,

Your bootcmd is messed up!
> bootcmd=nand read.e 0x800000 0x100000 0x300000; setenv bootargs $(console)\
> $(bootargs_root); bootm 0x800000

Should be
bootcmd=run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset

Update:

And this is wrong too:
mainlineLinux=no
should be
mainlineLinux=yes

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



Edited 1 time(s). Last edit at 09/20/2014 06:37PM by bodhi.
Re: Pogoplug mobile instalation went hideously wrong
September 20, 2014 06:42PM
It is all messed up :) what happended?

These are correct values and need to be set:
arcNumber=3960
machid=f78

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogoplug mobile instalation went hideously wrong
September 20, 2014 07:09PM
Bodhi,

I have no idea. I was trying different things and one thing lead to another and down and down I went.

Thank you for you help with this.

I made all the changes except when i do

setemv bootcmd run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset

It does this

Pogov4> setenv bootcmd run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset
** 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 ...


U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:59:45)
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>

now if i just set it to
 setenv bootcmd run bootcmd_usb; 
and saveenv and reset it, it starts to load the kernal on the usb. It just sits at
 Uncompressing Linux... done, booting the kernel.
which i think it's supposed to do if i'm not mistaken

Once again thank you for the help
Re: Pogoplug mobile instalation went hideously wrong
September 20, 2014 07:13PM
This is what I get when it boots off USB. It's still not getting the network connection it seems tho.


U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:59:45)
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
(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
3927160 bytes read in 282 ms (13.3 MiB/s)
** File not found /boot/uInitrd **
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.16.2-1-ARCH
   Created:      2014-09-06   8:40:50 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3927096 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Using machid 0xf78 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Re: Pogoplug mobile instalation went hideously wrong
September 20, 2014 07:39PM
Pogov4> setenv bootcmd run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset

should be in single quotes so that the spaces is escaped and multiple commands are taken:
Pogov4> setenv 'bootcmd run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset'

That why this was good:
setenv bootcmd run bootcmd_usb;

Once you got here, it means that the kernel was loaded OK. So your USB drive is OK:
Starting kernel ...

Uncompressing Linux... done, booting the kernel.

The bootargs might be bad so it got stuck. Let' examine the bootargs and see if anything is wrong.

Temporarily change this bootcmd_usb to print out tthe bootargs, and then boot:
setenv bootcmd_usb 'run usb_init; run set_bootargs_usb; printenv bootargs; run usb_boot;'
boot

EDIT: typo

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



Edited 2 time(s). Last edit at 09/20/2014 07:59PM by bodhi.
Re: Pogoplug mobile instalation went hideously wrong
September 21, 2014 12:24AM
Hey bodhi,

I cahnged to the above and now I get this:

Pogov4> setenv bootcmd_usb 'run usb_init; run set_bootargs_usb; printenv bootargs; run usb_boot;'
Pogov4> boot
(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
bootargs=console=console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext3 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
EHCI timed out on TD - token=0x3c008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
 ** ext4fs_devread read error - block
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x1f8c80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
EHCI timed out on TD - token=0x80008d80
** Can't read partition table on 0:0 **
** Invalid partition 1 **
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.16.2-1-ARCH
   Created:      2014-09-06   8:40:50 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3927096 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
Pogov4>
Re: Pogoplug mobile instalation went hideously wrong
September 21, 2014 03:00PM
novaforme,

It seems either the file system on the USB drive is bad, or the drive itself is bad. Try

- Refortmat it completely as Ext3, download Arch rootfs and extract to it. And boot.
- If the above did not work, try to use a different USB thumb drive (some brand is not good for booting, Sandisk is among the best to use as boot drive).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogoplug mobile instalation went hideously wrong
September 26, 2014 09:42PM
bodhi,

Just wanted to give you an update. I reformatted that flash drive and got the same error.

I found a Lexar drive and tried it and guess what...IT WORKS

login as: root
root@192.168.1.150's password:
[root@alarm ~]#

I was able to see my IP address on the little box after it booted and I SSH'ed in and the rest is history.

Thanks bodhi for all your help!!
Re: Pogoplug mobile instalation went hideously wrong
September 26, 2014 09:59PM
Cool!

-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: