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

Make qemu doesn't work #37

Open
Ye-Jinhong opened this issue Jan 3, 2025 · 4 comments
Open

Make qemu doesn't work #37

Ye-Jinhong opened this issue Jan 3, 2025 · 4 comments

Comments

@Ye-Jinhong
Copy link

I tried using spike to boot linux, and it passed. However, when I use qemu, it doesn't work.
Command: make qemu
Log:

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):
  /home/ye/Project/riscv-spike-sdk/build/opensbi/platform/generic/firmware/fw_jump.elf ELF program header segment 1 (addresses 0x0000000000000000 - 0x00000000000271e0)
  mrom.reset (addresses 0x0000000000001000 - 0x0000000000001028)
make: *** [Makefile:226: qemu] Error 1

I am not familiar with this, thank you.

@Phantom1003
Copy link
Member

I cannot reproduce your error from the master branch. I guess the problem is caused by your customized configurations in QEMU.

@Ye-Jinhong
Copy link
Author

@Phantom1003 I tried again, maybe we have difference in BL configuration. I use opensbi, and will case this error.

@Phantom1003
Copy link
Member

Ops, it did. I will look at this. Right now, you can remove the -bios option in the Makefile to use qemu builtin opensbi, this should work.

@Phantom1003
Copy link
Member

This problem should be fixed, clean the old opensbi before trying. (4e7c01f)

Related opensbi commit: riscv-software-src/opensbi@d4d2582

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

2 participants