oscomp / oscomp/testsuits-for-oskernel
Can not "make run" in Linux rootfs for RISC-V repo
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 159
- Forks
- 60
- PR merge metrics
- No merged PRs in 30d
Description
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???
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the run target at Makefile:13 and reproduce the command shown in the issue. Compare the load ranges for build/riscv-pk/bbl and /usr/share/qemu/opensbi-riscv64-generic-fw_dynamic.bin, then verify the selected boot configuration no longer reports overlapping ROM regions. Done means the Linux rootfs starts through the make run target without this QEMU error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100