This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to load kernel modules after Android boot??

Hi all,

I compiled some kernel device drivers to modules, and I want to load them automatically after Android boot. What should I do? Thank you.

Regards,

Allen

  • You can add lines

    insmod <path to kernel module>

    in int.rc file located at the android root directory.

    The command 'insmod' one of the valid statements of Android Init Language. For more details refer this page on android porting - http://source.android.com/porting/bring_up.html

    Regards,

    Arun

     

  • Hi Arun,

    Thanks for your response. If I use command 'insmod' in init.rc, the modules will be load before Android boot finish. I want to load them after Android desktop show, Are there any good methods that can load modules by use java?

    Sorry ,my English is not well.


    Regards, 

    Allen

  • Hi, 

    I know this post is extremely ancient, but since I'm facing the same problem, I decide to ask anyway.

    I wish to load a module AFTER Android System, or somewhere very late in the boot process, preferably before acc_open. I tried loading in init.rc using services or "on boot" but my module is loaded quite early in the boot process.

    Is there a way to load my module after Android System is up, or somewhere very late in the boot process?