OUR NETWORK:TiVoCommunity TechLore MyOpenRouter Dijit Community MediaSmart Home See all... About UsAdvertiseContact Us

 
Learn about scoring Forum's Raw Score: 1801240.0
December 28, 2009 12:25 AM

Categories: PogoPlug Development

Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

crimsonredmk

Member
Joined: 05/17/2009

DO NOT INSTALL/USE OPENPOGO ON THE NEW POGOPLUG v2 HARDWARE!!!

It has not been tested due to a lack of...well, new hardware. Therefore, please do not use OpenPogo on the new Pogoplugs, as you risk breaking your new Pogoplug. Older v1 power bricks with 2.0 SOFTWARE are NOT affected and can run OpenPogo like before.

Pogoplug v2 "Pink" Box - UNSUPPORTED, no ETA.

Pogoplug v1 "Powerplug" w/ 2.0.1 software (latest) - SUPPORTED

I have no idea when OpenPogo might support these newer plugs or if it will at all...

Discussion:    Add a Comment | Comments 1-25 of 56 | Latest Comment | 1 2 3 Next »

December 29, 2009 6:27 AM

Crimsonredmk,

I just wanted to let you know that I have installed OpenPogo on my Pogoplug V2 and it seems to be working fine. I have Lighttpd with PHP FCGI up and running and all seems to be working. If you need any help testing give me A shout I'd be more than happy to help out.

Thanks
Jim

December 29, 2009 8:26 PM

I've had 2 bricked Pogoplug people come to me for help in the past few days, and they ran OpenPogo, so there might or might not be a connection. I don't know why there would be as cloudEngines said that the Pogoplug's software is the same...so OpenPogo software should function the same way.

January 9, 2010 12:11 AM

jim_richards said: Crimsonredmk, I just wanted to let you know that I have installed OpenPogo on my Pogoplug V2 and it seems to be working fine. I have Lighttpd with PHP FCGI up and running and all seems to be working. If you need any help testing give me A shout I'd be more than happy to help out.
the pink one?

January 9, 2010 1:37 PM

We're really, really close to releasing a guide to upgrade Pogoplugs to our new way of doing things. It boots from USB on the pink v2 one because CloudEngines got rid of our space on the new plug (only 87MB free!). Plus, if you break it, just remove the USB drive and you'll be back to regular Pogoplug :)

January 19, 2010 6:19 PM

I've got openpogo running on V2 hardware (yes, the pink one).

UI Version: 2.0.1
Service Version: LINUX connect-server - 2.0.1

-bash-3.2# ipkg list_installed | cut -d- -f1,2
bzip2 - 1.0.5
libstdc++ - 6.0.9
mysql - 4.1.22
ncurses - 5.7
ncursesw - 5.7
openssh - 5.2p1
openssl - 0.9.8k
readline - 6.0
rsync - 3.0.6
squid - 2.6.21
zlib - 1.2.3
Successfully terminated.

-bash-3.2# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mtdblock2 32768 11868 20900 36% /
none 128004 8 127996 0% /tmp
/dev/mtdblock3 93184 16568 76616 18% /opt
/tmp/.cemnt/sda2 76145596 52039204 20238344 72% /tmp/.cemnt/mnt_sda2

-bash-3.2# uname -a
Linux Pogoplug 2.6.22.18 #44 Mon Aug 10 12:57:36 PDT 2009 armv5tejl unknown

January 19, 2010 6:37 PM

It does wrok but be careful not to fill up mtdblock3 as it's only 91MB and users have been having problems after filling it up.

January 20, 2010 1:45 PM

Yes indeed! I've kept my eye on /opt and I've had to be fairly picky in what I install. I was careful to configure squid to keep its cache and its logs on the usb drive for just that reason! But so far, it runs great!

January 21, 2010 10:44 AM

I tried it, but it mounted /tmp and /sys like 20 times. Anyone else have that happen?

January 21, 2010 11:35 AM

