Homepage Wiki Forum Buy



severity (level) requirement Gnublin family
Gnublin logo advanced.png Kernel compile, Toolchain Alle

Lan asix.jpg

If you want to connect to the internet over a RJ45 cable you need a USB-LAN-Adapter.

Before you can connect the USB-adapter you must set the Jumper (above the USB-OTG interface) to Host (H) and bridge the Jumper Host between the two USB-Connectors. For more information about the Jumpers have a look at GNUBLIN-Standard

Identify the Hardware

First of all we must identify the chipset of the hardware. You can do this by just pluggin the adapter into a PC or Laptop which runs Linux.


Should show you something like this:

[ 5806.220338] usb 1-3.1.2: reset full speed USB device using ehci_hcd and address 18 [ 5806.331136] usb 1-3.1.2: cp210x converter now attached to ttyUSB0 [ 5809.070341] usb 1-3.1.1: new high speed USB device using ehci_hcd and address 19 [ 5810.093130] asix 1-3.1.1:1.0: eth1: register 'asix' at usb-0000:00:1d.7-3.1.1, ASIX AX88772 USB 2.0 Ethernet, fc:75:16:cf:6b:7f [ 5810.093466] usbcore: registered new interface driver asix

The important thin is the word after usbcore: registered new interface driver.This is the name of the driver. In our case we can see that the driver asix is loaded.

If you have a USB-adapter from another manufactor the driver differs from the one we are using (e.g. Pegasus)

Loading the driver module

In our case for the adapter LAN_asix from the Shop you're loading the drivers exactly how it's described below:

modprobe asix

As output you should get something like:

eth0: register 'asix' at usb-lpc-ehci.0-1, ASIX AX88772 USB 2.0 Ethernet, fc:75:16:cf:6b:7f usbcore: registered new interface driver asix

If you want to auto-load the driver every time the Gnublin-board is booting you must insert the name of the driver into the file /etc/modules. In the default configuration there should be only a single entry named lp.

Now the network-interface is ready and we can go on to configure the connection.

with the command ifconfig -a you can list all your network-interfaces of your linux system.

NOTE: It could be that your driver is not precompiled so you must compile it by yourself. Explanations how to compile the kernel and driver modules can be found in the section Kernel compile + Module installation.

Configuring the Network

The easiest way to connect tho the internet is using a dhcp client.

The Gnublin-filesystem got an dhcp-client onboard. The name is dhclient:

dhclient eth0

This command does not give you an output, so you can only check your connection by typing ifconfig and looking for an entry IP-address for eth0, or you could try to ping a website.

root@gnublin:~# ping www.google.de PING www.google.de ( 56 data bytes 64 bytes from seq=0 ttl=50 time=58.441 ms 64 bytes from seq=1 ttl=50 time=43.204 ms

You can quit the ping-command by pressing CTRL+C

If you want to make the settings static you should write the following in the file /etc/network/interfaces

iface eth0 inet static

If you want to setup the connection everytime automatic over DHCP the file should look like:

iface eth0 inet dhcp
In other languages