blob: d147c479152318e77303d9f54ca258eb34b246f0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
kernel: 0.940
performance: 0.929
device: 0.928
graphic: 0.886
architecture: 0.874
user-level: 0.859
risc-v: 0.858
boot: 0.844
peripherals: 0.839
files: 0.784
PID: 0.758
permissions: 0.731
semantic: 0.694
hypervisor: 0.648
network: 0.614
virtual: 0.502
arm: 0.473
debug: 0.463
mistranslation: 0.417
assembly: 0.398
register: 0.346
socket: 0.329
VMM: 0.291
x86: 0.282
vnc: 0.235
TCG: 0.216
ppc: 0.212
i386: 0.203
KVM: 0.106
Problems with building riscv Linux using qemu on wsl2
Description of problem:
execute:
`qemu-system-riscv64 -M virt -m 256M -nographic -kernel /home/ysc/test/linux-6.1.46/arch/riscv/boot/Image -drive file=rootfs.img,format=raw,id=hd0 -device virtio-blk-device,drive=hd0 -append "root=/dev/vda rw console=ttyS0"`
**appear:**
OpenSBI
/ \_\_ \\ / **_| \_ \_ | | | | | \_\_ \__\_ \_ \_\_ | (_**\_ | |_) || | | | | | '\_ \\ / \_ \\ '\_ \\ \__\_ | \_ \< | | | |\*\*| | |_) | \_\_/ | | |) | |) || | \_\_**/| .**/ \_\*\*|_| |_|**_/|\___\_/_**| | | |\_|
Platform Name : riscv-virtio,qemu
Platform Features : medeleg Platform HART Count : 1
Platform IPI Device : aclint-mswi
Platform Timer Device : aclint-mtimer @ 10000000Hz
Platform Console Device : uart8250 Platform HSM Device : ---
Platform Reboot Device : sifive_test Platform Shutdown Device : sifive_test
Firmware Base : 0x80000000
Firmware Size : 252 KB
Runtime SBI Version : 0.3
Domain0 Name : root
Domain0 Boot HART : 0
Domain0 HARTs : 0\*
Domain0 Region00 : 0x0000000002000000-0x000000000200ffff (I)
Domain0 Region01 : 0x0000000080000000-0x000000008003ffff ()
Domain0 Region02 : 0x0000000000000000-0xffffffffffffffff (R,W,X)
Domain0 Next Address : 0x0000000080200000 Domain0 Next Arg1 : 0x000000008f000000
Domain0 Next Mode : S-mode Domain0 SysReset : yes
Boot HART ID : 0
Boot HART Domain : root
Boot HART ISA : rv64imafdcsuh
Boot HART Features : scounteren,mcounteren,time
Boot HART PMP Count : 16
Boot HART PMP Granularity : 4
Boot HART PMP Address Bits: 54
Boot HART MHPM Count : 0
Boot HART MIDELEG : 0x0000000000001666
Boot HART MEDELEG : 0x0000000000f0b509
When I run qemu, it's stuck here
Steps to reproduce:
1. Build the kernel file using Linux-6.1.46
2. Use busbox to build rootfs
3. run qemu
|