Welcome! Log In Create A New Profile

Advanced

Debian & Pogo Plug

Posted by Terry 
Terry
Debian & Pogo Plug
May 12, 2011 09:31AM
I have tried to install Debian on my PogoPlug based on the info @ http://jeff.doozan.com/debian/

The d/l don't seem to be there, see ending text for output of script.

Is there more current instructions somewhere?




/tmp # wget http://jeff.doozan.com/debian/dockstar.debian-squeeze.sh
Connecting to jeff.doozan.com (69.163.187.226:80)
/tmp # chmod +x dockstar.debian-squeeze.sh
/tmp # export PATH=$PATH:/usr/sbin:/sbin
/tmp # ./dockstar.debian-squeeze.sh


!!!!!! DANGER DANGER DANGER DANGER DANGER DANGER !!!!!!

This script will replace the bootloader on /dev/mtd0.

If you lose power while the bootloader is being flashed,
your device could be left in an unusable state.


This script will configure your Dockstar to boot Debian Squeeze
from a USB device. Before running this script, you should have
used fdisk to create the following partitions:

/dev/sda1 (Linux ext2, at least 400MB)
/dev/sda2 (Linux swap, recommended 256MB)


This script will DESTROY ALL EXISTING DATA on /dev/sda1
Please double check that the device on /dev/sda1 is the correct device.

By typing ok, you agree to assume all liabilities and risks
associated with running this installer.

If everything looks good, type 'ok' to continue: ok
Connecting to jeff.doozan.com (69.163.187.226:80)
Installing Bootloader
# 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 (69.163.187.226:80)
## Unknown uBoot detected on mtd0: fe82e990a551e26c4be919f05ac873a5
##
## 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.
##
## If you have installed a diffirent uBoot on mtd0, and understand the
## risks, you can re-run the installer with the --no-uboot-check parameter
##
## Installation cancelled.
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
465120 inodes, 1860236 blocks
93011 blocks (5%) reserved for the super user
First data block=0
Maximum filesystem blocks=4194304
57 block groups
32768 blocks per group, 32768 fragments per group
8160 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
./dockstar.debian-squeeze.sh: line 297: /sbin/mkswap: not found
Connecting to cdn.debian.net (128.30.2.36:80)
wget: server returned error: HTTP/1.1 404 Not Found
./dockstar.debian-squeeze.sh: line 333: ar: not found
tar: can't open 'data.tar.gz': No such file or directory
mv: can't rename './usr/sbin/debootstrap': No such file or directory
mv: can't rename './usr/share/debootstrap': No such file or directory
# checking for /usr/share/debootstrap/pkgdetails...

# Installing /usr/share/debootstrap/pkgdetails...
Connecting to jeff.doozan.com (69.163.187.226:80)
wget: can't open '/usr/share/debootstrap/pkgdetails.md5': No such file or directory
Connecting to jeff.doozan.com (69.163.187.226:80)
wget: can't open '/usr/share/debootstrap/pkgdetails.md5': No such file or directory
## Could not install /usr/share/debootstrap/pkgdetails from http://jeff.doozan.com/debian/pkgdetails, exiting.
Re: Debian & Pogo Plug
May 12, 2011 09:49AM
The script seems to be broken, use this

http://forum.doozan.com/read.php?2,4244,4587#msg-4587

I successfully installed Debian using the above just few hours back. :)
Terry
Re: Debian & Pogo Plug
May 12, 2011 10:26AM
Still didn't work:

export PATH=$PATH:/sbin:/usr/sbin

/tmp # export PATH=$PATH:/usr/sbin:/sbin
/tmp # ./dockstar.debian-squeeze.sh
touch: /sbin/12052011151442: Read-only file system


!!!!!! DANGER DANGER DANGER DANGER DANGER DANGER !!!!!!

This script will replace the bootloader on /dev/mtd0.

If you lose power while the bootloader is being flashed,
your device could be left in an unusable state.


This script will configure your Dockstar to boot Debian Squeeze
from a USB device. Before running this script, you should have
used fdisk to create the following partitions:

/dev/sda1 (Linux ext2, at least 400MB)
/dev/sda2 (Linux swap, recommended 256MB)


This script will DESTROY ALL EXISTING DATA on /dev/sda1
Please double check that the device on /dev/sda1 is the correct device.

By typing ok, you agree to assume all liabilities and risks
associated with running this installer.

If everything looks good, type 'ok' to continue: ok
Connecting to jeff.doozan.com (69.163.187.226:80)
Installing Bootloader
# 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 (69.163.187.226:80)
## Unknown uBoot detected on mtd0: fe82e990a551e26c4be919f05ac873a5
##
## 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.
##
## If you have installed a diffirent uBoot on mtd0, and understand the
## risks, you can re-run the installer with the --no-uboot-check parameter
##
## Installation cancelled.
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
465120 inodes, 1860236 blocks
93011 blocks (5%) reserved for the super user
First data block=0
Maximum filesystem blocks=4194304
57 block groups
32768 blocks per group, 32768 fragments per group
8160 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
./dockstar.debian-squeeze.sh: line 298: /sbin/mkswap: not found
Connecting to dev.shyd.de (212.172.221.8:80)
./
./usr/
./usr/share/
./usr/share/debootstrap/
./usr/share/debootstrap/pkgdetails
./usr/share/debootstrap/functions
./usr/share/debootstrap/devices.tar.gz
./usr/share/debootstrap/scripts/
./usr/share/debootstrap/scripts/wheezy
./usr/share/debootstrap/scripts/stable
./usr/share/debootstrap/scripts/potato
./usr/share/debootstrap/scripts/karmic
./usr/share/debootstrap/scripts/jaunty
./usr/share/debootstrap/scripts/feisty
./usr/share/debootstrap/scripts/dapper
./usr/share/debootstrap/scripts/breezy
./usr/share/debootstrap/scripts/unstable
./usr/share/debootstrap/scripts/woody.buildd
./usr/share/debootstrap/scripts/sarge.buildd
./usr/share/debootstrap/scripts/warty.buildd
./usr/share/debootstrap/scripts/etch-m68k
./usr/share/debootstrap/scripts/hoary.buildd
./usr/share/debootstrap/scripts/sarge.fakechroot
./usr/share/debootstrap/scripts/maverick
./usr/share/debootstrap/scripts/squeeze
./usr/share/debootstrap/scripts/testing
./usr/share/debootstrap/scripts/woody
./usr/share/debootstrap/scripts/warty
./usr/share/debootstrap/scripts/sarge
./usr/share/debootstrap/scripts/natty
./usr/share/debootstrap/scripts/lucid
./usr/share/debootstrap/scripts/lenny
./usr/share/debootstrap/scripts/hoary
./usr/share/debootstrap/scripts/gutsy
./usr/share/debootstrap/scripts/hardy
./usr/share/debootstrap/scripts/etch
./usr/share/debootstrap/scripts/edgy
./usr/share/debootstrap/scripts/intrepid
./usr/share/debootstrap/scripts/sid
./usr/sbin/
./usr/sbin/debootstrap
# checking for /usr/share/debootstrap/pkgdetails...


# Starting debootstrap installation
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional required dependencies: insserv libbz2-1.0 libdb4.8 libslang2
I: Found additional base dependencies: adduser cpio debian-archive-keyring devio gnupg gpgv initramfs-tools klibc-utils libbsd0 libcap2 libedit2 libgssapi-krb5-2 libk5crypto3 libkeyutils1 libklibc libkrb5-3 libkrb5support0 libncursesw5 libreadline6 libssl0.9.8 libudev0 libusb-0.1-4 libuuid-perl libwrap0 linux-base linux-image-2.6.32-5-kirkwood openssh-blacklist openssh-client procps readline-common vim-common
I: Checking component main on http://ftp.de.debian.org/debian...
I: Retrieving libacl1
I: Validating libacl1
I: Retrieving adduser
I: Validating adduser
I: Retrieving apt
I: Validating apt
I: Retrieving libattr1
I: Validating libattr1
I: Retrieving base-files
I: Validating base-files
I: Retrieving base-passwd
I: Validating base-passwd
I: Retrieving bash
I: Validating bash
I: Retrieving libbz2-1.0
I: Validating libbz2-1.0
I: Retrieving coreutils
I: Validating coreutils
I: Retrieving cpio
I: Validating cpio
I: Retrieving dash
I: Validating dash
I: Retrieving libdb4.8
I: Validating libdb4.8
I: Retrieving debconf-i18n
I: Validating debconf-i18n
I: Retrieving debconf
I: Validating debconf
I: Retrieving debian-archive-keyring
I: Validating debian-archive-keyring
I: Retrieving debianutils
I: Validating debianutils
I: Retrieving devio
I: Validating devio
I: Retrieving dhcpcd
I: Validating dhcpcd
I: Retrieving diffutils
I: Validating diffutils
I: Retrieving dpkg
I: Validating dpkg
I: Retrieving e2fslibs
I: Validating e2fslibs
I: Retrieving e2fsprogs
I: Validating e2fsprogs
I: Retrieving libcomerr2
I: Validating libcomerr2
I: Retrieving libss2
I: Validating libss2
I: Retrieving libc-bin
I: Validating libc-bin
I: Retrieving libc6
I: Validating libc6
I: Retrieving findutils
I: Validating findutils
I: Retrieving flash-kernel
I: Validating flash-kernel
I: Retrieving gcc-4.4-base
I: Validating gcc-4.4-base
I: Retrieving libgcc1
I: Validating libgcc1
I: Retrieving libstdc++6
I: Validating libstdc++6
I: Retrieving gnupg
I: Validating gnupg
I: Retrieving gpgv
I: Validating gpgv
I: Retrieving grep
I: Validating grep
I: Retrieving gzip
I: Validating gzip
I: Retrieving hostname
I: Validating hostname
I: Retrieving ifupdown
I: Validating ifupdown
I: Retrieving initramfs-tools
I: Validating initramfs-tools
I: Retrieving insserv
I: Validating insserv
I: Retrieving iproute
I: Validating iproute
I: Retrieving iputils-ping
I: Validating iputils-ping
I: Retrieving libkeyutils1
I: Validating libkeyutils1
I: Retrieving klibc-utils
I: Validating klibc-utils
I: Retrieving libklibc
I: Validating libklibc
I: Retrieving libgssapi-krb5-2
I: Validating libgssapi-krb5-2
I: Retrieving libk5crypto3
I: Validating libk5crypto3
I: Retrieving libkrb5-3
I: Validating libkrb5-3
I: Retrieving libkrb5support0
I: Validating libkrb5support0
I: Retrieving linux-base
I: Validating linux-base
I: Retrieving linux-image-2.6.32-5-kirkwood
I: Validating linux-image-2.6.32-5-kirkwood
I: Retrieving linux-image-2.6-kirkwood
I: Validating linux-image-2.6-kirkwood
I: Retrieving lsb-base
I: Validating lsb-base
I: Retrieving libbsd0
I: Validating libbsd0
I: Retrieving libcap2
I: Validating libcap2
I: Retrieving libedit2
I: Validating libedit2
I: Retrieving liblocale-gettext-perl
I: Validating liblocale-gettext-perl
I: Retrieving libselinux1
I: Validating libselinux1
I: Retrieving libsepol1
I: Validating libsepol1
I: Retrieving libtext-charwidth-perl
I: Validating libtext-charwidth-perl
I: Retrieving libtext-iconv-perl
I: Validating libtext-iconv-perl
I: Retrieving libtext-wrapi18n-perl
I: Validating libtext-wrapi18n-perl
I: Retrieving libusb-0.1-4
I: Validating libusb-0.1-4
I: Retrieving libuuid-perl
I: Validating libuuid-perl
I: Retrieving mawk
I: Validating mawk
I: Retrieving module-init-tools
I: Validating module-init-tools
I: Retrieving libncurses5
I: Validating libncurses5
I: Retrieving libncursesw5
I: Validating libncursesw5
I: Retrieving ncurses-base
I: Validating ncurses-base
I: Retrieving ncurses-bin
I: Validating ncurses-bin
I: Retrieving net-tools
I: Validating net-tools
I: Retrieving netbase
I: Validating netbase
I: Retrieving ntpdate
I: Validating ntpdate
I: Retrieving openssh-blacklist
I: Validating openssh-blacklist
I: Retrieving openssh-client
I: Validating openssh-client
I: Retrieving openssh-server
I: Validating openssh-server
I: Retrieving libssl0.9.8
I: Validating libssl0.9.8
I: Retrieving libpam-modules
I: Validating libpam-modules
I: Retrieving libpam-runtime
I: Validating libpam-runtime
I: Retrieving libpam0g
I: Validating libpam0g
I: Retrieving perl-base
I: Validating perl-base
I: Retrieving procps
I: Validating procps
I: Retrieving libreadline6
I: Validating libreadline6
I: Retrieving readline-common
I: Validating readline-common
I: Retrieving sed
I: Validating sed
I: Retrieving sensible-utils
I: Validating sensible-utils
I: Retrieving login
I: Validating login
I: Retrieving passwd
I: Validating passwd
I: Retrieving libslang2
I: Validating libslang2
I: Retrieving initscripts
I: Validating initscripts
I: Retrieving sysv-rc
I: Validating sysv-rc
I: Retrieving sysvinit-utils
I: Validating sysvinit-utils
I: Retrieving sysvinit
I: Validating sysvinit
I: Retrieving tar
I: Validating tar
I: Retrieving libwrap0
I: Validating libwrap0
I: Retrieving libudev0
I: Validating libudev0
I: Retrieving bsdutils
I: Validating bsdutils
I: Retrieving libblkid1
I: Validating libblkid1
I: Retrieving libuuid1
I: Validating libuuid1
I: Retrieving mount
I: Validating mount
I: Retrieving liblzma2
I: Validating liblzma2
I: Retrieving tzdata
I: Validating tzdata
I: Retrieving uboot-envtools
I: Validating uboot-envtools
Connecting to ftp.de.debian.org (141.76.2.4:80)
Connecting to ftp.de.debian.org (141.76.2.4:80)
Connecting to ftp.de.debian.org (141.76.2.4:80)
Connecting to ftp.de.debian.org (141.76.2.4:80)
Connecting to ftp.de.debian.org (141.76.2.4:80)
Connecting to ftp.de.debian.org (141.76.2.4:80)
Connecting to ftp.de.debian.org (141.76.2.4:80)
Connecting to ftp.de.debian.org (141.76.2.4:80)
Connecting to ftp.de.debian.org (141.76.2.4:80)
Connecting to ftp.de.debian.org (141.76.2.4:80)
Connecting to ftp.de.debian.org (141.76.2.4:80)
Connecting to ftp.de.debian.org (141.76.2.4:80)
Connecting to ftp.de.debian.org (141.76.2.4:80)
Connecting to ftp.de.debian.org (141.76.2.4:80)
Connecting to ftp.de.debian.org (141.76.2.4:80)
Connecting to ftp.de.debian.org (141.76.2.4:80)
Connecting to ftp.de.debian.org (141.76.2.4:80)
Connecting to ftp.de.debian.org (141.76.2.4:80)
Connecting to ftp.de.debian.org (141.76.2.4:80)
Connecting to ftp.de.debian.org (141.76.2.4:80)
/usr/sbin/debootstrap: line 589: ar: not found
Re: Debian & Pogo Plug
May 16, 2011 01:30PM
The dockstar squeeze installer points to a file, debootstrap_1.0.28_all.deb, that is no longer present. I suspect that if you fix that you also need to change the kernel package and kernel version mentioned later in the script to one that corresponds the debootstrap file you are planning to use. Alternatively you could look for a mirror that contains the referenced debootstrap file and change the deb mirror reference.. In either case you are betting there are no inconsistencies with respect to Jeff Doozan's mirror. I decided to take an easier path and used the older Lenny install script which worked fine.
SV
Re: Debian & Pogo Plug
May 17, 2011 11:18PM
yep, the script needs to be updated to use debootstrap_1.0.30, till then just bootstrap with lenny and once you're up and running change your sources.list from lenny to squeeze, apt-get dist-upgrade
BobD
Re: Debian & Pogo Plug
May 18, 2011 12:52PM
Okay, this is how I got squeeze bootstrapped on a dockstar.

Use the lenny install script. reboot. apt-get update && apt-get upgrade && apt-get dist-upgrade. reboot. You should still be running the installer kernel 2.6.33 (the lenny and squeeze debian kernels are 2.6.32.) - check using uname -a.

edit /etc/apt/sources.list. Change the first respository to read:

deb http://ftp.us.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.us.debian.org/debian/ squeeze main contrib non-free

comment out the other repositories.

apt-get update && apt-get upgrade

Now we do the kernel upgrade.
apt-get install linux-image-2.6-kirkwood.
This should pull and install the 2.6.32 squeeze kernel.

now we upgrade udev.

apt-get install udev

apt-get should call dpkg-reconfigure to invoke flash-kernel. just in case, run flash-kernel again. (this won't actually flash your kernel, just uimage-ize it for uboot)

flash-image

now you should be able to reboot. I had trouble getting the system to come up here, I needed to shut it down and start it up cold, then it continued just fine. Check uname -a to see if you're on the debian kernel (2.6.32).

now, apt-get dist-upgrade. apt-get clean. reboot. you're running squeeze. let's just clean up a couple of loose ends.

first, fw_checkenv/setenv support.

cd /etc
wget http://jeff.doozan.com/debian/uboot/fw_env.config
apt-get install uboot-envtools uboot-mkimage

check the fw_env.config by running

fw_printenv

(if this completes without any errors, your config is good. this is important, because a bad config combined with fw_setenv will brick your dockstar. for serious.)

now, let's set the proper arcnumber for a dockstar

fw_setenv arcNumber 2998

(not necessary, but the debian kernel supports it and it re enables the LED! yeah!)

fix your sources.list repositories so you get security updates. add the following repos:

deb http://ftp.us.debian.org/debian squeeze-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian squeeze-updates main contrib non-free

deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free

you don't need the orion repo because orion/kirkwood is officially supported in squeeze.

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

reboot. you're running squeeze. congrats.
Lucky
Re: Debian & Pogo Plug
June 02, 2011 12:56AM
The new version of the script is not working for me. Following error occured:
I: Retrieving zlib1g
I: Validating zlib1g
I: Chosen extractor for .deb packages: ar
I: Extracting libacl1...
E: Unknown compression type for in .//var/cache/apt/archives/libacl1_2.2.49-4_armel.deb
debootstrap failed.
See /tmp/debian/debootstrap/debootstrap.log for more information.
Bad Joker
Re: Debian & Pogo Plug
June 14, 2011 10:21AM
Re: Debian & Pogo Plug
February 10, 2012 09:32PM
BobD, Thanks for the guide! Worked like a charm on my PogoPlug Pink!

TXTAG1
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: