ASUS笔记本(X42J系列)有线网卡不能正常工作
Tofloor
poster avatar
user023
deepin
2016-08-24 05:13
Author
我的ASUS笔记本(X42J系列)有线网卡不能正常工作,有解决办法吗?
网卡型号:Ethernet controller: JMicron Technology Corp. JMC250 PCI Express Gigabit Ethernet Controller
Reply Favorite View the author
All Replies
avatar
youyou2011
deepin
2016-08-24 15:14
#1
本帖最后由 youyou2011 于 2016-8-24 07:26 编辑

智微科技有限公司jmc250 PCI Express千兆以太网控制器
百度翻译:http://fanyi.baidu.com/?aldtype= ... hernet%20Controller

JMicron JMC250/JMC260 PCI-E LAN Driver 1.0.8.4 for Linux
http://drivers.softpedia.com/get ... 083-for-Linux.shtml

JMicron JMC250/JMC260 PCI-E LAN Driver for Linux 1.0.8.3

http://jmicron-jmc250-jmc260-pci-e-lan-driver-for-linux.soft32.com/?rel=breadcrumb

http://www.ipdrivers.com/drivers ... -driver-298625.html



Reply View the author
avatar
user023
deepin
2016-08-26 05:41
#2
https://bbs.deepin.org/post/42677
智微科技有限公司jmc250 PCI Express千兆以太网控制器
百度翻译:http://fanyi.baidu.com/?aldtype= ... he ...

多谢https://bbs.deepin.org/user/1647 ,不过貌似没有成功。

asus@asus-pc:~/下载/jmebp$ ls
CHANGELOG  jme.c  jme.h  Makefile  scripts
asus@asus-pc:~/下载/jmebp$ make
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-2-deepin-amd64'
Makefile:10: *** mixed implicit and normal rules: deprecated syntax
  CC [M]  /home/asus/下载/jmebp/jme.o
/home/asus/下载/jmebp/jme.c: In function ‘jme_alloc_and_feed_skb’:
/home/asus/下载/jmebp/jme.c:1117:4: error: too few arguments to function ‘__vlan_hwaccel_put_tag’
    __vlan_hwaccel_put_tag(skb, vid);
    ^
In file included from /home/asus/下载/jmebp/jme.c:45:0:
/usr/src/linux-headers-4.4.0-2-deepin-common/include/linux/if_vlan.h:409:20: note: declared here
static inline void __vlan_hwaccel_put_tag(struct sk_buff *skb,
                    ^
/home/asus/下载/jmebp/jme.c: In function ‘jme_LC_task’:
/home/asus/下载/jmebp/jme.c:1427:2: error: implicit declaration of function ‘tasklet_hi_enable’ [-Werror=implicit-function-declaration]
  tasklet_hi_enable(&jme->rxclean_task);
  ^
/home/asus/下载/jmebp/jme.c: In function ‘jme_tx_vlan’:
/home/asus/下载/jmebp/jme.c:2327:6: error: implicit declaration of function ‘vlan_tx_tag_present’ [-Werror=implicit-function-declaration]
  if (vlan_tx_tag_present(skb)) {
      ^
In file included from /usr/src/linux-headers-4.4.0-2-deepin-common/include/linux/byteorder/little_endian.h:4:0,
                 from /usr/src/linux-headers-4.4.0-2-deepin-common/arch/x86/include/uapi/asm/byteorder.h:4,
                 from /usr/src/linux-headers-4.4.0-2-deepin-common/include/asm-generic/bitops/le.h:5,
                 from /usr/src/linux-headers-4.4.0-2-deepin-common/arch/x86/include/asm/bitops.h:504,
                 from /usr/src/linux-headers-4.4.0-2-deepin-common/include/linux/bitops.h:36,
                 from /usr/src/linux-headers-4.4.0-2-deepin-common/include/linux/kernel.h:10,
                 from /usr/src/linux-headers-4.4.0-2-deepin-common/include/linux/list.h:8,
                 from /usr/src/linux-headers-4.4.0-2-deepin-common/include/linux/module.h:9,
                 from /home/asus/下载/jmebp/jme.c:30:
/home/asus/下载/jmebp/jme.c:2329:23: error: implicit declaration of function ‘vlan_tx_tag_get’ [-Werror=implicit-function-declaration]
   *vlan = cpu_to_le16(vlan_tx_tag_get(skb));
                       ^
/usr/src/linux-headers-4.4.0-2-deepin-common/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/asus/下载/jmebp/jme.c:2329:11: note: in expansion of macro ‘cpu_to_le16’
   *vlan = cpu_to_le16(vlan_tx_tag_get(skb));
           ^
/home/asus/下载/jmebp/jme.c: At top level:
/home/asus/下载/jmebp/jme.c:3307:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jme_init_one’
jme_init_one(struct pci_dev *pdev,
^
/home/asus/下载/jmebp/jme.c:3590:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jme_remove_one’
jme_remove_one(struct pci_dev *pdev)
^
/home/asus/下载/jmebp/jme.c:3743:20: error: ‘jme_init_one’ undeclared here (not in a function)
  .probe          = jme_init_one,
                    ^
/home/asus/下载/jmebp/jme.c:3744:20: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
  .remove         = __devexit_p(jme_remove_one),
                    ^
/home/asus/下载/jmebp/jme.c:3744:32: error: ‘jme_remove_one’ undeclared here (not in a function)
  .remove         = __devexit_p(jme_remove_one),
                                ^
/home/asus/下载/jmebp/jme.c:296:1: warning: ‘jme_reload_eeprom’ defined but not used [-Wunused-function]
jme_reload_eeprom(struct jme_adapter *jme)
^
/home/asus/下载/jmebp/jme.c:326:1: warning: ‘jme_load_macaddr’ defined but not used [-Wunused-function]
jme_load_macaddr(struct net_device *netdev)
^
/home/asus/下载/jmebp/jme.c:1272:1: warning: ‘jme_pcc_tasklet’ defined but not used [-Wunused-function]
jme_pcc_tasklet(unsigned long arg)
^
/home/asus/下载/jmebp/jme.c:1350:13: warning: ‘jme_LC_task’ defined but not used [-Wunused-function]
static void jme_LC_task(struct work_struct *work)
             ^
/home/asus/下载/jmebp/jme.c:1434:1: warning: ‘jme_link_change_tasklet’ defined but not used [-Wunused-function]
jme_link_change_tasklet(unsigned long arg)
^
/home/asus/下载/jmebp/jme.c:1524:1: warning: ‘jme_poll’ defined but not used [-Wunused-function]
jme_poll(JME_NAPI_HOLDER(holder), JME_NAPI_WEIGHT(budget))
^
/home/asus/下载/jmebp/jme.c:1549:1: warning: ‘jme_rx_empty_tasklet’ defined but not used [-Wunused-function]
jme_rx_empty_tasklet(unsigned long arg)
^
/home/asus/下载/jmebp/jme.c:1586:1: warning: ‘jme_tx_clean_tasklet’ defined but not used [-Wunused-function]
jme_tx_clean_tasklet(unsigned long arg)
^
/home/asus/下载/jmebp/jme.c:3223: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
/usr/src/linux-headers-4.4.0-2-deepin-common/scripts/Makefile.build:269: recipe for target '/home/asus/下载/jmebp/jme.o' failed
make[4]: *** [/home/asus/下载/jmebp/jme.o] Error 1
/usr/src/linux-headers-4.4.0-2-deepin-common/Makefile:1401: recipe for target '_module_/home/asus/下载/jmebp' failed
make[3]: *** [_module_/home/asus/下载/jmebp] Error 2
Makefile:146: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-2-deepin-amd64'
Makefile:27: recipe for target 'modules' failed
make: *** [modules] Error 2
asus@asus-pc:~/下载/jmebp$
Reply View the author