Category Archives: Kernel

AR8131 network card driver for Linux

Motherboard: ASUS P5G41T-M LX
Kernel: 2.6.18-6-pve

1. Download source code:

$ wget http://dlcdnet.asus.com/pub/ASUS/mb/socket775/P5G41T-M_LX/Linux_Driver.zip

2. Unpack archives:

$ unzip -o Linux_Driver.zip
$ cd Linux/LAN/
$ tar zxvf AR8131_AR8132-linux-v1.0.0.10.tar.gz
$ cd src/

3. Modify kcompat.h

--- kcompat.h   2009-05-22 06:40:10.000000000 +0400
+++ kcompat.h   2013-05-20 18:16:27.000000000 +0400
@@ -1556,7 +1556,8 @@
 #endif /* > 2.6.22 */
 
 /*****************************************************************************/
-#if ( LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) )
+#if 0
+/* #if ( LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) ) */
 /* NAPI API changes in 2.6.24 break everything */
 struct napi_struct {
        /* used to look up the real NAPI polling routine */

4. Compile and use:

$ sudo make install