How to install Pogoplug software on V2 Plug

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

How to install Pogoplug software on V2 Plug

Postby pshevrin » Tue May 08, 2012 12:49 pm

I just installed Arch on my V2 (Pink) pogoplug. Love the distribution but I also wanted to get my Pogo functionality back. I know the senior tech folks at CloudEngines and they helped me a bit. I asked them if I could share the information with this community and they said I could. Please note neither I nor anyone at CloudEngines *** SUPPORTS, ENDORSES, or otherwise stands behind this procedure. You should USE AT YOUR OWN RISK understanding you may DESTROY YOUR DEVICE *******.

Here is what I did, assuming you didn't save your old pogo software and have no pogo software installed/running:

# cd /tmp
# wget http://upgrade.pogoplug.com/svc/upgrade ... 28_upgrade
# chmod +x cloudengines_pogoplug_3_2_6_201203220028_upgrade
#mkdir /usr/local/cloudengines
# cd /usr/local/cloudengines
# /tmp/cloudengines_pogoplug_3_2_6_201203220028_upgrade

You will get a lot of errors when you run the upgrade package as it assumes a different linux setup (init.d) and some kernel modules are not built for this kernel. Ignore all that.

You will need to set some configuration. In /usr/local/cloudengines/bin there is a file called hbplug.conf. You need to edit it. Make sure the line for install dir is:

installdir=/usr/local/cloudengines

and add this:

# Tells hbplug to not attempt to mount anything automatically
nohotplug=1

for each data directory add:

# Tells hbplug to use the specified absolute path as a share point with the name media
# The <d> value is a digit starting with 0 and incrementing by one for each share
# vfsdir<d>=media,/somedir/someotherdir/media
vfsdir0=plugdata,/usr/local/cloudengines/data

Finally, I added the following to rc.local. I added this before the start funciton:

INSTDIR=/usr/local/cloudengines

In the start funciton I added:

echo -n "Starting hbplug: "
ulimit -n 65536
ulimit -c unlimited
nohup $INSTDIR/bin/hbwd $INSTDIR/bin/hbplug > /dev/null 2>&1 &
echo "Success"

and in the stop funciton I added:

echo -n "Shutting down hbplug: "
if pidof hbwd > /dev/null; then
killall hbwd > /dev/null 2>&1
retries=120
while pidof hbwd > /dev/null && [ $retries -gt 0 ]; do
sleep 1;
let retries--
done
if [ $retries -eq 0 ]; then
echo "Failure"
else
echo "Success"
fi
killall -9 ffmpeg
else
echo "Not Running"
fi

You might want to set the hostname for you plug to something other than the default. Once you have done the above and started the pogo process, you'll need to open a browser from a machine on the same network as your plug to http://my.pogoplug.com Login and then use this interface to add the plug. I made sure that there was at least one file/directory in my data directory so that when I added the plug I could see the contents and hence knew all was working.

Hopefully I haven't forgotten anything. Enjoy.
pshevrin
 
Posts: 1
Joined: Tue May 08, 2012 12:26 pm

Re: How to install Pogoplug software on V2 Plug

Postby WarheadsSE » Tue May 08, 2012 1:22 pm

I am marking this on my todo-try list.

It's possible that with a little cleanup, it could be turned into a clean service. (if it all works)
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: How to install Pogoplug software on V2 Plug

Postby WarheadsSE » Wed May 09, 2012 12:01 am

I am fiddling, and there are some minor changes to the process ;) By the way, this will create it's own svcid.

The install file will spout gibberish, and then reboot the device. :twisted: Here is a copy of my results from running the file pastie and the proof it works. image hosted on the device

If you have a Pro/V3/Classic: you might already have this in place, and only need to add the appropriate bits.
** If you converted recently, you're probably golden, if not follow the whole procedure **

