Code Monkey home page Code Monkey logo

Comments (10)

skxo avatar skxo commented on July 28, 2024

So, I have compiled a new android with deactivation of modules signature. CONFIG_MODULE_SIG is not set in the .config

And I built the lime.ko but when I try to install it, i have this error:
root@msm8916_64:/ # insmod /sdcard/lime.ko "path=tcp:4444 format=lime"
insmod: failed to load /sdcard/lime.ko: Exec format error

Why?!?
Anyone with an idea would be really nice....
Thanks

from lime.

jtsylve avatar jtsylve commented on July 28, 2024

It sounds like EFI_SECURE_BOOT_SIG_ENFORCE kernel config has been enabled. That prevents from loading unsigned third party modules if UEFI Secure Boot is enabled.

The easiest way to fix this issue is to disable Secure Boot in UEFI (BIOS) settings.

Your second error seems like that your cross compiling environment isn't the same as the running kernel.

from lime.

fahimeShariati avatar fahimeShariati commented on July 28, 2024

ismod: failed to load /sdcard/lime.ko: function not implemented error
how do i fix it?

from lime.

vishishttiwari avatar vishishttiwari commented on July 28, 2024

Were you able to get past this issue?

from lime.

Robert-Cunningham avatar Robert-Cunningham commented on July 28, 2024

ismod: failed to load /sdcard/lime.ko: function not implemented error
how do i fix it?

I got this because my kernel didn't have .ko support compiled in, and fixed it by recompiling my kernel with LKM support.

from lime.

dk957679 avatar dk957679 commented on July 28, 2024

It sounds like EFI_SECURE_BOOT_SIG_ENFORCE kernel config has been enabled. That prevents from loading unsigned third party modules if UEFI Secure Boot is enabled.

The easiest way to fix this issue is to disable Secure Boot in UEFI (BIOS) settings.

sir
still i have same problem after disable secure boot mode.
insmod: failed to load /sdcard/lime.ko: Exec format error

from lime.

dk957679 avatar dk957679 commented on July 28, 2024

Sir,
Please anybody help me out from this problem, I am not able to solve this problem after trying all possibility.
I am using genymotion android emulator .He has 32 bit architecture.
emulator

from lime.

kd8bny avatar kd8bny commented on July 28, 2024

This is a closed issue.
Please open a new issue including
The issue you are having
The steps you have taken
Include logs and output

from lime.

dk957679 avatar dk957679 commented on July 28, 2024

config_file.txt
**Note:--(problem is):- insmod: failed to load /sdcard/lime.ko: Exec format error
Please see below is shown all step what i have taken see where i am doing wrong
,also i have included the make file of LIME source.
Note :- (I have downloaded the kernel source for genymotion emulator from github (genymotion-kernel-genymotion-aosp-4.4.157) file)
$ export SDK_PATH=/usr/lib/android-sdk/
$export NDK_PATH=/home/android-ndk/
$export KSRC_PATH=/home/android_workstation/genymotion-kernel-genymotion-aosp-4.4.157/
$export CC_PATH=$NDK_PATH/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/
$export LIME_SRC=/home/android_workstation/LiME-master/src
$cd $KSRC_PATH
$ make ARCH=x86 CROSS_COMPILE=$CC_PATH/i686-linux-android- modules_prepare
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK scripts/mod/devicetable-offsets.h
$ cd $LIME_SRC
$ make clean && make
make tidy
make[1]: Entering directory '/home/android_workstation/LiME-master/src'
rm -f .o .mod.c Module.symvers Module.markers modules.order ..o.cmd ..ko.cmd .
.o.d
rm -rf .tmp_versions
make[1]: Leaving directory '/home/android_workstation/LiME-master/src'
rm -f *.ko

cross-compile for Android emulator

make ARCH=x86 CROSS_COMPILE=/home/android-ndk/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android- -C /home/android_workstation/genymotion-kernel-genymotion-aosp-4.4.157 M="/home/deepak_kumar/android_workstation/LiME-master/src" modules
make[1]: Entering directory '/home/android_workstation/genymotion-kernel-genymotion-aosp-4.4.157'
CC [M] /home/android_workstation/LiME-master/src/tcp.o
/home/android_workstation/LiME-master/src/tcp.c:75:9: warning: ISO
C90 forbids mixing declarations and code [-Wdeclaration-after-statement]
int opt = 1;
^
1 warning generated.
CC [M] /home/android_workstation/LiME-master/src/disk.o
/home/android_workstation/LiME-master/src/disk.c:99:18: warning:
ISO C90 forbids mixing declarations and code
[-Wdeclaration-after-statement]
mm_segment_t fs;
^
1 warning generated.
CC [M] /home/android_workstation/LiME-master/src/main.o
LD [M] /home/android_workstation/LiME-master/src/lime.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/android_workstation/LiME-master/src/lime.mod.o
LD [M] /home/android_workstation/LiME-master/src/lime.ko
make[1]: Leaving directory '/home/android_workstation/genymotion-kernel-genymotion-aosp-4.4.157'
strip --strip-unneeded lime.ko
mv lime.ko lime-5.15.0-52-generic.ko
make tidy
make[1]: Entering directory '/home/android_workstation/LiME-master/src'
rm -f .o .mod.c Module.symvers Module.markers modules.order ..o.cmd ..ko.cmd .*.o.d
rm -rf .tmp_versions
make[1]: Leaving directory '/home/android_workstation/LiME-master/src'
$adb push lime-5.15.0-52-generic.ko /sdcard/lime.ko
$sudo adb shell
Note:- Log file below
[ 2248.453368] type=1400 audit(1668337180.854:1026): avc: denied { write } for pid=210 comm="redis" name="fwmarkd" dev="tmpfs" ino=10466 scontext=u:r:redis:s0 tcontext=u:object_r:fwmarkd_socket:s0 tclass=sock_file permissive=1
[ 2248.453403] type=1400 audit(1668337194.530:1027): avc: denied { module_load } for pid=4906 comm="insmod" path="/storage/emulated/0/lime.ko" dev="sdcardfs" ino=114056 scontext=u:r:su:s0 tcontext=u:object_r:sdcardfs:s0 tclass=system permissive=1

dmesg2

$ sudo dmesg
[ 5684.287183] wlp0s20f3: deauthenticated from a8:9d:21:0f:3f:30 (Reason: 4=DISASSOC_DUE_TO_INACTIVITY)
[ 5684.564305] wlp0s20f3: authenticate with a8:9d:21:0f:3f:30
[ 5684.568609] wlp0s20f3: send auth to a8:9d:21:0f:3f:30 (try 1/3)
[ 5684.594115] wlp0s20f3: authenticated
[ 5684.595331] wlp0s20f3: associate with a8:9d:21:0f:3f:30 (try 1/3)
[ 5684.616753] wlp0s20f3: RX AssocResp from a8:9d:21:0f:3f:30 (capab=0x421 status=0 aid=16)
[ 5684.624022] wlp0s20f3: associated
[ 5684.695738] wlp0s20f3: Limiting TX power to 16 dBm as advertised by a8:9d:21:0ddddedeepdedeepdeedddd
makefile.txt

from lime.

dk957679 avatar dk957679 commented on July 28, 2024

Anyone if know response please for above problem

from lime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.