Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I use the linux 2.6.35.4 kernel on an embedded board. The problem is that I want to use the usb gadget HID to connect my board on the PC as a HID device. I compile the kernel with all needed options. The g_hid driver is compile as module. When I do a modprobe g_hid an error is return with no such device.
Can someone help me?
Can someone tell me how the /dev/hidgx is created and which is the major and minor number. I have search in the device.txt file and on Internet but I don't find anything. This driver has been developped in the 2.6.35 kernel version and I don't know if someone use it?
The problem is that I didn't understand the documentation about gadget HID. To solve the problem, you just need to add the two structures in your platform support like the example and add a call to platform_register_device with the device structure as parameter. And then the driver is able to be loaded and is working fine.
Regards,
Sebastien
Last edited by Sebteams69; 10-28-2010 at 07:54 AM.
The problem is that I didn't understand the documentation about gadget HID. To solve the problem, you just need to add the two structures in your platform support like the example and add a call to platform_register_device with the device structure as parameter. And then the driver is able to be loaded and is working fine.
Regards,
Sebastien
Hate to revive a dead post, but you couldn't point me to the source files that needed modified as well as what the platform_register_device call looks like.
Like the Man from Outer Space, I don't want to revive a dead post, but if Sebteams69 or anybody else could post some information about implementing a HID device from the Embedded Linux System, I would appreciate it.
Thanx!
myke
Last edited by myke.predko; 03-20-2012 at 01:10 PM.
Reason: Typo
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.