Releases: tearhacker/compile_android_driver
Releases · tearhacker/compile_android_driver
GKI Kernel Android15-6.6 (aarch64)
GKI 内核编译产物
| 项目 | 值 |
|---|---|
| Android 版本 | 15 |
| 内核版本 | 6.6 |
| 架构 | aarch64 |
| 驱动模块 | hello.ko |
包含文件
hello.ko- 编译好的内核模块kernel/- 内核镜像 (Image, vmlinux, Module.symvers 等)kernel-source-*.tar.gz- 完整内核源码
加载模块
# 推送到设备
adb push hello.ko /data/local/tmp/
# 加载模块 (需要 root)
adb shell su -c "insmod /data/local/tmp/hello.ko"
# 查看日志
adb shell dmesg | grep -i hello
# 卸载模块
adb shell su -c "rmmod hello"使用源码编译其他模块
# 解压源码
tar -xzf kernel-source-*.tar.gz
# 编译你的模块
make -C common M=/path/to/your/module \
ARCH=arm64 \
CROSS_COMPILE=aarch64-linux-gnu- \
LLVM=1 \
modules