Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some ROM regions are overlapping #372

Open
ddwolf opened this issue Sep 3, 2024 · 3 comments
Open

Some ROM regions are overlapping #372

ddwolf opened this issue Sep 3, 2024 · 3 comments

Comments

@ddwolf
Copy link

ddwolf commented Sep 3, 2024

here is the error log using master.c4940a9 branch, after revert the opensbi code to v1.2, the error disappeared

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):
fw_jump.elf ELF program header segment 1 (addresses 0x0000000000000000 - 0x0000000000023940)
mrom.reset (addresses 0x0000000000001000 - 0x0000000000001028)
@SiFiveHolland
Copy link
Contributor

Two possible fixes:

  1. Use -bios fw_dynamic.bin instead of -bios fw_dynamic.elf.
  2. Build OpenSBI with FW_TEXT_START=0x80000000 (or apply this QEMU patch and choose any valid DRAM address).

@alistair23
Copy link
Collaborator

Can you include the QEMU command line you are using?

@ddwolf
Copy link
Author

ddwolf commented Sep 4, 2024

Can you include the QEMU command line you are using?

qemu-system-riscv64 -m 2G -smp 16 -nographic -machine xxx-machine -bios none -drive if=...img -drive file=... -device pcie-root-port,port=0x10,chassis=1,id=root_port1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants