Linux kernel 使用LiME编译用于内存取证的AVD内核
你好,这是我第一次在stackoverflow上发帖,请原谅我的天真。我目前正试图编译一个启用LKM的自定义内核。主要问题是所有的指南和教程都过时了。我找不到任何有助于甚至引导正确方向的东西。Linux kernel 使用LiME编译用于内存取证的AVD内核,linux-kernel,android-emulator,kernel,clang,avd,Linux Kernel,Android Emulator,Kernel,Clang,Avd,你好,这是我第一次在stackoverflow上发帖,请原谅我的天真。我目前正试图编译一个启用LKM的自定义内核。主要问题是所有的指南和教程都过时了。我找不到任何有助于甚至引导正确方向的东西。 我尝试过的交叉编译器: 1.google Toolchain 64(13天前已弃用) 2.Linario 3.UberTC 4.叮当声 5.android-ndk-r21工具链 我已经为此工作了10天了,所以如果有任何帮助,我将不胜感激 最新尝试1: 内核:wahoo-android-msm-waho
我尝试过的交叉编译器:
1.google Toolchain 64(13天前已弃用)
2.Linario
3.UberTC
4.叮当声
5.android-ndk-r21工具链 我已经为此工作了10天了,所以如果有任何帮助,我将不胜感激
最新尝试1: 内核:wahoo-android-msm-wahoo-4.4
工具链:gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu 命令:
export CROSS_COMPILE=/path to tool chain/
export ARCH=arm64
make clean
make mrproper
make wahoo_defconfig
make menuconfig (to enable LKM)
make -j12
export CROSS_COMPILE=/path to tool chain/
export ARCH=arm64
make clean
make mrproper
make goldfish_defconfig
make menuconfig (to enable LKM)
make -j12
export CROSS_COMPILE=/path to tool chain/
export ARCH=arm64
make clean
make mrproper
make cuttlefish_defconfig
make menuconfig (to enable LKM)
make -j12
export CROSS_COMPILE=/android-ndk-r21/toolchains/x86_64-4.9/prebuilt/linux- x86_64/bin/x86_64-linux-android-
export ARCH=x86_64
make clean
make mrproper
make x86_64_defconfig
make menuconfig (to enable LKM)
make -j12
emulator -avd MANY -kernel x86/boot/bzImage †
emulator -avd MANY -kernel x86/boot/bzImage -verbose ††
emulator -avd MANY -kernel x86/boot/bzImage -no-snapshot-load -ranchu †††
错误:无法生成映像,未给出错误信息
最新尝试2: 内核:git克隆-b安卓-goldfish-4.9-dev 工具链:gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu 命令:
export CROSS_COMPILE=/path to tool chain/
export ARCH=arm64
make clean
make mrproper
make wahoo_defconfig
make menuconfig (to enable LKM)
make -j12
export CROSS_COMPILE=/path to tool chain/
export ARCH=arm64
make clean
make mrproper
make goldfish_defconfig
make menuconfig (to enable LKM)
make -j12
export CROSS_COMPILE=/path to tool chain/
export ARCH=arm64
make clean
make mrproper
make cuttlefish_defconfig
make menuconfig (to enable LKM)
make -j12
export CROSS_COMPILE=/android-ndk-r21/toolchains/x86_64-4.9/prebuilt/linux- x86_64/bin/x86_64-linux-android-
export ARCH=x86_64
make clean
make mrproper
make x86_64_defconfig
make menuconfig (to enable LKM)
make -j12
emulator -avd MANY -kernel x86/boot/bzImage †
emulator -avd MANY -kernel x86/boot/bzImage -verbose ††
emulator -avd MANY -kernel x86/boot/bzImage -no-snapshot-load -ranchu †††
错误:qemu:linux内核太旧,无法加载ram磁盘
编辑: 最新尝试3: 内核:git克隆-b乌贼-4.4
工具链:gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu
命令:
export CROSS_COMPILE=/path to tool chain/
export ARCH=arm64
make clean
make mrproper
make wahoo_defconfig
make menuconfig (to enable LKM)
make -j12
export CROSS_COMPILE=/path to tool chain/
export ARCH=arm64
make clean
make mrproper
make goldfish_defconfig
make menuconfig (to enable LKM)
make -j12
export CROSS_COMPILE=/path to tool chain/
export ARCH=arm64
make clean
make mrproper
make cuttlefish_defconfig
make menuconfig (to enable LKM)
make -j12
export CROSS_COMPILE=/android-ndk-r21/toolchains/x86_64-4.9/prebuilt/linux- x86_64/bin/x86_64-linux-android-
export ARCH=x86_64
make clean
make mrproper
make x86_64_defconfig
make menuconfig (to enable LKM)
make -j12
emulator -avd MANY -kernel x86/boot/bzImage †
emulator -avd MANY -kernel x86/boot/bzImage -verbose ††
emulator -avd MANY -kernel x86/boot/bzImage -no-snapshot-load -ranchu †††
错误:duke@duke:~$emulator-avd Nexus5X2-kernel
/home/duke/Downloads/cuttlefish/arch/arm64/boot/Image
模拟器:警告:加密已关闭
emulator:错误:AdbHostServer.cpp:102:无法连接到端口5037上的adb守护程序
queryCoreProfileSupport:找不到交换间隔
无法创建可绘制的
无法创建可绘制的
无法创建可绘制的
无法创建可绘制的
无法创建可绘制的
无法创建可绘制的
无法创建可绘制的
无法创建可绘制的
qemu:linux内核太旧,无法加载ram磁盘
编辑2: 最新尝试4/5: 内核:
git克隆-b乌贼-4.4
git克隆-b android-goldfish-4.9-dev 工具链:android-ndk-r21
命令:
export CROSS_COMPILE=/path to tool chain/
export ARCH=arm64
make clean
make mrproper
make wahoo_defconfig
make menuconfig (to enable LKM)
make -j12
export CROSS_COMPILE=/path to tool chain/
export ARCH=arm64
make clean
make mrproper
make goldfish_defconfig
make menuconfig (to enable LKM)
make -j12
export CROSS_COMPILE=/path to tool chain/
export ARCH=arm64
make clean
make mrproper
make cuttlefish_defconfig
make menuconfig (to enable LKM)
make -j12
export CROSS_COMPILE=/android-ndk-r21/toolchains/x86_64-4.9/prebuilt/linux- x86_64/bin/x86_64-linux-android-
export ARCH=x86_64
make clean
make mrproper
make x86_64_defconfig
make menuconfig (to enable LKM)
make -j12
emulator -avd MANY -kernel x86/boot/bzImage †
emulator -avd MANY -kernel x86/boot/bzImage -verbose ††
emulator -avd MANY -kernel x86/boot/bzImage -no-snapshot-load -ranchu †††
错误:†无错误,AVD无法启动。我等了30分钟 错误:††
emulator:未提供acpi ini文件,使用默认值 错误:††††
无错误,AVD无法启动。我等了30分钟
“主要问题是所有指南和教程都过时了”-你确定它们过时了吗?你试过使用它们吗?是的,我几乎试过所有的,但都没有用。请将你的尝试添加到问题帖子中,并显示你收到的错误消息。关于堆栈溢出,我们不写指南,关于它们的问题是离题的。但是,我们可以帮助您解决在遵循一些(现有)指南时遇到的问题。我已经更新了原始问题。如果你能看一看,我会很感激的。谢谢