![]() |
usb device driver using usb-skeleton.c
Hi,
We are planing to write a usb device driver on the host. The driver should support read and write operations. We used the usb-skeleton.c we removed the existing usb-storage.ko and placed the .ko of usb-skeleton.c. The following were the observations 1)When we plug in the usb device(mass storage) The probe function is getting invoked and the device is getting detected and registered. 2)A device file named skel0 gets created. Its a char file The problems that we encounterd are: 1) The device is getting detected, but the read and write to the device are not working. when I try to write some data the logs say that the data is getting transferrred but I dont see any data written in the device. 2) Is this the right approach?? 3) The usb-skeleton.c Does not have any interaction with scsi, Is it because of that the data trans fer is not working? 4) How should i know if the device is a part of MSC Thank You. |
Here might be some useful information...?
http://www.linuxjournal.com/article/4786 |
Problem testing usb-skeleton driver
So now I have a driver similar to usb-skeleton.c.But I dont know how to remove the previous usb-storage module to test my new module on my usb drive.
whnever I plug-in my usb device dmesg shows active usb-storage module.Do I need to have the device of a specific name like /dev/skeleton. Your helps are welcome! |
Well I blacklisted usb-storage module.Iam still having problems testing the code usb-skeleton.c.
I am inserting usb-skeleton module as Code: Code:
insmod usb-skeleton.kothat means it cannot get the device. Do I need to craete device entry something like Code: Code:
# mknod -m 666 /dev/skeleton c 32 0Do I really need to assign a specific device >pls help |
Problem testing usb-skeleton driver
please help me at this stage I'am clueless as I have no information how to make the usb-skeleton driver run.
Here is the ile I tried to run http://www.linuxhq.com/kernel/v2.6/3...usb-skeleton.c Help! |
| All times are GMT -5. The time now is 02:58 AM. |