Open SkazochnikZlodey opened 8 years ago
I would change /lib/modules/3.14.65-75/build
with the distribution you have /lib/modules/X.XX.XX-XX/build
if it exists. (if it does not exists, probably you should install
sudo apt-get install linux-headers-$(uname -r) build-essential
)
make ARCH=arm CROSS_COMPILE= -C /lib/modules/X.XX.XX-XX/build M=/root/Realtek-RTL8192EU-driver_for_ARM/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524 modules
issue with build folder was solved with additional command: ln -s /usr/src/linux-headers-3.14.65-76/ /lib/modules/3.14.65-76/build
Here is steps: $sudo su
/root
make: Entering directory '/usr/src/linux-headers-3.14.65-76' Building modules, stage 2. MODPOST 0 modules make: Leaving directory '/usr/src/linux-headers-3.14.65-76'
/root/Realtek-RTL8192EU-driver_for_ARM/install_folder
################################################## Realtek Wi-Fi driver Auto installation script Novembor, 21 2011 v1.1.0 ################################################## Decompress the driver source tar ball:
rtl8192EU_linux_v4.2.2_7585.20130524 Authentication requested [root] for make clean: installarm.sh: 38: [: unexpected operator cd hal/OUTSRC/ ; rm -fr /.mod.c /.mod /.o /..cmd /.ko cd hal/OUTSRC/ ; rm -fr .mod.c .mod .o ..cmd .ko cd hal/led ; rm -fr .mod.c .mod .o ..cmd .ko cd hal ; rm -fr //.mod.c //.mod //.o //..cmd //.ko cd hal ; rm -fr /.mod.c /.mod /.o /..cmd /.ko cd hal ; rm -fr .mod.c .mod .o ..cmd .ko cd core/efuse ; rm -fr .mod.c .mod .o ..cmd .ko cd core ; rm -fr .mod.c .mod .o ..cmd .ko cd os_dep/linux ; rm -fr .mod.c .mod .o ..cmd .ko cd osdep ; rm -fr .mod.c .mod *.o ..cmd .ko rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order rm -fr .mod.c .mod *.o ..cmd _.ko ~ rm -fr .tmp_versions Authentication requested [root] for make driver: make ARCH=arm CROSS_COMPILE= -C /lib/modules/3.14.65-76/build M=/root/Realtek-RTL8192EU-driver_for_ARM/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524 modules make[1]: Entering directory '/usr/src/linux-headers-3.14.65-76' CC [M] /root/Realtek-RTL8192EU-driver_for_ARM/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524/core/rtw_cmd.o gcc: error: unrecognized argument in option ‘-mabi=apcs-gnu’ gcc: note: valid arguments to ‘-mabi=’ are: ilp32 lp64 gcc: error: unrecognized command line option ‘-mapcs’ gcc: error: unrecognized command line option ‘-mno-sched-prolog’ gcc: error: unrecognized command line option ‘-msoft-float’ scripts/Makefile.build:308: recipe for target '/root/Realtek-RTL8192EU-driver_for_ARM/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524/core/rtw_cmd.o' failed make[2]: _* [/root/Realtek-RTL8192EU-driver_for_ARM/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524/core/rtw_cmd.o] Error 1 Makefile:1278: recipe for target 'module/root/Realtek-RTL8192EU-driver_for_ARM/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524' failed make[1]: * [module/root/Realtek-RTL8192EU-driver_for_ARM/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-3.14.65-76' Makefile:1043: recipe for target 'modules' failed make: * [modules] Error 2 ################################################## Compile make driver error: 2 Please check error Mesg ##################################################
################################################## Realtek Wi-Fi driver Auto installation script Novembor, 21 2011 v1.1.0 ################################################## Decompress the driver source tar ball:
rtl8192EU_linux_v4.2.27585.20130524 Authentication requested [root] for make clean: install.sh: 38: [: unexpected operator cd hal/OUTSRC/ ; rm -fr /.mod.c /.mod /.o /..cmd /.ko cd hal/OUTSRC/ ; rm -fr .mod.c .mod .o ..cmd .ko cd hal/led ; rm -fr .mod.c .mod .o ..cmd .ko cd hal ; rm -fr //.mod.c //.mod //.o //..cmd //.ko cd hal ; rm -fr /.mod.c /.mod /.o /..cmd /.ko cd hal ; rm -fr .mod.c .mod .o ..cmd .ko cd core/efuse ; rm -fr .mod.c .mod .o ..cmd .ko cd core ; rm -fr .mod.c .mod .o ..cmd .ko cd os_dep/linux ; rm -fr .mod.c .mod .o ..cmd .ko cd osdep ; rm -fr .mod.c .mod *.o ..cmd .ko rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order rm -fr .mod.c .mod *.o ..cmd _.ko ~ rm -fr .tmp_versions Authentication requested [root] for make driver: install.sh: 48: [: unexpected operator make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/3.14.65-76/build M=/root/Realtek-RTL8192EU-driver_for_ARM/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524 modules make[1]: Entering directory '/usr/src/linux-headers-3.14.65-76' Makefile:590: /usr/src/linux-headers-3.14.65-76/arch/aarch64/Makefile: No such file or directory make[1]: _* No rule to make target '/usr/src/linux-headers-3.14.65-76/arch/aarch64/Makefile'. Stop. make[1]: Leaving directory '/usr/src/linux-headers-3.14.65-76' Makefile:1043: recipe for target 'modules' failed make: *\ [modules] Error 2 ################################################## Compile make driver error: 2 Please check error Mesg ##################################################
Linux odroid64 3.14.65-76 #1 SMP PREEMPT Thu Aug 18 01:59:59 BRT 2016 aarch64 aarch64 aarch64 GNU/Linux
Thanks for any help !!!
I'am not sure if I can help you with linux odroid64. In my case, I used this script for the raspberry pi2 ubuntu 14.04. I do not know the particularities of odroid64 linux.
As you see in the script install_arm.sh, there is a sequence of simple actions is performed :
You can execute this commands by hand.
The error you have install_arm.sh: 38: [: unexpected operator
is rather strange for me
You can 'debug' manually if uname -r |grep fc
this gives a result etc
then launch simply sudo make clean
. Then try to launch sudo make ARCH=arm
.
See also this documentation, maybe it can help you
UPD: I do not remember if rpi2 linux kernel is version 3.XX of 4.XX, and I feel also that driver/rtl8192EU_linux_v4.2.2_7585.20130524
is for the version 4.XX
Authentication requested [root] for make driver: make ARCH=arm CROSS_COMPILE= -C /lib/modules/3.14.65-75/build M=/root/Realtek-RTL8192EU-driver_for_ARM/install_folder/driver/rtl8192EU_linux_v4.2.2_7585.20130524 modules make[1]: * /lib/modules/3.14.65-75/build: No such file or directory. Stop. Makefile:1043: recipe for target 'modules' failed make: * [modules] Error 2
Compile make driver error: 2 Please check error Mesg
root@odroid64:~/Realtek-RTL8192EU-driver_for_ARM/install_folder#
Any ideas how to fix: /lib/modules/3.14.65-75/build: No such file or directory [modules] Error 2