Welcome! Log In Create A New Profile

Advanced

Dockstar bricked

Posted by ré 
Dockstar bricked
December 06, 2015 07:05AM
hello
i have a dockstar and i bricket it.
With a bus pirate, i succed to reinstall temporaly uboot according to this method :
http://plume.redox.ws/article13/dockstar-debricking-jtag-with-buspirate
but i can't realize a permanent restauration and i don't understand why.

My env :

ipaddr=192.168.0.231
serverip=192.168.0.220
baudrate=115200
bootcmd_mmc=run mmc_init; run set_bootargs_mmc; run mmc_boot
bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot;
bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot;
bootdelay=10
console=ttyS0,115200
device=0:1
ethact=egiga0
if_netconsole=ping $serverip
led_error=orange blinking
led_exit=green off
led_init=green blinking
mainlineLinux=yes
mmc_boot=mw 0x800000 0 1; run mmc_load_uimage; if run mmc_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
mmc_init=mmc rescan
mmc_load_uimage=ext2load mmc $device 0x800000 /boot/uImage
mmc_load_uinitrd=ext2load mmc $device 0x1100000 /boot/uInitrd
mmc_root=/dev/mmcblk0p1
mtdids=nand0=orion_nand
preboot_nc=run if_netconsole start_netconsole
rootdelay=10
rootfstype=ext3
sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
sata_init=ide reset
sata_load_uimage=ext2load ide $device 0x800000 /boot/uImage
sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd
sata_root=/dev/sda1
set_bootargs_mmc=setenv bootargs console=$console root=$mmc_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_init=usb start
usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage
usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd
usb_root=/dev/sda1
ethaddr=00:10:75:1a:88:b3
arcNumber=3960
machid=F78
usb_rootfstype=ext3
mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)
bootcmd=run bootcmd_mmc; run bootcmd_usb; run bootcmd_sata; run bootcmd_pogo; reset
stdin=serial
stdout=serial
stderr=serial
partition=nand0,2
mtddevnum=2
mtddevname=uImage2



the boot message :

DRAM:  128 MiB
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
Unknown command 'mmc' - try 'help'
** Block device mmc 0 not supported
** Block device mmc 0 not supported
Wrong Image Format for bootm command
ERROR: can't get kernel image!
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
** Block device usb 0 not supported
** Block device usb 0 not supported
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Unknown command 'ide' - try 'help'
** Block device ide 0 not supported
** Block device ide 0 not supported
Wrong Image Format for bootm command
ERROR: can't get kernel image!
## Error: "bootcmd_pogo" not defined
resetting ...


some ideas ?
Thanks

---------
moderator edit: use code tag



Edited 1 time(s). Last edit at 12/06/2015 03:53PM by bodhi.
Re: Dockstar bricked
December 06, 2015 03:52PM
Hi ré,

Good job unbricking the Dockstar so far!

> scanning bus for devices... 2 USB Device(s) found
>        scanning bus for storage devices... 0
> Storage Device(s) found


Is the USB rootfs drive plugged in to any of the USB ports? if not, you could create the 3.16 rootfs on a USB stick as recommended here. And then:

- Insert the USB rootfs drive
- Power up with your JTAG, load u-boot like you did
- interrupt serial console

version
boot

Please post serial console log here if you like, or if you can't boot.

Once you are in Debian, you can flash new u-boot 2015.10 from the u-boot thread and flash new default envs to make it permanent.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 12/06/2015 03:55PM by bodhi.
Re: Dockstar bricked
December 07, 2015 01:58PM
ok, thanks for your response
With the USB rootfs drive, the post serial console is :


U-Boot 2010.09 (Oct 23 2010 - 11:49:22)
Marvell-Dockstar/Pogoplug by Jeff Doozan

SoC: Kirkwood 88F6281_A0
DRAM: 128 MiB
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 0
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
2865664 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
6535284 bytes read
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-3.18.5-kirkwood-tld-1
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2865600 Bytes = 2.7 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs-3.18.5-kirkwood-tld-1
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 6535220 Bytes = 6.2 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x00000831).

Available machine support:

ID (hex) NAME
ffffffff Generic DT based system
ffffffff Marvell Kirkwood (Flattened Device Tree)

Please check your kernel config and/or bootloader.


and my env :

