Welcome! Log In Create A New Profile

Advanced

pogoplug minimal debian root fs required

Posted by raja 
pogoplug minimal debian root fs required
February 14, 2012 04:24AM
Hello all,

I have a black pogoplug (no WIFI model) and was successfully running Debian Squeeze for several days. I installed uBoot, left the internal flash untouched and booted Debian off a 4GB USB flash drive.

All was good until my device stopped booting into Debian. uBoot netconsole shows by /boot/uImage and /boot/uInitrd loading successfully, and once the kernel starts booting I lose netconsole and I can't troubleshoot any further. I tried mounting the flash drive on my debian laptop and edited /etc/rc.local and /linuxrc to "touch /tmp/foo". No /tmp/foo is created and I conclude that the kernel is not mounting the root fs.

I tried reinstalling Debian from scratch, but my pogo plug is not successfully getting registered to my.pogoplug.com account. I'm currently having a support case open, but there's no progress so far. I can't activate sshd on the pogo firmware and unable to start the Debian install from there.

I don't have a 2nd pogoplug to rescue my box :-(

1. Is there any way I can debootstrap my pogo rootfs from my x86 Debian laptop? I can debootstrap the first-stage but don't know how to complete the second-stage as I'm running on a different arch. I also don't know how to generate uImage/uInitrd components.

2. Can someone please give me a tar ball of a base Debian install image for pogoplug? I can extract this to my USB flash drive and get going from there on.


Thanks in advance for any help!

- Raja
Re: pogoplug minimal debian root fs required
February 14, 2012 07:42AM
raja Wrote:
-------------------------------------------------------
> I don't have a 2nd pogoplug to rescue my box :-(
>
> 1. Is there any way I can debootstrap my pogo
> rootfs from my x86 Debian laptop? I can
> debootstrap the first-stage but don't know how to
> complete the second-stage as I'm running on a
> different arch. I also don't know how to generate
> uImage/uInitrd components.
>
> 2. Can someone please give me a tar ball of a base
> Debian install image for pogoplug? I can extract
> this to my USB flash drive and get going from
> there on.
>
>
> Thanks in advance for any help!
>
> - Raja

Look here:
http://forum.doozan.com/read.php?2,5986
Re: pogoplug minimal debian root fs required
February 14, 2012 11:42AM
Vlad Wrote:
-------------------------------------------------------
> Look here:
> http://forum.doozan.com/read.php?2,5986

binfmt_misc + qemu = voodo!

My pogo is back :-)

Thanks!

- Raja
Re: pogoplug minimal debian root fs required
June 20, 2015 10:34AM
I seem to be having the same problem again. Pogo E02 is not mounting root fs on USB.

I'm using latest uBoot:

U-Boot 2014.07-tld-2 (Sep 20 2014 - 00:52:18)
Pogo E02
gcc (Debian 4.6.3-14) 4.6.3
GNU ld (GNU Binutils for Debian) 2.22

and Debian-3.18.5-kirkwood-tld-1-rootfs-bodhi.tar.bz2 rootfs. Rootfs is extracted to a 8GB PNY USB stick, all other USB devices are removed.

U-Boot messages on netconsole:

PogoE02> boot
 b o o t
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
** File not found /rescueme **
** Unrecognized filesystem type **
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=3"
UBI: MTD device size:            91 MiB
UBI: number of good PEBs:        727
UBI: number of bad PEBs:         1
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     0
UBI: available PEBs:             716
UBI: total number of reserved PEBs: 11
UBI: number of PEBs reserved for bad PEB handling: 7
UBI: max/mean erase counter: 1/1
UBIFS error (pid 0): ubifs_get_sb: cannot open "rootfs", error -22
UBIFS error (pid 0): ubifs_mount: Error reading superblock on volume 'rootfs' errno=-22!

ubifsmount - mount UBIFS volume

Usage:
ubifsmount <volume-name>
    - mount 'volume-name' volume
1 bytes read in 242 ms (0 Bytes/s)
Found bootable drive on usb 0:1
2865664 bytes read in 370 ms (7.4 MiB/s)
6535284 bytes read in 493 ms (12.6 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.18.5-kirkwood-tld-1
   Created:      2015-02-08   9:02:01 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2865600 Bytes = 2.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-3.18.5-kirkwood-tld-1
   Created:      2015-02-19   1:49:36 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6535220 Bytes = 6.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK


Starting kernel ...

Past this point I loose all network access. Kernel is not mounting rootfs on /dev/sda1. The front panel LED flashes green while U-Boot is running and stays solid green once the kernel boot process begins.

PogoE02> mtdpart
 m t d p a r t

device nand0 <orion_nand>, # parts = 4
 #: name                size            offset          mask_flags
 0: u-boot              0x00100000      0x00000000      0
 1: uImage              0x00400000      0x00100000      0
 2: rootfs              0x02000000      0x00500000      0
 3: data                0x05b00000      0x02500000      0

active partition: nand0,2 - (rootfs) 0x02000000 @ 0x00500000

defaults:
mtdids  : none
mtdparts: none
PogoE02>

My printenv output is attached.

I'm unable to progress after uBoot. Please help!
Attachments:
open | download - printenv.txt (2.5 KB)
Re: pogoplug minimal debian root fs required
June 20, 2015 10:42AM
raja Wrote:
-------------------------------------------------------
> Hello all,
>
> I have a black pogoplug (no WIFI model) and was
> successfully running Debian Squeeze for several
> days. I installed uBoot, left the internal flash
> untouched and booted Debian off a 4GB USB flash
> drive.
>
> All was good until my device stopped booting into
> Debian. uBoot netconsole shows by /boot/uImage and
> /boot/uInitrd loading successfully, and once the
> kernel starts booting I lose netconsole and I
> can't troubleshoot any further. I tried mounting
> the flash drive on my debian laptop and edited
> /etc/rc.local and /linuxrc to "touch /tmp/foo". No
> /tmp/foo is created and I conclude that the kernel
> is not mounting the root fs.
>
> I tried reinstalling Debian from scratch, but my
> pogo plug is not successfully getting registered
> to my.pogoplug.com account. I'm currently having a
> support case open, but there's no progress so far.
> I can't activate sshd on the pogo firmware and
> unable to start the Debian install from there.
>
> I don't have a 2nd pogoplug to rescue my box :-(p
>
> 1. Is there any way I can debootstrap my pogo
> rootfs from my x86 Debian laptop? I can
> debootstrap the first-stage but don't know how to
> complete the second-stage as I'm running on a
> different arch. I also don't know how to generate
> uImage/uInitrd components.
>
> 2. Can someone please give me a tar ball of a base
> Debian install image for pogoplug? I can extract
> this to my USB flash drive and get going from
> there on.
>
>
> Thanks in advance for any help!
>
> - Raja

See my signature for appropriate rootfs (depending on which Pogo you have , Kirkwood or Oxnas). Use a Linux box to extract it to the USB following the instruction exactly.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: pogoplug minimal debian root fs required
June 20, 2015 11:06AM
bodhi Wrote:
-------------------------------------------------------
> See my signature for appropriate rootfs (depending
> on which Pogo you have , Kirkwood or Oxnas). Use a
> Linux box to extract it to the USB following the
> instruction exactly.

I missed the "Creating uImage with embbeded DTB" step.

Thanks bodhi, it works perfectly now.

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