How can install Asus 10Gb Ethernet driver

https://dlcdnets.asus.com/pub/ASUS/wireless/XG-C100C/DR_XG-C100C_v5016.zip

make
make -j4 CC=gcc -C /lib/modules/5.6.3-935.native/build M=/daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200 modules
make[1]: Entering directory '/usr/lib/modules/5.6.3-935.native/build'
  CC [M]  /daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_main.o
  CC [M]  /daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_nic.o
  CC [M]  /daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_pci_func.o
  CC [M]  /daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_vec.o
In file included from /daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_common.h:21,
                 from /daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_nic.h:15,
                 from /daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_nic.c:12:
/daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_compat.h: In function ‘skb_xmit_more’:
In file included from /daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_common.h:21,
                 from /daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_main.h:15,
                 from /daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_main.c:12:
/daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_compat.h: In function ‘skb_xmit_more’:
/daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_compat.h:101:12: error: ‘struct sk_buff’ has no member named ‘xmit_more’
  101 |  return skb->xmit_more;
      |            ^~
/daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_compat.h:101:12: error: ‘struct sk_buff’ has no member named ‘xmit_more’
  101 |  return skb->xmit_more;
      |            ^~
In file included from /daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_common.h:21,
                 from /daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_main.h:15,
                 from /daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_pci_func.c:15:
/daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_compat.h: In function ‘skb_xmit_more’:
/daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_compat.h:101:12: error: ‘struct sk_buff’ has no member named ‘xmit_more’
  101 |  return skb->xmit_more;
      |            ^~
In file included from /daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_common.h:21,
                 from /daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_vec.h:17,
                 from /daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_vec.c:14:
/daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_compat.h: In function ‘skb_xmit_more’:
/daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_compat.h:101:12: error: ‘struct sk_buff’ has no member named ‘xmit_more’
  101 |  return skb->xmit_more;
      |            ^~
/daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_pci_func.c: In function ‘aq_pci_probe’:
/daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_pci_func.c:317:24: error: implicit declaration of function ‘ioremap_nocache’; did you mean ‘ioremap_cache’? [-Werror=implicit-function-declaration]
  317 |    self->aq_hw->mmio = ioremap_nocache(mmio_pa, reg_sz);
      |                        ^~~~~~~~~~~~~~~
      |                        ioremap_cache
/daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_pci_func.c:317:22: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  317 |    self->aq_hw->mmio = ioremap_nocache(mmio_pa, reg_sz);
      |                      ^
make[2]: *** [scripts/Makefile.build:268: /daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_main.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:268: /daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_vec.o] Error 1
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:268: /daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_pci_func.o] Error 1
make[2]: *** [scripts/Makefile.build:268: /daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200/aq_nic.o] Error 1
make[1]: *** [Makefile:1683: /daemon/XG-C100C_v.5.0.1.6/LinuxDriver/Linux_2.0.15.0/src/Linux-200] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.6.3-935.native/build'
make: *** [Makefile:66: all] Error 2

i can’t install driver

Plz help me

You should try to build the dkms module.
First install a dkms kernel. https://docs.01.org/clearlinux/latest/guides/kernel/kernel-modules-dkms.html?highlight=dkms#install-dkms
Then, follow the Alternatively build and install driver with dkms section in README.txt.

1 Like

I installed dkms

but still i have same error

make: Entering directory '/usr/lib/modules/5.6.6-942.native/build'
  AR      /var/lib/dkms/atlantic/2.0.15.0/build/built-in.a
  CC [M]  /var/lib/dkms/atlantic/2.0.15.0/build/aq_main.o
  CC [M]  /var/lib/dkms/atlantic/2.0.15.0/build/aq_nic.o
  CC [M]  /var/lib/dkms/atlantic/2.0.15.0/build/aq_pci_func.o
  CC [M]  /var/lib/dkms/atlantic/2.0.15.0/build/aq_vec.o
  CC [M]  /var/lib/dkms/atlantic/2.0.15.0/build/aq_ring.o
  CC [M]  /var/lib/dkms/atlantic/2.0.15.0/build/aq_hw_utils.o
  CC [M]  /var/lib/dkms/atlantic/2.0.15.0/build/aq_ethtool.o
  CC [M]  /var/lib/dkms/atlantic/2.0.15.0/build/aq_drvinfo.o
In file included from /var/lib/dkms/atlantic/2.0.15.0/build/aq_common.h:21,
                 from /var/lib/dkms/atlantic/2.0.15.0/build/aq_nic.h:15,
                 from /var/lib/dkms/atlantic/2.0.15.0/build/aq_nic.c:12:
/var/lib/dkms/atlantic/2.0.15.0/build/aq_compat.h: In function ‘skb_xmit_more’:
/var/lib/dkms/atlantic/2.0.15.0/build/aq_compat.h:101:12: error: ‘struct sk_buff’ has no member named ‘xmit_more’
  101 |  return skb->xmit_more;
      |            ^~
In file included from /var/lib/dkms/atlantic/2.0.15.0/build/aq_common.h:21,
                 from /var/lib/dkms/atlantic/2.0.15.0/build/aq_vec.h:17,
                 from /var/lib/dkms/atlantic/2.0.15.0/build/aq_vec.c:14:
/var/lib/dkms/atlantic/2.0.15.0/build/aq_compat.h: In function ‘skb_xmit_more’:
/var/lib/dkms/atlantic/2.0.15.0/build/aq_compat.h:101:12: error: ‘struct sk_buff’ has no member named ‘xmit_more’
  101 |  return skb->xmit_more;
      |            ^~
In file included from /var/lib/dkms/atlantic/2.0.15.0/build/aq_common.h:21,
                 from /var/lib/dkms/atlantic/2.0.15.0/build/aq_hw_utils.h:17,
                 from /var/lib/dkms/atlantic/2.0.15.0/build/aq_hw_utils.c:14:
/var/lib/dkms/atlantic/2.0.15.0/build/aq_compat.h: In function ‘skb_xmit_more’:
/var/lib/dkms/atlantic/2.0.15.0/build/aq_compat.h:101:12: error: ‘struct sk_buff’ has no member named ‘xmit_more’
  101 |  return skb->xmit_more;
      |            ^~
In file included from /var/lib/dkms/atlantic/2.0.15.0/build/aq_common.h:21,
                 from /var/lib/dkms/atlantic/2.0.15.0/build/aq_main.h:15,
                 from /var/lib/dkms/atlantic/2.0.15.0/build/aq_pci_func.c:15:
/var/lib/dkms/atlantic/2.0.15.0/build/aq_compat.h: In function ‘skb_xmit_more’:
/var/lib/dkms/atlantic/2.0.15.0/build/aq_compat.h:101:12: error: ‘struct sk_buff’ has no member named ‘xmit_more’
  101 |  return skb->xmit_more;
      |            ^~
In file included from /var/lib/dkms/atlantic/2.0.15.0/build/aq_common.h:21,
                 from /var/lib/dkms/atlantic/2.0.15.0/build/aq_main.h:15,
                 from /var/lib/dkms/atlantic/2.0.15.0/build/aq_main.c:12:
/var/lib/dkms/atlantic/2.0.15.0/build/aq_compat.h: In function ‘skb_xmit_more’:
/var/lib/dkms/atlantic/2.0.15.0/build/aq_compat.h:101:12: error: ‘struct sk_buff’ has no member named ‘xmit_more’
  101 |  return skb->xmit_more;
      |            ^~
In file included from /var/lib/dkms/atlantic/2.0.15.0/build/aq_common.h:21,
                 from /var/lib/dkms/atlantic/2.0.15.0/build/aq_ethtool.h:15,
                 from /var/lib/dkms/atlantic/2.0.15.0/build/aq_ethtool.c:12:
/var/lib/dkms/atlantic/2.0.15.0/build/aq_compat.h: In function ‘skb_xmit_more’:
/var/lib/dkms/atlantic/2.0.15.0/build/aq_compat.h:101:12: error: ‘struct sk_buff’ has no member named ‘xmit_more’
  101 |  return skb->xmit_more;
      |            ^~
In file included from /var/lib/dkms/atlantic/2.0.15.0/build/aq_common.h:21,
                 from /var/lib/dkms/atlantic/2.0.15.0/build/aq_nic.h:15,
                 from /var/lib/dkms/atlantic/2.0.15.0/build/aq_drvinfo.h:15,
                 from /var/lib/dkms/atlantic/2.0.15.0/build/aq_drvinfo.c:21:
/var/lib/dkms/atlantic/2.0.15.0/build/aq_compat.h: In function ‘skb_xmit_more’:
/var/lib/dkms/atlantic/2.0.15.0/build/aq_compat.h:101:12: error: ‘struct sk_buff’ has no member named ‘xmit_more’
  101 |  return skb->xmit_more;
      |            ^~
In file included from /var/lib/dkms/atlantic/2.0.15.0/build/aq_common.h:21,
                 from /var/lib/dkms/atlantic/2.0.15.0/build/aq_ring.h:15,
                 from /var/lib/dkms/atlantic/2.0.15.0/build/aq_ring.c:12:
/var/lib/dkms/atlantic/2.0.15.0/build/aq_compat.h: In function ‘skb_xmit_more’:
/var/lib/dkms/atlantic/2.0.15.0/build/aq_compat.h:101:12: error: ‘struct sk_buff’ has no member named ‘xmit_more’
  101 |  return skb->xmit_more;
      |            ^~
/var/lib/dkms/atlantic/2.0.15.0/build/aq_ethtool.c: In function ‘aq_set_ringparam’:
/var/lib/dkms/atlantic/2.0.15.0/build/aq_ethtool.c:571:9: error: too few arguments to function ‘dev_open’
  571 |   err = dev_open(ndev);
      |         ^~~~~~~~
In file included from ./include/linux/etherdevice.h:21,
                 from /var/lib/dkms/atlantic/2.0.15.0/build/aq_common.h:15,
                 from /var/lib/dkms/atlantic/2.0.15.0/build/aq_ethtool.h:15,
                 from /var/lib/dkms/atlantic/2.0.15.0/build/aq_ethtool.c:12:
./include/linux/netdevice.h:2698:5: note: declared here
 2698 | int dev_open(struct net_device *dev, struct netlink_ext_ack *extack);
      |     ^~~~~~~~
/var/lib/dkms/atlantic/2.0.15.0/build/aq_pci_func.c: In function ‘aq_pci_probe’:
/var/lib/dkms/atlantic/2.0.15.0/build/aq_pci_func.c:317:24: error: implicit declaration of function ‘ioremap_nocache’; did you mean ‘ioremap_cache’? [-Werror=implicit-function-declaration]
  317 |    self->aq_hw->mmio = ioremap_nocache(mmio_pa, reg_sz);
      |                        ^~~~~~~~~~~~~~~
      |                        ioremap_cache
/var/lib/dkms/atlantic/2.0.15.0/build/aq_pci_func.c:317:22: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  317 |    self->aq_hw->mmio = ioremap_nocache(mmio_pa, reg_sz);
      |                      ^
make[1]: *** [scripts/Makefile.build:267: /var/lib/dkms/atlantic/2.0.15.0/build/aq_hw_utils.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [scripts/Makefile.build:267: /var/lib/dkms/atlantic/2.0.15.0/build/aq_vec.o] Error 1
make[1]: *** [scripts/Makefile.build:267: /var/lib/dkms/atlantic/2.0.15.0/build/aq_main.o] Error 1
make[1]: *** [scripts/Makefile.build:267: /var/lib/dkms/atlantic/2.0.15.0/build/aq_drvinfo.o] Error 1
make[1]: *** [scripts/Makefile.build:267: /var/lib/dkms/atlantic/2.0.15.0/build/aq_ethtool.o] Error 1
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:267: /var/lib/dkms/atlantic/2.0.15.0/build/aq_ring.o] Error 1
make[1]: *** [scripts/Makefile.build:267: /var/lib/dkms/atlantic/2.0.15.0/build/aq_pci_func.o] Error 1
make[1]: *** [scripts/Makefile.build:267: /var/lib/dkms/atlantic/2.0.15.0/build/aq_nic.o] Error 1
make: *** [Makefile:1683: /var/lib/dkms/atlantic/2.0.15.0/build] Error 2
make: Leaving directory '/usr/lib/modules/5.6.6-942.native/build'

i installed successfully now!

firstly i installed dkms

and i change to Aquantia driver version https://github.com/Aquantia/AQtion

And i patched aq_pci_func.c source code ioremap_nocache -> ioremap_cache

and dkms build!!

for now my 10gb network card detected!

1 Like

Congrats. Hope this would be helpful to other users.

1 Like