相关的Issue / Related Issues

#I1X91O:如何用qemu运行系统内核,能给个教程吗?

原因(目的、解决的问题等)/ Cause (Purpose, Problem, etc.)

在QEMU中启动OpenHarmony ,以允许没有硬件的开发。这组PR为虚拟Cortex-A7单板添加了BSP,由QEMU和该单板的专用目标进行仿真,因此输出映像可以在仿真平台上运行。目前只允许调试生成,所以OHOS引导到shell。目前还没有文件系统驱动程序,所以唯一可用的功能是shell中嵌入的命令。

It would be nice to boot OpenHarmony in QEMU to allow development without hardware. This set of PRs adds BSP for a virtual Cortex-A7 boards, emulated by QEMU and a dedicated target for that board, so the output image can be ran on an emulated platform. At the moment only debug build is allowed, so OHOS boots to shell. There is no filesystem driver yet, so the only functionality available are commands embedded in shell.

描述(做了什么,变更了什么)/ Description (What Is Made and What Is Changed)

本PR将BSP与hi35xx的依赖解耦,因为并不是所有的BSP都基于HiSi芯片(如:这个模型没有,因为QEMU模拟了通用的Cortex-A7)。它也指向了新的平台具有供应商特定代码的新回购,这些代码存在于单独的存储库中,就像hi35xx供应商代码一样。

This PR decouples of BSPs from hi35xx dependencies, since not all BSP base on HiSi chips (e.g. this one doesn't, as QEMU emulates generic Cortex-A7). It also points to new repos with vendor-specific code for this new platform, that exists in separate repositories, as hi35xx vendor code does.