Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 47576

Unable to boot Debian on Pogoplug E02

$
0
0
I'm trying to bring up Debian on a Pogoplug E02, and it refuses to boot. Normally I would continue troubleshooting hoping to avoid embarrassment ... but I am waiting for a CA42 and at present have no way to get in except SSH from Windows.

This Pogoplug is to host my bitcoin miner, which needs to come off the 600 watt PC and onto the Pogoplug. I would use Arch Linux ARM ... but there is no precompiled cgminer and I was unable to install the necessary development tools due to missing packages at the distro host.

The system reliably installs and boots ArchLinuxARM from http://archlinuxarm.org/platforms/armv5/pogoplug-v2-pinkgray.

Hardware: Pogoplug E02 flashed with Rescue kernel

Drives: Ativa 4 GB USB flash, HP 4 GB USB flash, Travelstar 30 GB 2.5" through IDE-USB cable

Symptoms: Debian installs without issues. Lenny, squeeze and wheeze have been tried. Both USB flash drives and the 2.5" Travelstar have been tried. After installation, the Pogoplug does not reboot to Debian. Pushing the reset button does not boot. Powering down and restart does not boot. Failure symptoms are identical for USB and hard drive: The Pogoplug comes up, rattles the (hard) drive briefly, the network LEDs flicker, then a pause; the drive rattles a little bit, then no further activity. Waiting 10 minutes does not bring the system online. The router shows that the Pogoplug is not connected at any IP.

I'll be pleased to provide a modest Bitcoin or Terracoin tip to anyone who has a solution.

Here's a log of the installation:

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2013.07.10 19:43:56 =~=~=~=~=~=~=~=~=~=~=~=
login as: root
root@192.168.0.13's password:
rescue:~# uname -a
Linux rescue 2.6.32.18-dockstar #1 Thu Feb 17 03:09:57 EST 2011 armv5tel GNU/Linux
rescue:~# fdisk /dev/sda

The number of cylinders for this disk is set to 3648.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sda: 30.0 GB, 30005821440 bytes
255 heads, 63 sectors/track, 3648 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 183 1469916 83 Linux
/dev/sda2 184 246 506047+ 82 Linux swap / Solaris

Command (m for help): d
Partition number (1-4): 1

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-3648, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-183, default 183):
Using default value 183

Command (m for help): p

Disk /dev/sda: 30.0 GB, 30005821440 bytes
255 heads, 63 sectors/track, 3648 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 183 1469916 83 Linux
/dev/sda2 184 246 506047+ 82 Linux swap / Solaris

Command (m for help): 1 a
Partition number (1-4): 1

Command (m for help): p

Disk /dev/sda: 30.0 GB, 30005821440 bytes
255 heads, 63 sectors/track, 3648 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 183 1469916 83 Linux
/dev/sda2 184 246 506047+ 82 Linux swap / Solaris

Command (m for help): v
54653192 unallocated sectors

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
rescue:~# sync
rescue:~# sync
rescue:~# cd /tmp
rescue:/tmp# wget http://projects.doozan.com/debian/kirkwood.debian-wheezy.sh
Connecting to projects.doozan.com (50.116.34.13:80)
kirkwood.debian-whee 100% |*******************************| 11159 --:--:-- ETA
rescue:/tmp# chmod +x kirkwood.debian-wheezy.sh
rescue:/tmp# export PATH=$PATH:/usr/sbin:/sbin
rescue:/tmp# ./kirkwood.debian-wheezy.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
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 projects.doozan.com (50.116.34.13:80)

install_uboot_mtd0.s 0% | | 0 --:--:-- ETA
install_uboot_mtd0.s 100% |*******************************| 18406 00:00:00 ETA
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 (50.116.34.13:80)
Connecting to projects.doozan.com (50.116.34.13:80)

valid-uboot.md5 0% | | 0 --:--:-- ETA
valid-uboot.md5 100% |*******************************| 1133 --:--:-- ETA
## Valid uBoot detected: [pinkpogo davygravy-2012-02-20-current]
## The newest uBoot is already installed on mtd0.

# uBoot installation has completed successfully.
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
91968 inodes, 367479 blocks
18373 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=377487360
12 block groups
32768 blocks per group, 32768 fragments per group
7664 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912

Writing inode tables: 0/12 1/12 2/12 3/12 4/12 5/12 6/12 7/12 8/12 9/1210/1211/12done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
Setting up swapspace version 1, size = 518184 kB


# 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 libdb5.1 libsemanage-common libsemanage1 libslang2 libustr-1.0-1
I: Found additional base dependencies: adduser cpio debian-archive-keyring devio gnupg gpgv initramfs-tools klibc-utils libapt-pkg4.12 libbsd0 libedit2 libgcrypt11 libgnutls26 libgpg-error0 libgssapi-krb5-2 libidn11 libk5crypto3 libkeyutils1 libklibc libkmod2 libkrb5-3 libkrb5support0 libncursesw5 libp11-kit0 libprocps0 libreadline6 libssl1.0.0 libstdc++6 libtasn1-3 libudev0 libusb-0.1-4 libuuid-perl libwrap0 linux-base linux-image-3.2.0-4-kirkwood openssh-client procps readline-common vim-common
I: Checking component main on http://cdn.debian.net/debian...
I: Retrieving libacl1
<numerous successful lines removed>
I: Configuring e2fsprogs...
I: Unpacking the base system...
I: Unpacking adduser...
<numerous successful lines removed>
I: Unpacking wget...
I: Configuring the base system...
I: Configuring gpgv...
<numerous succcessful lines removed>
I: Configuring flash-kernel...
I: Base system installed successfully.

Installation complete

You can now reboot your device into Debian.
If your device does not start Debian after rebooting,
you may need to restart the device by disconnecting the power.

The new root password is 'root' Please change it immediately after
logging in.

Reboot now? [Y/n] Y
rescue:/tmp#

Viewing all articles
Browse latest Browse all 47576

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>