I compiled custom kernel with couple extra drivers and due they had conflicts when I tried to add them as built-in drivers to kernel, I had to compile them as separate modules. I signed the modules, insmodded them and they work well. No conflicts.
The problem is that I neither have modules
directory in /system/lib
folder nor /vendor/lib
. I tried to create them manually but even after creation, it didn't load after reboot.
Now questions:
- Where can I put kernel modules if I don't have these folders?
- How can I make it without modifying system? I want to ship the kernel as only 1 AnyKernel3 zip.
Please, if you at least know answer to one of these questions, respond either as answer or comment.
/system/lib/modules/
or/vendor/lib/modules/
. You need to load them using a boot script. They are not auto-loaded. To avoid modifying/system
, use Magisk modules.insmod /vendor/lib/modules/module.ko
line?