Location of the kernel configuration file in android

I need to compile my own kernel with dvb-t drivers as kernel modules on an _rkm mk602_Android device with a processor rk3066.

I downloaded the kernel source for this processor, but I had problems setting up the kernel for this device from scratch. Is there a way to delete the current kernel configuration file from the device? Therefore, I can only change what I need in the menuconfig, and other things will already be configured correctly.

Alternatively, if I just compiled the necessary kernel modules, how do I know which tool line I should use for compatibility with the running kernel.

+4
source share
1 answer

Unfortunately, the configuration file will be included only in the kernel image only if its compilation indicated (most of them do not). You can see /proc/config.gzif you are lucky, he will be there.

If you have the kernel source, take a look at /arch/arm/configs- most of the Android kernel that I saw will have a default configuration for your processor, and you can start from there.

You can compile an external module for the Android kernel in the same way that you compile a regular Linux module. Just make sure that you are using the kernel tree that you downloaded as the kernel headers. It may or may not work depending on how close the kernel is loaded into the currently running kernel.

+3

Source: https://habr.com/ru/post/1529666/


All Articles