Skip to content

Commit c1cea13

Browse files
authored
Add configuration for Linux guest VM on Orange Pi 5 Plus (#75)
* Add configuration for Linux guest VM on Orange Pi 5 Plus This commit introduces a new TOML configuration file for a Linux guest virtual machine running on the Orange Pi 5 Plus platform. The configuration includes settings for VM base info, kernel parameters, memory regions, and device specifications. Key features include: - VM identification and naming - CPU and memory configuration - Kernel image loading details - Device specifications for emulated and passthrough devices This setup aims to facilitate the deployment and management of a Linux environment on the specified hardware. * refactor: improve code formatting for readability in multiple files
1 parent 4a57fe0 commit c1cea13

6 files changed

Lines changed: 13530 additions & 26 deletions

File tree

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Vm base info configs
2+
#
3+
[base]
4+
# Guest vm id.
5+
id = 1
6+
# Guest vm name.
7+
name = "arceos"
8+
# Virtualization type.
9+
vm_type = 1
10+
# The number of virtual CPUs.
11+
cpu_num = 1
12+
# The physical CPU ids.
13+
phys_cpu_ids = [0x200]
14+
15+
#
16+
# Vm kernel configs
17+
#
18+
[kernel]
19+
# The entry point of the kernel image.
20+
entry_point = 0x4008_0000
21+
# The location of image: "memory" | "fs".
22+
# Load from memory.
23+
image_location = "memory"
24+
# The load address of the kernel image.
25+
kernel_load_addr = 0x4008_0000
26+
## The file path of the kernel image.
27+
kernel_path = "../images/orangepi_arceos/orangepi-5-plus"
28+
## The file path of the device tree blob (DTB).
29+
dtb_load_addr = 0x4000_0000
30+
#dtb_path = "/path/arceos-rk3568.dtb"
31+
# Memory regions with format (`base_paddr`, `size`, `flags`, `map_type`).
32+
# For `map_type`, 0 means `MAP_ALLOC`, 1 means `MAP_IDENTICAL`.
33+
memory_regions = [
34+
[0x4000_0000, 0x4000_0000, 0x7, 1], # System RAM 1G MAP_IDENTICAL
35+
]
36+
37+
#
38+
# Device specifications
39+
#
40+
[devices]
41+
# The interrupt mode.
42+
interrupt_mode = "passthrough"
43+
# Emu_devices.
44+
# Name Base-Ipa Ipa_len Alloc-Irq Emu-Type EmuConfig.
45+
emu_devices = []
46+
47+
# Pass-through devices.
48+
# Name Base-Ipa Base-Pa Length Alloc-Irq.
49+
passthrough_devices = [
50+
["/"],
51+
#["/timer"],
52+
]
53+
54+
# Passthrough addresses.
55+
# Base-GPA Length.
56+
passthrough_addresses = [
57+
#[0x28041000, 0x100_0000]
58+
]
59+
60+
# Devices that are not desired to be passed through to the guest
61+
excluded_devices = [
62+
# ["/gic-v3"],
63+
]

0 commit comments

Comments
 (0)