sjhill said: I tried it, but it mounted /tmp and /sys like 20 times. Anyone else have that happen?

 Are you talking about the OpenPogo installation described here:

http://openpogo.com/wiki/index.php5?title=GUIDE:_Installing_Base_Package

or here:

http://www.pogoplugged.com/article/12101/How-to-Install-or-remove-OpenPogo-on...

Neither of these methods change how /tmp or /sys are mounted.

January 28, 2010 1:02 PM

I just ordered my new Pogo Plug (Pink one!). What is the bext recommended practice for installing Openpogo. I do not want to brick mine. My daughter is going to love this one!

January 28, 2010 2:44 PM updated: January 28, 2010 2:44 PM

I'm rather biased but I think:
http://www.pogoplugged.com/article/12101/How-to-Install-or-remove-OpenPogo-on...
is the best way to go for OpenPogo (PlugApps is coming soon so you may want to check that out when your plug arrives).

My reasons are:
1. Reverting to regular Pogoplug operation is as simple as unplugging the USB drive with the Openpogo files.
2. The V2 Pink plug has only ~90MB for applications on nand. Installing Openpogo on a USB drive and you are only limited by the size of the drive.

As far as bricking your plug, the danger point is while the Pogoplug file system is in read/write mode. The most likely way the plug would be bricked is if the /etc/init.d/rcS file gets corrupted and you reboot. Be sure that /etc/init.d/rcS exists, is executable and is not corrupted before rebooting. Recovery from a corrupted /etc/init.d/rcS is possible using a serial console cable.

February 3, 2010 10:11 PM updated: February 3, 2010 10:12 PM

ianjb,
I followed every step on my Pink V2 with the exception of running opt-3.tar.gz instead of opt.tar.gz which all that was available from the download site:
http://www.pogoplugged.com/article/12101/How-to-Install-or-remove-OpenPogo-on.../

After rebooting, I get '-bash: ipkg: command not found' when issuing the 'ipkg update' command. My.pogoplug.com however comes up as normal with the USB ext2 drive mounted.

Any suggestions on what I might have done wrong?

February 3, 2010 11:06 PM

jim_richards said: Crimsonredmk, I just wanted to let you know that I have installed OpenPogo on my Pogoplug V2 and it seems to be working fine. I have Lighttpd with PHP FCGI up and running and all seems to be working. If you need any help testing give me A shout I'd be more than happy to help out.
What method did you use for getting this installed, jim_richards?

February 4, 2010 7:03 AM updated: February 4, 2010 7:23 AM

cbhyper,

The '-bash: ipkg: command not found' could be several things. I'll need your help to figure that out.

'ipkg' should be at '/opt/bin/ipkg', it needs to be executable and the PATH environment variable needs to point to it. Lets go through the possibilities.

The '/opt' folder could be missing. To find out login and type 'ls -al /opt' The response should look like

-bash-3.2# ls -al /opt
lrwxrwxrwx 1 root root 17 Feb 4 12:25 /opt -> /tmp/mnt_opt/.opt
-bash-3.2#
The '/opt ->' shows that we have a link to the opt folder.

'ipkg' could be missing or not executable - it should be at '/opt/bin/ipkg'. To find out type 'ls -al /opt/bin'. The response should look like
-bash-3.2# ls -al /opt/bin
drwxr-xr-x 2 1000 100 1024 Feb 4 12:24 .
drwxr-xr-x 7 root root 1024 Feb 4 12:40 ..
-rwxr-xr-x 1 1000 100 3236 Aug 23 2008 ipkg
-rwxr-xr-x 1 1000 100 3236 Aug 23 2008 ipkg-opt
-rwxr-xr-x 1 1000 100 4248 Aug 23 2008 update-alternatives
-bash-3.2#
Notice the line with 'ipkg'. The '-rwxr-xr-x' shows it is executable.

The path may not be set right so that bash can't find ipkg. Type "echo $PATH" the response should be
-bash-3.2# echo $PATH
/opt/bin:/opt/sbin:/usr/bin:/usr/sbin:/bin:/sbin
-bash-3.2#
The first part '/opt/bin' shows the path to ipkg is correct.

