【问题标题】:Booting Android (Samsung) Kernel in QEMU在 QEMU 中启动 Android(三星)内核
【发布时间】:2019-11-04 07:07:28
【问题描述】:

尝试使用 QEMU 启动三星 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

什么都没发生

屏幕保持原样。

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,其他一些自定义,也从三星来源编译了一个),但没有运气。

问题:

有人在 QEMU 中启动了三星/Android 内核吗?

谢谢,

相关:

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

【问题讨论】:

    标签: android qemu


    【解决方案1】:

    这与Boot Sasmsung S7 Edge extraced Kernel from Device in Android Emulator 的问题相同,但对于 QEMU 本身而不是 Android 模拟器,答案是相同的——您需要一个已构建为在您使用的机器类型上运行的内核,它在这个案例是“virt”板。尝试从不同的硬件设备上启动随机内核是行不通的。

    【讨论】:

      猜你喜欢
      • 2013-06-21
      • 2020-02-27
      • 2016-07-31
      • 1970-01-01
      • 2023-03-10
      • 2021-03-17
      • 2012-07-10
      • 2018-06-09
      • 2023-03-05
      相关资源
      最近更新 更多