2012-11-28 1 views
0

크로스 컴플렉스를 사용하여 안드로이드 용 rt73.ko linux 드라이버를 빌드하려고합니다. 나는 다운로드가 안드로이드 NDK 및 대상 시스템 (록칩 RK3066)과의 커널 소스 나는 다음과 같은 오류를 얻고 드라이버 빌드 할 때 :/bin/sh : scripts/basic/fixdep : 바이너리 파일을 실행할 수 없습니다.

[email protected]:~/2011_0210_RT73_Linux_STA_Drv1.1.0.5/Module# make CROSS_COMPILE=arm-linux-androideabi- make -C /root/kernel SUBDIRS=/root/2011_0210_RT73_Linux_STA_Drv1.1.0.5/Module mod-ules make[1]: Entering directory /root/kernel' CC [M] /root/2011_0210_RT73_Linux_STA_Drv1.1.0.5/Module/rtmp_main.o /root/2011_0210_RT73_Linux_STA_Drv1.1.0.5/Module/rtmp_main.c: In function 'usb_rtusb_probe': /root/2011_0210_RT73_Linux_STA_Drv1.1.0.5/Module/rtmp_main.c:1152:3: warning: return makes integer from pointer without a cast [enabled by default] /root/2011_0210_RT73_Linux_STA_Drv1.1.0.5/Module/rtmp_main.c: In function 'usb_rtusb_disconnect': /root/2011_0210_RT73_Linux_STA_Drv1.1.0.5/Module/rtmp_main.c:1315:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] /root/2011_0210_RT73_Linux_STA_Drv1.1.0.5/Module/rtmp_main.c: In function 'usb_rtusb_close': /root/2011_0210_RT73_Linux_STA_Drv1.1.0.5/Module/rtmp_main.c:655:1: warning: the frame size of 2128 bytes is larger than 1024 bytes [-Wframe-larger-than=] /root/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/as: /usr/lib/libz.so.1: no version information available (required by /root/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/as) /bin/sh: scripts/basic/fixdep: cannot execute binary file make[2]: *** [/root/2011_0210_RT73_Linux_STA_Drv1.1.0.5/Module/rtmp_main.o] Error 126 make[1]: *** [_module_/root/2011_0210_RT73_Linux_STA_Drv1.1.0.5/Module] Error 2 make[1]: Leaving directory /root/kernel' make: * [all] Error 2

당신이 위의 오류를 극복하는 데 도움이 시겠어요를?

답변

0

크로스 컴파일해도 커널 만 컴파일 할 수 있습니다. scripts/basic/fixdep는 사용자 영역 프로그램입니다.

이를 극복하려면 예를 들어 http://crosstool-ng.org/을 사용해야합니다.

관련 문제