LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-18-2015, 05:48 PM   #1
im.thatoneguy
LQ Newbie
 
Registered: Feb 2015
Posts: 4

Rep: Reputation: Disabled
Question How to determine if a driver is installed in the kernel aka Nonfunctional USB Gigabit


I just built a linux build (Yocto 1.6 aka 3.10.17 kernel) and in the menuconfig I included the USB_RTL5182 for my USB Ethernet card. How do I determine if it's part of the system?

If I lsusb I get:
Bus 001 Device 002: ID 0bda:8153 Realtek Semiconductor Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@ventana:/lib/modules/3.10.17-1.0.0_ga+yocto+ge86e8d6#

However if I lsmod

arc4 1687 2
ath9k 123482 0
ath9k_common 26430 1 ath9k
ath9k_hw 473599 2 ath9k_common,ath9k
ath 22661 3 ath9k_common,ath9k,ath9k_hw
mac80211 381472 1 ath9k
cfg80211 231852 4 ath,ath9k_common,ath9k,mac80211
sky2 54014 0
compat 13931 5 cfg80211,ath9k_common,ath9k,mac80211,ath9k_hw


There is no RL8152 module running. Do I need to somehow bind it? How do I even tell if it's actually installed and my menuconfig didn't screw up somewhere. I'm a total linux noob so figuring out why I have no eth0 is a mystery to me.

Thanks!
Gavin

Last edited by im.thatoneguy; 02-18-2015 at 06:47 PM.
 
Old 02-18-2015, 06:03 PM   #2
im.thatoneguy
LQ Newbie
 
Registered: Feb 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Ok, I just randomly started cat'ing all of the files in the /modules/x.x.x/ folder and I came across modules.builtin.

I ran:

Quote:
/3.10.17-1.0.0_ga+yocto+ge86e8d6# cat modules.builtin | grep net/usb
kernel/drivers/net/usb/rtl8150.ko
kernel/drivers/net/usb/r8152.ko
So there is a driver! (r8152) Right? I'm not going crazy right?

So how do I tell linux to use the r8152 driver on my USB ethernet controller? Why am I not getting an eth0 out of it?

Thanks again!
 
Old 02-18-2015, 06:51 PM   #3
im.thatoneguy
LQ Newbie
 
Registered: Feb 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Ok found some more info that hopefully is helpful:


root@ventana:/etc# dmesg | grep usb
[ 0.157686] usbcore: registered new interface driver usbfs
[ 0.157747] usbcore: registered new interface driver hub
[ 0.157842] usbcore: registered new device driver usb
[ 1.753622] usbcore: registered new interface driver rtl8150
[ 1.759322] usbcore: registered new interface driver r8152
[ 1.775935] usbcore: registered new interface driver usb-storage
[ 2.373220] usb 1-1: new high-speed USB device number 2 using ci_hdrc
[ 2.678377] usbcore: registered new interface driver usbhid
[ 2.683982] usbhid: USB HID core driver
root@ventana:/etc# lsusb
Bus 001 Device 002: ID 0bda:8153 Realtek Semiconductor Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@ventana:/etc#

Also the verbose lsusb:
Code:
Bus 001 Device 002: ID 0bda:8153 Realtek Semiconductor Corp.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x0bda Realtek Semiconductor Corp.
  idProduct          0x8153
  bcdDevice           30.00
  iManufacturer           1 Realtek
  iProduct                2 USB 10/100/1000 LAN
  iSerial                 3 0050C5000044
  bNumConfigurations      2
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           39
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0002  1x 2 bytes
        bInterval               8
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           80
    bNumInterfaces          2
    bConfigurationValue     2
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      6 Ethernet Networking
      bInterfaceProtocol      0
      iInterface              5 CDC Communications Control
      CDC Header:
        bcdCDC               1.10
      CDC Union:
        bMasterInterface        0
        bSlaveInterface         1
      CDC Ethernet:
        iMacAddress                      3 0050C5000044
        bmEthernetStatistics    0x00000000
        wMaxSegmentSize               1514
        wNumberMCFilters            0x0000
        bNumberPowerFilters              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               8
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0
      iInterface              0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0
      iInterface              4 Ethernet Data
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength           22
  bNumDeviceCaps          2
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000002
      Link Power Management (LPM) Supported
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x02
      Latency Tolerance Messages (LTM) Supported
    wSpeedsSupported   0x000e
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   2
      Lowest fully-functional device speed is High Speed (480Mbps)
    bU1DevExitLat          10 micro seconds
    bU2DevExitLat        2047 micro seconds
Device Status:     0x0000
  (Bus Powered)
So it looks like it registers the driver... and yet no eth0. Does registered new interface driver just mean it's loaded not that it's attached to any devices?

Last edited by im.thatoneguy; 02-18-2015 at 07:00 PM.
 
Old 06-21-2016, 06:33 AM   #4
c1p81
LQ Newbie
 
Registered: Jun 2016
Posts: 2

Rep: Reputation: Disabled
i have the exact same problem in Intel Edison
kernel module loaded (opkg install kernel-module-r8152)
i can see the interface in dmesg and lsusb but no network interface created

any solution ??

thanks
Luca
 
Old 06-21-2016, 06:42 AM   #5
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,602

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
What does an "ifconfig -a" show?
 
Old 06-21-2016, 07:45 AM   #6
c1p81
LQ Newbie
 
Registered: Jun 2016
Posts: 2

Rep: Reputation: Disabled
i have

lo
sit0
usb0
wlan0

it's the same if the usb dongle is unplugged

thanks for your reply
 
Old 06-21-2016, 08:04 AM   #7
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,602

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Odd - I would have expected usb0 to be the ethernet interface...
 
  


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
How to tell what USB driver is installed? bpker Linux - Newbie 1 04-01-2009 11:22 AM
Nvidia driver install script: "Unable to determine the version of the kernel sources" lumix Linux - Software 9 12-18-2008 07:40 AM
How to determine the real speed of gigabit network card groxy Linux - Hardware 1 11-30-2007 03:47 PM
nVidia Display driver can't determine kernel version ad1366 Linux - Hardware 6 03-19-2007 03:19 PM
USB mouse nonfunctional on Debian/Knoppix Zaventh Linux - Hardware 0 07-30-2004 10:24 AM


All times are GMT -5. The time now is 12:54 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration