您尚未登录。

#1 2017-04-30 00:07:45

我是好人
会员
注册时间: 2014-11-07
帖子: 27

rt3090网卡替换默认rt2800网卡module出错

lspci -v
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 05)
	Subsystem: Lenovo Device 3975
	Flags: bus master, fast devsel, latency 0, IRQ 25
	I/O ports at 1000 [size=256]
	Memory at f0004000 (64-bit, prefetchable) [size=4K]
	Memory at f0000000 (64-bit, prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: r8169
	Kernel modules: r8169

02:00.0 Network controller: Ralink corp. RT3090 Wireless 802.11n 1T/1R PCIe
	Subsystem: Lenovo Device f101
	Flags: bus master, fast devsel, latency 0, IRQ 19
	Memory at f0100000 (32-bit, non-prefetchable) [size=64K]
	Capabilities: <access denied>
	Kernel driver in use: rt2800pci
	Kernel modules: rt2800pci

之前没有安装linux-headers就直接安装rt3090-dkms,安装linux-headers之后重新安装rt3090还是出错了

[root@myhost arch]# pacman -U build/rt3090-dkms/rt3090-dkms-2.4.0.4-1-x86_64.pkg.tar.xz 
正在加载软件包...
警告:rt3090-dkms-2.4.0.4-1 已经为最新 -- 重新安装
正在解决依赖关系...
正在查找软件包冲突...

软件包 (1) rt3090-dkms-2.4.0.4-1

全部安装大小:  3.80 MiB
净更新大小:  0.00 MiB

:: 进行安装吗? [Y/n] y
(1/1) 正在检查密钥环里的密钥                       [######################] 100%
(1/1) 正在检查软件包完整性                         [######################] 100%
(1/1) 正在加载软件包文件                           [######################] 100%
(1/1) 正在检查文件冲突                             [######################] 100%
(1/1) 正在检查可用硬盘空间                         [######################] 100%
:: 正在运行事务前钩子函数...
(1/1) Remove DKMS modules
==> dkms remove rt3090/2.4.0.4 -k 4.10.11-1-ARCH
Error! There is no instance of rt3090 2.4.0.4
for kernel 4.10.11-1-ARCH (x86_64) located in the DKMS tree.
:: 正在处理软件包的变化...
(1/1) 正在重新安装 rt3090-dkms                     [######################] 100%
Adding Module to DKMS build system
Error! DKMS tree already contains: rt3090-2.4.0.4
You cannot add the same module/version combo more than once.
Doing initial module build
Error! Bad return status for module build on kernel: 4.10.11-1-ARCH (x86_64)
Consult /var/lib/dkms/rt3090/2.4.0.4/build/make.log for more information.
Installing initial module
Error! Bad return status for module build on kernel: 4.10.11-1-ARCH (x86_64)
Consult /var/lib/dkms/rt3090/2.4.0.4/build/make.log for more information.
Done.
:: 正在运行事务后钩子函数...
(1/2) Install DKMS modules
==> dkms install rt3090/2.4.0.4 -k 4.10.11-1-ARCH
Error! Bad return status for module build on kernel: 4.10.11-1-ARCH (x86_64)
Consult /var/lib/dkms/rt3090/2.4.0.4/build/make.log for more information.
(2/2) Arming ConditionNeedsUpdate...

使用dkms安装rt3090模块也出错了

[root@myhost arch]# dkms status
rt3090, 2.4.0.4: added
[root@myhost arch]# dkms install rt3090/2.4.0.4

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=4.10.11-1-ARCH............(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.10.11-1-ARCH (x86_64)
Consult /var/lib/dkms/rt3090/2.4.0.4/build/make.log for more information.

向大家求教了

离线

#2 2017-04-30 12:25:43

依云
a.k.a. 百合仙子
所在地: 一个等待妹纸出现的地方
注册时间: 2011-08-21
帖子: 4,388
个人网站

Re: rt3090网卡替换默认rt2800网卡module出错

你写了这么多,就不能抽点时间自己看看你贴的信息是什么意思?

Consult /var/lib/dkms/rt3090/2.4.0.4/build/make.log for more information.

离线

#3 2017-05-05 23:45:45

我是好人
会员
注册时间: 2014-11-07
帖子: 27

Re: rt3090网卡替换默认rt2800网卡module出错

#less /var/lib/dkms/rt3090/2.4.0.4/build/make.log | grep error
/var/lib/dkms/rt3090/2.4.0.4/build/os/linux/../../os/linux/sta_ioctl.c:1813:78: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
/var/lib/dkms/rt3090/2.4.0.4/build/os/linux/../../os/linux/sta_ioctl.c:1813:88: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
/var/lib/dkms/rt3090/2.4.0.4/build/os/linux/../../os/linux/rt_linux.c:1235:20: error: incompatible types when assigning to type 'int' from type 'kuid_t {aka const struct <anonymous>}'
/var/lib/dkms/rt3090/2.4.0.4/build/os/linux/../../os/linux/rt_linux.c:1236:20: error: incompatible types when assigning to type 'int' from type 'kgid_t {aka const struct <anonymous>}'
cc1: some warnings being treated as errors

离线

#4 2017-05-06 00:45:09

alexxey
会员
注册时间: 2016-12-28
帖子: 73

Re: rt3090网卡替换默认rt2800网卡module出错

我是好人 说:
#less /var/lib/dkms/rt3090/2.4.0.4/build/make.log | grep error
/var/lib/dkms/rt3090/2.4.0.4/build/os/linux/../../os/linux/sta_ioctl.c:1813:78: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
/var/lib/dkms/rt3090/2.4.0.4/build/os/linux/../../os/linux/sta_ioctl.c:1813:88: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
/var/lib/dkms/rt3090/2.4.0.4/build/os/linux/../../os/linux/rt_linux.c:1235:20: error: incompatible types when assigning to type 'int' from type 'kuid_t {aka const struct <anonymous>}'
/var/lib/dkms/rt3090/2.4.0.4/build/os/linux/../../os/linux/rt_linux.c:1236:20: error: incompatible types when assigning to type 'int' from type 'kgid_t {aka const struct <anonymous>}'
cc1: some warnings being treated as errors

建议贴完整的,看起来比较方便一些。

离线

#5 2017-05-06 09:46:53

依云
a.k.a. 百合仙子
所在地: 一个等待妹纸出现的地方
注册时间: 2011-08-21
帖子: 4,388
个人网站

Re: rt3090网卡替换默认rt2800网卡module出错

如果这驱动没有更新版的,你就自己改源码吧……这几个错误,其中前两个警告可以忽略。后边的稍微改一下类型应该就可以了。

离线

页脚