• Home
Name Date Size #Lines LOC

..--

qemu_ca7_mini_system_demo/12-May-2024-270233

qemu_mini_system_demo/12-May-2024-562452

qemu_riscv32_mini_system_demo/12-May-2024-528420

qemu_small_system_demo/12-May-2024-1,6841,378

LICENSED12-May-202411.3 KiB202169

OAT.xmlD12-May-20245.3 KiB7930

README.mdD12-May-20242.3 KiB7752

README_zh.mdD12-May-20242.3 KiB7851

bundle.jsonD12-May-20241.2 KiB5555

README.md

1# vendor_ohos
2
3## Introduction
4
5The repository is mainly developed by OpenHarmony community, rather than the
6typical certain manufacturer, mainly including the development of QEMU products
7with characteristics such as graphics, soft bus, etc.
8
9## Software Architecture
10
11Graphic display product samples of virt platform supporting QEMU's ARMv7-a
12architecture, samples of virt platform supporting RISC-V architecture, and
13samples of Cortex-M4 architecture.
14
15code path:
16
17```
18device/qemu/                          --- device_qemu repository path
19├── arm_mps2_an386                    --- Cortex-M4 architecture MPS2-AN386 platform
20├── arm_virt                          --- ARMv7-a architecture virt platform
21├── drivers                           --- virt drivers
22└── riscv32_virt                      --- RISC-V architecture virt platform
23vendor/ohos/                          --- vendor_ohos repository path
24├── qemu_small_system_demo            --- small system default demo
25├── qemu_mini_system_demo             --- mini system default demo
26└── qemu_riscv_mini_system_demo       --- mini system demo with riscv architecture
27```
28
29## Installation
30
31[QEMU Install Guide](https://gitee.com/openharmony/device_qemu/blob/HEAD/README.md)
32
33## Usage
34
351. run command `hb set` to select the product target
36```
37ohos
38 > qemu_small_system_demo
39   qemu_mini_system_demo
40```
41
42`qemu_small_system_demo` indicates small system product demo, it contains
43system components, such as graphic, foundation, etc.
44
45`qemu_mini_system_demo` indicates mini system product demo, it contains
46system components, such as samgr, hilog, etc.
47
482. run command `hb build` to start building。
49
503. To run the image with qemu. In details,
51
523.1 `qemu_small_system_demo` target,
53
54```
55./qemu-init
56./qemu-run
57```
58
59use `vnc-client` to connect the host's 5920 port.
60
613.2 `qemu_mini_system_demo` target,
62
63```
64cd device/qemu/arm_mps2_an386
65./qemu_run.sh ../../../out/arm_mps2_an386/bin/liteos
66```
67## Contribution
68
69[How to involve](https://gitee.com/openharmony/docs/blob/HEAD/en/contribute/contribution.md)
70
71[Commit message spec](https://gitee.com/openharmony/device_qemu/wikis/Commit%20message%E8%A7%84%E8%8C%83?sort_id=4042860)
72
73## Repositories Involved
74
75[device\_qemu](https://gitee.com/openharmony/device_qemu/blob/HEAD/README.md)
76
77

README_zh.md

1# vendor_ohos
2
3## 介绍
4
5该仓库托管OpenHarmony社区开发的,而非某个厂商单独开发的典型产品样例代码,主要
6包括类似QEMU(Quick Emulator)的图形、软总线等特性产品的开发。
7
8## 软件架构
9
10支持QEMU的ARMv7-a架构的virt平台的图形显示产品样例,支持RISC-V架构的virt平台的
11样例,以及Cortex-M4架构的样例。
12
13代码路径:
14
15```
16device/qemu/                          --- device_qemu 仓库路径
17├── arm_mps2_an386                    --- Cortex-M4 架构的 MPS2-AN386 单板模拟
18├── arm_virt                          --- ARMv7-a 架构的 virt 单板模拟
19├── drivers                           --- virt驱动目录
20└── riscv32_virt                      --- RISC-V 架构的 virt 单板模拟
21vendor/ohos/                          --- vendor_ohos 仓库路径
22├── qemu_small_system_demo            --- 小型系统的样例
23├── qemu_mini_system_demo             --- 微型系统的样例
24└── qemu_riscv_mini_system_demo       --- 微型系统的 RISC-V 架构的样例
25```
26
27## 安装教程
28
29[QEMU的安装参考链接](https://gitee.com/openharmony/device_qemu#qemu%E5%AE%89%E8%A3%85)
30
31## 使用说明
32
331. 运行`hb set`命令选择对应的产品样例。
34```
35ohos
36 > qemu_small_system_demo
37   qemu_mini_system_demo
38```
39
40其中,
41
42`qemu_small_system_demo`表示小型系统的样例,它会集成OpenHarmony上层组件,例如:
43graphic、foundation等。
44
45`qemu_mini_system_demo`表示微型系统的样例,它会集成OpenHarmony上层组件,例如:
46samgr、hilog等。
47
482. 运行`hb build`进行编译。
49
503. 将编译出的镜像基于qemu来运行,方法如下:
51
523.1 `qemu_small_system_demo`的运行方法是
53
54```
55./qemu-init
56./qemu-run
57```
58
59再用`vnc-client`连接该主机的5920端口
60
613.2 `qemu_mini_system_demo`的运行方法是
62
63```
64cd device/qemu/arm_mps2_an386
65./qemu_run.sh ../../../out/arm_mps2_an386/bin/liteos
66```
67
68## 贡献
69
70[如何参与](https://gitee.com/openharmony/docs/blob/HEAD/zh-cn/contribute/%E5%8F%82%E4%B8%8E%E8%B4%A1%E7%8C%AE.md)
71
72[Commit message规范](https://gitee.com/openharmony/device_qemu/wikis/Commit%20message%E8%A7%84%E8%8C%83?sort_id=4042860)
73
74## 相关仓
75
76[device\_qemu](https://gitee.com/openharmony/device_qemu/blob/HEAD/README_zh.md)
77
78