Skip to content

Commit d447840

Browse files
committed
update e2000 config file
1 parent fdfd7f2 commit d447840

File tree

5 files changed

+38
-36
lines changed

5 files changed

+38
-36
lines changed

configs/vms/arceos-aarch64-e2000_smp1.toml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ image_location = "memory"
2626
# The load address of the kernel image.
2727
kernel_load_addr = 0x20_2008_0000
2828
## The file path of the kernel image.
29-
kernel_path = "/guest/arceos-aarch64-e2000_smp1.bin"
29+
kernel_path = "/path/to/arceos_aarch64-dyn_smp1.bin"
3030
## The file path of the device tree blob (DTB).
3131
dtb_load_addr = 0x20_2000_0000
32-
dtb_path = "/guest/arceos-aarch64-e2000_smp1.dtb"
32+
dtb_path = "/path/to/axvisor/configs/vms/arceos-aarch64-e2000_smp1.dtb"
3333
# Memory regions with format (`base_paddr`, `size`, `flags`, `map_type`).
3434
# For `map_type`, 0 means `MAP_ALLOC`, 1 means `MAP_IDENTICAL`.
3535
memory_regions = [
36-
#[0x20_2000_0000, 0x2000_0000, 0x7, 1], # System RAM MAP_IDENTICAL
36+
[0x20_2000_0000, 0x2000_0000, 0x7, 1], # System RAM MAP_IDENTICAL
3737
]
3838

3939
#
@@ -47,25 +47,25 @@ emu_devices = []
4747
# Pass-through devices.
4848
# Name Base-Ipa Base-Pa Length Alloc-Irq.
4949
passthrough_devices = [
50-
[
51-
"UART1",
52-
0x2800_d000,
53-
0x2800_d000,
54-
0x1000,
55-
0x1,
56-
],
57-
[
58-
"gic-v3",
59-
0x3080_0000,
60-
0x3080_0000,
61-
0x10000,
62-
0x1,
63-
],
64-
[
65-
"gic-v3-its",
66-
0x3082_0000,
67-
0x3082_0000,
68-
0x100000,
69-
0x1,
70-
],
50+
[
51+
"UART1",
52+
0x2800_d000,
53+
0x2800_d000,
54+
0x1000,
55+
0x1,
56+
],
57+
[
58+
"gic-v3",
59+
0x3080_0000,
60+
0x3080_0000,
61+
0x10000,
62+
0x1,
63+
],
64+
[
65+
"gic-v3-its",
66+
0x3082_0000,
67+
0x3082_0000,
68+
0x100000,
69+
0x1,
70+
],
7171
]

configs/vms/arceos-aarch64-e2000_smp2.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ image_location = "memory"
2626
# The load address of the kernel image.
2727
kernel_load_addr = 0x20_2008_0000
2828
## The file path of the kernel image.
29-
kernel_path = "/guest/arceos-aarch64-e2000_smp2.bin"
29+
kernel_path = "/path/to/arceos_aarch64-dyn_smp1.bin"
3030
## The file path of the device tree blob (DTB).
3131
dtb_load_addr = 0x20_2000_0000
32-
dtb_path = "/guest/arceos-aarch64-e2000_smp2.dtb"
32+
dtb_path = "/path/to/axvisor/configs/vms/arceos-aarch64-e2000_smp2.dtb"
3333
# Memory regions with format (`base_paddr`, `size`, `flags`, `map_type`).
3434
# For `map_type`, 0 means `MAP_ALLOC`, 1 means `MAP_IDENTICAL`.
3535
memory_regions = [
36-
#[0x20_2000_0000, 0x2000_0000, 0x7, 1], # System RAM MAP_IDENTICAL
36+
[0x20_2000_0000, 0x2000_0000, 0x7, 1], # System RAM MAP_IDENTICAL
3737
]
3838

3939
#

configs/vms/linux-aarch64-e2000_smp1.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ phys_cpu_sets = [8]
2222
entry_point = 0x20_4008_0000
2323
# The location of image: "memory" | "fs".
2424
# Load from file system.
25-
image_location = "fs"
25+
image_location = "memory"
2626
# The load address of the kernel image.
2727
kernel_load_addr = 0x20_4008_0000
2828
## The file path of the kernel image.
29-
kernel_path = "/guest/Image"
29+
kernel_path = "/path/to/Image"
3030
## The file path of the device tree blob (DTB).
3131
dtb_load_addr = 0x20_4000_0000
32-
dtb_path = "/guest/linux-aarch64-e2000_smp1.dtb"
32+
dtb_path = "/path/to/axvisor/configs/vms/linux-aarch64-e2000_smp1.dtb"
3333
# Memory regions with format (`base_paddr`, `size`, `flags`, `map_type`).
3434
# For `map_type`, 0 means `MAP_ALLOC`, 1 means `MAP_IDENTICAL`.
3535
memory_regions = [
36-
# [0x20_4000_0000, 0x4000_0000, 0x7, 1], # System RAM MAP_IDENTICAL
36+
[0x20_4000_0000, 0x4000_0000, 0x7, 1], # System RAM MAP_IDENTICAL
3737
]
3838

3939
#
@@ -42,6 +42,7 @@ memory_regions = [
4242
[devices]
4343
# Emu_devices.
4444
# Name Base-Ipa Ipa_len Alloc-Irq Emu-Type EmuConfig.
45+
interrupt_mode = "passthrough"
4546
emu_devices = []
4647

4748
# Pass-through devices.

configs/vms/linux-aarch64-e2000_smp2.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ phys_cpu_sets = [1, 4]
2222
entry_point = 0x20_4008_0000
2323
# The location of image: "memory" | "fs".
2424
# Load from file system.
25-
image_location = "fs"
25+
image_location = "memory"
2626
# The load address of the kernel image.
2727
kernel_load_addr = 0x20_4008_0000
2828
## The file path of the kernel image.
29-
kernel_path = "/guest/Image"
29+
kernel_path = "/path/to/Image"
3030
## The file path of the device tree blob (DTB).
3131
dtb_load_addr = 0x20_4000_0000
32-
dtb_path = "/guest/linux-aarch64-e2000_smp2.dtb"
32+
dtb_path = "/path/to/axvisor/configs/vms/linux-aarch64-e2000_smp2.dtb"
3333
# Memory regions with format (`base_paddr`, `size`, `flags`, `map_type`).
3434
# For `map_type`, 0 means `MAP_ALLOC`, 1 means `MAP_IDENTICAL`.
3535
memory_regions = [
36-
# [0x20_4000_0000, 0x4000_0000, 0x7, 1], # System RAM MAP_IDENTICAL
36+
[0x20_4000_0000, 0x4000_0000, 0x7, 1], # System RAM MAP_IDENTICAL
3737
# [0xa000_0000, 0x2000_0000, 0x7, 1], # System RAM 1G MAP_IDENTICAL
3838
]
3939

@@ -43,6 +43,7 @@ memory_regions = [
4343
[devices]
4444
# Emu_devices.
4545
# Name Base-Ipa Ipa_len Alloc-Irq Emu-Type EmuConfig.
46+
interrupt_mode = "passthrough"
4647
emu_devices = []
4748

4849
# Pass-through devices.

scripts/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def get_env_variables(self) -> Dict[str, str]:
234234

235235
# 处理 vmconfigs 作为环境变量
236236
if self.vmconfigs:
237-
env_vars["AXVISOR_VM_CONFIGS"] = ",".join(self.vmconfigs)
237+
env_vars["AXVISOR_VM_CONFIGS"] = ":".join(self.vmconfigs)
238238

239239
return env_vars
240240

0 commit comments

Comments
 (0)