openKylin论坛

 找回密码

ubuntukylin 怎么安装RTL3070的网卡驱动??? [复制链接]

如题,原本使用的是RT208的貌似   网络时断时续  本来信号挺好的  就是信号时有时无...
然后我上官方下载了最新的驱动 .....
怎么都编译不过....
下方是编译的过程:
root@android:/home/xiaosheng/桌面/STA# make
make -C tools
make[1]: 正在进入目录 `/home/xiaosheng/桌面/STA/tools'
gcc -g bin2h.c -o bin2h
make[1]:正在离开目录 `/home/xiaosheng/桌面/STA/tools'
/home/xiaosheng/桌面/STA/tools/bin2h
cp -f os/linux/Makefile.6 /home/xiaosheng/桌面/STA/os/linux/Makefile
make -C /lib/modules/3.13.0-32-generic/build SUBDIRS=/home/xiaosheng/桌面/STA/os/linux modules
make[1]: 正在进入目录 `/usr/src/linux-headers-3.13.0-32-generic'
  CC [M]  /home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.o
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c: In function ‘duplicate_pkt’:
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c:513:3: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast [enabled by default]
   NdisMoveMemory(skb->tail, pHeader802_3, HdrLen);
   ^
In file included from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/string.h:4:0,
                 from include/linux/string.h:17,
                 from include/linux/bitmap.h:8,
                 from include/linux/cpumask.h:11,
                 from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/cpumask.h:4,
                 from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/msr.h:10,
                 from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/processor.h:20,
                 from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/thread_info.h:22,
                 from include/linux/thread_info.h:54,
                 from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/preempt.h:6,
                 from include/linux/preempt.h:18,
                 from include/linux/spinlock.h:50,
                 from include/linux/seqlock.h:35,
                 from include/linux/time.h:5,
                 from include/linux/stat.h:18,
                 from include/linux/module.h:10,
                 from /home/xiaosheng/桌面/STA/include/os/rt_linux.h:31,
                 from /home/xiaosheng/桌面/STA/include/rtmp_os.h:44,
                 from /home/xiaosheng/桌面/STA/include/rtmp_comm.h:69,
                 from /home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c:32:
/usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/string_64.h:58:7: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’
void *memmove(void *dest, const void *src, size_t count);
       ^
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c:515:3: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast [enabled by default]
   NdisMoveMemory(skb->tail, pData, DataSize);
   ^
In file included from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/string.h:4:0,
                 from include/linux/string.h:17,
                 from include/linux/bitmap.h:8,
                 from include/linux/cpumask.h:11,
                 from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/cpumask.h:4,
                 from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/msr.h:10,
                 from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/processor.h:20,
                 from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/thread_info.h:22,
                 from include/linux/thread_info.h:54,
                 from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/preempt.h:6,
                 from include/linux/preempt.h:18,
                 from include/linux/spinlock.h:50,
                 from include/linux/seqlock.h:35,
                 from include/linux/time.h:5,
                 from include/linux/stat.h:18,
                 from include/linux/module.h:10,
                 from /home/xiaosheng/桌面/STA/include/os/rt_linux.h:31,
                 from /home/xiaosheng/桌面/STA/include/rtmp_os.h:44,
                 from /home/xiaosheng/桌面/STA/include/rtmp_comm.h:69,
                 from /home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c:32:
/usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/string_64.h:58:7: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’
void *memmove(void *dest, const void *src, size_t count);
       ^
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c: In function ‘ClonePacket’:
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c:667:20: warning: assignment makes integer from pointer without a cast [enabled by default]
   pClonedPkt->tail = pClonedPkt->data + pClonedPkt->len;
                    ^
In file included from /home/xiaosheng/桌面/STA/include/rtmp_os.h:44:0,
                 from /home/xiaosheng/桌面/STA/include/rtmp_comm.h:69,
                 from /home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c:32:
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOsPktInit’:
/home/xiaosheng/桌面/STA/include/os/rt_linux.h:886:34: warning: assignment makes integer from pointer without a cast [enabled by default]
   ((RTPKT_TO_OSPKT(_pkt))->tail) = (PUCHAR)((_start) + (_len))
                                  ^
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c:686:2: note: in expansion of macro ‘SET_OS_PKT_DATATAIL’
  SET_OS_PKT_DATATAIL(pRxPkt, pData, DataSize);
  ^
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c: In function ‘wlan_802_11_to_802_3_packet’:
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c:713:15: warning: assignment makes integer from pointer without a cast [enabled by default]
  pOSPkt->tail = pOSPkt->data + pOSPkt->len;
               ^
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c: In function ‘__RtmpOSFSInfoChange’:
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c:1141:20: error: incompatible types when assigning to type ‘int’ from type ‘kuid_t’
   pOSFSInfo->fsuid = current_fsuid();
                    ^
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c:1142:20: error: incompatible types when assigning to type ‘int’ from type ‘kgid_t’
   pOSFSInfo->fsgid = current_fsgid();
                    ^
make[2]: *** [/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.o] 错误 1
make[1]: *** [_module_/home/xiaosheng/桌面/STA/os/linux] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-3.13.0-32-generic'
make: *** [LINUX] 错误 2
root@android:/home/xiaosheng/桌面/STA#


我自己修改了两项:
修改os/linux/config.mk

代码:

# Support Wpa_Supplicant

HAS_WPA_SUPPLICANT=y

# Support Native Wpa_Supplicant for Network Maganger

HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
求大神们解决一下......那个弱弱的问一下,源里有这个驱动不????有的话 怎么添加安装???
系统是14.04
楼主
发表于 2014-8-27 15:13:07
回复

使用道具 举报

ubuntukylin 怎么安装RTL3070的网卡驱动??? [复制链接]

看一下kuid_t的定义?好像新版的kuid_t被定义为结构体了?
typedef struct {
uid_t val;
} kuid_t;

从结构体赋值给int,肯定出错了。这种改动一般都是为了做数据类型保护,还有更新的驱动么?要不你自己试着对应的修改一下fsuid和fsgid的类型?

沙发
发表于 2014-8-27 17:49:35
回复

使用道具 举报

ubuntukylin 怎么安装RTL3070的网卡驱动??? [复制链接]

lenky0401 发表于 2014-8-27 17:49
看一下kuid_t的定义?好像新版的kuid_t被定义为结构体了?
typedef struct {
uid_t val;

小白 表示不会.......
板凳
 楼主| 发表于 2014-8-27 23:11:36
回复

使用道具 举报

ubuntukylin 怎么安装RTL3070的网卡驱动??? [复制链接]

都会编译内核模块的人,不太可能是小白吧~
地板
发表于 2014-8-28 08:44:08
回复

使用道具 举报

ubuntukylin 怎么安装RTL3070的网卡驱动??? [复制链接]

我看好你~
5#
发表于 2014-8-28 08:44:19
回复

使用道具 举报

ubuntukylin 怎么安装RTL3070的网卡驱动??? [复制链接]

lenky0401 发表于 2014-8-28 08:44
都会编译内核模块的人,不太可能是小白吧~

我就是小白的啦.........
大神 求助啊....
6#
 楼主| 发表于 2014-8-28 12:09:57
回复

使用道具 举报

ubuntukylin 怎么安装RTL3070的网卡驱动??? [复制链接]

lenky0401 发表于 2014-8-28 08:44
都会编译内核模块的人,不太可能是小白吧~

我就是小白的啦.........
大神 求助啊....
7#
 楼主| 发表于 2014-8-28 12:10:17
回复

使用道具 举报

ubuntukylin 怎么安装RTL3070的网卡驱动??? [复制链接]

见到2位大神啊
8#
发表于 2014-9-7 10:57:07
回复

使用道具 举报

ubuntukylin 怎么安装RTL3070的网卡驱动??? [复制链接]

/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c:1141:20: error: incompatible types when assigning to type ‘int’ from type ‘kuid_t’
   pOSFSInfo->fsuid = current_fsuid();
                    ^
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c:1142:20: error: incompatible types when assigning to type ‘int’ from type ‘kgid_t’
   pOSFSInfo->fsgid = current_fsgid();

那个,输出不是告诉你行号了么
打开 rt_linux.c 定位到1142行
   pOSFSInfo->fsgid = current_fsgid();  改为    pOSFSInfo->fsgid = *(int *)&current_fsgid();
保存后,再去试试.
9#
发表于 2014-12-5 16:41:25
回复

使用道具 举报

openKylin

GMT+8, 2024-5-18 23:32 , Processed in 0.031650 second(s), 18 queries , Gzip On.

Copyright ©2022 openKylin. All Rights Reserved .

ICP No. 15002470-12 Tianjin

快速回复 返回顶部 返回列表