Lastly, to prove that ipkg can be found, type "ipkg -v". The response should be
-bash-3.2# ipkg -v
ipkg version 0.99.163
-bash-3.2#


Let me know which step fails.

February 4, 2010 11:04 AM

ianjb,

Thank you - So everything checks out up until:

 -bash-3.2# ls -al /opt/bin

ls: /opt/bin: No such file or directory

 

However, this works:

 -bash-3.2# echo $PATH

/opt/bin:/opt/sbin:/usr/bin:/usr/sbin:/bin:/sbin
-bash-3.2#

So that path looks correct yet the files were not copied over?

But this obviously doesn't because the directory doesn't exist.

 -bash-3.2# ipkg -v

-bash: ipkg: command not found
-bash-3.2#
BTW - I partitioned this 4GB stick /dev/sda1 as EXT2 in Debian, though doesn't seem to have any relavance to this issue. 
 
February 4, 2010 12:12 PM updated: February 4, 2010 12:25 PM

cbhyper,
I'll take a look at this tonight when I get home from work.
In the meantime, can you tell me what you get with 'mount'
it should look something like:

-bash-3.2# mount
rootfs on / type rootfs (rw)
/dev/root on / type jffs2 (ro)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /tmp type tmpfs (rw)
/tmp/.cemnt/sda1 on /tmp/.cemnt/mnt_sda1 type ext2 (rw,nosuid,nodev,noexec,noatime)
/dev/sda1 on /tmp/mnt_opt type ext2 (rw,nosuid,nodev,noatime)
-bash-3.2#

I'm guessing the '/dev/sda1' line is missing?

What do you get with 'ls -al /tmp'? you should get
-bash-3.2# ls -al /tmp
drwxrwxrwt 5 root root 140 Feb 4 12:54 .
drwxr-xr-x 15 root root 0 Jan 1 1970 ..
drwxr-xr-x 3 root root 100 May 24 2009 .cemnt
-rw-r--r-- 1 root root 374 May 24 2009 hbplug.log
drwxr-xr-x 16 root root 1024 Feb 4 12:53 mnt_opt
-rw-r--r-- 1 root root 23 May 24 2009 resolv.conf
drwxr-xr-x 2 root root 40 Feb 4 12:54 var
-bash-3.2#
is the 'mnt_opt' line missing?

February 4, 2010 6:38 PM updated: February 4, 2010 6:39 PM

Correct.
I get everything but the '/dev/sda1' line.

-bash-3.2# mount
rootfs on / type rootfs (rw)
/dev/root on / type jffs2 (ro)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /tmp type tmpfs (rw)
/tmp/.cemnt/sda1 on /tmp/.cemnt/mnt_sda1 type ext2 (rw,nosuid,nodev,noexec,noatime)
-bash-3.2#

Correct.
I am missing the 'mnt_opt' line.

-bash-3.2# ls -al /tmp
drwxrwxrwt 4 root root 160 Feb 4 05:31 .
drwxr-xr-x 14 root root 0 Jan 1 1970 ..
drwxr-xr-x 3 root root 100 Feb 4 03:57 .cemnt
-rw-r--r-- 1 root root 374 Jan 1 2000 hbplug.log
-rwxr-xr-x 1 root root 818533 Feb 4 05:31 mke2fs
-rw-r--r-- 1 root root 310767 Feb 4 05:31 mke2fs.zip
-rw-r--r-- 1 root root 22 Jan 1 2000 resolv.conf
drwxr-xr-x 2 root root 40 Jan 1 2000 var
-bash-3.2#

Something wrong with the way I formatted the drive?

February 4, 2010 7:13 PM updated: February 4, 2010 7:18 PM

I don't think it's your drive.

I just tried a new install on a flash drive and I had the same problem as you.
I don't know what (if anything) has changed since I wrote the article. I remember testing it more than once but ...

I just debugged it with a serial cable connected and watched the boot up sequence. It said './mount_opt file not found' To fix that we need to change one line in step 14.

echo './mount_opt' >>  /etc/init.d/rcS

should be changed to
echo '/etc/init.d/mount_opt' >>  /etc/init.d/rcS
That gives the full path and will enable it to be found.
The simplest way to do that is the make the file system read/write and replace rcS with the backup as described in steps 1 to 5 of "Removing the Changes" section of the article. Then make a new backup of rcS using step 12 'cp /etc/init.d/rcS /etc/init.d/rcS.backup' and re-edit rcS using step 14 but changed as described above
echo '# code added below for OpenPogo /opt on USB with init on boot' >>  /etc/init.d/rcS
echo '/etc/init.d/mount_opt' >> /etc/init.d/rcS
echo '/opt/etc/init' >> /etc/init.d/rcS

Before you reboot print out the rcS file using the 'cat' command, and make sure the last 3 lines look like the last three lines of this (it's possible there are some differences in the top of the file):
-sh-3.2# cat /etc/init.d/rcS
#!/bin/sh

mount -t proc none /proc
mount -t sysfs none /sys
mount -t devpts none /dev/pts
mount -t tmpfs none /tmp
mkdir /tmp/var

echo "/tmp/core_%e_%t" > /proc/sys/kernel/core_pattern

hostname Pogoplug

ifconfig lo 127.0.0.1
ifconfig eth0 169.254.37.133
udhcpc -b `hostname`

telnetd
/etc/init.d/db
ntpd -g

/etc/init.d/hbmgr.sh start

#/bin/mount -a
# code added below for OpenPogo /opt on USB with init on boot
/etc/init.d/mount_opt
/opt/etc/init
-sh-3.2#


Reboot with '/sbin/reboot' wait for the plug to startup and then repeat the steps in my post from this morning. Let me know how it goes. I'll update the article after we've got it working.

February 4, 2010 7:54 PM

Ok -
And just for clarification, after I've printed and confirmed the new matching lines in the rcS file, I need to follow your original steps 20 to 24 -- making the rcS file read-only again, then eject the USB drive, and then proceed with rebooting correct?

February 4, 2010 7:59 PM

Yes.

February 4, 2010 8:12 PM

SUCCESS!!!! ianjb, THANK YOU!
I appear to be ready for some package goodness :)

-bash-3.2# ipkg update
Downloading http://openpogo.com/repo/Packages
Updated list of available packages in /opt/lib/ipkg/lists/cross
Successfully terminated.
-bash-3.2#

February 4, 2010 8:16 PM

Congratulations! What do you plan to install?

BTW, I PM'd Peter and he renamed the file in the download section back to 'opt.tar.gz' Thanks for the heads up.

Any other updates necessary in the article?

February 4, 2010 8:30 PM updated: February 4, 2010 8:30 PM

For starters, SAMBA, rsync, FireFly, bind, OpenVPN... Webmin if possible. Getting rsync working with my NSLU2 will be a nice project. I'd also like to lock it down starting with root access. The provisioning/authentication control by PogoPlug doesn't make me feel very comfortable putting anything sensitive on there.

I'll keep you posted -- other than these changes, the article is extremely straight forward :) I really appreciate your help!

February 4, 2010 8:43 PM

You're welcome.

The first lock down would probably be the root password and maybe disable telnet if you have ssh working. You'll need to make the file system read/write again for that but then you should be able to do everything on the USB drive in the /opt folder.

The /opt/etc/init file will run at boot time any executable scripts that start with 'S' (notice upper not lower case) in the /opt/etc/init.d folder. That's the way to start the SAMBA, etc. daemons.

Good luck and enjoy!

February 4, 2010 8:47 PM updated: February 4, 2010 9:04 PM

Thanks again!

Discussion:    Add a Comment | Back to Top | Comments 1-25 of 56 | Latest Comment | 1 2 3 Next »

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window