oscomp / testsuits-for-oskernel

98 stars 30 forks source link

Can not "make run" in Linux rootfs for RISC-V repo #11

Open izzyyau opened 2 years ago

izzyyau commented 2 years ago

I want to create a Linux roofts for RISC-V repo. But there is an error when I run sudo qemu-system-riscv64 -nographic -machine virt \ -kernel bbl -append "root=/dev/vda ro console=ttyS0" \ -drive file=riscv64-rootfs.bin,format=raw,id=hd0 \ -device virtio-blk-device,drive=hd0 \ -netdev type=tap,script=scripts/ifup.sh,downscript=scripts/ifdown.sh,id=net0 \ -device virtio-net-device,netdev=net0

qemu-system-riscv64: Some ROM regions are overlapping These ROM regions might have been loaded by direct user request or by default. They could be BIOS/firmware images, a guest kernel, initrd or some other file loaded into guest memory. Check whether you intended to load all this guest code, and whether it has been built to load to the correct addresses.

The following two regions overlap (in the memory address space): /usr/share/qemu/opensbi-riscv64-generic-fw_dynamic.bin (addresses 0x0000000080000000 - 0x0000000080012630) build/riscv-pk/bbl ELF program header segment 1 (addresses 0x0000000080000000 - 0x000000008000690d) make: *** [Makefile:13: run] Error 1

Is there anyone know how to fix it???