1install (see above, and my note) [might reboot]
$this->bbcode_second_pass_code('', '
# cd /tmp
# wget http://upgrade.pogoplug.com/svc/upgrade ... 28_upgrade
# chmod +x cloudengines_pogoplug_3_2_6_201203220028_upgrade
# mkdir -p /usr/local/cloudengines
# cd /usr/local/cloudengines
# /tmp/cloudengines_pogoplug_3_2_6_201203220028_upgrade
')

2 edit the config
$this->bbcode_second_pass_code('', '
nano /usr/local/cloudengines/hbplug.conf
')

3 Add to rc.d
Here you can just make a symlink and watch it barf some jibberish, or make your own.
$this->bbcode_second_pass_code('', '
ln -s /usr/local/cloudengines/bin/hbplug_init /etc/rc.d/pogoplug
')

4 Start
$this->bbcode_second_pass_code('', '
rc.d start pogoplug
')

5 Register your device @ my.pogoplug.com
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: How to install Pogoplug software on V2 Plug

Postby moonman » Wed May 09, 2012 8:45 am

This is awesome :) Thanks pshevrin

This thing spits out lots of error before it launches but it does work. Thanks for suggestions WarheadsSE
Also, another note: there's no hbplug.conf untill hbplug is launched at least one time, you can't really create one yourself because service id gets generated automatically by hbplug and it goes into that .conf.
@WarheadsSE hbplug.conf is actually in the bin folder like pshevrin suggested in his guide. ;)

IMHO this needs to be added to the wiki
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: How to install Pogoplug software on V2 Plug

Postby tomcheng76 » Wed May 09, 2012 9:20 am

Thanks for the posting, it really helps if you have a pogoplug.

Can this "howto" eventually ports to other devices like goflex net which has Pogoplug service originally ? Is it possible theoretically ?
tomcheng76
 
Posts: 130
Joined: Mon Dec 13, 2010 11:24 am

Re: How to install Pogoplug software on V2 Plug

Postby WarheadsSE » Wed May 09, 2012 12:05 pm

Theoretically, this should be doable for any pogoplug enabled device.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: How to install Pogoplug software on V2 Plug

Postby WarheadsSE » Wed May 09, 2012 12:09 pm

$this->bbcode_second_pass_quote('moonman', '
')Also, another note: there's no hbplug.conf untill hbplug is launched at least one time, you can't really create one yourself because service id gets generated automatically by hbplug and it goes into that .conf.
@WarheadsSE hbplug.conf is actually in the bin folder like pshevrin suggested in his guide. ;)

1- Ok, so make one :p
2- On my V3's stock nand, it is in the /usr/local/cloudengines/ folder. It seems to stick around.

Here is mine. Btw, it will remove comments, so apparently don't bother. (I omitted my svcid line)
$this->bbcode_second_pass_code('', '
vfsdir0=arch,/media/cloudengines
installdir=/usr/local/cloudengines/bin
devicename=ArchPlug
datadir=.
nohotplug=1
')
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: How to install Pogoplug software on V2 Plug

Postby WarheadsSE » Wed May 09, 2012 6:41 pm

A note:

I seem to be unable to get it to show up in the devices today... I wonder why..
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: How to install Pogoplug software on V2 Plug

Postby moonman » Wed May 09, 2012 7:42 pm

Interesting... I though svcid was the important part to register it so you can't really create it yourself.
Mine looks like this:
$this->bbcode_second_pass_code('', 'vfsdir0=plugdata,/media/2TBDrive/Downloads
installdir=/usr/local/cloudengines
#datadir=.
datadir=.
nohotplug=1
svcid=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
')
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: How to install Pogoplug software on V2 Plug

Postby WarheadsSE » Thu May 10, 2012 2:02 am

And.. we have observed consequence!

I have taken notice of an odd behavior. My P21 with this on it seemed to be rebooting, randomly (per se). What I found (by watching via serial) was something causing a nasty message about the xce not matching this or that, and causing a reboot.

For the V3 owners in the crowd, I am testing a slightly modified (aka I neutered the ability to reboot) XCE module (the source is open) and I will await it's behavior. I can confirm in the mean time, that other than the mysteriously odd behavior(s), it has been functioning well but has many processes and with ssh & samba in addition, about 40MB of ram are in use. Quite a bit more is spoken for. Also, with my modified XCE, it make use of the actual device id, and does not generate it's own.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 4 guests