Welcome! Log In Create A New Profile

Advanced

Pogoplug E02 Debian Linux Installation Guide

Posted by feas 
Pogoplug E02 Debian Linux Installation Guide
July 23, 2016 09:55AM
"These instructions allow you to run Jeff's old installation script successfully, but it will install a very old version of u-boot and Debian and you will have to upgrade several times as you proceed.

After this is done, you can upgrade either u-boot, kernel, or both by following instruction in http://forum.doozan.com/read.php?3,12381 and http://forum.doozan.com/read.php?2,12096";;.

The above forum links will bring you to the current versions available from Bodhi, who updates them and helps trouble shoot should problems arise.

If you plan to jump straight to the current u-boot and kernel from those forum post you may want to open a text editor and type step by step each command you intend to use to upgrade your system and then you can post them here to see if any problems stick out before you begin.

If after you read those instructions a couple of times and still feel really uncomfortable trying them then this should be a fairly hand held means to get you to a still in support system.

All of the guides to show how to install Debian Linux on a Pogoplug E02 I found on the Internet are out of date so I decided to add to the list of outdated guides for the future generations.

I am going to use http://projects.doozan.com/debian/ site as the base, there is a forum that is well supported and still has developers adding to the effort.

First off there is no way to connect to the stock Pogoplug from a web interface if you have the latest firmware installed. The fine asshats at Pogoplug.com have locked you out with a firmware upgrade and they will provide you no assistance and actually lie on how to do it.

There are plenty of current guides on how to connect to the pogoplug with the cable to enable ssh, here is what I used:

http://geekyschmidt.com/2013/12/17/serial-port-on-the-pogoplug-v2

You can get a cable on Amazon for under $5. Note which color wires are tx, rx. gnd. Power will not be used.

You will need a serial cable to connect to the Pogoplug and then you can edit /etc/init.d/rcS to enable ssh connections.

mount -o remount,rw /
vi /etc/init.d/rcS


Make a line like the telenet option but for dropbear (ssh). Uncomment telnet also if you want that.

You can end here with ssh enabled for the pogoplug and use it as it was designed if you like but I am going to replace the default OS with Debian Linux.

The Doozan website has all the scripts to make this easy but some of the stuff is dated so I will walk you around the problems I encountered.

Firstly you will have to start with installing Lenny on the system. The other versions do not work at this time. The Wheezy version says that the firmware on the Pogoplug is to old. The Squeeze version does not work cause Debian moved the file locations and the script cant find them.

That leaves good OLD outdated, unsupported and vulnerable Lenny.

First you will need to set up a usb drive to be used for the install. You can use gparted or fdisk.

fdisk /dev/sda


Delete any existing partitions and add a primary and swap partition. I had an 8gb usb so I set 7 gb to the primary linux partition and 1gb as a linux swap. Remember to set the primary partition to boot.
Then you can write the changes.

I had problems with the wget command not working which breaks the scripts. I needed to make a link to the busybox wget command to get it to work.

ln -s /usr/sbin/busybox/wget /usr/sbin/wget


We need to install a new uboot to the Pogoplug.

http://projects.doozan.com/uboot/

cd /tmp 
wget http://projects.doozan.com/uboot/install_uboot_mtd0.sh 
chmod +x install_uboot_mtd0.sh 
./install_uboot_mtd0.sh


Now we want to set up fw_setenv

cd /tmp
wget http://jeff.doozan.com/debian/uboot/fw_printenv
wget http://jeff.doozan.com/debian/uboot/fw_env.config
chmod 755 fw_printenv
chmod 644 fw_env.config
mv fw_printenv /usr/sbin
ln -s /usr/sbin/fw_printenv /usr/sbin/fw_setenv
mv fw_env.config /etc


Lets make sure it works

/usr/sbin/fw_printenv


We can setup netconsole so we dont need to have the cable connected if we want.

http://forum.doozan.com/read.php?3,14,14

On Pogoplug

fw_setenv serverip xxx.xxx.xxx.xxx "computer ip address"
fw_setenv ipaddr xxx.xxx.xxx.xxx "pogoplug ip address"
fw_setenv if_netconsole 'ping $serverip'
fw_setenv start_netconsole 'setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;'
fw_setenv preboot 'run if_netconsole start_netconsole'


On computer

nc -l -u -p 6666 &
nc -u xxx.xxx.xxx.xxx 6666 "pogoplug ip address"
killall nc "after you've finished to kill the background nc process"


Lets change the arcnumber to the Pogoplug one

fw_setenv arcnumber 3542


Add your device mac address from bottom of stand

fw_setenv ethaddr xx:xx:xx:xx:xx:xx


The pogoplug does not save the time and date so lets set it.

date MMDDHHMMYYYY


i.e. date 072303252016

Now we can start installing Lenny

http://projects.doozan.com/debian/install_lenny.htm

