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