[Dockstar] Mount original Pogoplug filesystem (PPFS)

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Re: [Dockstar] Mount original Pogoplug filesystem (PPFS)

Postby sambul13 » Sat Aug 25, 2012 4:44 pm

I got it, including the need for Serial cable if Uboot breaks. I'm used to mutiboot in Linux and Windows, including booting various service and vhd images, and want to try something like this on Dockstar. What I don't get so far, why it might be prohibitive to select filesystem at boot from xterm? Hopefully, Uboot can present some choice at boot time if asked nicely... :D

Arch works great on Dockstar with minuscule system load. Thanks for that. :!:
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: [Dockstar] Mount original Pogoplug filesystem (PPFS)

Postby sambul13 » Sun Aug 26, 2012 5:55 pm

I figured out how to mount the original Pogo PPFS in ArchLinux on Dockstar. Looking at:

Code: Select all
Pogoplug:/$ dmesg
[    1.270000] Creating 4 MTD partitions on "nand_mtd":
[    1.270000] 0x00000000-0x00100000 : "u-boot"
[    1.280000] 0x00100000-0x00500000 : "uImage"
[    1.280000] 0x00500000-0x02500000 : "root"
[    1.290000] 0x02500000-0x20000000 : "data"
----------------------------
[   11.170000] VFS: Mounted root (jffs2 filesystem) readonly.

Pogoplug:/$ cat /proc/partitions
major minor  #blocks  name

  31     0       1024 mtdblock0
  31     1       4096 mtdblock1
  31     2      32768 mtdblock2
  31     3     486400 mtdblock3


To mount in ArchLinux, install package mtd-utils from ARM repository, create empty dir, and mount the Pogo rootfs into it as JFFS2 file system. If you want to write something to it, remount with rw permission:

Code: Select all
pacman -S mtd-utils
mkdir /tmp/pogoplug
mount -r -t jffs2 /dev/mtdblock2 /tmp/pogoplug
ls /tmp/pogoplug
mount -o umount,rw /tmp/pogoplug


After mounting the Pogo FS you can for example fix your broken network settings, assign static IP, or restore original Pogo functionality in its config and save the file. Make sure Pogo won't download updates when booted to:

Code: Select all
cd /tmp/pogoplug
echo "127.0.0.1     upgrade.pogoplug.com" >> /etc/hosts
nano /etc/init.d/rcS
# uncomment Pogo startup script
/etc/init.d/hbmgr.sh start
-------------------
fuser -m /tmp/pogoplug
umount /tmp/pogoplug
reboot


Reboot to the original Pogo and get connected to Pogoplug website. Uboot doesn't need to be restored to original Pogo bootloader, it will allow you to boot either into Pogo on NAND, or ArchLinux ARM on USB if present. :) If you can't unmount the Pogo FS, run lsof or fuser to see what process is using it, and try to kill it or re-login to Dockstar.

Be careful not to mess up your Pogo FS on NAND... :D For some reason, it mounts with rw access ignoring ro setting in mount command. If you broke anything, mount again and correct, or reflush the NAND with the original Pogo package, if you want to boot into the original Pogo or restore its functionality.
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Previous

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 0 guests