cd /tmp
wget http://projects.doozan.com/debian/dockstar.debian-lenny.sh
chmod +x dockstar.debian-lenny.sh
./dockstar.debian-lenny.sh


After it has finished reboot

uname -a


I needed to reset the fw_setenv

http://projects.doozan.com/uboot/

cd /tmp 
wget http://projects.doozan.com/uboot/install_uboot_mtd0.sh 
chmod +x install_uboot_mtd0.sh 
./install_uboot_mtd0.sh


Now we want to set up fw_setenv on the usb

cd /tmp
wget http://jeff.doozan.com/debian/uboot/fw_printenv
wget http://jeff.doozan.com/debian/uboot/fw_env.config
chmod 755 fw_printenv
chmod 644 fw_env.config
mv fw_printenv /usr/sbin
ln -s /usr/sbin/fw_printenv /usr/sbin/fw_setenv
mv fw_env.config /etc


Lets make sure it works

/usr/sbin/fw_printenv


Reset the date

date MMDDHHMMYYYY


Change the sources list

vi /etc/apt/sources.list


Comment out all the existing ones and add:

#------------------------------------------------------------------------------#
#                   OFFICIAL LENNY DEBIAN REPOS                    
#------------------------------------------------------------------------------#
deb http://archive.debian.org/debian-archive/debian/ lenny main contrib non-free
deb http://archive.debian.org/debian-security/ lenny/updates main contrib non-free


We need to import the keys, they are expired but nothing we can do about that.

apt-key update


Now update the system.

apt-get update && apt-get upgrade && apt-get dist-upgrade


Lets verify the kernel version so we can verify upgrades for it

uname -a


"Linux debian 2.6.33 #2 PREEMPT Tue Mar 2 14:27:17 MST 2010 armv5tel GNU/Linux"

reboot the system

reboot


uname -a


Reset the date

date MMDDHHMMYYYY


Change the sources list

vi /etc/apt/sources.list


Comment out all the existing ones and add:

#------------------------------------------------------------------------------#
#                   OFFICIAL SQUEEZE DEBIAN REPOS                    
#------------------------------------------------------------------------------#
deb http://archive.debian.org/debian squeeze main


Import the keys again

apt-key update


Now update the system.

apt-get update && apt-get upgrade && apt-get dist-upgrade


Lets verify the kernel version so we can verify upgrades for it

uname -a


reboot

uname -a


"Linux debian 2.6.32-5-kirkwood #1 Tue May 13 17:59:08 UTC 2014 armv5tel GNU/Linux"

Reset the date

date MMDDHHMMYYYY


Change the sources list

vi /etc/apt/sources.list


Comment out all the existing ones and add from https://debgen.simplylinux.ch/generate.php:

#------------------------------------------------------------------------------#
#                   OFFICIAL WHEEZY DEBIAN REPOS                    
#------------------------------------------------------------------------------#

###### Debian Main Repos
deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free 
deb-src http://ftp.us.debian.org/debian/ wheezy main contrib non-free 

###### Debian Update Repos
deb http://security.debian.org/ wheezy/updates main contrib non-free 
deb http://ftp.us.debian.org/debian/ wheezy-proposed-updates main contrib non-free 
deb-src http://security.debian.org/ wheezy/updates main contrib non-free 
deb-src http://ftp.us.debian.org/debian/ wheezy-proposed-updates main contrib non-free


Import the keys again

apt-key update


Now update the system.

apt-get update && apt-get upgrade && apt-get dist-upgrade


Lets verify the kernel version so we can verify upgrades for it

uname -a


reboot

I think I am seeing a pattern here.

Reset the date

date MMDDHHMMYYYY


Change the sources list

vi /etc/apt/sources.list


Comment out all the existing ones and add from https://debgen.simplylinux.ch/generate.php:

#------------------------------------------------------------------------------#
#                   OFFICIAL JESSIE DEBIAN REPOS                    
#------------------------------------------------------------------------------#

###### Debian Main Repos
deb http://ftp.us.debian.org/debian/ jessie main contrib non-free 
deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free 

###### Debian Update Repos
deb http://security.debian.org/ jessie/updates main contrib non-free 
deb http://ftp.us.debian.org/debian/ jessie-proposed-updates main contrib non-free 
deb-src http://security.debian.org/ jessie/updates main contrib non-free 
deb-src http://ftp.us.debian.org/debian/ jessie-proposed-updates main contrib non-free


Import the keys again

apt-key update


Now update the system.

apt-get update && apt-get upgrade && apt-get dist-upgrade


Lets verify the kernel version so we can verify upgrades for it

uname -a


Linux debian 2.6.32-5-kirkwood #1 Tue May 13 17:59:08 UTC 2014 armv5tel GNU/Linux

reboot


Reset the date

date MMDDHHMMYYYY


