Issue while adding driver as loadable kernel module to android kernel

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue while adding driver as loadable kernel module to android kernel

Neena B Nair
Hi,

Can some one please help me with the steps for adding loadable kernel module in android kernel. 
Now I am getting error like "recipe for  target 'mt2712_android_debug_defconfig' failed" in both /AOSP/kernel-4.9/Makefile and /AOSP/kernel-4.9/scripts/kconfig/Makefile even though I added the following code snippet 

CONFIG_MODULES=y
CONFIG_MODULE_FORCE_LOAD=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y

in /AOSP/kernel-4.9/arch/arm64/configs/mt2712_android_defconfig.

Regards,
Neena



--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/android-platform.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Issue while adding driver as loadable kernel module to android kernel

wasim.nazir
Can you verify if you are trying to compile the desired defconfig, because in the error it is mt2712_android_debug_defconfig but you have added new configs in mt2712_android_defconfig.

For simple check these three are sufficient
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD
=y
CONFIG_MODVERSIONS
=y


On Friday, January 11, 2019 at 3:01:32 AM UTC+5:30, Neena B Nair wrote:
Hi,

Can some one please help me with the steps for adding loadable kernel module in android kernel. 
Now I am getting error like "recipe for  target 'mt2712_android_debug_defconfig' failed" in both /AOSP/kernel-4.9/Makefile and /AOSP/kernel-4.9/scripts/kconfig/Makefile even though I added the following code snippet 

CONFIG_MODULES=y
CONFIG_MODULE_FORCE_LOAD=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y

in /AOSP/kernel-4.9/arch/arm64/configs/mt2712_android_defconfig.

Regards,
Neena




This message contains confidential information and is intended only for the individual(s) named. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this mail and attached file/s is strictly prohibited. Please notify the sender immediately and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/android-platform.
For more options, visit https://groups.google.com/d/optout.