I
I
Ilya Pavlov2017-05-08 12:27:44
linux
Ilya Pavlov, 2017-05-08 12:27:44

Error while adding binfmt_misc.ko module to android core?

You need to add a module (binfmt_misc.ko) to the Android kernel on onePlus One (msm8974).
Kernel sources: https://github.com/ResurrectionRemix-Devices/andro...
Android NDK - android-ndk-r14b I expose
in android_kernel_oneplus_msm8974/.config file:

CONFIG_MODULES=y
CONFIG_BINFMT_MISC=m

I run make menuconfig
it right away and exit and save everything.
Then :
make
and :
make modules
I collect boot.img. I flash the phone - everything works.
I copy android_kernel_oneplus_msm8974/fs/binfmt_misc.ko to the phone - /system/lib/modules/
I write via ADB from root insmod /system/lib/modules/binfmt_misc.ko
And here:
insmod: failed to load binfmt_misc.ko: Bad address
The whole Internet is covered. Nothing helps. What can you advise?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question