【发布时间】: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
【问题讨论】: