在QEMU中启动Android(三星)内核

尝试使用QEMU引导Samsung S7 Edge Kernel 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

什么都没发生

屏幕保持不变。

用于QEMU处理的CPU为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,一些其他自定义项下载,也从Samsung Sources编译而来)。

问题:

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

谢谢

有关:

Booting Kernel in QEMU - PFLASH: Possible BUG - Write block confirm

gsm174 回答:在QEMU中启动Android(三星)内核

这是与Boot Sasmsung S7 Edge extraced Kernel from Device in Android Emulator相同的问题,但对于QEMU而言,而不是Android模拟器而言,答案是相同的-您需要构建一个可在您使用的机器类型上运行的内核,在这种情况下是“ virt”板。尝试引导随机运行于其他硬件设备上的随机内核永远无法正常工作。

本文链接:https://www.f2er.com/3168572.html

大家都在问