summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/105/graphic/2145
blob: 430d1f4ed84bf3557f063d084dfee6e0597935fb (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
graphic: 0.633
instruction: 0.547
semantic: 0.506
device: 0.442
mistranslation: 0.369
vnc: 0.360
network: 0.296
KVM: 0.282
other: 0.274
socket: 0.264
boot: 0.260
assembly: 0.241

Issue with Graphical Interface on RISC-V Emulation in QEMU
Description of problem:
I am facing an issue when attempting to run Ubuntu on RISC-V architecture in QEMU with a graphical interface. Specifically, when executing the following command without the -nographic option, the operating system fails to start:

```bash
qemu-system-riscv64 -machine virt -m 2048 -smp 4 -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.bin -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf -drive file=ubuntu-22.04.3-preinstalled-server-riscv64+unmatched.img,format=raw,if=virtio
```

I have not found any examples online where QEMU is used with RISC-V architecture without the -nographic option, which raises uncertainty about the feasibility of running it with a graphical interface.

Interestingly, when I run a similar command for x86_64 architecture, the operating system starts successfully with a graphical interface:

```bash
qemu-system-x86_64 -enable-kvm -m 2G -drive file=ubuntu-22.04.3-desktop-amd64.iso,format=raw -boot c -cpu host -vga std -device virtio-net-pci -device virtio-rng-pci
```
Steps to reproduce:
Execute QEMU with RISC-V architecture without the -nographic option.

```bash
qemu-system-riscv64 -machine virt -m 2048 -smp 4 -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.bin -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf -drive file=ubuntu-22.04.3-preinstalled-server-riscv64+unmatched.img,format=raw,if=virtio
```

(The above command fails to start with a graphical interface)

Execute QEMU with RISC-V architecture and the -nographic option.

```bash
qemu-system-riscv64 -machine virt -nographic -m 2048 -smp 4 -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.bin -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf -drive file=ubuntu-22.04.3-preinstalled-server-riscv64+unmatched.img,format=raw,if=virtio
```
(The above command works, but without a graphical interface)

Execute QEMU with x86_64 architecture.

```bash
qemu-system-x86_64 -enable-kvm -m 2G -drive file=ubuntu-22.04.3-desktop-amd64.iso,format=raw -boot c -cpu host -vga std -device virtio-net-pci -device virtio-rng-pci
```
(The above command works and starts with a graphical interface)