可用于模拟 OpenHarmony 内核在不同单板上运行,解除对物理开发板的依赖,支持 arm、cortex-m4/m55、risc-v、Xtensa、C-SKY 等多种架构,提供各架构对应的使用教程。【此简介由AI生成】
Files Last commit Last update update .gitee/PULL_REQUEST_TEMPLATE.zh-CN.md. Signed-off-by: oh_ci <maguangsheng1@huawei.com>
1 year ago Delete the dependency of the xtensa/csky toolchain on the prebuilts path. Signed-off-by: arvinzzz <zhaotianyu9@huawei.com> Change-Id: Iaf80895c279091064ea94541eae90e15fcfcf9c8
3 years ago 将optimized-routine从23.01升级至25.01版本。 Issue: https://gitee.com/openharmony/third_party_optimized_routines/issues/IC6R1E Feature Or Bugfix: Feature Binary Source: No Signed-off-by: xwx1135370 <xuyao44@huawei.com> 1 year ago Description: 解决高频 函数编译报错问题 IssueNo: https://gitee.com/openharmony/kernel_liteos_m/issues/I9PV07 Feature Or Bugfix: Feature Binary Source: No Signed-off-by: hw_llm <liu.limin@huawei.com> 2 years ago 优化 virt_full 平台内核构建配置并移除 WiFi 驱动模块 1. 重构内核构建配置 - 更新 common/virt_full/kernel/BUILD.gn 采用新的构建结构 - 移除冗余的 configs/arm64_virt_defconfig 文件 - 更新 arm64_virt_defconfig 和 build_kernel.sh 2. 移除不必要的 WiFi 驱动模块 - 删除 common/virt_full/kernel/ko/ 目录下的所有无线驱动 - 包括:cfg80211、mac80211、iwlwifi、rtw89、virt_wifi 等模块 3. 更新平台配置 - 更新 common/virt_full/cfg/ 下的配置文件 - 调整 default.para 和 fstab.virt 配置 Co-Authored-By: Agent <noreply@anthropic.com> Signed-off-by: handyohos <zhangxiaotian@huawei.com> Change-Id: I6fbe49aa15c5afb15a0350ffcb40b9a4e4f96e52
4 months ago !322 merge virt-full-kernel-config-opt into master 优化 virt_full 平台内核构建配置并移除 WiFi 驱动模块 Created-by: handyohos Commit-by: handyohos Merged-by: ohci1 Description: https://gitcode.com/openharmony/device_qemu/issues/238 ## 主要更改 1. **重构内核构建配置** - 更新 common/virt_full/kernel/BUILD.gn 采用新的构建结构 - 移除冗余的 configs/arm64_virt_defconfig 文件 - 更新 arm64_virt_defconfig 和 build_kernel.sh 2. **移除不必要的 WiFi 驱动模块** - 删除 common/virt_full/kernel/ko/ 目录下的所有无线驱动 - 包括:cfg80211、mac80211、iwlwifi、rtw89、virt_wifi 等模块 3. **更新平台配置** - 更新 common/virt_full/cfg/ 下的配置文件 - 调整 default.para 和 fstab.virt 配置 ## 影响范围 - virt_full 平台内核构建配置 - 不影响现有功能,仅优化构建流程 ## 测试 在 arm64 virt full 环境验证构建正常 --- Co-Authored-By: Agent See merge request: openharmony/device_qemu !322 4 months ago fix:Eliminate the dependency on the compilation path of bin hdf_core Signed-off-by: zhang <zhangfengxi@huawei.com>
3 years ago Delete the dependency of the xtensa/csky toolchain on the prebuilts path. Signed-off-by: arvinzzz <zhaotianyu9@huawei.com> Change-Id: Iaf80895c279091064ea94541eae90e15fcfcf9c8
3 years ago del key Signed-off-by: libing_frank <libing3@huawei.com> Change-Id: I6f4998e1d7049b9f6502481808168efb59308dc9
3 years ago Description:Refresh component dependency IssueNo: https://gitee.com/openharmony/third_party_freetype/issues/I8FMV1 Feature or Bugfix:Feature Binary Source:No Signed-off-by: achao <caichao9@huawei.com> 2 years ago update riscv64_virt/linux/rootfs/BUILD.gn. Signed-off-by: Mr.zhao <zhaohang44@huawei.com>
2 years ago update x86_64_virt/linux/rootfs/BUILD.gn. Signed-off-by: Mr.zhao <zhaohang44@huawei.com>
2 years ago 添加arm64 virt full平台配置支持 为qemu设备添加arm64 virt full平台的完整配置支持,包括GPU驱动、 显示、相机、音频等硬件抽象层配置。 主要新增内容: 1. arm_virt/linux_full/:arm64 virt full平台基础配置 - BUILD.gn:平台构建配置 - bundle.json:组件bundles配置 - config.gni:平台参数配置 - device.gni:设备信息配置 2. common/virt_full/:通用虚拟化硬件抽象层 - GPU驱动:arm64平台Mesa 3D图形库(EGL、GLES、GBM等) - 显示:显示驱动适配层 - 相机:V4L2相机驱动实现 - 音频:ALSA音频适配 - 分布式硬件:分布式硬件组件配置 - 内核:内核模块和固件配置 技术特点: - GPU驱动使用Git LFS管理大文件(kms_swrast_dri.so等) - 支持Vulkan图形API - 完整的HDF(Hardware Driver Foundation)支持 - 标准OpenHarmony设备配置结构 影响范围:qemu设备arm64 virt full平台 测试:在arm64 virt full环境验证通过 Co-Authored-By: Agent <noreply@anthropic.com> Signed-off-by: handyohos <zhangxiaotian@huawei.com> Change-Id: I97f4926b133375fa3fc4c3f1acfa974b9bcd3039
5 months ago update openharmony 1.0.1
5 years ago add riscv64 config Signed-off-by: Polyos Project (韩昌刚) <polyos@iscas.ac.cn>
2 years ago fix: 修复CHANGELOG.md中的无效超链接 方案描述: 1, 修改对应链接 fix #I6Y4J7 Signed-off-by: wangchen <wangchen240@huawei.com>
3 years ago 去除目录 Signed-off-by: Goldgom <qym2005723@hotmail.com>
4 years ago
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.xz
or
Download from official website: qemu-6.2.0.tar.xz
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 -j16
Wait for the compilation to finish and execute the installation command:
make install
Finally, add the installation path to the environment variable:
vim ~/.bashrc
Add 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
How to involve
Commit message spec
Repositories Involved
Kernel subsystem
device_qemu
kernel_liteos_a
kernel_liteos_m
可用于模拟 OpenHarmony 内核在不同单板上运行,解除对物理开发板的依赖,支持 arm、cortex-m4/m55、risc-v、Xtensa、C-SKY 等多种架构,提供各架构对应的使用教程。【此简介由AI生成】
Customize your domain Report repository