uname -a


3.2.0-4-kirkwood #1 Debian 3.2.81-1 armv5tel GNU/Linux

Yay!

You are free to do what you want to use your Pogoplug for.

I am setting up a webserver, vpn, cloud file server, torrent for debian distro sharing.

I had a lot of problems with things breaking from using sources from here and there that I wanted to have it all in one place should others find themselves doing this too.

If you have additions/deletions you think should be made let me know so I can update this.

Much thanks to those who have produced/documented all of this info over time.

### EDIT ###

Add desktop and VNC viewer and change swappiness to 2

http://forum.doozan.com/read.php?2,21784



Edited 3 time(s). Last edit at 08/29/2017 02:00AM by feas.
Re: Pogoplug E02 Debian Linux Installation Guide
July 24, 2016 04:00AM
theres a lot of hardwork gone into this - well done and thanks for sharing
Re: Pogoplug E02 Debian Linux Installation Guide
July 29, 2016 11:59PM
Thanks from me too, as this was my first "plug" computer and it's been a joy to tweak and run for a year now.

All I'd add, is the ability to RDP-in to an XFCE desktop and get a GUI, and suggest setting swappiness to 2.

I'd so encourage kids and Linux newbs to have a look at this little 4-watt wonder. Copying the USB stick is so easy it's all failsafe really.

=========
-=Cloud 9=-
Re: Pogoplug E02 Debian Linux Installation Guide
July 30, 2016 01:20PM
thanks nice addition
rado
Re: Pogoplug E02 Debian Linux Installation Guide
September 29, 2016 12:24PM
Thanks feas,

I needed this. Just set up a new jessie install on my Pogoplug Pink.
Re: Pogoplug E02 Debian Linux Installation Guide
September 29, 2016 06:44PM
rado Wrote:
-------------------------------------------------------
> Thanks feas,
>
> I needed this. Just set up a new jessie install
> on my Pogoplug Pink.


Glad it helped!
Re: Pogoplug E02 Debian Linux Installation Guide
October 04, 2016 01:41PM
Thanks feas,

It's possible to use this instruction for pogoplug B01?



Edited 1 time(s). Last edit at 10/04/2016 01:57PM by asterix.
Re: Pogoplug E02 Debian Linux Installation Guide
October 05, 2016 09:02AM
asterix Wrote:
-------------------------------------------------------
> Thanks feas,
>
> It's possible to use this instruction for pogoplug
> B01?

Asterix,
Sorry for delayed responce. It is Jeff's instructions for installing Debian. All I did was list the steps l needed to get the system running as some of the instructions did not work for me as identified in my post and to have the steps for connecting via serial port in one place. I do not have even a smidgen of the talent the folks who get this stuff running posses. I would think it should work but would want the folks with the talent to verify for you before you did anything.
Re: Pogoplug E02 Debian Linux Installation Guide
October 05, 2016 05:47PM
No. Don't follow Jeff instruction for Pogo B01. You'll brick it.

B01 is an OXNAS plug.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 2 time(s). Last edit at 10/05/2016 05:52PM by bodhi.
Re: Pogoplug E02 Debian Linux Installation Guide
October 05, 2016 05:50PM
Re: Pogoplug E02 Debian Linux Installation Guide
October 06, 2016 12:25AM
Thanks, Feas!

I tried this instruction on E02, works great, but no "make", "apt-get make" not working.

" apt-get install gcc automake autoconf libtool make" works! :)
Re: Pogoplug E02 Debian Linux Installation Guide
October 06, 2016 12:27AM
I will try it later after my jtag arrived. not possible to do it by SSH?


bodhi Wrote:
-------------------------------------------------------
> Here is Uboot for OXNAS:
> http://forum.doozan.com/read.php?3,16017
>
> And here is Debian for Oxnas:
> http://forum.doozan.com/read.php?2,16044
Re: Pogoplug E02 Debian Linux Installation Guide
October 06, 2016 12:01PM
asterix Wrote:
-------------------------------------------------------
> I will try it later after my jtag arrived. not
> possible to do it by SSH?
>

JTAG not needed. You can use the serial console, and log into stock OS and enable SSH.
Re: Pogoplug E02 Debian Linux Installation Guide
May 29, 2017 03:43AM
installation of Uboot doesn't work here

U-Boot 2011.12 (Feb 20 2012 - 21:21:59)
Pogoplug E02

SoC: Kirkwood 88F6281_A0
DRAM: 256 MiB
WARNING: Caches not enabled
NAND: 128 MiB



If you agree, type 'ok' and press ENTER to continue: ok
# checking for /usr/sbin/nandwrite...
# checking for /usr/sbin/nanddump...
# checking for /usr/sbin/flash_erase...
# checking for /usr/sbin/fw_printenv...
# checking for /etc/fw_env.config...

# Validating existing uBoot...
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00080000...
Connecting to jeff.doozan.com (50.116.34.13:80)
wget: not an http or ftp url: https://jeff.doozan.com/uboot/valid-uboot.md5
grep: /tmp/valid-uboot.md5: No such file or directory
## Unknown uBoot detected on mtd0: e84a5fd0a0205bb79aed07c3c6fbd145
##
## The installer could not detect the version of your current uBoot
## This may happen if you have installed a different uBoot on
## /dev/mtd0 or if you have bad blocks on /dev/mtd0
##
## If you have bad blocks on mtd0, you should not try to install uBoot.
##
## Installation cancelled.
rm: cannot remove '/tmp/valid-uboot.md5': No such file or directory
Re: Pogoplug E02 Debian Linux Installation Guide
May 29, 2017 04:43AM
a simple

wget http://projects.doozan.com/uboot/valid-uboot.md5

helped me out

LOL


lille Wrote:
-------------------------------------------------------
> installation of Uboot doesn't work here
>
> U-Boot 2011.12 (Feb 20 2012 - 21:21:59)
> Pogoplug E02
>
> SoC: Kirkwood 88F6281_A0
> DRAM: 256 MiB
> WARNING: Caches not enabled
> NAND: 128 MiB

>
>
> If you agree, type 'ok' and press ENTER to continu
> e: ok
> # checking for /usr/sbin/nandwrite...
> # checking for /usr/sbin/nanddump...
> # checking for /usr/sbin/flash_erase...
> # checking for /usr/sbin/fw_printenv...
> # checking for /etc/fw_env.config...
>
> # Validating existing uBoot...
> Block size 131072, page size 2048, OOB size 64
> Dumping data starting at 0x00000000 and ending at
> 0x00080000...
> Connecting to jeff.doozan.com (50.116.34.13:80)
> wget: not an http or ftp url: https://jeff.doozan.
> com/uboot/valid-uboot.md5
> grep: /tmp/valid-uboot.md5: No such file or direct
> ory
> ## Unknown uBoot detected on mtd0: e84a5fd0a0205bb
> 79aed07c3c6fbd145
> ##
> ## The installer could not detect the version of y
> our current uBoot
> ## This may happen if you have installed a differe
> nt uBoot on
> ## /dev/mtd0 or if you have bad blocks on /dev/mtd
> 0
> ##
> ## If you have bad blocks on mtd0, you should not
> try to install uBoot.
> ##
> ## Installation cancelled.
> rm: cannot remove '/tmp/valid-uboot.md5': No such
> file or directory
Re: Pogoplug E02 Debian Linux Installation Guide
May 30, 2017 08:09PM
lille Wrote:
-------------------------------------------------------
> a simple
>
> wget http://projects.doozan.com/uboot/valid-uboot.
> md5
>
> helped me out
>
> LOL
>
>
> lille Wrote:
> --------------------------------------------------
> -----
> > installation of Uboot doesn't work here
> >
> > U-Boot 2011.12 (Feb 20 2012 - 21:21:59)
> > Pogoplug E02
> >
> > SoC: Kirkwood 88F6281_A0
> > DRAM: 256 MiB
> > WARNING: Caches not enabled
> > NAND: 128 MiB

> >
> >
> > If you agree, type 'ok' and press ENTER to conti
> nu
> > e: ok
> > # checking for /usr/sbin/nandwrite...
> > # checking for /usr/sbin/nanddump...
> > # checking for /usr/sbin/flash_erase...
> > # checking for /usr/sbin/fw_printenv...
> > # checking for /etc/fw_env.config...
> >
> > # Validating existing uBoot...
> > Block size 131072, page size 2048, OOB size 64
> > Dumping data starting at 0x00000000 and ending a
> t
> > 0x00080000...
> > Connecting to jeff.doozan.com (50.116.34.13:80)
> > wget: not an http or ftp url: https://jeff.dooza
> n.
> > com/uboot/valid-uboot.md5
> > grep: /tmp/valid-uboot.md5: No such file or dire
> ct
> > ory
> > ## Unknown uBoot detected on mtd0: e84a5fd0a0205
> bb
> > 79aed07c3c6fbd145
> > ##
> > ## The installer could not detect the version of
> y
> > our current uBoot
> > ## This may happen if you have installed a diffe
> re
> > nt uBoot on
> > ## /dev/mtd0 or if you have bad blocks on /dev/m
> td
> > 0
> > ##
> > ## If you have bad blocks on mtd0, you should no
> t
> > try to install uBoot.
> > ##
> > ## Installation cancelled.
> > rm: cannot remove '/tmp/valid-uboot.md5': No suc
> h
> > file or directory

Glad you were able to see the difference with http vs https and work it out. If I remember correctly there was some discussion that the old wget can't handle https and I have no control over the domain nor the script.
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: