Ubuntu 17.04. install driver for Thunderbolt 3 Dock Ethernet

I am trying to install the lenovo USB-C dock's integrated ethernet interface on my ubuntu 17.04.

According to arch wiki's article on the x1 carbon (and its dock), the package r8152-dkms has to be installed. Also a similar question here is available but without answer.

So the question is: How can I get that docks ethernet adapter to work?

dmesg

engor@engorx1:~$ dmesg | grep r8152
[   22.388434] usbcore: registered new interface driver r8152
[   22.500194] r8152 4-1.1:1.0 (unnamed net_device) (uninitialized): Unknown version 0x6010
[   22.500195] r8152 4-1.1:1.0 (unnamed net_device) (uninitialized): Unknown Device

lsmod

engor@engorx1:~$ lsmod | grep r8152
r8152                  49152  0
mii                    16384  2 usbnet,r8152

ifconfig does not list it as an interface.

So what am I missing out?


Solution 1:

Support of this device has been added in the 4.13 kernel.

This is the commit.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/net/usb/r8152.c?h=v4.13-rc6&id=65b82d696b9e84fda6dd7df61801b57d3e7fb976

You can install the 4.13rc6 kernel from the mainline PPA

Solution 2:

FWIW, here is another advise : don't forget to activate the Thunderbolt interface in the BIOS. I set up those parameters (config tab of the BIOS) :

Wake by Thunderbolt 3    : [Enabled]
Security Level           : [No Security]
Thunderbolt device       : [Enabled]
USB Device               : [Enabled]