Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Hai all,
I took a usb skeleton driver program from the kernel source code(drivers/usb/usb_skeketen.c) and compiled and inserted in to kernel (2.6.22) and using that module i transfer data from my usb device to the computer in RHEL. But if i tried in a debian distribution (2.6.22.3 kernel)the application program failed and the dmesg shows a warnig that i dont get in RHEL. Also the /proc/bus/usb/devices file shows the information about my device, but 'lsusb'command does't show anything.Following are the different outputs.
*********dmesg output*******************
usb 2-1: new full speed USB device using uhci_hcd and address 2
usb 2-1: configuration #1 chosen from 1 choice
/home/newshabeer/test/mice.c: USB Skeleton device now attached to USBSkel-192
skeleton 2-1:1.0: no suspend for driver skeleton?
*************lsusb****************
Bus 004 Device 003: ID 0b38:0003
Bus 004 Device 002: ID 1241:1122 Belkin
Bus 004 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
In RHEL after inserting my module i check the /sys directory, from that i got the device number, create device file and using that i transfer data with my device. Is it correct way??
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it. subscribe
Open Source Security Myths Dispelled Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization subscribe
InformationWeek InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology. subscribe