电脑GE60,NIC:
$ lshw -c network
WARNING: you should run this program as super-user.
*-network
description: Ethernet interface
product: Atheros Communications Inc.
vendor: Atheros Communications Inc.
physical id: 0
bus info: pci@0000:03:00.0
logical name: eth0
version: 13
serial: 8c:89:a5:07:12:36
size: 100Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=alx duplex=full firmware=alx ip=192.168.108.216 latency=0 multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:47 memory:f7d00000-f7d3ffff ioport:c000(size=128)
原理: basically 'stolen' the driver of a related card with existing linux drivers.
1.首先下载所需包:sudo apt-get install build-essential linux-headers
然后下载相关无线网卡的linux版驱动compat-wireless-2012-05-10-p.tar.bz2:
http://linuxwireless.org/download/co...5-10-p.tar.bz2
并下载patch文件compat-patch.txt和tty.c.patch.txt(tty文件不是必须的,但我的电脑需要了){两文件已在文件栏上传了}
将以上两文件复制的compat-wireless-2012-05-10-p目录下,执行以下命令:
/path/to/我设置位了compat-wireless-2010-05-10-p当前目录:
tar -xvf /path/to/compat-wireless-2012-05-10-p.tar.bz2cd ./compat-wireless-2012-05-10-p
patch --dry-run -p2 < /path/to/compat-patch.txt
patch -p2 < /path/to/compat-patch.txt
patch --dry-run -p2 < /path/to/tty.c.patch.txt
patch -p2 < /path/to/tty.c.patch.txt
sudo make
sudo make install 然后运行ifconfig -a 看看有没有eth0了,正常情况应该是没问题的,要是有问题,请将问题粘贴出来,一起研究以下
2, 也可以直接修改patch文件总指定的文件,同样可以解决问题
原文出自:http://ubuntuforums.org/showthread.php?t=2008332