bootcmd=run bootcmd_usb; usb stop; run bootcmd_pogo; reset
bootdelay=3
baudrate=115200
preboot=
arcNumber=2097
mainlineLinux=yes
console=ttyS0,115200
usb_init=usb start
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
usb_load_uimage=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage
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;
led_init=green blinking
led_exit=green off
led_error=orange blinking
ethaddr=02:50:43:a8:d9:8f
ethact=egiga0
bootcmd_pogo=fsload uboot.kwb
stdin=serial
stdout=serial
stderr=serial

Thanks for your reply
Re: Dockstar bricked
December 07, 2015 04:28PM
ré Wrote:
-------------------------------------------------------
> ok, thanks for your response
> With the USB rootfs drive, the post serial console
> is :
>
>
> U-Boot 2010.09 (Oct 23 2010 - 11:49:22)
> Marvell-Dockstar/Pogoplug by Jeff Doozan
>
> SoC: Kirkwood 88F6281_A0
> DRAM: 128 MiB
> NAND: 256 MiB
> In: serial
> Out: serial
> Err: serial
> Net: egiga0
> 88E1116 Initialized on egiga0
> Hit any key to stop autoboot: 0
> (Re)start USB...
> USB: Register 10011 NbrPorts 1
> USB EHCI 1.00
> scanning bus for devices... 3 USB Device(s) found
> scanning bus for storage devices... 1
> Storage Device(s) found
> Loading file "/boot/uImage" from usb device 0:1
> (usbda1)
> 2865664 bytes read
> Loading file "/boot/uInitrd" from usb device 0:1
> (usbda1)
> 6535284 bytes read
> ## Booting kernel from Legacy Image at 00800000
> ...
> Image Name: Linux-3.18.5-kirkwood-tld-1
> Image Type: ARM Linux Kernel Image
> (uncompressed)
> Data Size: 2865600 Bytes = 2.7 MiB
> Load Address: 00008000
> Entry Point: 00008000
> Verifying Checksum ... OK
> ## Loading init Ramdisk from Legacy Image at
> 01100000 ...
> Image Name: initramfs-3.18.5-kirkwood-tld-1
> Image Type: ARM Linux RAMDisk Image (gzip
> compressed)
> Data Size: 6535220 Bytes = 6.2 MiB
> Load Address: 00000000
> Entry Point: 00000000
> Verifying Checksum ... OK
> Loading Kernel Image ... OK
> OK
>
> Starting kernel ...
>
> Uncompressing Linux... done, booting the kernel.
>
> Error: unrecognized/unsupported machine ID (r1 =
> 0x00000831).
>
> Available machine support:
>
> ID (hex) NAME
> ffffffff Generic DT based system
> ffffffff Marvell Kirkwood (Flattened Device
> Tree)
>
> Please check your kernel config and/or
> bootloader.
>
>
> and my env :
>
> bootcmd=run bootcmd_usb; usb stop; run
> bootcmd_pogo; reset
> bootdelay=3
> baudrate=115200
> preboot=
> arcNumber=2097
> mainlineLinux=yes
> console=ttyS0,115200
> usb_init=usb start
> 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
> usb_load_uimage=mw 0x800000 0 1; ext2load usb
> $usb_device 0x800000 /boot/uImage
> 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;
> led_init=green blinking
> led_exit=green off
> led_error=orange blinking
> ethaddr=02:50:43:a8:d9:8f
> ethact=egiga0
> bootcmd_pogo=fsload uboot.kwb
> stdin=serial
> stdout=serial
> stderr=serial
>
> Thanks for your reply


You are running an pretty old u-boot. So the 3.18.5 rootfs uImage needs to have to dockstar DTB appended (step 4b). Or you can use the rootfs version 3.16 and it will boot as is without having to do that.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Dockstar bricked
December 08, 2015 03:32AM
ok, thanks. I used the rootfs version 3.16 and it's ok. I will try install new verison of u-boot
R2
Re: Dockstar bricked
December 08, 2015 08:03AM
another question : with this rootfs on usb stick, i have many messages that indicate me the rootfs is in only read, not in write mode (so, for example,, impossible to install mtd utils)
Is it possible to change this?
Thanks
Re: Dockstar bricked
December 08, 2015 01:47PM
Ré,

It is not normal to see it RO. This usually causes by some file system errors in the rootfs. So you should take the USB rootfs to another Linux box and run fsck. After that the rootfs should be RW after booting into Debian.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Dockstar bricked
December 09, 2015 07:19AM
great ! it s ok with this method : and i succed to flash new uboot 2015 : thanks a lot
(i have a second dockstar bricked ;-) )
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: