Quote:
Originally Posted by cupcake123
I found this, but it doesn't work.
Code:
git clone https://github.com/jwrdegoede/rtl8189ES_linux.git
cd rtl8189ES_linux.git
git checkout -B rtl8189fs origin/rtl8189fs
make -j4 ARCH=arm CROSS_COMPILE=arm-linux-gnu- KSRC=../linux
Thank you.
|
Compiling an out of tree (kernel source tree) module (driver) is a difficult task, not impossible. In your try above I observed that you gave as make argument a cross-compiler target and I'm wondering why. You should compile it natively under Slackware ARM.
I cannot give you an exact sequence of commands to get your module compiled, but only guide you on the system requirements and preparation steps before you try again and run the make from your rtl8189fs repository.
- you'll need the kernel sources of your running kernel - I don't own an Orange Pi+2E and have no clue what kernel you are running on it and where you took it
- once you get the kernel sources, make sure that you have the Module.symvers together with the .config kernel configuration file in the kernel source tree. To obtain the kernel .config file you might want to take a look at the end of this post:
https://www.linuxquestions.org/quest...6/#post5767156
- before compiling your out of tree module you'll need to prepare the kernel tree and again you can follow the section from the bottom of this post:
https://www.linuxquestions.org/quest...6/#post5767156
- for more details (some of the commands you don't need to run for an out of tree compilation):
https://stackoverflow.com/questions/...-kernel-module
- once you got your kernel source tree prepared, move into your module build folder (the git clone) and start your make again without CROSS_COMPILE=arm-linux-gnu- and point KSRC=../linux to your kernel source tree
- should you get other errors with your make tries, inspect the Makefile and adapt your make command arguments according to your system:
https://raw.githubusercontent.com/jw...aster/Makefile
Good Luck!