gpt4 book ai didi

android - 将自定义 Android 11 内核加载到 AVD/模拟器

转载 作者:行者123 更新时间:2023-12-04 23:50:51 34 4
gpt4 key购买 nike

我希望能够构建自定义内核并在 Android 虚拟设备 (AVD) 上运行它。我尝试了以下说明,但它会导致引导循环。我在这里按照说明操作:https://source.android.com/setup/build/building-kernels下载 Android 内核源代码。
同步和构建

repo init -b common-android-mainline && repo sync
repo sync
BUILD_CONFIG=common/build.config.x86_64 build/build.sh
使用 Pixel 4、API 30、ABI x86_64 AVD 运行模拟器
emulator @Pixel_4_API_30 -kernel out/android-mainline/dist/bzImage -show-kernel -verbose
这些是在设备重新启动之前出现的一些行:
android::init::BlockDevInitializer::InitDevices(std::set<std::string>): partition(s) not found in /sys, waiting for their uevent(s): metadata, super, vbmeta
[ 10.888602] init: Wait for partitions returned after 10010ms
[ 10.889489] init: bool android::init::BlockDevInitializer::InitDevices(std::set<std::string>): partition(s) not found after polling timeout: metadata, super, vbmeta
[ 10.891648] init: Failed to mount required partitions early ...
[ 10.892517] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00

最佳答案

我面临同样的问题,
如果有人有任何解决方案,请在此处发布...

[    0.929177] Freeing unused kernel image (rodata/data gap) memory: 1692K
[ 0.929966] Run /init as init process
[ 0.931449] init: init first stage started!
[ 0.932562] init: Loading module /lib/modules/ac97_bus.ko with args ''
[ 0.933261] ac97_bus: disagrees about version of symbol module_layout
[ 0.933917] init: Failed to insmod '/lib/modules/ac97_bus.ko' with args '': Exec format error
[ 0.934754] init: LoadWithAliases was unable to load ac97_bus
[ 0.935420] init: Copied ramdisk prop to /second_stage_resources/system/etc/ramdisk/build.prop
[ 0.936350] init: [libfs_mgr]ReadFstabFromDt(): failed to read fstab from dt
[ 0.937333] init: Using Android DT directory /proc/device-tree/firmware/android/
[ 0.954031] init: bool android::init::BlockDevInitializer::InitDevices(std::set<std::string>): partition(s) not found in /sys, waiting for their uevent(s): metadata, super, vbmeta
[ 10.966036] init: Wait for partitions returned after 10010ms
[ 10.969177] init: bool android::init::BlockDevInitializer::InitDevices(std::set<std::string>): partition(s) not found after polling timeout: metadata, super, vbmeta
[ 10.976590] init: Failed to mount required partitions early ...
[ 10.979995] init: InitFatalReboot: signal 6
[ 10.998215] init: #00 pc 00000000003d6818 /init (UnwindStackCurrent::UnwindFromContext(unsigned long, void*)+88)
[ 11.000904] init: #01 pc 00000000003105be /init (android::init::InitFatalReboot(int)+94)
[ 11.002521] init: #02 pc 0000000000310a63 /init (android::init::InstallRebootSignalHandlers()::$_24::__invoke(int)+19)
[ 11.004453] init: #03 pc 00000000004ed6b0 /init (__restore_rt)
[ 11.006160] init: #04 pc 00000000004e248e /init (abort+190)
[ 11.007120] init: #05 pc 00000000003165ab /init (android::init::InitAborter(char const*)+27)
[ 11.008464] init: #06 pc 000000000037c43c /init (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+60)
[ 11.010507] init: #07 pc 000000000037bcc0 /init (android::base::LogMessage::~LogMessage()+352)
[ 11.011813] init: #08 pc 00000000003059f2 /init (android::init::FirstStageMain(int, char**)+8978)
[ 11.013643] init: #09 pc 00000000004d99de /init (__real_libc_init(void*, void (*)(), int (*)(int, char**, char**), structors_array_t const*, bionic_tcb*)+686)
[ 11.015483] init: Reboot ending, jumping to kernel
[ 11.016574] reboot: Restarting system with command 'bootloader'
[ 11.017280] reboot: machine restart
emulator: No acpi ini file provided, using default

关于android - 将自定义 Android 11 内核加载到 AVD/模拟器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64129932/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com