Welcome! Log In Create A New Profile

Advanced

Boot into Pogoplug OS fails, but Debian works!

Posted by Ultrazauberer 
Ultrazauberer
Boot into Pogoplug OS fails, but Debian works!
September 15, 2010 09:05AM
Hello again,

to provide a better overview I start a new topic. My Dockstar is working fine with Jeff's installation scripts. Big thx!

But I have a problem: I can't boot the original OS. The Dockstar gets no IP when all USB devices are removed. So I can't SSH the Dockstar to update the uboot. Can I update the uboot out of debian?

If not, what I have to do to get a newer uboot? Setting up the netconsole with your howto (if that can be done out of debian)?

Here's what fw_printenv says:

root@debian:~# fw_printenv
bootcmd=run bootcmd_usb; usb stop; run bootcmd_pogo; reset
bootdelay=3
baudrate=115200
preboot=
arcNumber=2097
mainlineLinux=yes
console=ttyS0,115200
usb_device=0:1
usb_root=/dev/sda1
usb_rootfstype=ext2
usb_rootdelay=10
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtdids=nand0=orion_nand
partition=nand0,2
bootcmd_pogo=fsload uboot-original-mtd0.kwb; go 0x800200
usb_boot=if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000;else bootm 0x800000;fi;
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts
bootcmd_usb=run usb_init; run usb_load_uimage; run set_bootargs_usb; run usb_boot;
ethact=egiga0
stdin=serial
stdout=serial
stderr=serial
usb_load_uimage=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage
ethaddr=00:10:75:1A:CE:E6
usb_init=usb start; if ext2load usb 0:1 0x800000 /boot/uImage; then setenv usb_device 0:1; setenv usb_root /dev/sda1; elif ext2load usb 1:1 0x800000 /boot/uImage; then setenv usb_device 1:1; setenv usb_root /dev/sdb1; elif ext2load usb 2:1 0x800000 /boot/uImage; then setenv usb_device 2:1; setenv usb_root /dev/sdc1; elif ext2load usb 3:1 0x800000 /boot/uImage; then setenv usb_device 3:1;setenv usb_root /dev/sdd1;fi;

Thanks for any help oder hints! I would love the person who can help me. :D ^^
Re: Boot into Pogoplug OS fails, but Debian works!
September 15, 2010 09:26AM
I have the same problem.
I installed debian some time ago. I could boot debian and Pogo.

Now i install debian on a new HDD an now i have no Pogo.
Re: Boot into Pogoplug OS fails, but Debian works!
September 15, 2010 10:40AM
I tried to boot into PogoPlug again, but doesn't work.

I've uploaded a video to youtube to show all the blinking behavior: http://www.youtube.com/watch?v=NY8ta2w4EUw

Since I have my little problems with colors. ;)

By the way: 2 weeks ago my Dockstar worked fine and it boots into Pogoplug or Debian. Then I only added this line of code like Jeff in his Howto (Scan all USB devices and boot from first one):

usb_init=usb start; if ext2load usb 0:1 0x800000 /boot/uImage; then setenv usb_device 0:1; setenv usb_root /dev/sda1; elif ext2load usb 1:1 0x800000 /boot/uImage; then setenv usb_device 1:1; setenv usb_root /dev/sdb1; elif ext2load usb 2:1 0x800000 /boot/uImage; then setenv usb_device 2:1; setenv usb_root /dev/sdc1; elif ext2load usb 3:1 0x800000 /boot/uImage; then setenv usb_device 3:1;setenv usb_root /dev/sdd1;fi;

After that I didn't tried to boot into Pogoplug because I had no reason. But now I want to update the uboot. The strange issue is also that there is no network activity shown in my router interface when all usb devices are plugged off.

Thanks for help!

EDIT: blparam shows following:

root@debian:~# blparam
baudrate=115200
loads_echo=0
ipaddr=169.254.254.253
serverip=169.254.254.254
rootpath=/mnt/ARM_FS/
netmask=255.255.0.0
run_diag=yes
console=console=ttyS0,115200
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/mtdblock2 ro
ethmtu=1500
usb0Mode=host
nandEcc=1bit
ethact=egiga0
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
ethaddr=00:10:75:1A:CE:E6
cesvcid=D8C6ZAYTFQZ8AML96GHKW2343N
ceserialno=2GEP1GM1
ceboardver=REDSTONE:1.0
bootcmd_original=nand read.e 0x800000 0x100000 0x300000; setenv bootargs $(console) $(bootargs_root); bootm 0x800000
bootcmd=run bootcmd_original



Edited 1 time(s). Last edit at 09/15/2010 11:02AM by Ultrazauberer.
Re: Boot into Pogoplug OS fails, but Debian works!
September 15, 2010 12:21PM
I've updated the mtd0 uBoot installer. You should be okay running it from Debian now.

-- Jeff
Re: Boot into Pogoplug OS fails, but Debian works!
September 15, 2010 01:01PM
Thanks Jeff, will try it now! :) I report the results instantly.

EDIT: I've run the mtd0 installer out of debian:

2010-09-15 18:03:40 (1.51 MB/s) - `/usr/sbin/blparam.md5' saved [42/42]

--2010-09-15 18:03:40--  http://jeff.doozan.com/debian/uboot/blparam
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14168 (14K) [text/plain]
Saving to: `/usr/sbin/blparam'

100%[======================================>] 14,168      34.7K/s   in 0.4s

2010-09-15 18:03:41 (34.7 KB/s) - `/usr/sbin/blparam' saved [14168/14168]

mount: / is busy
# Successfully installed blparam.

# Installing nanddump...
--2010-09-15 18:03:43--  http://jeff.doozan.com/debian/uboot/nanddump.md5
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 43 [text/plain]
Saving to: `/usr/sbin/nanddump.md5'

100%[======================================>] 43          --.-K/s   in 0s

2010-09-15 18:03:43 (1.56 MB/s) - `/usr/sbin/nanddump.md5' saved [43/43]

--2010-09-15 18:03:43--  http://jeff.doozan.com/debian/uboot/nanddump
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 21286 (21K) [text/plain]
Saving to: `/usr/sbin/nanddump'

100%[======================================>] 21,286      51.0K/s   in 0.4s

2010-09-15 18:03:44 (51.0 KB/s) - `/usr/sbin/nanddump' saved [21286/21286]

mount: / is busy
# Successfully installed nanddump.

# Installing flash_erase...
--2010-09-15 18:03:46--  http://jeff.doozan.com/debian/uboot/flash_erase.md5
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 46 [text/plain]
Saving to: `/usr/sbin/flash_erase.md5'

100%[======================================>] 46          --.-K/s   in 0s

2010-09-15 18:03:46 (1.61 MB/s) - `/usr/sbin/flash_erase.md5' saved [46/46]

--2010-09-15 18:03:46--  http://jeff.doozan.com/debian/uboot/flash_erase
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12819 (13K) [text/plain]
Saving to: `/usr/sbin/flash_erase'

100%[======================================>] 12,819      31.4K/s   in 0.4s

2010-09-15 18:03:47 (31.4 KB/s) - `/usr/sbin/flash_erase' saved [12819/12819]

mount: / is busy
# Successfully installed flash_erase.

# Installing fw_printenv and fw_setenv utils...
--2010-09-15 18:03:49--  http://jeff.doozan.com/debian/uboot/fw_printenv.md5
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 46 [text/plain]
Saving to: `/usr/bin/fw_printenv.md5'

100%[======================================>] 46          --.-K/s   in 0s

2010-09-15 18:03:49 (1.68 MB/s) - `/usr/bin/fw_printenv.md5' saved [46/46]

--2010-09-15 18:03:49--  http://jeff.doozan.com/debian/uboot/fw_printenv
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 668497 (653K) [text/plain]
Saving to: `/usr/bin/fw_printenv'

100%[======================================>] 668,497      333K/s   in 2.0s

2010-09-15 18:03:52 (333 KB/s) - `/usr/bin/fw_printenv' saved [668497/668497]

mount: / is busy
## Successfully installed fw_printenv and fw_setenv.

# Installing uboot-original-mtd0.kwb...
--2010-09-15 18:03:54--  http://jeff.doozan.com/debian/uboot/uboot-original-mtd0.kwb.md5
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 49 [text/plain]
Saving to: `/uboot-original-mtd0.kwb.md5'

100%[======================================>] 49          --.-K/s   in 0s

2010-09-15 18:03:54 (1.84 MB/s) - `/uboot-original-mtd0.kwb.md5' saved [49/49]

--2010-09-15 18:03:55--  http://jeff.doozan.com/debian/uboot/uboot-original-mtd0.kwb
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 524288 (512K) [text/plain]
Saving to: `/uboot-original-mtd0.kwb'

100%[======================================>] 524,288      281K/s   in 1.8s

2010-09-15 18:03:57 (281 KB/s) - `/uboot-original-mtd0.kwb' saved [524288/524288]

mount: / is busy
## Successfully installed uboot-original-mtd0.kwb

# Attempting to auto-detect your device...Dockstar with modified bootcmd detected

# Checking for existing uBoot on mtd0...
--2010-09-15 18:03:59--  http://jeff.doozan.com/debian/uboot/uboot.mtd0.kwb.md5
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 49 [text/plain]
Saving to: `/tmp/uboot.mtd0.kwb.md5'

100%[======================================>] 49          --.-K/s   in 0s

2010-09-15 18:03:59 (1.76 MB/s) - `/tmp/uboot.mtd0.kwb.md5' saved [49/49]

Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00080000...
rm: cannot remove `/tmp/valid-uboot.md5': No such file or directory
--2010-09-15 18:04:00--  http://jeff.doozan.com/debian/uboot/valid-uboot.md5
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 404 [text/plain]
Saving to: `/tmp/valid-uboot.md5'

100%[======================================>] 404         --.-K/s   in 0s

2010-09-15 18:04:00 (13.6 MB/s) - `/tmp/valid-uboot.md5' saved [404/404]

## Valid uBoot detected on mtd0.

# Installing uBoot
--2010-09-15 18:04:00--  http://jeff.doozan.com/debian/uboot/uboot.mtd0.kwb.md5
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 49 [text/plain]
Saving to: `/tmp/uboot.mtd0.kwb.md5'

100%[======================================>] 49          --.-K/s   in 0s

2010-09-15 18:04:00 (1.70 MB/s) - `/tmp/uboot.mtd0.kwb.md5' saved [49/49]

--2010-09-15 18:04:00--  http://jeff.doozan.com/debian/uboot/uboot.mtd0.kwb
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 524288 (512K) [text/plain]
Saving to: `/tmp/uboot.mtd0.kwb'

100%[======================================>] 524,288      281K/s   in 1.8s

2010-09-15 18:04:03 (281 KB/s) - `/tmp/uboot.mtd0.kwb' saved [524288/524288]

Erase Total 4 Units
Performing Flash Erase of length 131072 at offset 0x60000 done
Usage: nanddump [OPTIONS] MTD-device
Dumps the contents of a nand mtd partition.

           --help               Display this help and exit
           --version            Output version information and exit
-a         --forcebinary        Force printing of binary data to tty
-c         --canonicalprint     Print canonical Hex+ASCII dump
-f file    --file=file          Dump to file
-i         --ignoreerrors       Ignore errors
-l length  --length=length      Length
-n         --noecc              Read without error correction
-o         --omitoob            Omit oob data
-b         --omitbad            Omit bad blocks from the dump
-p         --prettyprint        Print nice (hexdump)
-q         --quiet              Don't display progress and status messages
-s addr    --startaddress=addr  Start address
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00080000...
## Verifying new uBoot...
--2010-09-15 18:04:03--  http://jeff.doozan.com/debian/uboot/uboot.mtd0.kwb.md5
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 49 [text/plain]
Saving to: `/tmp/uboot.mtd0.kwb.md5'

100%[======================================>] 49          --.-K/s   in 0s

2010-09-15 18:04:03 (1.77 MB/s) - `/tmp/uboot.mtd0.kwb.md5' saved [49/49]

##
##
## VERIFICATION FAILED!
##
## uBoot was not properly installed to mtd0.
##
##
## YOUR DEVICE MAY BE IN AN UNUSABLE STATE.
## DO NOT REBOOT OR POWER OFF YOUR DEVICE
##
##
## Make a backup of /tmp/uboot-mtd0-dump someplace safe and
## then re-run this installer.

After that I re-run the script:

root@debian:/tmp# ./install_uboot_mtd0.sh                                       

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

If you lose power to your device while running this script,
it could be left in an unusable state.

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

This installer will only work on a Seagate Dockstar or Pogoplug Pink.
Do not run this installer on any other device.

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

If you agree, type 'ok' and press ENTER to continue: ok



DISABLE POGOPLUG SERVICES

The pogoplug service includes an auto-update feature which could
be used to cripple or disable your device.  It is recommended
that you disable this service.

NOTE: The pogoplug service is proprietary software
created by Cloud Engines.  It is not available for use
in other distributions and will not be available in
your new linux installation even if you choose not to disable it.

Would you like to disable the pogoplug services? [Y/n] Y
Applying fixes to the pogoplug environment...
Disabling the pogoplug service...
mount: / is busy
Done fixing pogoplug environment.


# Attempting to auto-detect your device...Dockstar with modified bootcmd detected

# Checking for existing uBoot on mtd0...
--2010-09-15 18:07:08--  http://jeff.doozan.com/debian/uboot/uboot.mtd0.kwb.md5
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 49 [text/plain]
Saving to: `/tmp/uboot.mtd0.kwb.md5'

100%[======================================>] 49          --.-K/s   in 0s

2010-09-15 18:07:08 (1.75 MB/s) - `/tmp/uboot.mtd0.kwb.md5' saved [49/49]

Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00080000...
rm: cannot remove `/tmp/valid-uboot.md5': No such file or directory
--2010-09-15 18:07:09--  http://jeff.doozan.com/debian/uboot/valid-uboot.md5
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 404 [text/plain]
Saving to: `/tmp/valid-uboot.md5'

100%[======================================>] 404         --.-K/s   in 0s

2010-09-15 18:07:09 (13.6 MB/s) - `/tmp/valid-uboot.md5' saved [404/404]

## Unknown uBoot detected on mtd0: 38eb11b49b828dc070270680a8a37845
##
## 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.
root@debian:/tmp#



Edited 2 time(s). Last edit at 09/15/2010 01:08PM by Ultrazauberer.
Re: Boot into Pogoplug OS fails, but Debian works!
September 15, 2010 01:13PM
Also a new run
root@debian:/tmp# ./install_uboot_mtd0.sh --no-uboot-check
couldn't solve the problem. I'll wait for your posting Jeff, and I will not power off the device! ;)

EDIT:

I have the 3 original files from the dockstar backed up with this script:

cd /tmp
mkdir usb
mount /dev/sda1 /tmp/usb
wget http://plugapps.com/os/pogoplug/uboot/nanddump
chmod +x nanddump
./nanddump -nf usb/mtd0 /dev/mtd0
./nanddump -nf usb/mtd1 /dev/mtd1
./nanddump -nf usb/mtd2 /dev/mtd2
umount /dev/sda

I think I should flash it while my Dockstar is still powered. Are there any instructions of flashing these files out of debian?

Edit3: I'm wondering about the file size? My backed up files have following sizes:
root@debian:/mnt/filme# ls -la mtd*
-rwxr--r-- 1 nobody nogroup  1081344 Aug 29 16:21 mtd0
-rwxr--r-- 1 nobody nogroup  4325376 Aug 29 16:21 mtd1
-rwxr--r-- 1 nobody nogroup 34603008 Aug 29 16:21 mtd2

or better readable
root@debian:/mnt/filme# ls -lah mtd*
-rwxr--r-- 1 nobody nogroup 1.1M Aug 29 16:21 mtd0
-rwxr--r-- 1 nobody nogroup 4.2M Aug 29 16:21 mtd1
-rwxr--r-- 1 nobody nogroup  33M Aug 29 16:21 mtd2

The uboot-mtd0-dump generated by your script shows following:
root@debian:/mnt/filme# ls -lah uboot-mtd0-dump
-rw-r--r-- 1 root root 512K Sep 15 18:06 uboot-mtd0-dump
root@debian:/mnt/filme# ls -la uboot-mtd0-dump
-rw-r--r-- 1 root root 524288 Sep 15 18:06 uboot-mtd0-dump

I'll wait for your instructions. ;)



Edited 2 time(s). Last edit at 09/15/2010 01:27PM by Ultrazauberer.
Re: Boot into Pogoplug OS fails, but Debian works!
September 15, 2010 01:32PM
Okay, the installer is fixed. Sorry for that scare. If you re-download the installer and run it with --no-uboot-check you should be all set.

-- Jeff
Re: Boot into Pogoplug OS fails, but Debian works!
September 15, 2010 01:41PM
Jeff, if it works, I want your Paypal account for donation! :D

root@debian:/tmp# ls
install_uboot_mtd0.sh  uboot-mtd0-dump  uboot.mtd0.kwb.md5
mtd0.uboot             uboot.mtd0.kwb
root@debian:/tmp# rm *
root@debian:/tmp# ls
root@debian:/tmp# wget http://jeff.doozan.com/debian/uboot/install_uboot_mtd0.sh
--2010-09-15 18:37:55--  http://jeff.doozan.com/debian/uboot/install_uboot_mtd0.sh
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15521 (15K) [application/x-sh]
Saving to: `install_uboot_mtd0.sh'

100%[======================================>] 15,521      37.9K/s   in 0.4s

2010-09-15 18:37:56 (37.9 KB/s) - `install_uboot_mtd0.sh' saved [15521/15521]

root@debian:/tmp# chmod +x install_uboot_mtd0.sh
root@debian:/tmp# ./install_uboot_mtd0.sh --no-uboot-check


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

If you lose power to your device while running this script,
it could be left in an unusable state.

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

This installer will only work on a Seagate Dockstar or Pogoplug Pink.
Do not run this installer on any other device.

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

If you agree, type 'ok' and press ENTER to continue: ok



DISABLE POGOPLUG SERVICES

The pogoplug service includes an auto-update feature which could
be used to cripple or disable your device.  It is recommended
that you disable this service.

NOTE: The pogoplug service is proprietary software
created by Cloud Engines.  It is not available for use
in other distributions and will not be available in
your new linux installation even if you choose not to disable it.

Would you like to disable the pogoplug services? [Y/n] Y
Applying fixes to the pogoplug environment...
Disabling the pogoplug service...
mount: / is busy
Done fixing pogoplug environment.


# Installing nandwrite...
--2010-09-15 18:38:36--  http://jeff.doozan.com/debian/uboot/nandwrite.md5
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 44 [text/plain]
Saving to: `/usr/sbin/nandwrite.md5'

100%[======================================>] 44          --.-K/s   in 0s

2010-09-15 18:38:36 (1.59 MB/s) - `/usr/sbin/nandwrite.md5' saved [44/44]

--2010-09-15 18:38:36--  http://jeff.doozan.com/debian/uboot/nandwrite
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11500 (11K) [text/plain]
Saving to: `/usr/sbin/nandwrite'

100%[======================================>] 11,500      55.6K/s   in 0.2s

2010-09-15 18:38:37 (55.6 KB/s) - `/usr/sbin/nandwrite' saved [11500/11500]

mount: / is busy
# Successfully installed nandwrite.

# Attempting to auto-detect your device...Dockstar with modified bootcmd detected

# Checking for existing uBoot on mtd0...
--2010-09-15 18:38:39--  http://jeff.doozan.com/debian/uboot/uboot.mtd0.kwb.md5
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 49 [text/plain]
Saving to: `/tmp/uboot.mtd0.kwb.md5'

100%[======================================>] 49          --.-K/s   in 0s

2010-09-15 18:38:39 (1.79 MB/s) - `/tmp/uboot.mtd0.kwb.md5' saved [49/49]

Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00080000...
rm: cannot remove `/tmp/valid-uboot.md5': No such file or directory
--2010-09-15 18:38:39--  http://jeff.doozan.com/debian/uboot/valid-uboot.md5
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 404 [text/plain]
Saving to: `/tmp/valid-uboot.md5'

100%[======================================>] 404         --.-K/s   in 0s

2010-09-15 18:38:40 (13.2 MB/s) - `/tmp/valid-uboot.md5' saved [404/404]

## Unknown uBoot detected on mtd0: 38eb11b49b828dc070270680a8a37845
##
## --no-uboot-check flag detected, continuing installation

# Installing uBoot
--2010-09-15 18:38:40--  http://jeff.doozan.com/debian/uboot/uboot.mtd0.kwb.md5
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 49 [text/plain]
Saving to: `/tmp/uboot.mtd0.kwb.md5'

100%[======================================>] 49          --.-K/s   in 0s

2010-09-15 18:38:40 (1.78 MB/s) - `/tmp/uboot.mtd0.kwb.md5' saved [49/49]

--2010-09-15 18:38:40--  http://jeff.doozan.com/debian/uboot/uboot.mtd0.kwb
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 524288 (512K) [text/plain]
Saving to: `/tmp/uboot.mtd0.kwb'

100%[======================================>] 524,288      301K/s   in 1.7s

2010-09-15 18:38:42 (301 KB/s) - `/tmp/uboot.mtd0.kwb' saved [524288/524288]

Erase Total 4 Units
Performing Flash Erase of length 131072 at offset 0x60000 done
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00080000...
## Verifying new uBoot...
--2010-09-15 18:38:43--  http://jeff.doozan.com/debian/uboot/uboot.mtd0.kwb.md5
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 49 [text/plain]
Saving to: `/tmp/uboot.mtd0.kwb.md5'

100%[======================================>] 49          --.-K/s   in 0s

2010-09-15 18:38:43 (1.79 MB/s) - `/tmp/uboot.mtd0.kwb.md5' saved [49/49]

# Verified successfully!

# Installing uBoot environment
--2010-09-15 18:38:43--  http://jeff.doozan.com/debian/uboot/uboot.environment.md5
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 52 [text/plain]
Saving to: `/tmp/uboot.environment.md5'

100%[======================================>] 52          --.-K/s   in 0s

2010-09-15 18:38:43 (1.96 MB/s) - `/tmp/uboot.environment.md5' saved [52/52]

--2010-09-15 18:38:43--  http://jeff.doozan.com/debian/uboot/uboot.environment
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 131072 (128K) [text/plain]
Saving to: `/tmp/uboot.environment'

100%[======================================>] 131,072      126K/s   in 1.0s

2010-09-15 18:38:45 (126 KB/s) - `/tmp/uboot.environment' saved [131072/131072]

Erase Total 1 Units
Performing Flash Erase of length 131072 at offset 0xc0000 done
Writing data to block 6 at offset 0xc0000

# Verifying uBoot environment
ECC failed: 0
ECC corrected: 0
Number of bad blocks: 0
Number of bbt blocks: 0
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x000c0000 and ending at 0x000e0000...
--2010-09-15 18:38:45--  http://jeff.doozan.com/debian/uboot/uboot.environment.md5
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 52 [text/plain]
Saving to: `/tmp/uboot.environment.md5'

100%[======================================>] 52          --.-K/s   in 0s

2010-09-15 18:38:45 (1.86 MB/s) - `/tmp/uboot.environment.md5' saved [52/52]

Read error on /dev/mtd0: Cannot allocate memory

# uBoot installation has completed successfully.
root@debian:/tmp#

Should I reboot? Looks good, am I right?
Re: Boot into Pogoplug OS fails, but Debian works!
September 15, 2010 01:44PM
I'm not sure about that last error. Run the installer again *without* --no-uboot-check. If it says that you're already running the latest uBoot, you're safe to reboot.

-- Jeff
Re: Boot into Pogoplug OS fails, but Debian works!
September 15, 2010 01:56PM
It shows this message:

root@debian:/tmp# ./install_uboot_mtd0.sh


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

If you lose power to your device while running this script,
it could be left in an unusable state.

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

This installer will only work on a Seagate Dockstar or Pogoplug Pink.
Do not run this installer on any other device.

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

If you agree, type 'ok' and press ENTER to continue: ok



DISABLE POGOPLUG SERVICES

The pogoplug service includes an auto-update feature which could
be used to cripple or disable your device.  It is recommended
that you disable this service.

NOTE: The pogoplug service is proprietary software
created by Cloud Engines.  It is not available for use
in other distributions and will not be available in
your new linux installation even if you choose not to disable it.

Would you like to disable the pogoplug services? [Y/n] Y
Applying fixes to the pogoplug environment...
Disabling the pogoplug service...
mount: / is busy
Done fixing pogoplug environment.


# Attempting to auto-detect your device...Dockstar with modified bootcmd detected

# Checking for existing uBoot on mtd0...
--2010-09-15 18:54:50--  http://jeff.doozan.com/debian/uboot/uboot.mtd0.kwb.md5
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 49 [text/plain]
Saving to: `/tmp/uboot.mtd0.kwb.md5'

100%[======================================>] 49          --.-K/s   in 0s

2010-09-15 18:54:51 (1.73 MB/s) - `/tmp/uboot.mtd0.kwb.md5' saved [49/49]

Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00080000...
## The newest uBoot is already installed on mtd0.

# Installing uBoot environment
--2010-09-15 18:54:51--  http://jeff.doozan.com/debian/uboot/uboot.environment.md5
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 52 [text/plain]
Saving to: `/tmp/uboot.environment.md5'

100%[======================================>] 52          --.-K/s   in 0s

2010-09-15 18:54:51 (1.92 MB/s) - `/tmp/uboot.environment.md5' saved [52/52]

--2010-09-15 18:54:51--  http://jeff.doozan.com/debian/uboot/uboot.environment
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 131072 (128K) [text/plain]
Saving to: `/tmp/uboot.environment'

100%[======================================>] 131,072      126K/s   in 1.0s

2010-09-15 18:54:53 (126 KB/s) - `/tmp/uboot.environment' saved [131072/131072]

Erase Total 1 Units
Performing Flash Erase of length 131072 at offset 0xc0000 done
Writing data to block 6 at offset 0xc0000

# Verifying uBoot environment
ECC failed: 0
ECC corrected: 0
Number of bad blocks: 0
Number of bbt blocks: 0
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x000c0000 and ending at 0x000e0000...
--2010-09-15 18:54:53--  http://jeff.doozan.com/debian/uboot/uboot.environment.md5
Resolving jeff.doozan.com... 69.163.187.226
Connecting to jeff.doozan.com|69.163.187.226|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 52 [text/plain]
Saving to: `/tmp/uboot.environment.md5'

100%[======================================>] 52          --.-K/s   in 0s

2010-09-15 18:54:53 (1.92 MB/s) - `/tmp/uboot.environment.md5' saved [52/52]


# uBoot installation has completed successfully.
root@debian:/tmp#

No errors but it also says not, that I have the latest version installed.
Johannes
Re: Boot into Pogoplug OS fails, but Debian works!
September 15, 2010 02:20PM
It says you have the latest uBoot installed (and it also reset the environment of the new loader to Jeff's defaults)
"## The newest uBoot is already installed on mtd0."

It did not necessarily restore bootability of the old system. For that you need the uboot-original-mtd0.kwb file in the root of the jffs2 file system in the /dev/mtd2 partition. If that got erased somehow, the new boot loader can no longer load the old boot loader to load the Pogoplug system.
Re: Boot into Pogoplug OS fails, but Debian works!
September 15, 2010 02:24PM
It looks like you're safe to reboot. Like Johannes said, it may not necessarily fix booting into the Pogoplug install, but you have successfully updated uBoot.

-- Jeff
Re: Boot into Pogoplug OS fails, but Debian works!
September 15, 2010 02:36PM
Thanks for information. My Dockstar is booting with Debian, but Pogoplug won't work either.

@ Johannes: How can I restore the Pogoplug OS? I ask this, because many scripts from Jeff need the original OS to modify something. It would be great, if you can tell me, how to restore it (of course out of debian).

Thanks!
Re: Boot into Pogoplug OS fails, but Debian works!
September 15, 2010 02:41PM
Don't worry about fixing the Pogoplug partition unless you actually want to use the Pogoplug service. I'm working on a replacement recovery system that will be available very soon now.

-- Jeff
Re: Boot into Pogoplug OS fails, but Debian works!
September 15, 2010 02:56PM
Very cool stuff Jeff! I don't need the Pogoplug Service, I just want to have a backup system. My actual system is workin fine. I backed up all files of my debian with:
tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys /

For a complete restore, I have to recreate the master boot record, right?

Or how can I restore my current system if anything happens?

But up to now: Thank you all very much for helping me so great!
Johannes
Re: Boot into Pogoplug OS fails, but Debian works!
September 15, 2010 04:28PM
The environment of the original boot loader looks alright (That's the one you see with bl_printenv. fw_printenv shows the new loader's environment. They're both stored in separate areas of the mtd0 partition). My best guess is that something's wrong with the contents of the jffs2 filesystem in mtd2. You can mount the Pogoplug filesystem like this:
mount -o ro -t jffs2 /dev/mtdblock2 /mnt

This mounts the file system read-only. We're just looking. cd /mnt and ls -l. There should be a file called uboot-original-mtd0.kwb which is 524288 bytes. Check if it's alright:
md5sum /mnt/uboot-original-mtd0.kwb

You should see the b2d9681ef044e9ab6b058ef442b30b6e checksum of the original loader.

If you successfully mounted the jffs2 file system, but the file isn't there or doesn't check out, you need to restore it. First remount the file-system read-write:
mount -o remount,rw /mnt

Make sure you're still in /mnt. If the uboot file exists with a different md5sum, delete it:
rm uboot-original-mtd0.kwb

Download the backup:
wget http://jeff.doozan.com/debian/uboot/uboot-original-mtd0.kwb

Then cd out of /mnt so that it isn't "busy":
cd /

Unmount the jffs2 filesystem:
umount /mnt

The next thing that could go wrong is if you have somehow damaged the kernel image in mtd1 or the actual operating system in mtd2.
Re: Boot into Pogoplug OS fails, but Debian works!
September 16, 2010 05:37AM
Ohh, thanks for these very clearly written tips!

But I failed at the beginning:

debian:~$ mkdir /mnt/pogo
debian:~$ mount -o ro -t jffs2 /dev/mtdblock2 /mnt/pogo/
mount: Cannot allocate memory

The strange thing is that I don't modify anything else, I just run Jeff's script for installing the debian USB system. Nothing else should be touched.
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: