可用于模拟 OpenHarmony 内核在不同单板上运行,解除对物理开发板的依赖,支持 arm、cortex-m4/m55、risc-v、Xtensa、C-SKY 等多种架构,提供各架构对应的使用教程。【此简介由AI生成】
Access rate limit exceeded. Please log in to continue.
QEMU
Introduction
Quick Emulator (QEMU) can simulate the scenario where a kernel runs on different boards, so that the kernel no longer depends on physical development boards.
Constraints
QEMU applies only to the OpenHarmony kernel.
QEMU Install
-
Install dependencies(Ubuntu 18+)
sudo apt install build-essential zlib1g-dev pkg-config libglib2.0-dev binutils-dev libboost-all-dev autoconf libtool libssl-dev libpixman-1-dev virtualenv flex bison -
Acquiring Source Code
wget https://download.qemu.org/qemu-6.2.0.tar.xzor
-
Compile and install
tar -xf qemu-6.2.0.tar.xz cd qemu-6.2.0 mkdir build && cd build ../configure --prefix=qemu_installation_path make -j16Wait for the compilation to finish and execute the installation command:
make installFinally, add the installation path to the environment variable:
vim ~/.bashrcAdd the following command line to the last line of ~/.bashrc:
export PATH=$PATH:qemu_installation_path
Usage
For details about the ARM architectures:
For details about the Cortex-m4 architecture, see Qemu Cortex-m4 mps2-an386 HOWTO.
For details about the Cortex-m55 architecture, see Qemu Cortex-m55 mps3-an547 HOWTO.
For details about the RISC-V architecture, see Qemu RISC-V Virt HOWTO.
For details about the Xtensa architecture, see Qemu Xtensa Virt HOWTO.
For details about the C-SKY architecture, see Qemu C-SKY Virt HOWTO.
Contribution
Repositories Involved
device_qemu
Introduction
可用于模拟 OpenHarmony 内核在不同单板上运行,解除对物理开发板的依赖,支持 arm、cortex-m4/m55、risc-v、Xtensa、C-SKY 等多种架构,提供各架构对应的使用教程。【此简介由AI生成】
Customize your domain