I have very little experience in assembling cores. Thanks in advance to everyone who reads.
You need to add the module binfmt_misc.ko to the Android kernel.
- Device: OnePlus One
- Kernel sources
- Android NDK - android-ndk-r14b.
I compile the kernel (with the make command) by setting it in kernel/.config :
CONFIG_MODULES=y CONFIG_BINFMT_MISC=m Then the modules (I don’t know if they are going right away when running make)
make modules I boot.img compiling boot.img I boot.img flashing through fastboot - everything works, and the build time is displayed in the settings (that means everything is fine).
Then through adb with the root I remount /system , allowing the recording.
I /system/lib/modules файл kernel/fs/binfmt_misc.ko to /system/lib/modules файл kernel/fs/binfmt_misc.ko .
And also on behalf of the root:insmod /system/lib/modules/binfmt_misc.ko
And the error:
insmod: failed to load binfmt_misc.ko: Bad addrress
modinfo command :
A0001:/system/lib/modules # modinfo binfmt_misc.ko filename: binfmt_misc.ko license: GPL srcversion: CC65003EC6BFAF280275F8C depends: intree: Y vermagic: 3.4.112-Resurrected_Kernel-g41f44f0 SMP preempt mod_unload modversions ARMv7 All this was done according to the instructions from Meefik .
I rummaged through the whole Internet, found nothing. I do not know what to do.