<div dir="ltr"><div dir="ltr"><div>Hi, <br></div><div>you can use this command <br></div><div>qemu-system-x86_64 -bios build/coreboot.rom -serial stdio</div><div><br></div>This can display with serial port.<br><br></div><div>Thanks, <br><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Sep 10, 2018 at 10:04 AM Liam Naddell <<a href="mailto:liamnprg@gmail.com">liamnprg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is my first time using a mailing list btw, sorry.<br>
<br>
<br>
I was wondering how I could test the images I have built with `make <br>
riscv-crossgcc && make` using qemu.<br>
<br>
<br>
I tried running qemu-system-riscv64(the one gotten from the riscv-linux <br>
port), with the name of the image produced(coreboot.rom), and it did <br>
nothing.<br>
<br>
qemu-system-riscv64 ./build/coreboot.rom<br>
<br>
qemu-system-riscv64: Trying to execute code outside RAM or ROM at <br>
0x0000000000000000<br>
This usually means one of the following happened:<br>
(1) You told QEMU to execute a kernel for the wrong machine type, and it <br>
crashed on startup (eg trying to run a raspberry pi kernel on a <br>
versatilepb QEMU machine)<br>
(2) You didn't give QEMU a kernel or BIOS filename at all, and QEMU <br>
executed a ROM full of no-op instructions until it fell off the end<br>
(3) Your guest kernel has a bug and crashed by jumping off into nowhere<br>
This is almost always one of the first two, so check your command line <br>
and that you are using the right type of kernel for this machine.<br>
If you think option (3) is likely then you can try debugging your guest <br>
with the -d debug options; in particular -d guest_errors will cause the <br>
log to include a dump of the guest register state at this point.<br>
Execution cannot continue; stopping here.<br>
<br>
<br>
I also tried this using the -bios flag, and by using the make-spike-elf <br>
script with the -bios flag, and I still got nothing.<br>
<br>
<br>
It would be really nice if somebody could help me :).<br>
<br>
<br>
-- <br>
coreboot mailing list: <a href="mailto:coreboot@coreboot.org" target="_blank">coreboot@coreboot.org</a><br>
<a href="https://mail.coreboot.org/mailman/listinfo/coreboot" rel="noreferrer" target="_blank">https://mail.coreboot.org/mailman/listinfo/coreboot</a><br>
</blockquote></div>