* newbie help??
@ 2004-04-05 17:32 SUDHARSAN
2004-04-05 18:10 ` Greg KH
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: SUDHARSAN @ 2004-04-05 17:32 UTC (permalink / raw)
To: linux-hotplug
Hi there,
I am new to this hotplug/Drivers.I wrote a USB
kernel module for a device and i loaded the module
using insmod then my device works but the hotplug
agent says that no modules for usb device .../....
How should i make the association between the hotplug
and my module???.i configured using -DCONFIG_HOTPLUG
option and my module contains the MODULE_DEVICE_TABLE
also..
Thanks for help in advance
Regards
sudhar
________________________________________________________________________
Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.
Go to: http://in.insurance.yahoo.com/licspecial/index.html
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: newbie help??
2004-04-05 17:32 newbie help?? SUDHARSAN
@ 2004-04-05 18:10 ` Greg KH
2004-04-14 11:25 ` SUDHARSAN
2004-04-16 22:45 ` Greg KH
2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2004-04-05 18:10 UTC (permalink / raw)
To: linux-hotplug
On Mon, Apr 05, 2004 at 06:32:58PM +0100, SUDHARSAN wrote:
> Hi there,
> I am new to this hotplug/Drivers.I wrote a USB
> kernel module for a device and i loaded the module
> using insmod then my device works but the hotplug
> agent says that no modules for usb device .../....
> How should i make the association between the hotplug
> and my module???.i configured using -DCONFIG_HOTPLUG
> option and my module contains the MODULE_DEVICE_TABLE
> also..
Did you run depmod after installing your module in the proper
/lib/modules/<KERNEL_VERSION>/ directory?
Also, odds are if you used a -D option for building your module, it was
build incorrectly. Just use the kernel build system, as it is necessary
to do so on 2.6.
thanks,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: newbie help??
2004-04-05 17:32 newbie help?? SUDHARSAN
2004-04-05 18:10 ` Greg KH
@ 2004-04-14 11:25 ` SUDHARSAN
2004-04-16 22:45 ` Greg KH
2 siblings, 0 replies; 4+ messages in thread
From: SUDHARSAN @ 2004-04-14 11:25 UTC (permalink / raw)
To: linux-hotplug
thanx greg for your help that worked well i am using
only 2.4 kernel
One more doubt
1)I read that devfs will automatically create the
nodes ....unlike the conventional register_chrdev()
method.if that is the case should i have devfsd or
something like that running right now i don't have
devfs enabled in my system.what is the procedure to
do so??
2)So it seems that i have to use the conventional
register_chrdev() instead if that is the case how can
i get the major and minor numbers allocated
dynamically allocated.I understand i have to write a
script that creates the node..but where to keep the
script and how to associate that with hotplug????
Thanks for help in advance
--- Greg KH <greg@kroah.com> wrote: > On Mon, Apr 05,
2004 at 06:32:58PM +0100, SUDHARSAN
> wrote:
> > Hi there,
> > I am new to this hotplug/Drivers.I wrote a USB
> > kernel module for a device and i loaded the module
> > using insmod then my device works but the hotplug
> > agent says that no modules for usb device .../....
> > How should i make the association between the
> hotplug
> > and my module???.i configured using
> -DCONFIG_HOTPLUG
> > option and my module contains the
> MODULE_DEVICE_TABLE
> > also..
>
> Did you run depmod after installing your module in
> the proper
> /lib/modules/<KERNEL_VERSION>/ directory?
>
> Also, odds are if you used a -D option for building
> your module, it was
> build incorrectly. Just use the kernel build
> system, as it is necessary
> to do so on 2.6.
>
> thanks,
>
> greg k-h
________________________________________________________________________
Yahoo! India Matrimony: Find your partner online. http://yahoo.shaadi.com/india-matrimony/
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: newbie help??
2004-04-05 17:32 newbie help?? SUDHARSAN
2004-04-05 18:10 ` Greg KH
2004-04-14 11:25 ` SUDHARSAN
@ 2004-04-16 22:45 ` Greg KH
2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2004-04-16 22:45 UTC (permalink / raw)
To: linux-hotplug
On Wed, Apr 14, 2004 at 12:25:23PM +0100, SUDHARSAN wrote:
> thanx greg for your help that worked well i am using
> only 2.4 kernel
> One more doubt
> 1)I read that devfs will automatically create the
> nodes ....unlike the conventional register_chrdev()
> method.if that is the case should i have devfsd or
> something like that running right now i don't have
> devfs enabled in my system.what is the procedure to
> do so??
> 2)So it seems that i have to use the conventional
> register_chrdev() instead if that is the case how can
> i get the major and minor numbers allocated
> dynamically allocated.I understand i have to write a
> script that creates the node..but where to keep the
> script and how to associate that with hotplug????
For 2.4 that will not work, sorry. For 2.6 you need to create sysfs
entries for the device node to show up properly, see the archives for
many examples.
Good luck,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-04-16 22:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-05 17:32 newbie help?? SUDHARSAN
2004-04-05 18:10 ` Greg KH
2004-04-14 11:25 ` SUDHARSAN
2004-04-16 22:45 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).