Welcome! Log In Create A New Profile

Advanced

Dockstar does not boot

Posted by acognard 
Dockstar does not boot
July 05, 2011 03:51AM
Hi all,
(sorry for my english :))
i am facing a new issue with my ds.

using another VM linux, i use
nc -l -u -p 6666

to see boot log without any usb disk.

but it turns around

1. U-Boot 2010.09 (Oct 23 2010 - 11:49:22)
   2. Marvell-Dockstar/Pogoplug by Jeff Doozan
   3. Hit any key to stop autoboot:  4
i hit return key
1. Marvell>> ls
   2. ls
   3. drwxr-xr-x        0 Thu Dec 18 20:30:04 2008 bin
   4. drwxr-xr-x        0 Thu Jan 15 19:07:02 2009 dev
   5. drwxr-xr-x        0 Tue Aug 11 05:52:40 2009 etc
   6. drwxr-xr-x        0 Thu Dec 18 20:30:04 2008 lib
   7. lrwxrwxrwx       11 Wed Aug 26 22:27:00 2009 linuxrc -> bin/busybox
   8. drwxr-xr-x        0 Thu Dec 18 21:45:09 2008 mnt
   9. drwxr-xr-x        0 Tue Feb 26 17:26:05 2008 proc
  10. drwxr-xr-x        0 Tue Mar 10 23:53:33 2009 root
  11. drwxr-xr-x        0 Thu Dec 18 20:30:04 2008 sbin
  12. drwxr-xr-x        0 Sat Jan 01 00:13:48 2000 sys
  13. drwxr-xr-x        0 Sat Jan 01 00:13:40 2000 tmp
  14. drwxr-xr-x        0 Thu Jan 15 18:31:53 2009 usr
  15. lrwxrwxrwx        8 Wed Aug 26 22:27:00 2009 var -> /tmp/var
  16. -rw-r--r--       67 Sat Jan 01 04:40:49 2000 uboot-original-mtd0.kwb.md5
  17. -rw-r--r--   524288 Sat Jan 01 04:40:51 2000 uboot-original-mtd0.kwb

below the complete trace
   1. ### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000
   2. Scanning JFFS2 FS: ........ done.
   3. ### JFFS2 load complete: 524288 bytes loaded to 0x800000
   4. ## Starting application at 0x00800200 ...
   5.
   6. U-Boot 2010.09 (Oct 23 2010 - 11:49:22)
   7. Marvell-Dockstar/Pogoplug by Jeff Doozan
   8. Hit any key to stop autoboot:  0
   9. (Re)start USB...
  10. USB:   Register 10011 NbrPorts 1
  11. USB EHCI 1.00
  12. scanning bus for devices... 3 USB Device(s) found
  13.        scanning bus for storage devices... 0 Storage Device(s) found
  14. ** Block device usb 0 not supported
  15.
  16. ** Invalid boot device **
  17. Creating 1 MTD partitions on "nand0":
  18. 0x000002500000-0x000010000000 : "mtd=3"
  19. UBI: attaching mtd1 to ubi0
  20. UBI: physical eraseblock size:   131072 bytes (128 KiB)
  21. UBI: logical eraseblock size:    129024 bytes
  22. UBI: smallest flash I/O unit:    2048
  23. UBI: sub-page size:              512
  24. UBI: VID header offset:          512 (aligned 512)
  25. UBI: data offset:                2048
  26. UBI: attached mtd1 to ubi0
  27. UBI: MTD device name:            "mtd=3"
  28. UBI: MTD device size:            219 MiB
  29. UBI: number of good PEBs:        1751
  30. UBI: number of bad PEBs:         1
  31. UBI: max. allowed volumes:       128
  32. UBI: wear-leveling threshold:    4096
  33. UBI: number of internal volumes: 1
  34. UBI: number of user volumes:     0
  35. UBI: available PEBs:             1730
  36. UBI: total number of reserved PEBs: 21
  37. UBI: number of PEBs reserved for bad PEB handling: 17
  38. UBI: max/mean erase counter: 1/1
  39. UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
  40. Error reading superblock on volume 'ubi:rootfs'!
  41. ** Block device usb 0 not supported
  42. ** Block device usb 1 not supported
  43. ** Block device usb 2 not supported
  44. ** Block device usb 3 not supported
  45. ** Block device usb 0 not supported
  46. ** Block device usb 0 not supported
  47. Wrong Image Format for bootm command
  48. ERROR: can't get kernel image!
  49. stopping USB..
  50. ### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000
  51. Scanning JFFS2 FS: ........ done.
  52. ### JFFS2 load complete: 524288 bytes loaded to 0x800000
  53. ## Starting application at 0x00800200 ...
  54.
  55. U-Boot 2010.09 (Oct 23 2010 - 11:49:22)
  56. Marvell-Dockstar/Pogoplug by Jeff Doozan
  57. Hit any key to stop autoboot:  4

Does anyone can help me on this issue ?
Tks in advance
Arnaud
pazos
Re: Dockstar does not boot
July 09, 2011 08:05AM
acognard Wrote:

> Does anyone can help me on this issue ?

Of course. The easiest solution is to replace pogoplug firmware with jeff's rescue system v.2. If you use install script some enviroment variables will change and you'll be able to boot from NAND.

The install script also checks that you have the lastest jeff uboot, as it seems you have, and could ask for reset enviroment to jeff's default. In general it would be a good idea to say yes here.

If you choose to keep pogo firmware it would be a good idea to reflash mtd1 & mtd2 partitions (kernel and rootfs). Look at google or search in this forum!
Re: Dockstar does not boot
July 09, 2011 08:53AM
hi pazos,
many tks for your help, but it is quiet difficult to understand what you mean for the newbit i am. What you suggest is
1/replace pogoplug firmware using a script (eff's rescue system v.2).
ok, this seems to be what i have to do. will try to find this scipt.
2/keep pogo firmware.
no, but i am not really sure to understand what it is. will look for on google.

will let you know.
Arnaud
Re: Dockstar does not boot
July 09, 2011 05:07PM
re
1/ by 'Jeff's rescue system v.2' did you mean using this script ?
cd /tmp
wget http://jeff.doozan.com/debian/rescue/install_rescue.sh
chmod +x install_rescue.sh
./install_rescue.sh
is that all i have to do ?
Tks.
Arnaud
pazos
Re: Dockstar does not boot
July 09, 2011 05:25PM
acognard Wrote:
-------------------------------------------------------
> re
> 1/ by 'Jeff's rescue system v.2' did you mean
> using this script ?
>
> cd /tmp
> wget
> http://jeff.doozan.com/debian/rescue/install_rescue.sh
> chmod +x install_rescue.sh
> ./install_rescue.sh
>
> is that all i have to do ?
> Tks.



YES!!!!!!
Re: Dockstar does not boot
July 09, 2011 06:16PM
hi all

done, but don't know what is the aim of this. now my DS does not boot anymore on my usb disk :(

i launched the install_rescue.sh script, and all was ok.

therefore, i rebooted it.

and now, it works only on "rescue:~# ".

what did i missed ? i did not see anything wrong during install rescue run.

Many tks.
Arnaud
pazos
Re: Dockstar does not boot
July 10, 2011 11:33AM
Uboot tries to boot from usb. If it doesn't find any capable usb to boot from uboot it starts the rescue system.

Please post your uboot enviroment (on your rescue system write: "fw_printenv > enviroment.txt" and attach the "enviroment.txt" file on a post here.
Re: Dockstar does not boot
July 10, 2011 02:44PM
hi
here it is
rescue:~# fw_printenv
ethact=egiga0
bootdelay=3
baudrate=115200
mainlineLinux=yes
console=ttyS0,115200
led_init=green blinking
led_exit=green off
led_error=orange blinking
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtdids=nand0=orion_nand
partition=nand0,2
stdin=serial
stdout=serial
stderr=serial
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
force_rescue=0
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi
usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done
usb_scan_list=1 2 3 4
usb_scan_1=usb=0:1 dev=sda1
usb_scan_2=usb=1:1 dev=sdb1
usb_scan_3=usb=2:1 dev=sdc1
usb_scan_4=usb=3:1 dev=sdd1
usb_init=run usb_scan
usb_device=0:1
usb_root=/dev/sda1
usb_rootfstype=ext2
usb_rootdelay=10
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset
ethaddr=00:10:75:1A:D6:D3
arcNumber=2097
serverip=192.168.0.18
ipaddr=192.168.0.20
if_netconsole=ping $serverip
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
preboot=run if_netconsole start_netconsole
rescue_installed=1
tks
Arnaud
pazos
Re: Dockstar does not boot
July 10, 2011 05:15PM
It seems to be fine!...

Your USB must boot! .. If doesn't try to replace with another stick...
Re: Dockstar does not boot
July 11, 2011 07:40AM
Pazos,
this is quiet strange because, before applying the rescue script, the DS was booting on the usb and not without it.
now, it boots on DS, and not on USB stick :(
Anyway, in this status (rescue applyied), can i install a new debian on a empty external usb hard drive ?

Tks.
Arnaud
Re: Dockstar does not boot
July 12, 2011 03:52PM
hi all,
any more information.
# nc -l -u -p 6666

U-Boot 2010.09 (Oct 23 2010 - 11:49:22)
Marvell-Dockstar/Pogoplug by Jeff Doozan
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... Device NOT ready
   Request Sense returned 00 00 00
1 Storage Device(s) found
** Bad partition 1 **
Device NOT ready
   Request Sense returned 00 00 00
** Can't read from device 0 **

** Unable to use usb 0:1 for fatload **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000010000000 : "mtd=3"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=3"
UBI: MTD device size:            219 MiB
UBI: number of good PEBs:        1751
UBI: number of bad PEBs:         1
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     0
UBI: available PEBs:             1730
UBI: total number of reserved PEBs: 21
UBI: number of PEBs reserved for bad PEB handling: 17
UBI: max/mean erase counter: 1/1
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs'!
** Bad partition 1 **
** Block device usb 1 not supported
** Block device usb 2 not supported
** Block device usb 3 not supported
** Bad partition 1 **
** Bad partition 1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..

NAND read: device 0 offset 0x100000, size 0x400000
 4194304 bytes read: OK
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-2.6.32.18-dockstar
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3236180 Bytes = 3.1 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...
fsck has been done.
i say again : before running rescue script, usb stick was ok.
Any help please ?
tks in advance.
Arnaud
Re: Dockstar does not boot
July 15, 2011 04:32PM
hi all, solved !
finaly, a copy/paste in my procedure was bad !
tks all.
Arnaud
Re: Dockstar does not boot
July 17, 2011 07:55AM
I'm curious to know what error you made as I haven't installed the rescue system yet. Why couldn't you boot from usb after installing the rescue system? Looking at your output above, it looked like your usb stick was faulty.
Re: Dockstar does not boot
July 17, 2011 12:46PM
well, a carriage return appeared in
/usr/bin/mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs -d /boot/initrd.img-2.6.32-dockstar /boot/uInitrd
so it was not correctly played :(. it was so stupid !

sincerly.
Arnaud
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: