免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 8933 | 回复: 6
打印 上一主题 下一主题

[系统安装] Ralink的USB网卡,怎么安装驱动啊?老是报错,现在安装上了可是要死机 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-12-20 15:40 |只看该作者 |倒序浏览
本帖最后由 石世荣 于 2014-12-23 03:01 编辑

cc1: some warnings being treated as errors
scripts/Makefile.build:257: recipe for target '/home/ssr/桌面/新建文件夹/RT2870_LinuxSTA_V2.3.0.0/os/linux/../../os/linux/sta_ioctl.o' failed
make[2]: *** [/home/ssr/桌面/新建文件夹/RT2870_LinuxSTA_V2.3.0.0/os/linux/../../os/linux/sta_ioctl.o] Error 1
Makefile:1345: recipe for target '_module_/home/ssr/桌面/新建文件夹/RT2870_LinuxSTA_V2.3.0.0/os/linux' failed
make[1]: *** [_module_/home/ssr/桌面/新建文件夹/RT2870_LinuxSTA_V2.3.0.0/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.16.0-23-generic'
Makefile:185: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2


RT的USB无线网卡,NeoKylin的ubuntu,有人遇到过没?新手求助啊。
os/linux/config.mk 的HAS_WPA_SUPPLICANT=y ,HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y这些都是弄了的。


后来又重新去找了一个来编译的 WODE官方.zip (3.16 MB, 下载次数: 79) ,也是要报:

/home/ssr/桌面/新建文件夹/WODE官方/2008_0925_RT2870_Linux_STA_v1.4.0.0/os/linux/../../os/linux/rt_linux.c:1051:2: error: implicit declaration of function ‘daemonize’ [-Werror=implicit-function-declaration]
  daemonize(pThreadName /*"%s",pAd->net_dev->name*/);
  ^

cc1: some warnings being treated as errors
scripts/Makefile.build:257: recipe for target '/home/ssr/桌面/新建文件夹/WODE官方/2008_0925_RT2870_Linux_STA_v1.4.0.0/os/linux/../../os/linux/rt_linux.o' failed
make[2]: *** [/home/ssr/桌面/新建文件夹/WODE官方/2008_0925_RT2870_Linux_STA_v1.4.0.0/os/linux/../../os/linux/rt_linux.o] Error 1
Makefile:1345: recipe for target '_module_/home/ssr/桌面/新建文件夹/WODE官方/2008_0925_RT2870_Linux_STA_v1.4.0.0/os/linux' failed
make[1]: *** [_module_/home/ssr/桌面/新建文件夹/WODE官方/2008_0925_RT2870_Linux_STA_v1.4.0.0/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.16.0-23-generic'
Makefile:143: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2

论坛徽章:
0
2 [报告]
发表于 2014-12-23 02:57 |只看该作者
本帖最后由 石世荣 于 2014-12-23 13:38 编辑

怎么还没高人出现,,,

都搞了好多天了还没搞好,现在又重新去找了个叫PO_MT7601U_LinuxSTA_3.0.0.4_20130913的驱动,然后按照网上说的
把common/rtusb_dev_id.c加上{USB_DEVICE(0x148f,0x7601)}。

把os/linux/config.mk 里的
HAS_WPA_SUPPLICANT=y
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y,

然后make

sta_cfg.c:5766:85: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
             snprintf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, __DATE__, __TIME__ );
                                                                                     ^
sta/sta_cfg.c:5766:95: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
             snprintf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, __DATE__, __TIME__ );  
的错误,
网上有大神说这个错误是因为编译选项开启了-Werror,可以这样解决:
修改/lib/modules/`uname -r`/build/Makefile
#gedit /lib/modules/`uname -r`/build/Makefile
查找-Werror 去掉下面4段文本
-Werror-implicit-function-declaration \
,-Werror=implicit-int
,-Werror=strict-prototypes
,-Werror=date-time

再make,
又报错
/home/ssr/文档/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:1121:20: error: incompatible types when assigning to type ‘int’ from type ‘kuid_t’
   pOSFSInfo->fsuid = current_fsuid();
                    ^
/home/ssr/文档/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:1122:20: error: incompatible types when assigning to type ‘int’ from type ‘kgid_t’
   pOSFSInfo->fsgid = current_fsgid();

于是按照另外的帖子
把rt_linux.c里面报错的那里:
current_fsuid()  跟 current_fsgid()改成:
current_fsuid().val
current_fsgid().val

再make,警告很多但总算没报错,
然后make install
但是在最后一步modprobe rt2870sta的时候,提示找不到rt2870sta这个模块,鼓捣了很久也没弄好。
可是重启之后WIFI启动了,正高兴的时候结果发现,只要一联网就死机,怎么办?

论坛徽章:
13
技术图书徽章
日期:2014-04-29 14:15:42IT运维版块每日发帖之星
日期:2015-12-12 06:20:00IT运维版块每日发帖之星
日期:2015-08-30 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-08-02 06:20:002015年亚洲杯之澳大利亚
日期:2015-04-03 15:03:12申猴
日期:2015-03-20 09:00:292015年迎新春徽章
日期:2015-03-04 09:54:452015年辞旧岁徽章
日期:2015-03-03 16:54:15季节之章:冬
日期:2015-01-20 17:08:47双子座
日期:2014-11-21 16:30:31技术图书徽章
日期:2014-07-11 16:29:08
3 [报告]
发表于 2014-12-23 09:53 |只看该作者
什么系统?什么版本?

论坛徽章:
41
操作系统版块每日发帖之星
日期:2016-08-21 06:20:00每日论坛发贴之星
日期:2016-05-05 06:20:00操作系统版块每日发帖之星
日期:2016-05-05 06:20:00IT运维版块每日发帖之星
日期:2016-05-05 06:20:0015-16赛季CBA联赛之山西
日期:2016-04-27 08:49:00操作系统版块每日发帖之星
日期:2016-04-25 06:20:00操作系统版块每日发帖之星
日期:2016-04-17 06:23:2815-16赛季CBA联赛之吉林
日期:2016-03-25 15:46:3415-16赛季CBA联赛之四川
日期:2016-03-25 14:26:19操作系统版块每日发帖之星
日期:2016-05-27 06:20:00操作系统版块每日发帖之星
日期:2016-05-28 06:20:00IT运维版块每日发帖之星
日期:2016-08-18 06:20:00
4 [报告]
发表于 2014-12-23 10:58 |只看该作者
别费劲了,用一会就会内核崩溃的

我建议你找bmc的无线网卡试试

论坛徽章:
0
5 [报告]
发表于 2014-12-23 13:35 |只看该作者
本帖最后由 石世荣 于 2014-12-23 13:36 编辑

回复 3# dengbao2001
优麒麟(Ubuntu Kylin)14.10 的系统,貌似系统内核是基于Linux 3.16.3的。


   

论坛徽章:
0
6 [报告]
发表于 2014-12-23 13:37 |只看该作者
回复 4# jixuuse

你是说重新买个网卡?那多划不来
   

论坛徽章:
13
技术图书徽章
日期:2014-04-29 14:15:42IT运维版块每日发帖之星
日期:2015-12-12 06:20:00IT运维版块每日发帖之星
日期:2015-08-30 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-08-02 06:20:002015年亚洲杯之澳大利亚
日期:2015-04-03 15:03:12申猴
日期:2015-03-20 09:00:292015年迎新春徽章
日期:2015-03-04 09:54:452015年辞旧岁徽章
日期:2015-03-03 16:54:15季节之章:冬
日期:2015-01-20 17:08:47双子座
日期:2014-11-21 16:30:31技术图书徽章
日期:2014-07-11 16:29:08
7 [报告]
发表于 2014-12-23 13:44 |只看该作者
Linux下,如果产品不兼容,无法被驱动,是一件比较麻烦的事情,如果你是新手,除非安装驱动过程很简单,否则不建议折腾呢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP