Skip to contentSkip to conversation

WLAN USB at boot time not recognized

DISCUSSION Thomas Herrmann 3 participants 4 messages Sep 13, 2004 – Sep 22, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I have some trouble with USB hotplug. I read a lot of information and documentation available, but can not find out what's going wrong. Maybe some on this list can shade some light?

My remote system uses a WLAN USB device for network. Everything works fine if I plug the WLAN USB stick in while the system is up and running. Just if the stick is already plugged in when the system boots, it does not get recognized while the hotplug service loads the USB controller modules. lsusb just after boot (with the stick plugged in) list only the 2 USB controllers, no device.

Since this system is a remote box I don't want to unplug and replug the WLAN USB stick everytime after a boot. In addition since the WLAN is the only network connection of this system, some services do not work.

It's using plain kernel 2.6.7 in a Gentoo environment. The hardware is a SIS740 chipset and I want to use the internal USB controllers. Hotplug service gets started in runlevel default.

What's going wrong? Is the hotplug service suppost to recognize USB devices at boot time? Or can I trigger a plug event in software?

Thanks, Thomas

Signature · 14 lines
NEU: Bis zu 10 GB Speicher für e-mails & Dateien!
1 GB bereits bei GMX FreeMail http://www.gmx.net/de/go/mail



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#1 lore raw
Quoted 13 lines · Thomas Herrmann

Hi,

I have some trouble with USB hotplug. I read a lot of information and documentation available, but can not find out what's going wrong. Maybe some on this list can shade some light?

My remote system uses a WLAN USB device for network. Everything works fine if I plug the WLAN USB stick in while the system is up and running. Just if the stick is already plugged in when the system boots, it does not get recognized while the hotplug service loads the USB controller modules. lsusb just after boot (with the stick plugged in) list only the 2 USB controllers, no device.

Quoted 5 lines

Since this system is a remote box I don't want to unplug and replug the WLAN USB stick everytime after a boot. In addition since the WLAN is the only network connection of this system, some services do not work.

It's using plain kernel 2.6.7 in a Gentoo environment.

Try upgrading to a 2.6.8.1 kernel, this sounds like a host controller issue, and not a hotplug script specific issue.

If you still have problems with that kernel version, take this to the linux-usb-devel mailing list (detailing what USB host controller driver you are using.) The developers there will be able to help you out.

thanks,

greg k-h

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Thomas Herrmann
Quoted 8 lines · Thomas Herrmann

My remote system uses a WLAN USB device for network. Everything works fine if I plug the WLAN USB stick in while the system is up and running. Just if the stick is already plugged in when the system boots, it does not get recognized while the hotplug service loads the USB controller modules.....

It's using plain kernel 2.6.7 in a Gentoo environment. The hardware is a SIS740 chipset and I want to use the internal USB controllers.

Some USB devices seem to need power cycling to enumerate properly, and not all motherboards are wired so that Linux can do that.

You might have better luck hooking that device up through an external hub.

- Dave

-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#3 lore raw
In reply to Thomas Herrmann
Quoted 7 lines

Some USB devices seem to need power cycling to enumerate properly, and not all motherboards are wired so that Linux can do that.

You might have better luck hooking that device up through an external hub.

- Dave

Hi Dave & list,

Dave might be right with his comment on power cycling. The system does recognize and configures the USB device after a power cycle (a real one with the power supply being disconnected from the wall plug).

Now, since I don't have a hub I did some more experiments. I disabled the hotpluging scripts and put the ohci_hcd module into the modules.autoload file. Then I start the wlan driver as well as the network service in the default runlevel and everything is working well, even after a soft reboot.

One major difference I see between using hotplug and the manual approach, by using hotplug and put the system to halt the USB WLAN device is still powered (control light stays on), while with the manual procedure described the device control light turnes off when the system goes to halt.

What is hotplug doing different to the USB controller hat the device stays powered while the system halts?

Thanks, Thomas

Signature · 14 lines
+++ GMX DSL Premiumtarife 3 Monate gratis* + WLAN-Router 0,- EUR* +++
Clevere DSL-Nutzer wechseln jetzt zu GMX: http://www.gmx.net/de/go/dsl



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel