在 QEMU 中启动 Android (Samsung) 内核

Booting Android (Samsung) Kernel in QEMU

正在尝试使用 QEMU

启动 Samsung S7 Edge 内核 3。18.x
/usr/local/bin/qemu-system-aarch64  -M virt -cpu cortex-a57  -kernel $HOME/s7boot/boot.emmc.win-zImage -initrd $HOME/s7boot/boot.emmc.win-ramdisk.gz -nographic

什么都没发生

屏幕保持原样。

CPU QEMU 进程处于 100%

使用 QEMU

/usr/local/bin/qemu-system-aarch64 --version
QEMU emulator version 4.1.0
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers

尝试使用 -s -S

 /usr/local/bin/qemu-system-aarch64  -M virt -cpu cortex-a57  -kernel $HOME/s7boot/boot.emmc.win-zImage -initrd $HOME/s7boot/boot.emmc.win-ramdisk.gz -nographic -s -S

GDB

Type "apropos word" to search for commands related to "word".
(gdb) target remote:1234
Remote debugging using :1234
warning: while parsing target description (at line 1): Target description specified unknown architecture "aarch64"
warning: Could not load XML target description; ignoring
0x00000000 in ?? ()
(gdb) cont
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x40080000 in ?? ()
(gdb) cont
Continuing.

所以我猜它卡在了 0x4008000

Anynway ....我尝试了几个内核(从设备下载,LineageOS,一些其他自定义,也从三星来源编译)没有运气。

问题:

有人在 QEMU 中启动 Samsung/Android 内核吗?

谢谢,

相关:

这是与 相同的问题,但对于 QEMU 本身而不是 Android 模拟器,答案是相同的——你需要一个为 [=15= 构建的内核] 在您使用的机器类型上,在本例中是 "virt" 板。尝试启动从不同硬件设备上拉出的随机内核永远行不通。