Intel Compute Stick USB 3.0 Gigabit Ethernet Adapter Setup

USB 3.0 Gigabit Ethernet Port Setup Compute Stick Running Linux Ubuntu Operating System

Posted by Amritpal Singh on December 28, 2018

Intel Compute Stick has full implementation of USB 3.0 port. The USB 3.0 port on the Intel Compute Stick has theoretical capability of transferring data up to 5gbps. The Wi-Fi network speed of the Compute Stick is slow. To take the maximum advantage of the USB 3.0 port on Compute Stick, we are going to use it for [7 Port USB HUB + Ethernet Adapter] Unitek USB 3.0 Hub 6-Port + 1 Charging Port +1 Gbps Ethernet Adapter, 36W Powered USB Data Hub. In this tutorial, you will learn to setup Unitek’s USB 3.0 based Gigabit Ethernet NIC card on the Intel Compute stick.

Pre-requirements

  1. Intel Compute Stick running Ubuntu Operating System

 

Why did we pick the Unitek USB 3.0 Hub 6-Port with 1Gbps Ethernet Adapter?

This device offers the following great features:

  1. Comes with 36 Watt power adapter, it has enough juice to have up to 7 USB powered external hard drives (e.g. WD 1TB USB 3.0 drive)
  2. Adds 6 more USB 3.0 Ports to the Compute Stick, so you can hook up more devices to it
  3. Provides built-in 1Gbps Ethernet adapter
  4. Supports Linux Operating System, provided device drivers, (with a small modification, I was able to compile and install the driver on Compute Stick running Ubuntu 16.10 Operating system

 

Setup used for this tutorial

Compute Stick Model: STK1A32SC
Date of Manufacturing: 07/2016
Operating System: Ubuntu 16.10
External Device: Unitek USB 3.0 Hub 6-Port with 1Gbps Ethernet Adapter (Price USD $35)

 

Download Linux Device Driver

Unitek’s Official Link: http://unitek-products.com/administrator/components/com_zdcode/upload/Realtek/RTL8153/Linux.zip

 

Download and Unarchive RTL8153 Device Driver Using the Below Commands

wget http://unitek-products.com/administrator/components/com_zdcode/upload/Realtek/RTL8153/Linux.zip
unzip Linux.zip
cd Linux/
tar xvjf 0010-r8152.53-2.10.0.tar.bz2

Compile and Install Driver

Use the below two commands to install the device driver:

make
make install

Note* - The make command compiles the driver C program, if you recieve an ‘BMCR_SPEED10’ undeclared error as I did as shown below, you will need to replace the r8152.c file with this modified version I made that declares the BMCR_SPEED10 macro to 0 in the C preprocessing flags. Modified file r8152.c link. Re-run the make command, it will compile the device driver successfully and next run the make install command afterwards.

[email protected]:~/Downloads/test/Linux/r8152-2.10.0$ make
make -C /lib/modules/4.8.0-22-linuxium/build SUBDIRS=/home/galileo/Downloads/test/Linux/r8152-2.10.0 modules
make[1]: Entering directory '/usr/src/linux-headers-4.8.0-22-linuxium'
  CC [M]  /home/galileo/Downloads/test/Linux/r8152-2.10.0/r8152.o
/home/galileo/Downloads/test/Linux/r8152-2.10.0/r8152.c: In function ‘rtl8152_set_speed’:
/home/galileo/Downloads/test/Linux/r8152-2.10.0/r8152.c:5629:11: error: ‘BMCR_SPEED10’ undeclared (first use in this function)
    bmcr = BMCR_SPEED10;
           ^~~~~~~~~~~~
/home/galileo/Downloads/test/Linux/r8152-2.10.0/r8152.c:5629:11: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:295: recipe for target '/home/galileo/Downloads/test/Linux/r8152-2.10.0/r8152.o' failed
make[2]: *** [/home/galileo/Downloads/test/Linux/r8152-2.10.0/r8152.o] Error 1
Makefile:1489: recipe for target '_module_/home/galileo/Downloads/test/Linux/r8152-2.10.0' failed
make[1]: *** [_module_/home/galileo/Downloads/test/Linux/r8152-2.10.0] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.8.0-22-linuxium'
Makefile:18: recipe for target 'modules' failed
make: *** [modules] Error 2
[email protected]:~/Downloads/test/Linux/r8152-2.10.0$

If the setup is successfull you will see no errors and running the if config command will show the ethernet interface informaition along with WiFi  network interface information.

To check more information about the ethernet card run the following command:

sudo lshw -class network
[email protected]:~/Downloads$ sudo lshw -class network
  *-network DISABLED
       description: Wireless interface
       product: Wireless 7265
       vendor: Intel Corporation
       physical id: 0
       bus info: [email protected]:01:00.0
       logical name: wlp1s0
       version: 69
       serial: 00:21:5c:fd:6f:15
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=4.8.0-22-linuxium firmware=22.361476.0 latency=0 link=no multicast=yes wireless=IEEE 802.11
       resources: irq:268 memory:91400000-91401fff
  *-network
       description: Ethernet interface
       physical id: 1
       logical name: enx00e04c3451cf
       serial: 00:e0:4c:34:51:cf
       size: 1Gbit/s
       capacity: 1Gbit/s
       capabilities: ethernet physical mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8152 driverversion=v2.10.00 (2018/03/16) duplex=full ip=192.168.1.226 link=yes multicast=yes port=MII speed=1Gbit/s


 


0 Comments


Add Comment