Welcome! Log In Create A New Profile

Advanced

Pogoplug V4 unknown state ?

Posted by TheDoo 
Pogoplug V4 unknown state ?
December 02, 2014 08:22PM
Installed Debian on it via http://blog.qnology.com/2014/07/hacking-pogoplug-v4-series-4-and-mobile.html

Was working fine, lost power. Couldn't ping it. Wasn't getting an IP address.
Removed debian thumbdrive.
Fired up NC and it appears to stop on "Starting Kernel" (Or from reading the forums it just doesn't display whats going on.
It's not getting an IP. I can't ssh it. The only thing I can do is view Netconsole. I'm not sure what else to do from here or what commands to run to get SSH back.

Pogov4> printenv
 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:04:f8:6d
if_netconsole=ping $serverip
ipaddr=192.168.5.190
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.5.181
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.5.181
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: 2311/131068 bytes
Pogov4> 
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:  8 
  0 
Pogov4> 
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 427 ms (5.5 MiB/s)
6362802 bytes read in 624 ms (9.7 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 ...

Help! Not sure what to do to get it back to a working state. I've read different posts for the last 2 hours. I realized I was using an older Uboot. I don't have a serial cable. Is there a way to unplug the debian thumbdrive, mount it on my other linux box and move the newer files onto the drive? (I haven't messed with anything quite like this before.)

The pogoplug had lost power before, I pulled the thumbdrive, ran FSCK from my other linux box and it booted up just fine. Unfortunately this last time that didn't work.

Thanks guys!


EDIT: Also, I tried a bunch of different commands and they didn't work in the NetConsole for the pogoplug. So I'm really lost as to what to do.



Edited 1 time(s). Last edit at 12/02/2014 08:24PM by TheDoo.
Re: Pogoplug V4 unknown state ?
December 02, 2014 11:16PM
@TheDoo,

You are running the latest u-boot.

Do this to recover:

- Download the latest rootfs from this thread (Updated 31 Oct 2014 Rootfs Debian-3.17.0-kirkwood-tld-1).
- Format a new USB thumb drive with Ext3 (or just use one you have and format it as new, wiping out all data, though)
- Follow instruction to untar that rootfs to the drive
- Take it to the Pogo and cold start.

From now on, power outage will not cause problem.

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



Edited 1 time(s). Last edit at 12/02/2014 11:17PM by bodhi.
Re: Pogoplug V4 unknown state ?
December 03, 2014 11:52AM
IT WORKS!!!!! You are awesome! Thanks so much! I couldn't figure out the password at first, went back and read the directions and found it. Thanks again!!!
Re: Pogoplug V4 unknown state ?
December 03, 2014 12:50PM
bodhi Wrote:
-------------------------------------------------------
> From now on, power outage will not cause problem.

Hi @bodhi,

Just curious why you say the above? What changed? Thanks
Re: Pogoplug V4 unknown state ?
December 03, 2014 01:24PM
Alright, running into another problem. I can't boot into debian with a hard drive plugged in. If I remove the hard drive, I can boot off the Usbstick into Debian.

I figured it might be the Uboot parameters, unfortunately I can't ssh into just the pogoplug to update them. Or I'm missing something.

So, I can boot into Debian using the new Usbstick (thumbdrive) but I can't boot with a harddrive plugged in with it. Also, I can't ssh into the pogoplug when I remove the Usbstick. I thought I was able to do this before.

Can I update anything from the NetConsole?
Re: Pogoplug V4 unknown state ?
December 03, 2014 05:18PM
@grayman4hire,

I was just making a blanket stament about using ext3 to avoid power outage problem. Nothing specific!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Pogoplug V4 unknown state ?
December 04, 2014 11:11AM
Thanks @bodhi for the clarification.

@TheDoo, some info and advice...

1) If you're planning on using your USB Hard Drive, create two partition on it and install Debian on one of them. This would avoid any bootup issue.
2) You can update the uBoot parameters from Debian.
3) If you followed the tutorial correctly and completely you should be able to boot into the default Pogoplug OS when nothing is attached. However, if you're still not able to, boot using your USB Debian Flashdrive and run through this tutorial - http://blog.qnology.com/p/pogoplug-v4-boot-default-pogoplug-os.html
Re: Pogoplug V4 unknown state ?
December 04, 2014 06:38PM
TheDoo,

In addition to the good advices from graymanforhire above,

> I figured it might be the Uboot parameters,
> unfortunately I can't ssh into just the pogoplug
> to update them. Or I'm missing something.

You need to use the rootfs label for the usb rootfs, and setup u-boot envs to mount rootfs with label, while booting multiple disks. I've just posted this instruction in one of the threads! If I can find it I'll point you to the post.

> Can I update anything from the NetConsole?

Yes, you can set u-boot envs with setenv command, but don't save it (with saveenv). After you have booted back to Debian, then commit the changes permanently in there.

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



Edited 2 time(s). Last edit at 12/04/2014 06:40PM by bodhi.
Re: Pogoplug V4 unknown state ?
December 04, 2014 07:44PM
Here is the rootfs label setup:
http://forum.doozan.com/read.php?3,12381,18781#msg-18781

Note that the rootfs should be lowercase or upcase consistently, in the disk pattion and the u-boot env.

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



Edited 1 time(s). Last edit at 12/04/2014 07:47PM 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: