Welcome! Log In Create A New Profile

Advanced

[Resolved] Tried to update Stock Dockstar, now won't boot

Posted by cde 
cde
[Resolved] Tried to update Stock Dockstar, now won't boot
May 15, 2017 03:03AM
Have a stock Dockstar. Had a very old U-Boot. Decide to update it before making any changes, no usb boot disk or anything.

Followed http://projects.doozan.com/uboot/ rebooted, worked.

Then followed Section A of http://forum.doozan.com/read.php?3,12381, also worked.

But then I try Section B. Did not work. I get:
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-2.6.22.18
   Created:      2010-10-19  23:05:02 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1979140 Bytes = 1.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!

I had saved the env at /root/current_envs.txt but I can't access it any more.

I am using a serial cable. So how can I fix this?



Edited 1 time(s). Last edit at 05/16/2017 11:00PM by cde.
Re: Tried to update Stock Dockstar, now won't boot
May 15, 2017 03:19AM
cde,

Did you create the new Debian rootfs on USB as instructed in:
http://forum.doozan.com/read.php?2,12096


For me to see the entire picture, plug in your USB rootfs, boot with serical console, interrupt it and

printenv
boot


And post the entire serial console log (from u-boot banner until it stop booting) here.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
cde
Re: Tried to update Stock Dockstar, now won't boot
May 15, 2017 11:11PM
Boot and Environment, of the current borked up dockstar. I gotta pull a laptop so I can setup the usb drive for now (on my mac, can't set up Fuse right now.) Ideally, I want to install that debian build on the internal flash, or a recovery or something. Even the original pogo would be nice, but since I hosed it :/

U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:34:27 -0700)
Seagate FreeAgent DockStar

SoC:   Kirkwood 88F6281_A0
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 10  9  8  7  6  5  4  3  2  1  0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'

no USB devices available
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide
Unknown command 'ide' - try 'help'
device ide 0:1
** Bad device ide 0 **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc
Unknown command 'mmc' - try 'help'
device mmc 0:1
** Bad device mmc 0 **
device mmc 1:1
** Bad device mmc 1 **
device mmc 2:1
** Bad device mmc 2 **
device mmc 3:1
** Bad device mmc 3 **
loading uImage ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
loading DTB /boot/dts/kirkwood-dockstar.dtb ...
** Bad device usb 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!

DockStar> printenv

arcNumber=2998
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-dockstar.dtb
ethact=egiga0
ethaddr=00:10:75:1A:9C:CB
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_loaded=0
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 3114/131068 bytes

Re: Tried to update Stock Dockstar, now won't boot
May 16, 2017 02:06AM
cde,

> Boot and Environment, of the current borked up doc
> kstar. I gotta pull a laptop so I can setup the us
> b drive for now (on my mac, can't set up Fuse righ
> t now.

Install Linux VM on your Mac.I think Parallell has a free version. Or you can use Virtualbox for free (VMWare Fusion cost some money).


> ) Ideally, I want to install that debian bui
> ld on the internal flash, or a recovery or somethi
> ng. Even the original pogo would be nice, but sinc
> e I hosed it :/

You envs look good. So it will boot with USB Debian rootfs.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
cde
Re: Tried to update Stock Dockstar, now won't boot
May 16, 2017 02:15AM
Update: I got the usb rootfs from your link, thanks to my 11 year old DamnSmallLinux usb boot drive lol.

Update 2: Ignore the previous edit. The first flash drive I used continued to give I/O errors. Old, garbage. A second drive worked great. In the Debian 4.4.0 build.

Now how can I get this or a recovery on the on-board flash? I rather not need a flash drive. Time to read the board some more.

Update 3: I did get recovery working.

First used http://forum.doozan.com/read.php?4,3896, had to modify the script to ignore the u boot check (since I have the 2016 version).

Since the 2016 u boot default env doesn't include the rescue_install env commands as part of boot, had to modify it a bit.

bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run bootcmd_rescue; sleep 120; reset

Then I went for it, and added the 2.8.2 rescue from http://forum.doozan.com/read.php?4,7915,page=1 (copy of file found from http://wohnen-saar.de/rescue_nach_tmp_und_aus_ram_flashen)

Also works. Now I just need to set it up. Print Server here I come. Thank you.



Edited 3 time(s). Last edit at 05/16/2017 11:00PM by cde.
Re: Tried to update Stock Dockstar, now won't boot
May 17, 2017 10:05AM
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: