Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (5) </ 1 [2] 3 4 5 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: linuxrc script MOD question, Dell D820 Laptop< Next Oldest | Next Newest >
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Aug. 17 2007,19:51 QUOTE

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
Back to top
Profile PM WEB 
emunity Offline





Group: Members
Posts: 26
Joined: July 2007
Posted: Aug. 17 2007,21:46 QUOTE

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.
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Aug. 17 2007,22:13 QUOTE

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.
Back to top
Profile PM WEB 
emunity Offline





Group: Members
Posts: 26
Joined: July 2007
Posted: Aug. 17 2007,22:21 QUOTE

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?
Back to top
Profile PM 
emunity Offline





Group: Members
Posts: 26
Joined: July 2007
Posted: Aug. 17 2007,22:44 QUOTE

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
Back to top
Profile PM 
21 replies since Aug. 17 2007,00:29 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (5) </ 1 [2] 3 4 5 >/
reply to topic new topic new poll
Quick Reply: linuxrc script MOD question

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code