Title: Re: [linux-usb-devel] What the calling process of a USB device driver?
Oliver Neukum wrote:
> Am Dienstag, 18. November 2003 19:40 schrieb lrd:
>
>> Hi all:
>>
>> I\'m new to Linux device driver development and am writing a driver for my USB device. Now, I encounter several problems.
>>
>> 1. My driver is installed successfully in Linux 2.4.22. But when I connect my device to the system, it seems that nobody calls my drivers routines - I think at least the \'probe\' routine should be called. Am I wrong?
>
>
>
> Your probe() is called only if the USB ids you give in the driver
> match those of the connected device.
I think something is wrong with my kernel. When I plug in my USB disk,
it doesn\'t work and \'dmesg\' shows nothing. But it works fine with the
kernel shipped with Fedora. I have to compile the kernel again......
Any hints on USB config?
>
>> 2. \'insmod\' fails in Linux2.6.0-test9. It says: Invalid module format. The code is modified to fit the chages from 2.4 to 2.6 and compiled successfully. Then, what does this message mean? I\'m sure the include paths and the version settings are right. Furthermore, modutils work fine when I compile & install my 2.6.0-test9.
>
>
>
> Do you build a correct .ko ?
This is my question too. I\'ve set the correct include path to 2.6 and
inlcude version.h & modversions.h. Any more requirements? Should I
rename .o to .ko?
LRD
|
|