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.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > The Linux Kernel > usb-skeleton driver problem

Forgot Password?
 The Linux Kernel   Compiling, theory, programming or other discussion about the linux kernel

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-15-2009   #1 (permalink)
Just Joined!
 
Join Date: Apr 2007
Posts: 16
Smile usb-skeleton driver problem

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?

**********/proc/bus/usb/devices*****************
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 8 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0457 ProdID=000d Rev= 1.00
S: Manufacturer=ABCD
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=00(>ifc ) Sub=00 Prot=00 Driver=skeleton
E: Ad=85(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=01(O) Atr=02(Bulk) MxPS= 32 Ivl=0ms

*************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??

Please anybody can help me........]

regards shabeer
shabeervsm is offline  



Reply With Quote
Old 07-21-2009   #2 (permalink)
Linux User
 
vickey_20's Avatar
 
Join Date: Mar 2009
Location: Mumbai, India
Posts: 493
But why have you compiled the program , just to tranfer data to usb??
__________________
Only if I could understand the man pages
Registered Linux user #492640
OS: RHEL4,5 ,RH 9,Ubuntu
vickey_20 is offline   Reply With Quote
Old 07-21-2009   #3 (permalink)
Just Joined!
 
Join Date: Apr 2007
Posts: 16
we develope a camera module, it has a usb port and i need to transfer images from camera to system.
shabeervsm is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
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
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
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



All times are GMT. The time now is 09:26 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1