Puncker
(usa Ubuntu)
Enviado em 22/10/2016 - 13:14h
Tiago4171 , fiz o procedimento, porém...
Quando eu dou o make install do driver, ocorre um erro na tela:
root@ugnome-rn:/home/raulneiva/Downloads/jmebp-1.0.8.5# make install
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-31-generic'
CC [M] /home/raulneiva/Downloads/jmebp-1.0.8.5/jme.o
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c: In function ‘jme_alloc_and_feed_skb’:
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c:1121:4: error: too few arguments to function ‘__vlan_hwaccel_put_tag’
__vlan_hwaccel_put_tag(skb, vid);
^
In file included from /home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c:45:0:
include/linux/if_vlan.h:409:20: note: declared here
static inline void __vlan_hwaccel_put_tag(struct sk_buff *skb,
^
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c: In function ‘jme_LC_task’:
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c:1565:2: error: implicit declaration of function ‘tasklet_hi_enable’ [-Werror=implicit-function-declaration]
tasklet_hi_enable(&jme->rxclean_task);
^
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c: In function ‘jme_tx_vlan’:
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c:2464:6: error: implicit declaration of function ‘vlan_tx_tag_present’ [-Werror=implicit-function-declaration]
if (vlan_tx_tag_present(skb)) {
^
In file included from include/linux/byteorder/little_endian.h:4:0,
from ./arch/x86/include/uapi/asm/byteorder.h:4,
from include/asm-generic/bitops/le.h:5,
from ./arch/x86/include/asm/bitops.h:504,
from include/linux/bitops.h:36,
from include/linux/kernel.h:10,
from include/linux/list.h:8,
from include/linux/module.h:9,
from /home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c:30:
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c:2466:23: error: implicit declaration of function ‘vlan_tx_tag_get’ [-Werror=implicit-function-declaration]
*vlan = cpu_to_le16(vlan_tx_tag_get(skb));
^
include/uapi/linux/byteorder/little_endian.h:34:51: note: in definition of macro ‘__cpu_to_le16’
#define __cpu_to_le16(x) ((__force __le16)(__u16)(x))
^
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c:2466:11: note: in expansion of macro ‘cpu_to_le16’
*vlan = cpu_to_le16(vlan_tx_tag_get(skb));
^
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c: At top level:
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c:3444:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jme_init_one’
jme_init_one(struct pci_dev *pdev,
^
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c:3732:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jme_remove_one’
jme_remove_one(struct pci_dev *pdev)
^
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c:3901:20: error: ‘jme_init_one’ undeclared here (not in a function)
.probe = jme_init_one,
^
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c:3902:20: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
.remove = __devexit_p(jme_remove_one),
^
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c:3902:32: error: ‘jme_remove_one’ undeclared here (not in a function)
.remove = __devexit_p(jme_remove_one),
^
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c:300:1: warning: ‘jme_reload_eeprom’ defined but not used [-Wunused-function]
jme_reload_eeprom(struct jme_adapter *jme)
^
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c:330:1: warning: ‘jme_load_macaddr’ defined but not used [-Wunused-function]
jme_load_macaddr(struct net_device *netdev)
^
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c:1276:1: warning: ‘jme_pcc_tasklet’ defined but not used [-Wunused-function]
jme_pcc_tasklet(unsigned long arg)
^
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c:1468:13: warning: ‘jme_LC_task’ defined but not used [-Wunused-function]
static void jme_LC_task(struct work_struct *work)
^
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c:1572:1: warning: ‘jme_link_change_tasklet’ defined but not used [-Wunused-function]
jme_link_change_tasklet(unsigned long arg)
^
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c:1662:1: warning: ‘jme_poll’ defined but not used [-Wunused-function]
jme_poll(JME_NAPI_HOLDER(holder), JME_NAPI_WEIGHT(budget))
^
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c:1687:1: warning: ‘jme_rx_empty_tasklet’ defined but not used [-Wunused-function]
jme_rx_empty_tasklet(unsigned long arg)
^
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c:1724:1: warning: ‘jme_tx_clean_tasklet’ defined but not used [-Wunused-function]
jme_tx_clean_tasklet(unsigned long arg)
^
/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.c:3360:1: warning: ‘jme_pci_dma64’ defined but not used [-Wunused-function]
jme_pci_dma64(struct pci_dev *pdev)
^
cc1: some warnings being treated as errors
scripts/Makefile.build:264: recipe for target '/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.o' failed
make[2]: *** [/home/raulneiva/Downloads/jmebp-1.0.8.5/jme.o] Error 1
Makefile:1403: recipe for target '_module_/home/raulneiva/Downloads/jmebp-1.0.8.5' failed
make[1]: *** [_module_/home/raulneiva/Downloads/jmebp-1.0.8.5] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-31-generic'
Makefile:27: recipe for target 'modules' failed
make: *** [modules] Error 2
Dei reboot e tentei fazer o update:
root@ugnome-rn:/home/raulneiva/Downloads/jmebp-1.0.8.5# sudo update-initramfs
You must specify at least one of -c, -u, or -d.
Usage: /usr/sbin/update-initramfs [OPTION]...
Options:
-k version Specify kernel version or 'all'
-c Create a new initramfs
-u Update an existing initramfs
-d Remove an existing initramfs
-t Take over a custom initramfs with this one
-b directory Set alternate boot directory
-v Be verbose
-h This message
root@ugnome-rn:/home/raulneiva/Downloads/jmebp-1.0.8.5# sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-4.4.0-31-generic
Depois do update, criou outra rede, mas continua aparecendo "Cabo desconectado" nas configurações de Rede, veja:
root@ugnome-rn:/home/raulneiva# ifconfig
enp3s0f5 Link encap:Ethernet HWaddr 80:ee:73:0c:54:1b
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:30
enp3s0f5.0 Link encap:Ethernet HWaddr 80:ee:73:0c:54:1b
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:9191 errors:0 dropped:0 overruns:0 frame:0
TX packets:9191 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:693633 (693.6 KB) TX bytes:693633 (693.6 KB)
wlp2s0 Link encap:Ethernet HWaddr 00:02:72:9b:9c:f2
inet addr:192.168.0.XXX Bcast:192.168.0.XXX Mask:255.255.255.0
inet6 addr: fe80::6491:cb7b:d6a9:73e5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2076 errors:0 dropped:0 overruns:0 frame:0
TX packets:2442 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:801819 (801.8 KB) TX bytes:381714 (381.7 KB)
O mais estranho é que a muito tempo atrás, já tive Ubuntu nesse Notebook (Ele é antigo) e funcionava perfeitamente.