223 questions
0 votes
0 answers
29 views
x86_64 driver get_user_pages_remote crash:low address (0x...aa56c75b) leads to follow_page_mask panic
I am developing an Android Emulator based on VirtualBox and Android-x86. I want to achive the GPU pass through render according to the Android Hardware OpenGLES emulation design. Now i am debugging ...
1 vote
0 answers
36 views
Errors building custom kernel: field has incomplete type 'struct inet_skb_parm' and no member named 'header' in 'struct tcp_skb_cb'
I'm trying to build a custom Linux kernel for my device and I'm running into several compilation errors. Here are some examples: ../include/net/tcp.h:860:25: error: field has incomplete type 'struct ...
0 votes
0 answers
176 views
NDK toolchain aarch64-linux-android folder not found
I want to compile Android 4.19 kernel in Ubuntu, but after I download NDK toolchain zip for Linux and extract, I didn't find the aarch64-linux-android folder. What should I do? Here is the toolchian ...
0 votes
0 answers
196 views
missing abi symbols when compiling android kernel
I am wanting to test a new driver patch with Android 15 (Cuttlefish). I am getting the error below when I try to build the kernel with my patch. I think I need to either disable the ABI checks or ...
1 vote
0 answers
40 views
Android Kernel: Getting multiple errors in the file sched/rt.c on redefinitions of functions like rt_task_of and others on compilie
The output of the build using make shows CC kernel/sched/rt.o kernel/sched/rt.c:223: warning: "rt_entity_is_task" redefined 223 | #define rt_entity_is_task(rt_se) (1) | In ...
0 votes
1 answer
109 views
How android Sensor HAL read data from Kernel?
I'm trying to understand how my system reads gyroscope data from the kernel. I have a Redmagic 8pro phone running Android 13 with a 5.15 kernel. The gyroscope sensor in my device is an LSM6DSO. I ...
0 votes
0 answers
27 views
Getting the error `include/linux/nmi.h:94:20: error: two or more data types in declaration specifiers` while building Android Kernel
The build output from make looks like so near the termination: CC kernel/exec_domain.o CC kernel/panic.o In file included from kernel/panic.c:25: include/linux/nmi.h:94:20: error: two or ...
0 votes
1 answer
91 views
How to disable -Werror in building AOSP
How would I disable the -Werror flag or add -Wno-error flag to AOSP/LineageOS? I'm trying to build a kernel for my specific device and it built fine on its own, but once added to the source tree, it ...
1 vote
0 answers
212 views
How to locate Android kernel sensor drivers in source code for Pixel 7a (lynx)?
I am developing a custom ROM for the Pixel 7a (lynx) running Android 13, using the custom kernel branch android-gs-lynx-5.10-android13-qpr3. However, I am struggling to find the actual driver code ...
1 vote
1 answer
636 views
Error Building Android Kernel for Pixel 7 Using Bazel: Missing BUILD File
I am trying to build the Android kernel for the Pixel 7 using Bazel, following the official documentation here. However, I encounter the following error during the build process: pixel_kernel$ tools/...
0 votes
0 answers
20 views
implicit declaration function however the correct header file is imported?
I am trying to compile my android kernel, but I get an error for implicit declaration of a a function. Here is the error in full: ../drivers/interconnect/qcom/msm8916.c:310:9: error: implicit ...
0 votes
0 answers
81 views
Force android kernel to detect insertion of sdcard
I have a device based on Android, where sdcard tray is fixed, because of that hotPlugging doesn't work. I need to repeat the same exact way in my custom kernel module, what it does when physically ...
1 vote
0 answers
428 views
Android Kernel) Cannot find Image.lz4-dtb file after building the android kernel
I need to modify the android's kernel so I follow the instruction from this https://source.android.com/docs/setup/build/building-kernels?hl=ko#customize-build But after sync the kernel's repo and ...
0 votes
0 answers
103 views
What does /sys/devices/system/cpu/cpu0/of_node/efficiency file contains
What does /sys/devices/system/cpu/cpu0/of_node/efficiency file contains and how to parse the contents in human readable form. Taken the hex dump and got xxd /sys/devices/system/cpu/cpu0/of_node/...
1 vote
0 answers
92 views
Unable to see any /sys/devices/xx interface created from kernel module loaded through k_vendor_module.rc
Trying to integrate a third part kernel vendor module to our android stack. Since this is module is not needed as part of early-init, decided to not put it under ...