USB gadget linux connection

USB gadget linux connection

Gilad Ben-Yossef gilad at codefidence.com
Sun Feb 8 16:55:54 IST 2009


Moshe Gorohovsky wrote:

> Hi Gilad,
>
> The hotplug command does not work on the system (it is BusyBox). But the
> kernel prints a message on system console, when I connect USB cable to a
> host. I can use that message.
>   
hotplug is not a command, it's a kernel sybsystem (well, there can be a 
program called hotplug that serves hotplug events but can also just be a 
simple shell script).

Using dmesg messages is fine if you just want to debug stuff but it's 
really a very bad solution for anything production. (among other things 
it's racy). Learn to use the hotplug sub system. that is what it's for.

If you want, our "Advanced embedded Linux" course has a section on the 
subject and the slides are freely available (OK, you have to get a free 
Scribd registeration because I'm lazy :-) has some slides on how that 
works - http://tuxology.net/courses/advanced-embedded-linux/

Oh, and please DON'T remove the list from CC if I answered you on the 
list. I want other people to enjoy the answers to (this is the whole 
point of mailing lists). This is not a private consulting session :-)

Cheers,
Gilad

-- 
Gilad Ben-Yossef 
Chief Coffee Drinker

Codefidence Ltd.
The code is free, your time isn't.(TM)

Web:    http://codefidence.com
Email:  gilad at codefidence.com
Office: +972-8-9316883 ext. 201
Fax:    +972-8-9316885
Mobile: +972-52-8260388

	The Doctor: Don't worry, Reinette, just a nightmare. 
	Everyone has nightmares. Even monsters from under the 
	bed have nightmares, don't you, monster?
	Reinette: What do monsters have nightmares about?
	The Doctor: Me! 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20090208/4a8ed5ee/attachment.html>


More information about the Linux-il mailing list