Tuesday, April 7, 2015

Hacking the Pogoplug v3/Oxnas (Pro/Classic) with Debian

This is quick publish tutorial on installing Debian on the Pogoplug V3(Oxnas)

All credit to @bodhi on Jeff Doozan's Forum for the uBoot, Debian rootfs, instructions and support. Note that I re-hosted some of @bodhi's files for an easier install.


References:


WARNING: You can potentially brick your Pogoplug following this tutorial. Your warranty will be voided. These instructions are for the Pogoplug V3/Oxnas. Flashing the uBoot below on any other model of the Pogoplug will result in a brick. There is no going back to the Pogoplug OS. You will not be able to use the my.pogoplug.com service. Proceed at your own risk.



Requirements:


1) Pogoplug V3 - Dual 700Mhz ARM, 128MB RAM, SATA (internal), Gigabit Ethernet, 4 USB 2.0 Ports, Wireless*

*Only Pogoplug Pro comes with built in Wi-Fi (AzureWave AW-NE762H 802.11 b/g/n PCI Express RT3090)

Model numbers located on bottom of foot. Please ignore the label on the box. You can potential receive a Pogoplug V2 (POGO-E02 Kirkwood) when buying a P21/P22.




Check the bottom of the Pogoplug's foot for correct model


2) USB Flash Drive (2GB+) or USB Hard Drive


Recommendations/Tested:



Outline of Steps:

  • uBoot Installation via SSH Console
  • Setup Netconsole
  • Debian Installation on USB Hard/Flash Drive
  • Initial Debian Setup
  • Upgrade Debian to 3.18.5 kernel
  • Pogoplug Pro Wireless Configuration



Enable SSH Access to Pogoplug


There are two methods to enable SSH on your Pogoplug.

1) Official Method - Activate on my.pogoplug.com and then enable SSH

2) Backdoor Method (credit to GTVHacker.com)

Make sure your Pogoplug is connected to your network and has internet access.

Check your router or use a network scanning tool (iNet Network Scanner on iPhone) to determine the IP Address of the Pogoplug.

From a Linux computer (e.g. another Pogoplug running Debian/Alarm) run the below curl command.

curl -k "https://root:ceadmin@[PogoplugIPAddress]/sqdiag/HBPlug?action=command&command=dropbear%20start";

Note that the backdoor method is not persistent (SSH access will not be available after a reboot).

uBoot Installation via SSH Console


Use Putty or your favorite SSH client to connect to your Pogoplug.

If you used the "Official Method" for activating and enabling SSH on your Pogoplug, then the username will be "root" and the password will be whatever you set (note that it's not the same password used to log into my.pogoplug.com).
For the "Backdoor Method", the username and password is root/ceadmin.

From here, everything is done via the SSH console.


#Verify Pogoplug is expected version (Oxnas)
cat /proc/cpuinfo | grep Hardware

#Stop here if not expected output.
#Expected output
#Hardware : Oxsemi NAS

#stop my.pogoplug.com service
killall hbwd


#download firmware utilities
cd /tmp
wget http://download.qnology.com/pogoplug/v4/nanddump
wget http://download.qnology.com/pogoplug/v4/nandwrite
wget http://download.qnology.com/pogoplug/v4/flash_erase
wget http://download.qnology.com/pogoplug/v4/fw_printenv
wget http://download.qnology.com/pogoplug/v4/fw_setenv


#make executable
chmod +x flash_erase fw_printenv fw_setenv nanddump nandwrite


#remount '/' as read/write
#by default the Pogoplug OS (internal flash) is read only
mount -o remount,rw /


#setup fw_env.config for oxnas
echo "/dev/mtd0 0x00100000 0x20000 0x20000">/etc/fw_env.config


#save original envs
/usr/local/cloudengines/bin/blparam > /blparam.txt


#Download and flash new uBoot
wget http://download.qnology.com/pogoplug/oxnas/uboot.2013.10-tld-4.ox820.bodhi.tar
wget http://download.qnology.com/pogoplug/oxnas/uboot.2013.10-tld-4.ox820.bodhi.tar.md5


#check md5sum
md5sum -c uboot.2013.10-tld-4.ox820.bodhi.tar.md5


#extract uBoot files
tar -xf uboot.2013.10-tld-4.ox820.bodhi.tar

#BE EXTRA CAREFUL WITH THE THESE COMMANDS.
#NO TYPOS! CUT AND PASTE.
#Erase and flash uboot on mtd0
#Flash encoded spl stage1 to 0x0
/tmp/flash_erase /dev/mtd0 0x0 6
/tmp/nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.850mhz.mtd0.img


#Flash uboot to 0x40000
/tmp/nandwrite -s 262144 /dev/mtd0 uboot.2013.10-tld-4.ox820.mtd0.img

#Flash uboot environment
#Erase 1 block starting 0x00100000
/tmp/flash_erase /dev/mtd0 0x00100000 1
/tmp/nandwrite -s 1048576 /dev/mtd0 pogopro_uboot_env.img


#Set MAC Address
/tmp/fw_setenv ethaddr "$(cat /sys/class/net/eth0/address)"


#default to pogoplug classic dtb
/tmp/fw_setenv fdt_file '/boot/dts/ox820-pogoplug-classic.dtb'
/tmp/fw_setenv dt_load_dtb 'ext2load usb 0:1 $dtb_addr $fdt_file'

#double check the MAC Address matches with
#what is on the bottom of your Pogoplug
/tmp/fw_printenv ethaddr

#print out all uboot environment parameters
#make sure there are no errors
/tmp/fw_printenv > /fw_printenv.txt
/tmp/fw_printenv



Setup Netconsole

More info here - http://forum.doozan.com/read.php?3,14,14


#Update IP Addresses as appropriate
#ipaddr = Pogoplug IP
/tmp/fw_setenv preboot 'run preboot_nc'
/tmp/fw_setenv ipaddr '192.168.1.10'
/tmp/fw_setenv serverip '192.168.1.100'



Debian Installation on USB Hard/Flash Drive


Plug in your USB flash drive

#Partition your USB flash/hard drive
/sbin/fdisk /dev/sda

# Type in the following commands to erase
# and re-partition USB flash/hard drive
#(WARNING - FLASH/HARD DRIVE WILL BE COMPLETELY WIPED):
#
# p # list current partitions
# o # to delete all partitions
# n # new partition
# p # primary partition
# 1 (one) # first partition
# <enter> # default start block
# <enter> # default end block (to use the whole drive)
# If you're using a hard drive, create a small
# 4GB partition instead of using the whole drive,
# leaving the rest for a data partition
# +4G # to create a 4GB partition
# w # write new partition to disk


#Format USB Flash Drive
cd /tmp
wget http://archlinuxarm.org/os/pogoplug/mke2fs
chmod 755 mke2fs

#format as ext3 and label partition as 'rootfs'
./mke2fs -L rootfs -j /dev/sda1

#mount
mkdir /tmp/usb
mount /dev/sda1 /tmp/usb
cd /tmp/usb

#Download Debian rootfs
wget http://download.qnology.com/pogoplug/oxnas/Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2
wget http://download.qnology.com/pogoplug/oxnas/Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2.md5

#check md5sum
md5sum -c Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2.md5

#extract
tar -xvjf Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2

#cleanup
rm Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2*

#Sync and reboot, cross your fingers
sync
cd ..
umount /tmp/usb
reboot


At this point, your Pogoplug should boot back up into Debian. Note that the IP Address of your Pogoplug may have changed. Double check your router for the IP Address assigned to your Pogoplug or use a network scanning tool (iNet Network Scanner on iPhone) to determine the IP Address of the Pogoplug.

For Debian, the default username and password is root/root.

Initial Debian Setup


#Change password
passwd

#Generate New OpenSSH Keys
rm /etc/ssh/ssh_host*
ssh-keygen -A

#Initial update
apt-get update
apt-get upgrade

#Set hostname to DebianPlug or whatever you like
echo DebianPlug>/etc/hostname

#Set Time Zone
tzselect

reboot


Upgrade Debian to 3.18.5 kernel


Latest kernel and instructions here - http://forum.doozan.com/read.php?2,16044


#backup original kernel files
cd /boot
mkdir backup
mv *3.17* backup
mv uImage backup/uImage3.17
mv uInitrd backup/uInitrd3.17

#download from bodhi's dropbox
wget --no-check-certificate https://www.dropbox.com/s/o9fp0xg8b6aajg6/linux-3.18.5-oxnas-tld-1.bodhi.tar.bz2

#check md5
echo "df386f09cf7323472d40432d3da382d5 linux-3.18.5-oxnas-tld-1.bodhi.tar.bz2" |md5sum -c

#extract
tar -xvjf linux-3.18.5-oxnas-tld-1.bodhi.tar.bz2

#install kernel and headers
dpkg -i linux-image-3.18.5-oxnas-tld-1_1_armel.deb
dpkg -i linux-headers-3.18.5-oxnas-tld-1_1_armel.deb

#Create uImage and uInitrd manually
mkimage -A arm -O linux -T kernel -C none -a 0x60008000 -e 0x60008000 -n Linux-3.18.5-oxnas-tld-1 -d /boot/vmlinuz-3.18.5-oxnas-tld-1 /boot/uImage

mkimage -A arm -O linux -T ramdisk -C gzip -a 0x60000000 -e 0x60000000 -n initramfs-3.18.5-oxnas-tld-1 -d /boot/initrd.img-3.18.5-oxnas-tld-1 /boot/uInitrd


#clean up
rm linux-3.18.5-oxnas-tld-1.bodhi.tar.bz2
rm *.dtb

#reboot and verify
reboot

uname -a


Pogoplug Pro Wireless Configuration


#update fdt file to pogoplug pro and reboot
#Warning: if you don't truly have a pro, your pogoplug
#will not boot properly.

fw_setenv fdt_file '/boot/dts/ox820-pogoplug-pro.dtb'
reboot


Follow Debian on Pogoplug Tutorial - Wireless Configuration


Pogoplug Pro - AzureWave AW-NE762H 802.11 b/g/n PCI Express RT3090

Pogoplug V3 - Dual 700Mhz ARM, 128MB RAM, SATA (internal),
Gigabit Ethernet, 4 USB 2.0 Ports, Wireless (Pro only)



66 comments :

  1. "fdisk" command does not exist on pogoplug-pro; how do you install it?

    ReplyDelete
    Replies
    1. got it working now; u gotta use "/sbin/fdisk /dev/sda"

      Delete
    2. Thanks for the feedback. I'll update the tutorial.

      Delete
  2. Also to confirm

    This is the ip address to the pogoplug?
    /tmp/fw_setenv ipaddr '192.168.1.10'

    This is the ip address to your desktop computer?
    /tmp/fw_setenv serverip '192.168.1.100'

    ReplyDelete
    Replies
    1. Thanks everything is working now; going to try setting up wifi next

      another change is:
      umount /tmp/usb
      reboot

      use
      "/sbin/reboot"

      Delete
  3. I'm using this script for auto wifi reconnect; Works Great! https://github.com/dweeber/WiFi_Check/blob/master/WiFi_Check

    cd /usr/local/bin/

    wget --no-check-certificate https://raw.githubusercontent.com/dweeber/WiFi_Check/master/WiFi_Check

    chmod +x WiFi_Check

    apt-get install cron

    crontab -e
    */3 * * * * /usr/local/bin/WiFi_Check

    ReplyDelete
    Replies
    1. This WiFi_Check script seems to work very well. But I feel it is a work-around, not a solution. The problem is that the Pogoplug disconnects from Wifi. This doesnt keep it from disconnecting, It just makes it reconnect within a couple minutes of being disconnected. My question is, why is the WiFi disconnecting? and is there a way to make it stay connected?

      Delete
    2. Might be your router dropping u, or weak signal. Else bad pogoplug. Is been find for me tho. The script is not a workaround for your problems. Is for when the wifi is actually down.

      Delete
    3. I thought that too, but it's 10 feet from my router (Asus RT-N65U) in the same room, and I had no issues when I used the my.pogoplug service to manage with wireless. I also experienced this exact same issue with my Pogoplug V4, with the edimax wifi adapter (and 3 other wifi adapters with the same chipset). I believe it is something in the system, or possibly the network configuration.

      Delete
    4. Also, I have a 65/70 Link Quality (I assume this is the signal Strength). Here's the output from iwconfig:

      #wlan0 IEEE 802.11bgn ESSID:"Ommited"
      # Mode:Managed Frequency:2.462 GHz Access Point: Ommited
      # Bit Rate=108 Mb/s Tx-Power=20 dBm
      # Retry short limit:7 RTS thr:off Fragment thr:off
      # Encryption key:off
      # Power Management:off
      # Link Quality=65/70 Signal level=-45 dBm
      # Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
      # Tx excessive retries:31 Invalid misc:2061 Missed beacon:0

      The Pogoplug was rebooted 2 days ago, So it appears to have restarted the wifi 31 times in that two days?

      Delete
    5. I don't think "Tx excessive retries" means that.

      Delete
  4. I use my Pogoplug Pro (P02) for a NAS with Rsync cron. I have a USB Flash drive with the rootfs plugged into the top back USB port, and two 1TB hard drives which store my info and are synced in the two usb ports below. If I reboot with the hard drives plugged in, it wont boot to the rootfs, but the light will be green. but when I pull them out, it boots to the rootfs. is it trying to boot the rootfs from the hard drives? How can I have it boot and mount everything properly?

    ReplyDelete
    Replies
    1. Yea i got the same issue, looks like we have to tell the boot loader to boot from a set usb port? not sure how that goes

      Delete
    2. In the V4 Tutorial, Qui Instructs to run the following command:
      #update boot order to include pogoplug OS
      /tmp/fw_setenv bootcmd 'run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; run bootcmd_pogo; reset'
      Is this something we can utilize in this tutorial?

      Delete
    3. Take a look at this - http://mhassan.me/2012/06/27/booting-pogoplug-from-the-right-usb-disk/

      and this - http://forum.doozan.com/read.php?3,19093,19683

      You just need to update the uboot env to include the partition label.

      Delete
    4. Hello Gurus, I followed this blog to install Debian on my Pogo Pro WIFi but stuck with USB boot issue. it works fine with front USB boot but if i can't more than one USB drive, the device is not booting.
      So, i followed http://mhassan.me/2012/06/27/booting-pogoplug-from-the-right-usb-disk/ but now i am stuck at
      "mkinitcpio -v -g /boot/kernel.img" >> -bash: mkinitcpio: command not found.
      Looks like fix is to run "pacman -Sy uboot-mkimage" but it is not valid command for Debian.

      Can someone guide me with this command or procedure.

      Thansk,

      Delete
  5. You can install OpenMediaVault on the Pogoplug Pro / V3 running bodhi's 3.18.5 rootfs following Almaz's guide here: http://forum.doozan.com/read.php?2,13630,page=3. Don't worry about the few minor errors you'll see. Make sure to login to the OMV gui before you reboot the first time so you can enable SSH. The default login is 'admin' and 'openmediavault'. The gui is suprisingly quick. Makes managing multiply disks easier. I'm running OMV along with Webmin and Shairport client (w/USB audio adapter) and the system is still quite responsive. I use a 16GB Sandisk Ultra Fit flash drive as the system disk and have connected an ESATA drive to the Pro's interior sata connector and all is groovy. Next thing to try is a port multiplier to see if it's recognized.

    ReplyDelete
  6. Hi Qui,

    I've followed your guide for the Pogoplug E02 and installed the Squeezelite service and one one a LMS. However, I don't know how to do it for a Pro with Debian. While not directly asking for personal tech advice, do you know of a way, or can point me in the right direction to get information so that I can use the Pro as I use the E02?

    Mostly everything works with my Pro, with the exception of my WiFi. But that's not a major issue.

    Thanks.

    ReplyDelete
  7. I have severe problems with USB booting on both oxnas devices I've tried (a black POGO-P21 and pink POGO-B01). This has happened with a couple of different USB flash drives/card readers. Using the default environment with dt_bootcmd_usb set to 'usb start; run dt_usb_bootcmd; usb stop; reset', U-Boot goes into a loop of:
    `
    U-Boot 2013.10-tld-4 (Sep 08 2014 - 19:43:38) for OXNAS
    gcc (Debian 4.6.3-14) 4.6.3
    GNU ld (GNU Binutils for Debian) 2.22
    Hit any key to stop autoboot: 0
    (Re)start USB...
    USB0: USB EHCI 1.00
    scanning bus 0 for devices... cannot reset port 4!?
    2 USB Device(s) found
    scanning usb for storage devices... 0 Storage Device(s) found
    ** Bad device usb 0 **
    ** Bad device usb 0 **
    ** Bad device usb 0 **
    Wrong Image Format for bootm command

    Led: ORANGE (Failed)
    ERROR: can't get kernel image!
    stopping USB..
    resetting ...

    U-Boot 2013.10-tld-4 (Sep 08 2014 - 19:43:38) for OXNAS
    gcc (Debian 4.6.3-14) 4.6.3
    GNU ld (GNU Binutils for Debian) 2.22
    Hit any key to stop autoboot: 0
    (Re)start USB...
    USB0: USB EHCI 1.00
    scanning bus 0 for devices... cannot reset port 4!?
    2 USB Device(s) found
    scanning usb for storage devices... 0 Storage Device(s) found
    ** Bad device usb 0 **
    ** Bad device usb 0 **
    ** Bad device usb 0 **
    Wrong Image Format for bootm command

    Led: ORANGE (Failed)
    ERROR: can't get kernel image!
    stopping USB..
    resetting ...
    `

    On the first device, if I run 'usb start' twice in a row without resetting, it works fine the second time consistently, and I can boot:
    `
    OX820> usb start
    u s b s t a r t
    (Re)start USB...
    USB0: USB EHCI 1.00
    scanning bus 0 for devices... cannot reset port 4!?
    2 USB Device(s) found
    scanning usb for storage devices... 0 Storage Device(s) found
    OX820> usb start
    u s b s t a r 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
    `
    On the second device, this seems to not work on port 4 (the front facing port) but does work on port 3. I don't know much about the platform details, but something doesn't seem right here. Any relevant U-Boot build params (clock related, etc.)?

    ReplyDelete
    Replies
    1. I tried an updated U-Boot 2013.10-tld-5, which didn't change anything. Moved the issue report to http://forum.doozan.com/read.php?3,16017,22310#msg-22310

      Delete
    2. The issue is most likely with the USB HD/Flash drive you're using. Try using one of the tested/recommended drives I have listed.

      Delete
  8. Does this run from the USB drive put on it to install this? I thought it install on it's internel flash. Here is a fdisk -l with a 32GB flash drive on it.

    root@DebianPlug:~# fdisk -l

    Disk /dev/mtdblock0: 14 MB, 14680064 bytes
    171 heads, 42 sectors/track, 3 cylinders, total 28672 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xaaaaaaaa

    This doesn't look like a partition table
    Probably you selected the wrong device.

    Device Boot Start End Blocks Id System
    /dev/mtdblock0p1 ? 2863311530 1431655763 1431655765 aa Unknown
    /dev/mtdblock0p2 ? 2863311530 1431655763 1431655765 aa Unknown
    /dev/mtdblock0p3 ? 2863311530 21843 715838805 aa Unknown
    /dev/mtdblock0p4 ? 2863311530 1426085203 1428870485 aa Unknown

    Disk /dev/mtdblock1: 119 MB, 119537664 bytes
    255 heads, 63 sectors/track, 14 cylinders, total 233472 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000

    Disk /dev/mtdblock1 doesn't contain a valid partition table

    WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


    Disk /dev/sda: 31.0 GB, 31009800192 bytes
    181 heads, 40 sectors/track, 8365 cylinders, total 60566016 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000

    Device Boot Start End Blocks Id System
    /dev/sda1 40 60562599 30281280 83 Linux
    root@DebianPlug:~#

    So it can see the /dev/mtdblock that I guess is the inside flash drive.

    -Raymond Day

    ReplyDelete
    Replies
    1. Sorry, is it not clear that Debian is installed on the USB flash drive? I have the USB flash/HD drive listed as a requirement and a section titled "Debian Installation on USB Hard/Flash Drive".

      Delete
  9. Thanks so much. Your directions worked great. BUT - now I guess I don't know what I should do. I have a plug running debian and I can ssh in etc. My install in on a 2 GB usb drive. But I am looking for the easy way to setup a home server (I think). Some place I can store movies, pics, music and stream from via my android tablets, ipad, and kodi installs throughout the house. So I installed Samba... and got to a point where it started looking tricky... then read about openmediavault - so I installed that. I got towards the end and got "Errors were encountered while processing: Collectd openmediavault.

    Okay - so I don't know if I should just continue - because next it says I will loose ssh and have to login via openmediavault and have to enable ssh. Okay - and then - I see that OMV should not be installed on a USB.

    So... just thinking I should slow down and possibly start over again. Any thoughts?

    ReplyDelete
    Replies
    1. Hi Frank, I'll give you a little hint on my thoughts..

      Did I provide a tutorial on openmediavault? Not to say it's bad, just trying to point out it's not something I blogged about.

      Delete
  10. You are correct. Can you point me to the easy Samba answer? I guess I just got into information overload and just ran from one idea to the next everytime I hit a bump. Plus I really like your tutorials since they seem to be written for mere mortals (thank you so much).

    ReplyDelete
    Replies
    1. You should be able to use the samba section from this tutorial - http://blog.qnology.com/2014/07/hacking-pogoplug-v4-series-4-and-mobile.html

      Note that your harddrive will be sdb and not sda since you mentioned already using a flash drive. Might want to consider installing Debian on the first partition of your hard drive instead of using a separate flash drive. Good luck.

      Delete
    2. Thank you thank you thank you!!

      I appreciate your help. I know this is a silly question but I just don't want to screw everything up.
      Specifically - would you advise that I:
      1. Using my laptup and gparted install a new partition on my hard drive (I presume it would best to use EXT3?)
      2. Reboot my pogo with only the hard drive plugged in and follow the above instructions to get Debian on the hard drive?
      3. Follow your Pogoplug V4 instructions starting at the "Install Samba" section?
      Thanks again!

      Delete
    3. Thanks again Qui for getting me this far. With your help I got it all working now!
      So - Just in case someone has the same questions I did - I can save you the searching.
      I was easily able to transfer my install from my USB drive to my external hard drive by cloning the partition with dd.
      I booted my linux PC and used Gparted to add a small 2GB ext3 partition to the external drive.
      Then I sorta followed this https://wiki.archlinux.org/index.php/Disk_cloning
      But I couldn't get the bs or conv to work so I double checked my drive numbers and names by issuing a dmesg command and then ran sudo dd if=dev/sdb1 of=/dev/sda1
      After 10 minutes it just finished.
      Rebooted my pogo with only the external hard drive and Bingo - it just works.
      Thanks again!

      Delete
  11. Is there a tutorial on how to install plex on this?

    ReplyDelete
    Replies
    1. No. If you want Plex, I would suggest another Pogoplug device and going with Arch Linux ARM.

      Delete
  12. Hi again Qui - I have searched all around and you still have some of the best how to guides I have read. So as a followup question - now that I have my Pogoplug booting from my external hard drive and have a seperate storage partition and everything is working fine. Now I am worrying about my hard drive spinning 24 hours a day. Is that something I should just not worry about since it is not writing to it? I have googled a ton of parameters I could play with but don't know if that is wise or wrong? What is your opinion and point me and I will google away. Thanks again for all of your help!

    ReplyDelete
    Replies
    1. It's normal for the drive not to spin down because the OS is constantly writing to logs. Personally, it doesn't bother me.

      Delete
  13. Hello,

    I have debian and would like to change the OS to Archlinux, can someone point me to the directions.

    ReplyDelete
    Replies
    1. Hi Rob,

      Arch Linux is not supported on the Pogoplug Pro/V3 (OXNAS) currently. Check the ARCH linux forum, maybe they will bring back support, maybe not.

      Qui

      Delete
  14. I got an error while doing the flash_erase. Perhaps I have bad blocks in my flash? I'm using a PogoPlug Pro.

    ...
    /tmp # tar -xf uboot.2013.10-tld-4.ox820.bodhi.tar
    /tmp # /tmp/flash_erase /dev/mtd0 0x0 6
    Erase Total 6 Units
    Performing Flash Erase of length 131072 at offset 0xa0000 done
    /tmp # /tmp/nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.850mhz.mtd0.img
    Writing data to block 0 at offset 0x0
    /tmp # /tmp/nandwrite -s 262144 /dev/mtd0 uboot.2013.10-tld-4.ox820.mtd0.img
    Writing data to block 2 at offset 0x40000
    Writing data to block 3 at offset 0x60000
    Writing data to block 4 at offset 0x80000
    Writing data to block 5 at offset 0xa0000
    /tmp # /tmp/flash_erase /dev/mtd0 0x00100000 1
    Erase Total 1 Units
    Performing Flash Erase of length 131072 at offset 0x100000
    MTD Erase failure: Input/output error

    ReplyDelete
  15. This comment has been removed by the author.

    ReplyDelete
  16. I've a problem, during the installation the power went down.
    After the power was back I wanted to ssh to the pogoplug but I get a time-out error.
    The pogoplug is seen by the router on the right IP address.

    How can I restore my pogoplug?

    The power went down when I was at the following step:
    #mount
    mkdir /tmp/usb
    mount /dev/sda1 /tmp/usb
    cd /tmp/usb

    #Download Debian rootfs
    wget http://download.qnology.com/pogoplug/oxnas/Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2
    wget http://download.qnology.com/pogoplug/oxnas/Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2.md5

    ReplyDelete
  17. UNBRICK your oxnas Follow the step here http://archlinuxarm.org/forum/viewtopic.php?f=55&t=2146 this lets you boot pass the nand from a hard drive. Then follow the step here. I was able to recover the booting process and boot into debian. Remember i wipe out my pogoplug by following the wrong procedure it was Garbage so i was told. Now if someone can point me how to install the original environment that be great
    Thanks
    Nick

    ReplyDelete
  18. the pogo p01 comes with wifi and interal sata?

    I purchased a p22 by mistake on amazon thinking its label was pro model...

    I also purchased 8 gig ssd for hopes to use the internal sata...

    I wish there was documentation on all the boards [front and back]

    ReplyDelete
  19. Are the download links down? I am not able to install uBoot at all. Connection timeout when trying to get the download files.

    ReplyDelete
    Replies
    1. Thank you for letting me know. Should be working now. Sorry, my VPS went down for some reason.

      Delete
  20. I install everything correctly. but when I try to load nothing happened. it says "The connection has timed out"
    I saw the DebianPlug on my router with a specific ip address. but I don't get anything. what should I do next?

    ReplyDelete
  21. I installed arch Linux to my pogoplug pro which it was still supported, and haven't been used it for quite a while. Is it still OK to follow the above instruction to install Debian on it? Thanks!

    ReplyDelete
  22. Hi Qui, I followed your instructions. But at the point where I had to download http://download.qnology.com/pogoplug/oxnas/Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2 using "wget" it took forever and didn't download after many retries. Getting stuck around 32 MB. So I followed the link you posted below to http://forum.doozan.com/read.php?2,16044 link where that link has dropbox link to download linux 4.1.0 tarball. I downloaded that and extracted that instead of 3.17.0 tarball. After reboot, pogoplug is not allowing the ssh. When I ping the IP address of pogo (based on router), I can icmp request responses and then they go away and come back. But I cannot ssh.

    I believe 4.1.0 was an upgrade on top of 3.17.0 tarball right? What should I do now?

    Probably plug in the existing USB flash drive, or use new USB,
    then partition is again and download 3.17.0 and extract on it?
    then plug it back into pogo ? Will that work?

    ReplyDelete
    Replies
    1. I just did what I posted above.. i.e. booted into Ubuntu on my machine, plugged the USB and I was able to read the files I had extracted from Bodhi's 4.1.0 tarball.

      I deleted them.
      I also found Dropbox link on Bodhi's site to same Debian 3.17.0 tarball you posted above.
      Verified the checksum with your md5
      I extracted tarball successfully onto same USB flash
      plugged the USB on top back USB port of my Pogoplug PRO
      but its doing same thing. The ping (icmp) is responding and going away.

      I think pogo plug is keep on rebooting I believe and not able to boot into USB.

      I will appreciate if you can respond and help please. Thank you!

      Delete
    2. I see this thru netconsole cat. Sounds like bad USB drive OR something else?

      U-Boot 2013.10-tld-4 (Sep 08 2014 - 19:43:38) for OXNAS
      gcc (Debian 4.6.3-14) 4.6.3
      GNU ld (GNU Binutils for Debian) 2.22
      Hit any key to stop autoboot: 0
      (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 /boot/uImage **
      ** File not found /boot/uInitrd **
      ** File not found /boot/dts/ox820-pogoplug-classic.dtb **
      Wrong Image Format for bootm command

      Led: ORANGE (Failed)
      ERROR: can't get kernel image!
      stopping USB..
      resetting ...

      U-Boot 2013.10-tld-4 (Sep 08 2014 - 19:43:38) for OXNAS
      gcc (Debian 4.6.3-14) 4.6.3
      GNU ld (GNU Binutils for Debian) 2.22
      Hit any key to stop autoboot: 10

      Delete
    3. Qui, Its working now. Based on error above that it couldn't find /boot/uImage and /boot/uInitrd, I stood up Debian VM and opened up the USB flash again. I extracted the Debian tarball separately in temp folder on Debian and compared the filesystem with USB flash. I was shocked to see that it did not have all the folders and files from tarball. So when I extracted tarball yesterday night, it did not extract everything for some reason and also did not error out. Very weird.

      Anyways, I just extracted again, loaded the USB and now it started fine. I realized it assigned different IP that what I had put in for fw_setenv ipaddr. But that might be just for netconsole I guess. I'm good now. Thanks for great tutorial. Hopefully my experience and comments will be useful to others.

      Cheers!

      Delete
  23. This comment has been removed by the author.

    ReplyDelete
  24. This comment has been removed by the author.

    ReplyDelete
  25. will this work on the pogoplug biz? they're on sale right now under $10

    ReplyDelete
  26. My pogoplug dont boot.

    I`m do first restart and see this on serial connection

    U-Boot SPL 2013.10-tld-4 (Sep 07 2014 - 14:10:12)
    Boot device: NAND
    Attempting to set PLLA to 850 MHz ...
    plla_ctrl0 : 0000020a
    plla_ctrl1 : 00330000
    plla_ctrl2 : 0065008b
    plla_ctrl3 : 000000f1

    PLLA Set

    ----

    No boot flash disk

    Please help

    ReplyDelete
  27. For the mke2fs file, I had to use the url http://fl.us.mirror.archlinuxarm.org/os/pogoplug/mke2fs since the one you gave redirected to an https site, which the wget binary you provided doesn't work with.

    ReplyDelete
  28. Are the download.qnology.com links down?
    I keep getting a connection timeout error.
    Your VPS might be down again for some reason.

    ReplyDelete
  29. This comment has been removed by the author.

    ReplyDelete
  30. all below not working:
    wget http://download.qnology.com/pogoplug/v4/nanddump
    wget http://download.qnology.com/pogoplug/v4/nandwrite
    wget http://download.qnology.com/pogoplug/v4/flash_erase
    wget http://download.qnology.com/pogoplug/v4/fw_printenv
    wget http://download.qnology.com/pogoplug/v4/fw_setenv

    will appreciate if you can fix them. Thanks!

    ReplyDelete
  31. Anyone had found a working link to the rootfs files? Or an other idea to get my Pogoplug back working?

    ReplyDelete
    Replies
    1. Search the doozan forum for the filenames and you'll find them.

      Delete
  32. Hello guys. I've got an issue where my unit uboots and then gets to the usb system and hangs:

    starting USB...
    USB0: USB EHCI 1.00
    scanning bus 0 for devices...

    Anything I can do about this? It doesn't matter what I plug in. I can try booting from Sata, but I don't have that cable handy at the moment.

    I've also go another pro that displays a dim blue LED on the board and I get no response from console. I've written this off as a bad flash, but if anyone has advice, I'd be willing to listen.

    Thanks!

    ReplyDelete
  33. Very informative and It was an awesome post. I love reading your fantastic content. Thanks for sharing it with us. We are so greatful to your sharing.
    Change MAC Address v3.1

    ReplyDelete
  34. Thanks for the always useful information. This is great information to help garage type SEO people like me.
    Change MAC Address v3.1

    ReplyDelete
  35. Hi Qui Hong, any chance to bring the links back up? A lot of them are not reachable any longer...

    ReplyDelete
    Replies
    1. You can get them off of the internet archive using the wayback machine.

      Delete
    2. That's a great tip and I'm mad I didn't think of it before, I use wayback a lot. I've been meaning to download this debian build to replacle arch, now I can! Thanks a lot

      Delete