LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-09-2005, 09:55 AM   #16
stephenw
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Rep: Reputation: 0

Hi Mike,

I've been having almost the exact same problem you're describing I think. I solved it (made it go away) by putting the "sleep 9" command immediately before the insmod for usb-storage. So in the load_kernel_modules file you'd have something like:

insmod /lib/modules/$(uname -r)/reiserfs.o
insmod /lib/modules/$(uname -r)/usbcore.o
insmod /lib/modules/$(uname -r)/ehci_hcd.o
insmod /lib/modules/$(uname -r)/uhci.o
sleep 9
insmod /lib/modules/$(uname -r)/usb-storage.o

and then run the mkinitrd again.

It appears you have to wait for the USB framework modules to find the device before loading the usb-storage driver for it.

Stephen
 
Old 09-09-2005, 10:54 AM   #17
mscole
Member
 
Registered: Nov 2004
Location: Gainesville, Florida
Distribution: Slackware 10.0
Posts: 92

Rep: Reputation: 16
Stephen, I see this is your first post - welcome to LinuxQuestions. I made a new boot cd including the sleep command that you mentioned. It works on my home computer. Monday I will try it at the office, if it works there, I will post a step-by-step of how I did it.
Mike.
 
Old 09-09-2005, 11:03 AM   #18
4partee
Member
 
Registered: Nov 2004
Distribution: Slackware
Posts: 39

Original Poster
Rep: Reputation: 15
Hi mscole;

Try booting your work PC with install disk 1 and then look at lsmod. I am guessing that there is a difference in the usb modules due to different hardware at home. Try adding any module differences to your mkinitrd -m[list].


I have read that you could experience lockups due to loading modules when the hardware is not present. You might need to mkinitrd a separate home.gz and work.gz with corresponding lilo entries. I have not tried this though.
 
Old 09-11-2005, 10:49 AM   #19
stephenw
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Rep: Reputation: 0
Thanks for the welcome Mike! I've just been trying to get the same thing working with a 2.6.12 kernel (rather than the default 2.4 that comes with Slackware 10.0) and what I said above doesn't work for it. Instead the "sleep 9" needs to come after loading the usb-storage module, it seems. What kernel are you using? Maybe having a pause both sides is the safest bet.

I also tried the other option you mentioned before - that of compiling the usb stuff into the kernel. But this also fails due to this problem of having to wait for the drive to "appear". The kernel panic message about being unable to mount the root fs appears, then a few seconds later the messages from the usb-storage driver appear stating that sda is available. So you have to use an initrd just for the pause (or I suppose you could modify the kernel to have a "sleep 9" equivalent, but that seems a bit over the top.

Also, for one bootup the 9 second pause wasn't long enough! So I've upped it to 12. There must be a better way of doing this...
 
Old 09-11-2005, 02:37 PM   #20
4partee
Member
 
Registered: Nov 2004
Distribution: Slackware
Posts: 39

Original Poster
Rep: Reputation: 15
Hi Stephen;

I am now using my broken laptop(no hda) as a router with the stock 2.6.12.3 kernel and modules from /testing. The laptop boots from an ide drive in an external usb enclosure.

If you would like, I could post the contents of my config files.

John
 
Old 09-11-2005, 05:13 PM   #21
stephenw
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Rep: Reputation: 0
Hi John

Thanks for the offer - but I think I now have my system working, but only with this "sleep" command in the initrd. Do you also have a sleep command in the initrd? It just doesn't seem a very "solid" solution. Maybe I'm being too fussy!

Stephen.
 
Old 09-11-2005, 07:10 PM   #22
4partee
Member
 
Registered: Nov 2004
Distribution: Slackware
Posts: 39

Original Poster
Rep: Reputation: 15
Hi Stephen;

Yes, I have sleep 9 in linuxrc after the modules have loaded..

There are kernel patches that will make the kernel wait until the root device is ready.

I have seen a linuxrc solution that runs a loop until the usb/firewire device is ready.

The sleep solution is a simpler solution.

John
 
Old 09-13-2005, 03:49 AM   #23
stephenw
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Rep: Reputation: 0
Rightio, I'll leave mine as it is now. Thanks for the info!
 
Old 09-13-2005, 10:01 AM   #24
mscole
Member
 
Registered: Nov 2004
Location: Gainesville, Florida
Distribution: Slackware 10.0
Posts: 92

Rep: Reputation: 16
Well, my latest boot cd still does not work at the office. It has a sleep in the load_kernel_modules file just before the usb-storage module loads, and another sleep in linuxrc just after all the usb modules have supposedly loaded. The kernel is 2.4.29 (the bare.i install kernel from the slackware 10.1 cd). I plan to try a few more things that were suggested in this thread, and I will post the results, but I probably won't be able to do so for a day or two.
Mike.
 
Old 09-13-2005, 10:16 AM   #25
mscole
Member
 
Registered: Nov 2004
Location: Gainesville, Florida
Distribution: Slackware 10.0
Posts: 92

Rep: Reputation: 16
Booted the slackware install cd at work, lsmod shows the following:

usb-storage
keybdev
mousedev
hid
usbkbd
input [used by keybdev mousedev hid usbkbd]
uhci
ehci-hcd
usbcore [used by usbstorage hid usbkbd uhci ehci-hcd]

Here is what is in my install cd load_kernel_modules file:

insmod /lib/modules/$(uname -r)/reiserfs.o
insmod /lib/modules/$(uname -r)/usbcore.o
insmod /lib/modules/$(uname -r)/ehci_hcd.o
insmod /lib/modules/$(uname -r)/uhci.o
sleep 9
insmod /lib/modules/$(uname -r)/usb-storage.o

What does hid do?
Mike.
 
Old 09-13-2005, 11:13 AM   #26
4partee
Member
 
Registered: Nov 2004
Distribution: Slackware
Posts: 39

Original Poster
Rep: Reputation: 15
Mike;

-m usbcore:ehci-hcd:uhci:input:usbkbd:hid:mousedev:keybdev:usb-storage:reiserfs

worked for my Averatec laptop(no hda).

I am using the stock 2.6.12.3 kernel and modules from /testing.

My Compaq PC used usb-ohci instead of uhci.

I was also able to make two mkinitrd gz's named averatec.gz and compaq.gz with corresponding lilo entries.

John
 
Old 09-14-2005, 05:14 AM   #27
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 379

Rep: Reputation: 37
My boot CD will boot slackware of an external usb drive on my IBM T30 laptop with USB 1.1 and on two other desktops with USB 2.0.

I'd put sleeps in intially but I think I've since taken them out. When I get an opportunity I have another look at what I did. Some of the details are contained in an other thread on this site.

Regards
 
Old 09-15-2005, 01:11 AM   #28
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 379

Rep: Reputation: 37
My load_kernel_modules contains -

# This is a script used to load the kernel modules.
# To use it, chmod it 755, and then add the insmod
# lines needed to load your modules, like this:

insmod /lib/modules/$(uname -r)/jbd.o
insmod /lib/modules/$(uname -r)/ext3.o
insmod /lib/modules/$(uname -r)/scsi_mod.o
insmod /lib/modules/$(uname -r)/sd_mod.o
insmod /lib/modules/$(uname -r)/usbcore.o
insmod /lib/modules/$(uname -r)/uhci.o
insmod /lib/modules/$(uname -r)/usb-storage.o

I do have ehci-hcd.o in my initrd-tree. It's the only issue I had the last time I made initrd.gz, can't remember if it's in or out. I suspect it's out. Will find for sure when slackware 10.2 is released.

Alex

10.2 released

using my old 10.1 .config ran it through make oldconfig;
compiled kernel (it automatically did the lilo stuff) ( I have a script called aik_kernel_compile that does all this)
installed the kernel ( Ihave a script called aik_kernel_install - I suspect this is a surperfluous step as this is a lilo boot machine)
removed the old 2.4.29 directory from my initrd-tree and created a new 2.4.31 initrd-tree directory, populated the new 2.4.31 initrd-tree directory with the 2.4.31 modules listed above - ehci-hcd.o is in, ran mkinitrd ( I have a script called aik_make_archos_initrd)
reran lilo;
rebooted.

Machine booted into 2.4.31 on the USB harddrive.

Last edited by aikempshall; 10-12-2005 at 03:33 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual boot XP(internal IDE HDD) Debian(external USB-IDE HDD) using boot.ini PolarDog Linux - Laptop and Netbook 2 07-01-2005 09:50 PM
Install directly to HDD from iso on HDD/USB, with out burning cd vivinuthappa DamnSmallLinux 7 11-16-2004 10:03 AM
boot from USB HDD, no MOBO usb boot support magiconexxx Linux - Hardware 0 11-03-2004 12:38 AM
need help boot from usb-hdd shadow.blue Linux - General 4 04-25-2004 08:19 AM
Toshiba boot problems - USB ext HDD - new install wtriver Linux - Newbie 5 11-02-2003 04:38 PM


All times are GMT -5. The time now is 04:53 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration