怎么安装驱动!

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
titron
帖子: 23
注册时间: 2010-08-25 11:56

怎么安装驱动!

#1

帖子 titron » 2016-04-07 13:28

买了个UGREEN的USB2Ether的网卡,其驱动程序Linux文件夹下有4个文件:*.c/h,makefile,readme。
readme中提到:
------------
Prepare to build the driver, you need the Linux kernel sources installed on the
build machine, and make sure that the version of the running kernel must match
the installed kernel sources. If you don't have the kernel sources, you can get
it from www.kernel.org or contact to your Linux distributor. If you don't know
how to do, please refer to KERNEL-HOWTO.

Note: Please make sure the kernel is built with one of the "Support for
Host-side, EHCI, OHCI, or UHCI" option support.
------------
查了查Ubuntu14.04对应的Linux Kernel版本是3.13.5,可是找不到呀。
在终端执行make后,提示错误:
------------
make -C /lib/modules/3.13.0-83-generic/build SUBDIRS=/media/sf_Ubuntu_share/AX88179 modules
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-83-generic'
CC [M] /media/sf_Ubuntu_share/AX88179/ax88179_178a.o
/media/sf_Ubuntu_share/AX88179/ax88179_178a.o: Operation not permitted
/media/sf_Ubuntu_share/AX88179/ax88179_178a.o: failed
make[2]: *** [/media/sf_Ubuntu_share/AX88179/ax88179_178a.o] Error 1
make[1]: *** [_module_/media/sf_Ubuntu_share/AX88179] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-83-generic'
make: *** [default] Error 2
------------
各位,有什么好的建议吗?
与天地相似,故不违;知周乎万物,而道济天下,故不过;旁行而不流,乐天知命,故不忧;安土教乎仁,故能爱。
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 怎么安装驱动!

#2

帖子 vickycq » 2016-04-07 13:30

titron 写了:买了个UGREEN的USB2Ether的网卡,
/media/sf_Ubuntu_share/AX88179/ax88179_178a.o
怎么安装驱动!
ASIX AX88179,Linux 3.9 添加支持
Ubuntu 14.04 的 Linux 3.13 包含 AX88179 驱动,无需自行安装。
检查驱动是否加载:

代码: 全选

sudo lshw -numeric -C net
lsmod | grep 88179
参考 http://cateee.net/lkddb/web-lkddb/USB_N ... _178A.html
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
titron
帖子: 23
注册时间: 2010-08-25 11:56

Re: 怎么安装驱动!

#3

帖子 titron » 2016-04-07 13:48

谢谢!
我的ubuntu是安装在虚拟机里的。
运行了
sudo lshw -numeric -C net
后,没有发现USB2Ether网卡,以下是提示信息:
--------------------------
root@renessaaae-VirtualBox:/# lshw -numeric -C net
*-network
description: Ethernet interface
product: 82540EM Gigabit Ethernet Controller [8086:100E]
vendor: Intel Corporation [8086]
physical id: 3
bus info: pci@0000:00:03.0
logical name: eth0
version: 02
serial: 08:00:27:a2:b3:66
size: 1Gbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 66MHz
capabilities: pm pcix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000 driverversion=7.3.21-k8-NAPI duplex=full ip=172.28.170.75 latency=64 link=yes mingnt=255 multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:10 memory:f0000000-f001ffff ioport:d010(size=8)

--------------------------
vickycq 写了:
titron 写了:买了个UGREEN的USB2Ether的网卡,
/media/sf_Ubuntu_share/AX88179/ax88179_178a.o
怎么安装驱动!
ASIX AX88179,Linux 3.9 添加支持
Ubuntu 14.04 的 Linux 3.13 包含 AX88179 驱动,无需自行安装。
检查驱动是否加载:

代码: 全选

sudo lshw -numeric -C net
lsmod | grep 88179
参考 http://cateee.net/lkddb/web-lkddb/USB_N ... _178A.html
与天地相似,故不违;知周乎万物,而道济天下,故不过;旁行而不流,乐天知命,故不忧;安土教乎仁,故能爱。
头像
titron
帖子: 23
注册时间: 2010-08-25 11:56

Re: 怎么安装驱动!

#4

帖子 titron » 2016-04-07 14:01

需要从虚拟机里进行设置,添加网卡2。
然后再执行
lshw -numeric -C net lsmod | grep 88179
结果发现了两个网卡。
另外从System Settings---Network中也能够发现,确实多了一个网卡。
不过扫描结果中,并没有88179字样,估计是因为虚拟机的原因。
与天地相似,故不违;知周乎万物,而道济天下,故不过;旁行而不流,乐天知命,故不忧;安土教乎仁,故能爱。
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 怎么安装驱动!

#5

帖子 vickycq » 2016-04-07 14:01

titron 写了:我的ubuntu是安装在虚拟机里的。
你的宿主机操作系统是?
理论上只要保证宿主机操作系统的驱动正常运作即可。例如宿主机上该 usb 网卡的界面为 eth1
然后在 vbox 中配置虚拟机网卡,选择 Bridged - eth1
虚拟机只需要有虚拟网卡的驱动即可。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
titron
帖子: 23
注册时间: 2010-08-25 11:56

Re: 怎么安装驱动!

#6

帖子 titron » 2016-04-07 16:26

多谢vickycq!
我是在win7中虚拟的ubuntu。
目前测试结果,两个网卡都能工作(发出数据)。
还有问题,
【1】接收端wireshark上没有显示0x8100标志(接收PC网卡的priority and VLAN disabled,而且发送PC的也设置了Disabled、Enabled),我再查查。
【2】virtualbox最多能add 4个网卡(有4个tab页),怎么add 7个网卡呀?
与天地相似,故不违;知周乎万物,而道济天下,故不过;旁行而不流,乐天知命,故不忧;安土教乎仁,故能爱。
回复