USB booting :: linuxrc script MOD question



Looking through this log file, I see usb hub assigned irq 10,11,9,5?
Are you using a usb hub?
Do you have both front and rear usb ports on your computer?
Best to try rear ports first.
Also could be IRQ conflict.
Try looking at...

cat /proc/interrupts

No Hub.  I  will look for IRQ conflics.   I can get Knoppix 5.1.1 to boot but maybe since thats kernel 26.x it may handle the interrups differently?


I tried all the ports rear and side.  I will try again plus I will remove the USB mouse.  There are two USB ports on the side and one is where I put the USB mouse and the other dsl.

When you put the mod in are you seeing "Waiting for USB devices" ?

If not, then try moving the ash -c "sleep 6" directly inline like this:

if test -n "$WAITUSB"; then
echo -n "${CRE}{BLUE}Waiting for USB devices${NORMAL}..."
ash -c "sleep 6"
echo "${BLUE}Done.${NORMAL}
fi

I can see the Waiting message and it does wait when I use the waitusb boot option.

No I don't see that message at all waiting for USB drives.

I am going to try that.  I never lined the script up like that. Will try it that way shortly.

Here is my cat /proc/pci readout

Do you want me to remove the entire usb_wait function and just put in that script or insert that where the sleep 1 is and line it up as you have?

got a /linuxrc : 101 Syntax Error: "|" unexpected.

Here is some before and after script in the linuxrc file.  I removed as you can from the wait_usb function all the way down to "}" then just added your script.


Please check it not sure why I got the syntax error.

Thanks





mountit(){
# Usage: mountit src dst "options"
# Uses builtin mount of ash.knoppix
for fs in $BUILTIN_FS; do
test -b $1 && mount -t $fs $3 $1 $2 >/dev/null 2>&1 && return 0
done
return 1
}

# Wait for very slow USB devices:
# Host: scsi1 Channel: 00 Id: 00 Lun: 00
#   Vendor:          Model:                  Rev:
#   Type:   <NULL>                ANSI SCSI revision: ffffffff
#wait_usb() {
#    case "$(cat /proc/scsi/scsi)" in
#       *"<NULL>"*|*ffffffff*) ;;
#       *) return ;;
#    esac
#    echo -n "${CRE}${BLUE}Waiting for USB devices${NORMAL}..."
#    for i in . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .; do
#       sleep 1
#       case "$(cat /proc/scsi/scsi)" in
#           *"<NULL>"*|*ffffffff*) echo -n .;;
#           *) break ;;
#       esac
#    done
#    echo "${BLUE}Done.${NORMAL}"
#}


if test -n "$WAITUSB"; then
echo -n "${CRE}{BLUE}Waiting for USB devices${NORMAL}..."
ash -c "sleep 6"
echo "${BLUE}Done.${NORMAL}
fi




FOUND_SCSI=""
FOUND_KNOPPIX=""
INTERACTIVE=""

# Clean input/output
exec >/dev/console </dev/console 2>&1

Next Page...
original here.