Comments (10)
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.
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.
ismod: failed to load /sdcard/lime.ko: function not implemented error
how do i fix it?
from lime.
Were you able to get past this issue?
from lime.
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.
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.
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.
from lime.
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.
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
$ 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.
Anyone if know response please for above problem
from lime.
Related Issues (20)
- Not finding vmlinux
- Error compiling in kali "5.16.0-kali7-amd64" HOT 3
- Error in using make command on oracle linux. HOT 1
- Error in adding module HOT 3
- Device crashes a few seconds after loading LiME HOT 1
- [RISC-V | TEEs] Crashes when memory is protected by PMP. HOT 2
- RHEL 8.4 onwards build issue
- Enable DIO HOT 1
- Raw format warning HOT 1
- Memory dump with lime very slow HOT 1
- Setup Environment on Android 13
- Need Help with "No rule to make target 'modules_prepare'. Stop" Error
- Change license to MIT HOT 2
- Cannot compile for Linux with kernel version 2.4.25 Cannot find linux/err.h
- Start dump but soon after "segmentation fault" problem with /dev/shm HOT 1
- insmod: ERROR: could not insert module ./lime-5.11.0-36-generic.ko: Unknown symbol in module
- Loading Lime to obtain ram image comaptible with volatility
- LiME hangs when trying to capture memory on the Amazon Linux with kernel version 5 HOT 2
- Issues compiling LiME for a Android Pixel 2 - Invalid Argument
- Issues compiling LiME for embedded Linux buildroot 4.15.7 kernel (armV71)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lime.