主题 : 移植USB网卡驱动出现的问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 72413
精华: 0
发帖: 4
金钱: 20 两
威望: 4 点
综合积分: 8 分
注册时间: 2012-06-21
最后登录: 2014-07-11
楼主  发表于: 2014-05-29 22:25

 移植USB网卡驱动出现的问题

    又修改了Makefile,修改完后应该是:
    --------------------------这是分割线-----
    ifeq ($(CONFIG_PLATFORM_ARM_S3C2K4), y)
    EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
    ARCH := arm
    CROSS_COMPILE := /usr/local/arm/4.3.2/bin/arm-linux-
#KVER  := 2.6.24.7_$(ARCH)
#KSRC := /usr/src/kernels/linux-$(KVER)
#KSRC := /root/linux-2.6.32.2
    KSRC := /usr/src/kernels/2.6.35.6-45.fc14.i686        【我怀疑是这里的问题】
    endif
    --------------------------这是分割线-----
    继续编译,继续出错:
    # make
make ARCH=arm CROSS_COMPILE=/usr/local/arm/4.3.2/bin/arm-linux- -C /usr/src/kernels/2.6.35.6-45.fc14.i686 M=/root/Downloads/rtl8188EUS_rtl8189ES_linux_v4.1.2_4787.20120803  modules
make[1]: Entering directory `/usr/src/kernels/2.6.35.6-45.fc14.i686'
make[2]: *** No rule to make target `/root/Downloads/rtl8188EUS_rtl8189ES_linux_v4.1.2_4787.20120803/core/rtw_cmd.o', needed by `/root/Downloads/rtl8188EUS_rtl8189ES_linux_v4.1.2_4787.20120803/RTL8188ETV.o'.  Stop.
make[1]: *** [_module_/root/Downloads/rtl8188EUS_rtl8189ES_linux_v4.1.2_4787.20120803] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.35.6-45.fc14.i686'
make: *** [modules] Error 2
级别: 新手上路
UID: 72413
精华: 0
发帖: 4
金钱: 20 两
威望: 4 点
综合积分: 8 分
注册时间: 2012-06-21
最后登录: 2014-07-11
1楼  发表于: 2014-06-06 11:35
有没有人懂?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2014-06-06 19:10
No rule to make target `/root/Downloads/rtl8188EUS_rtl8189ES_linux_v4.1.2_4787.20120803/core/rtw_cmd.o',

你能把Makefile里定义如何编译rtw_cmd.o的地方找出来吗?
另外,KSRC应该指向开发板所用的内核的源代码目录,“ /usr/src/kernels/2.6.35.6-45.fc14.i686”看起来像是你的PC的内核源代码目录,应该不适用。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."