Open pc-magas opened 3 weeks ago
Update I tried with:
make ARCH=x86_64 CROSS_COMPILE=x86_64-linux-android- CC=x86_64-linux-android25-clang KSRC=~/dlink-decompile/common KDIR=~/dlink-decompile/common
But I got:
make[1]: Entering directory '/home/pcmagas/dlink-decompile/common'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
You are using: Android (11889484, +pgo, +bolt, +lto, +mlgo, based on r522817) clang version 18.0.1 (https://android.googlesource.com/toolchain/llvm-project d8003a456d14a3deb8054cdaa529ffbf02d9b262)
make[2]: *** No rule to make target 'scripts/mod/modpost', needed by '/home/pcmagas/dlink-decompile/rtl8188eus/Module.symvers'. Stop.
make[1]: *** [Makefile:2009: modpost] Error 2
make[1]: Leaving directory '/home/pcmagas/dlink-decompile/common'
make: *** [Makefile:2065: modules] Error 2
And I am stuck
hi, never tried that but:
clang
) than kernel needs (gcc
)?hi, never tried that but:
1. doesn't it say that you try to use other compiler (`clang`) than kernel needs (`gcc`)? 2. do you use same kernel version sources as your device runs?
Then I switched into GCC via trying:
make -C /home/pcmagas/dlink-decompile/common M=/home/pcmagas/dlink-decompile/rtl8188eus KSRC=~/dlink-decompile/common KDIR=~/dlink-decompile/common ARCH=x86_64
make: Entering directory '/home/pcmagas/dlink-decompile/common'
MODPOST /home/pcmagas/dlink-decompile/rtl8188eus/Module.symvers
WARNING: Module.symvers is missing.
Modules may not have dependencies or modversions.
You may get many unresolved symbol warnings.
make: Leaving directory '/home/pcmagas/dlink-decompile/common'
My folder structure is:
dlink-decompile
-- common << Android Kernel
-- rtl8188eus
I build the android kernel using:
mkdir dlink-decompile
cd dlink-decompile
git clone https://android.googlesource.com/kernel/common.git
git checkout android14-6.1-2024-04\_r11
$ make mrproper
$ make menuconfig
$ make scripts
$ make -j$(nproc)
Then I tried building te driver like this:
git clone https://github.com/aircrack-ng/rtl8188eus.git
make -C /home/pcmagas/dlink-decompile/common M=/home/pcmagas/dlink-decompile/rtl8188eus KSRC=~/dlink-decompile/common KDIR=~/dlink-decompile/common ARCH=x86_64
And so far I saw the file Module.symvers
to be missing:
make -C /home/pcmagas/dlink-decompile/common M=/home/pcmagas/dlink-decompile/rtl8188eus KSRC=~/dlink-decompile/common KDIR=~/dlink-decompile/common ARCH=x86_64
make: Entering directory '/home/pcmagas/dlink-decompile/common'
MODPOST /home/pcmagas/dlink-decompile/rtl8188eus/Module.symvers
WARNING: symversis missing.
Modules may not have dependencies or modversions.
You may get many unresolved symbol warnings.
make: Leaving directory '/home/pcmagas/dlink-decompile/common'
How I can make the missing file???
i don't think that you have any issues with the rtl8188eus
driver itself but with how to compile and install any driver under your android, so it could be better to search and ask in android-related groups/communities how to do so.
I try to build the driver for android so I can load it into the emulator. So far I have installed both android sdk, afterwards I have installed ndk using sdk manager:
And I have exported the following environmental variables:
Then I cloned the common kernel:
Then I cloned the driver source:
But I get the error:
As you can see it is pointed towards the system's linux kernel and not towards the android kernel that I have cloned upon. How I can fix this?