summary refs log tree commit diff stats
path: root/gitlab/issues/target_riscv/host_missing/accel_missing/1320.toml
blob: 0588376d40b87acf7d71f00fb30c0bc4163f108c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
id = 1320
title = "qemu-system-riscv64: Unable to load the RISC-V firmware \"opensbi-riscv64-virt-fw_jump.bin\""
state = "closed"
created_at = "2022-11-18T02:50:37.789Z"
closed_at = "2023-01-23T01:32:58.759Z"
labels = ["target: riscv"]
url = "https://gitlab.com/qemu-project/qemu/-/issues/1320"
host-os = "Ubuntu20.04"
host-arch = "x86_64"
qemu-version = "QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.23)"
guest-os = "ubuntu-focal"
guest-arch = "riscv64"
description = """qemu-system-riscv64: Unable to load the RISC-V firmware "opensbi-riscv64-virt-fw_jump.bin""""
reproduce = """1. wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.79.tar.xz
2. sudo apt-get install crossbuild-essential-riscv64
3. make ARCH=riscv defconfig && make ARCH=riscv menuconfig 
4. make -j4 ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- 
5. trucate -s 128G rootfs.img && mkfs.ext4 rootfs.img
6. sudo mount -o loop ./rootfs.img /mnt
7. debootstrap --arch=riscv64 focal /mnt
8. qemu-system-riscv64 -machine virt -bios default -m 512M -kernel ./linux-5.15.79/arch/riscv/boot/Image -drive file=./rootfs.img,format=raw"""
additional = "n/a"