Welcome! Log In Create A New Profile

Advanced

cold boot starts into pogoplug, warm boot into debian

Posted by jimpoison 
jimpoison
cold boot starts into pogoplug, warm boot into debian
September 06, 2010 05:12PM
i have connected two usb devices to my dockstar.
the first one is an usb stick with debian on it and the second one is an usb enclosure with an sata hard disk.
if i do a cold boot, the usb stick does not seem to be recognized, so debian doesn't start but pogoplug.
of course if the usb enclosure isn't connected during the cold boot, booting into debian on the usb stick always works.
it also works if i do a reboot (aka warm boot).
so the usb enclosure seems to prevent the dockstar from booting of the usb stick.
i already have installed the latest uboot from 30/8 and also the "scan all usb devices"-script.
but it doesn't seem to work.
what is the problem here?
how can i make the dockstar boot into debian even with the enclosure connected?
jimpoison
Re: cold boot starts into pogoplug, warm boot into debian
September 06, 2010 05:25PM
fw_printenv shows this:

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_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_error=orange blinking
stdin=serial
stdout=serial
stderr=serial
ethact=egiga0
ethaddr=00:10:75:1A:D9:6B
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;
led_exit=green on

Re: cold boot starts into pogoplug, warm boot into debian
September 14, 2010 02:41AM
in pogoplugsystem vi /etc/init.d/rcS

at the end of the file insert:

# Check if a USB device with partition sda is connected
# If one is found, reboot to start debian
checkusb=`grep sda /proc/partitions`
if [ -n "$checkusb" ]; then
/sbin/reboot
fi

my fw_printenv
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_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
ethact=egiga0
ethaddr=00:10:75:xx:xx:xx
stdin=serial
stdout=serial
stderr=serial
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;
root@debian:~#



Edited 2 time(s). Last edit at 09/14/2010 02:46AM by anne.
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: