blob: c66fdf89f779dfeca6e5956137964dbf1a59f4c5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
qemu-system-riscv64: Unable to load the RISC-V firmware "opensbi-riscv64-virt-fw_jump.bin"
Description of problem:
qemu-system-riscv64: Unable to load the RISC-V firmware "opensbi-riscv64-virt-fw_jump.bin"
Steps to 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
|