sudo apt-get install gcc build-essential linux-headers-generic linux-headers-$(uname -r)
apt get install nao executei porque estou sem conexão com internet
cd r8101-1.024.00
r8101-1.024.00$ make
make -C src/ clean
make[1]: Entrando no diretório `/home/bruno/r8101-1.024.00/src'
make -C /lib/modules/3.11.0-13-generic/build SUBDIRS=/home/bruno/r8101-1.024.00/src clean
make[2]: Entrando no diretório `/usr/src/linux-headers-3.11.0-13-generic'
make[2]: Saindo do diretório `/usr/src/linux-headers-3.11.0-13-generic'
make[1]: Saindo do diretório `/home/bruno/r8101-1.024.00/src'
make -C src/ modules
make[1]: Entrando no diretório `/home/bruno/r8101-1.024.00/src'
make -C /lib/modules/3.11.0-13-generic/build SUBDIRS=/home/bruno/r8101-1.024.00/src modules
make[2]: Entrando no diretório `/usr/src/linux-headers-3.11.0-13-generic'
CC [M] /home/bruno/r8101-1.024.00/src/r8101_n.o
/home/bruno/r8101-1.024.00/src/r8101_n.c: In function ‘rtl8101_rx_vlan_skb’:
/home/bruno/r8101-1.024.00/src/r8101_n.c:1909:9: error: too few arguments to function ‘__vlan_hwaccel_put_tag’
__vlan_hwaccel_put_tag(skb, swab16(opts2 & 0xffff));
^
In file included from /home/bruno/r8101-1.024.00/src/r8101_n.c:46:0:
include/linux/if_vlan.h:236:31: note: declared here
static inline struct sk_buff *__vlan_hwaccel_put_tag(struct sk_buff *skb,
^
/home/bruno/r8101-1.024.00/src/r8101_n.c: In function ‘rtl8101_hw_set_features’:
/home/bruno/r8101-1.024.00/src/r8101_n.c:1970:25: error: ‘NETIF_F_HW_VLAN_RX’ undeclared (first use in this function)
if (dev->features & NETIF_F_HW_VLAN_RX)
^
/home/bruno/r8101-1.024.00/src/r8101_n.c:1970:25: note: each undeclared identifier is reported only once for each function it appears in
/home/bruno/r8101-1.024.00/src/r8101_n.c: In function ‘rtl8101_init_one’:
/home/bruno/r8101-1.024.00/src/r8101_n.c:7295:22: error: ‘NETIF_F_HW_VLAN_TX’ undeclared (first use in this function)
dev->features |= NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX;
^
/home/bruno/r8101-1.024.00/src/r8101_n.c:7295:43: error: ‘NETIF_F_HW_VLAN_RX’ undeclared (first use in this function)
dev->features |= NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX;
^
make[3]: ** [/home/bruno/r8101-1.024.00/src/r8101_n.o] Erro 1
make[2]: ** [_module_/home/bruno/r8101-1.024.00/src] Erro 2
make[2]: Saindo do diretório `/usr/src/linux-headers-3.11.0-13-generic'
make[1]: ** [modules] Erro 2
make[1]: Saindo do diretório `/home/bruno/r8101-1.024.00/src'
make: ** [modules] Erro 2
r8101-1.024.00$ sudo make install
[sudo] password for bruno:
make -C src/ install
make[1]: Entrando no diretório `/home/bruno/r8101-1.024.00/src'
make -C /lib/modules/3.11.0-13-generic/build SUBDIRS=/home/bruno/r8101-1.024.00/src INSTALL_MOD_DIR=kernel/drivers/net/ethernet/realtek modules_install
make[2]: Entrando no diretório `/usr/src/linux-headers-3.11.0-13-generic'
DEPMOD 3.11.0-13-generic
make[2]: Saindo do diretório `/usr/src/linux-headers-3.11.0-13-generic'
make[1]: Saindo do diretório `/home/bruno/r8101-1.024.00/src'
r8101-1.024.00$