LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 04-01-2013, 09:55 PM   #1
mustafaupk
LQ Newbie
 
Registered: Dec 2011
Posts: 6

Rep: Reputation: Disabled
Kernel Module question: how to know if device is supported by module


I have a usb-to-ethernet device (DLink Dub E-100 rev. C) with the device id 2001:1a02. The driver source provided with the device has a file called asix.c which is supposed to be compiled. When I look in this file, near the end, there are a number of devices listed with their respective device id's but it does not have the 2001:1a02 id item listed.

I would like to know if this matters at all? Should my device be listed near the end of the asix.c file. The device actually does not work with the compiled driver which is why I am trouble shooting the issue.

Just for reference, here are all the devices listed near the end:
Code:
static const struct usb_device_id	products [] = {
{
	// 88178
	USB_DEVICE (0x0b95, 0x1780),
	.driver_info =	(unsigned long) &ax88178_info,
}, {
	// 88178 for billianton linksys
	USB_DEVICE (0x077b, 0x2226),
	.driver_info =	(unsigned long) &ax88178_info,
}, {
	// ABOCOM for linksys
	USB_DEVICE (0x1737, 0x0039),
	.driver_info =	(unsigned long) &ax88178_info,
}, {
	// ABOCOM  for pci
	USB_DEVICE (0x14ea, 0xab11),
	.driver_info =	(unsigned long) &ax88178_info,
}, {
	// Belkin
	USB_DEVICE (0x050d, 0x5055),
	.driver_info =	(unsigned long) &belkin178_info,
}, {
	// Linksys USB200M
	USB_DEVICE (0x077b, 0x2226),
	.driver_info =	(unsigned long) &ax8817x_info,
}, {
	// Netgear FA120
	USB_DEVICE (0x0846, 0x1040),
	.driver_info =  (unsigned long) &netgear_fa120_info,
}, {
	// DLink DUB-E100
	USB_DEVICE (0x2001, 0x1a00),
	.driver_info =  (unsigned long) &dlink_dub_e100_info,
}, {
	// DLink DUB-E100B
	USB_DEVICE (0x2001, 0x3c05),
	.driver_info =  (unsigned long) &dlink_dub_e100b_info,
}, {
	// DLink DUB-E100B
	USB_DEVICE (0x07d1, 0x3c05),
	.driver_info =  (unsigned long) &dlink_dub_e100b_info,
}, {
	// Intellinet, ST Lab USB Ethernet
	USB_DEVICE (0x0b95, 0x1720),
	.driver_info =  (unsigned long) &ax8817x_info,
}, {
	// Hawking UF200, TrendNet TU2-ET100
	USB_DEVICE (0x07b8, 0x420a),
	.driver_info =  (unsigned long) &hawking_uf200_info,
}, {
        // Billionton Systems, USB2AR
        USB_DEVICE (0x08dd, 0x90ff),
        .driver_info =  (unsigned long) &ax8817x_info,
}, {
	// ATEN UC210T
	USB_DEVICE (0x0557, 0x2009),
	.driver_info =  (unsigned long) &ax8817x_info,
}, {
	// Buffalo LUA-U2-KTX
	USB_DEVICE (0x0411, 0x003d),
	.driver_info =  (unsigned long) &ax8817x_info,
}, {
	// Sitecom LN-029 "USB 2.0 10/100 Ethernet adapter"
	USB_DEVICE (0x6189, 0x182d),
	.driver_info =  (unsigned long) &ax8817x_info,
}, {
	// corega FEther USB2-TX
	USB_DEVICE (0x07aa, 0x0017),
	.driver_info =  (unsigned long) &ax8817x_info,
}, {
	// Surecom EP-1427X-2
	USB_DEVICE (0x1189, 0x0893),
	.driver_info = (unsigned long) &ax8817x_info,
}, {
	// goodway corp usb gwusb2e
	USB_DEVICE (0x1631, 0x6200),
	.driver_info = (unsigned long) &ax8817x_info,
}, {
	// ASIX AX88772 10/100
        USB_DEVICE (0x0b95, 0x7720),
        .driver_info = (unsigned long) &ax88772_info,
}, {
	// ASIX AX88772 10/100
        USB_DEVICE (0x125E, 0x180D),
        .driver_info = (unsigned long) &ax88772_info,
}, {
	// ASIX AX88772A 10/100
        USB_DEVICE (0x0b95, 0x772A),
        .driver_info = (unsigned long) &ax88772a_info,
}, {
	// ASIX AX88772A 10/100
        USB_DEVICE (0x0db0, 0xA877),
        .driver_info = (unsigned long) &ax88772a_info,
}, {
	// ASIX AX88772A 10/100
        USB_DEVICE (0x0421, 0x772A),
        .driver_info = (unsigned long) &ax88772a_info,
}, {
	// Linksys 200M
        USB_DEVICE (0x13B1, 0x0018),
        .driver_info = (unsigned long) &ax88772a_info,
}, {
        USB_DEVICE (0x05ac, 0x1402),
        .driver_info = (unsigned long) &ax88772a_info,
}, {
	// ASIX AX88772B 10/100
        USB_DEVICE (0x0b95, 0x772B),
        .driver_info = (unsigned long) &ax88772b_info,
}, {
	// ASIX AX88772B 10/100
        USB_DEVICE (0x0b95, 0x7E2B),
        .driver_info = (unsigned long) &ax88772b_info,
},
	{ },		// END
 
Old 04-01-2013, 10:51 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Hi, I have a similar device and only use the kernel modules already builtin.

You can probably disregard that .c file.

The modules in use for this usb device (Swann SW111-EU1)

RTL8150, usbcore and usb-common.

if you see in your networkmanager for devices,

eth0 internal motherboard eth socket
eth1 Unconfigurable usb device, something about "can't configure usb device" is shown...
eth1:eth1 This is the usb device, but using usb-common and usbcore to translate to eth1 (I guess).

eth1:eth1 is my usb connector/dongle. It's hotplug-able.

files...
Code:
/etc/sysconfig/network-scripts/ifcfg-eth1
Hope this helps, Glenn
 
Old 04-01-2013, 10:58 PM   #3
mustafaupk
LQ Newbie
 
Registered: Dec 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks for the reply. I am actually trying to build a module for the MK808 android stick pc which is why I need to build the module from the sources. So I really need to know if I should tweak this file to add the device id for my usb-to-ethernet device.
 
Old 04-02-2013, 12:00 AM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Oh, ok. That's a bit out of my depth.

But, my thought is that it won't hurt to try.

Code:
 {
	// 88178 for DLink Dub E-100 rev.C
	USB_DEVICE (0x2001, 0x1a02),
	.driver_info =	(unsigned long) &ax88178_info,
},
Glenn
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Difference between Static Kernel Module & Dynamic Kernel Module ram619 Linux - Newbie 2 12-11-2012 05:27 AM
[SOLVED] Install older kernel module into newer kernel - no symbol version for module bayoulinux Linux - Kernel 4 10-26-2011 04:32 AM
[SOLVED] partport module is seing my parallel port but lp module doesn´t found any device... fcintron Linux - Hardware 3 03-07-2011 09:45 AM
Compile and load kernel module automatically after boot? (Intel NIC module) touser Linux - Newbie 3 08-29-2009 08:45 PM
2in1 problem thread. (nvidia kernel module vs X module, and strange workbug phenom) htedrom Linux - Software 15 10-04-2007 10:55 PM


All times are GMT -5. The time now is 08:35 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration