Quantcast
Viewing all articles
Browse latest Browse all 22113

Compile AVD kernel for memory forensics with LiME

Hello this is my first time posting on stackoverflow so please forgive my naivety. I'm currently trying to compile a custom kernel with LKM enabled. The main problem is that all guides and tutorials are outdated. I can't find anything that would help or even guide in the right direction.

Cross-Compilers I've tried:

google toolchain64 (deprecated 12 days ago)
Linario
UberTC
Clang

I've been working on this for a week now so any help would be really appreciated.

Latest Attempt 1:

Kernel: wahoo-android-msm-wahoo-4.4 toolchain: gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu

comamnds:
export CROSS_COMPILE = /path to tool chain/
make clean
make mrproper
make wahoo_deconfig
make menuconfig (to enable LKM)
-j12 (fails to build an image, gives no error)

Latest Attempt 2:

Kernel: git clone https://android.googlesource.com/kernel/goldfish/ -b android-goldfish-4.9-dev toolchain: gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu

comamnds:
export CROSS_COMPILE = /path to tool chain/
make clean
make mrproper
make goldfish_deconfig
make menuconfig (to enable LKM)
-j12

compiles fine but when i run on emulator it gives error ( qemu: linux kernel too old to load a ram disk )

EDIT

Latest Attempt 3:

Kernel: git clone https://android.googlesource.com/kernel/common -b cuttlefish-4.4
toolchain: gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu

comamnds:
export CROSS_COMPILE = /path to tool chain/
make clean
make mrproper
make cuttlefish_defconfig
make menuconfig (to enable LKM)
make -j12

ERROR:
duke@duke:~$ emulator -avd Nexus5X2 -kernel
/home/duke/Downloads/cuttlefish/arch/arm64/boot/Image
emulator: WARNING: encryption is off
emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037
queryCoreProfileSupport: swap interval not found
failed to create drawable
failed to create drawable
failed to create drawable
failed to create drawable
failed to create drawable
failed to create drawable
failed to create drawable
failed to create drawable
qemu: linux kernel too old to load a ram disk


Viewing all articles
Browse latest Browse all 22113

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>