<feed xmlns='http://www.w3.org/2005/Atom'>
<title>opensbi.git/docs/platform/qemu_virt.md, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/opensbi.git/atom/docs/platform/qemu_virt.md?h=master</id>
<link rel='self' href='http://cgit.235523.xyz/opensbi.git/atom/docs/platform/qemu_virt.md?h=master'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/'/>
<updated>2026-05-11T04:56:36Z</updated>
<entry>
<title>docs: platform: update qemu_virt.md</title>
<updated>2026-05-11T04:56:36Z</updated>
<author>
<name>Zhang RunMin</name>
<email>runmin.zhang@ingenic.com</email>
</author>
<published>2026-03-19T12:56:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=3d8f1f386479219c4236b5c0fe483442c1bc7461'/>
<id>urn:sha1:3d8f1f386479219c4236b5c0fe483442c1bc7461</id>
<content type='text'>
When using GDB for debugging, if FW_TEXT_START is not set to 0x80000000
during compilation, the following error occurs:

Reading symbols from build/platform/generic/firmware/fw_payload.elf...
Remote debugging using localhost:1234
mips_warm_boot ()
    at /home/zrmin/opensbi/platform/generic/mips/mips_warm_boot.S:11
11      j       _start_warm
(gdb) b _start
Breakpoint 1 at 0x0: file /home/zrmin/opensbi/firmware/fw_base.S, line 50.
(gdb) c
Continuing.
Remote connection closed
(gdb)

With FW_TEXT_START=0x80000000, debugging works correctly:
Reading symbols from build/platform/generic/firmware/fw_payload.elf...
Remote debugging using localhost:1234
0x0000000000001000 in ?? ()
(gdb) b _start
Breakpoint 1 at 0x80000000: file /home/zrmin/opensbi/firmware/fw_base.S, line 50.
(gdb) c
Continuing.

Breakpoint 1, _start () at /home/zrmin/opensbi/firmware/fw_base.S:50
50      MOV_3R  s0, a0, s1, a1, s2, a2
(gdb)

This is because QEMU loads OpenSBI at address 0x80000000. When
FW_TEXT_START does not match this address, the debug symbols are
incorrectly offset, causing GDB to fail to set breakpoints properly.

Signed-off-by: Zhang RunMin &lt;runmin.zhang@ingenic.com&gt;
Reviewed-by: Anup Patel &lt;anup@brainfault.org&gt;
Link: https://lore.kernel.org/r/20260319125641.480161-1-runmin.zhang@ingenic.com
Signed-off-by: Anup Patel &lt;anup@brainfault.org&gt;
</content>
</entry>
<entry>
<title>docs: add example of building the Linux kernel</title>
<updated>2024-11-09T09:00:41Z</updated>
<author>
<name>Tim Hutt</name>
<email>tdhutt@gmail.com</email>
</author>
<published>2024-10-08T09:49:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=701948bdec90e2908517e260d06e0e5e5d0f4419'/>
<id>urn:sha1:701948bdec90e2908517e260d06e0e5e5d0f4419</id>
<content type='text'>
Slightly expand the QEMU docs to explain how to build the flat Linux kernel image.

Signed-off-by: Tim Hutt &lt;tdhutt@gmail.com&gt;
Reviewed-by: Samuel Holland &lt;samuel.holland@sifive.com&gt;
Reviewed-by: Anup Patel &lt;anup@brainfault.org&gt;
</content>
</entry>
<entry>
<title>docs: debugging OpenSBI</title>
<updated>2021-06-02T11:34:07Z</updated>
<author>
<name>Heinrich Schuchardt</name>
<email>xypron.glpk@gmx.de</email>
</author>
<published>2021-05-28T16:22:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=d9ba6536d307f05a838e7c96cd20b0b7e43ec886'/>
<id>urn:sha1:d9ba6536d307f05a838e7c96cd20b0b7e43ec886</id>
<content type='text'>
Describe how to debug OpenSBI on QEMU with GDB.

Signed-off-by: Heinrich Schuchardt &lt;xypron.glpk@gmx.de&gt;
Reviewed-by: Atish Patra &lt;atish.patra@wdc.com&gt;
</content>
</entry>
<entry>
<title>docs/platform: Update QEMU parameter for fw_payload</title>
<updated>2020-06-29T03:46:40Z</updated>
<author>
<name>Bin Meng</name>
<email>bin.meng@windriver.com</email>
</author>
<published>2020-06-26T01:26:02Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=35bc810252f4e45beab3b66e30ffe4502e91f22c'/>
<id>urn:sha1:35bc810252f4e45beab3b66e30ffe4502e91f22c</id>
<content type='text'>
Since QEMU v5.1, if there is no "-bios" option provided, the default
OpenSBI firmware will be loaded by QEMU as the BIOS automatically,
hence to load fw_payload type image, we should explicitly pass the
"-bios" option to QEMU.

Signed-off-by: Bin Meng &lt;bin.meng@windriver.com&gt;
Reviewed-by: Atish Patra &lt;atish.patra@wdc.com&gt;
</content>
</entry>
<entry>
<title>platform: Remove qemu/virt directory</title>
<updated>2020-05-04T04:39:23Z</updated>
<author>
<name>Anup Patel</name>
<email>anup.patel@wdc.com</email>
</author>
<published>2020-05-01T06:36:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=13717a8e53a382769e9678f6d9357c20446cde0c'/>
<id>urn:sha1:13717a8e53a382769e9678f6d9357c20446cde0c</id>
<content type='text'>
The OpenSBI generic platform works perfectly fine on the QEMU virt
machine so let's remove dedicated QEMU virt machine platform from
OpenSBI.

All QEMU virt machine related documentation in OpenSBI will now
suggest using OpenSBI generic platform.

Signed-off-by: Anup Patel &lt;anup.patel@wdc.com&gt;
Reviewed-by: Bin Meng &lt;bin.meng@windriver.com&gt;
Reviewed-by: Alistair Francis &lt;alistair.francis@wdc.com&gt;
</content>
</entry>
<entry>
<title>doc: qemu_virt: Fix doc styles</title>
<updated>2020-02-18T03:38:44Z</updated>
<author>
<name>Bin Meng</name>
<email>bmeng.cn@gmail.com</email>
</author>
<published>2020-02-16T15:19:37Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=82fd42fcce30c9f57c2f34b70ef1be34c576172b'/>
<id>urn:sha1:82fd42fcce30c9f57c2f34b70ef1be34c576172b</id>
<content type='text'>
Remove the unnecessary blank line at the end of the doc.

Signed-off-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Reviewed-by: Anup Patel &lt;anup.patel@wdc.com&gt;
</content>
</entry>
<entry>
<title>treewide: Use conventional names for 32-bit and 64-bit</title>
<updated>2019-07-25T03:44:58Z</updated>
<author>
<name>Bin Meng</name>
<email>bmeng.cn@gmail.com</email>
</author>
<published>2019-07-24T04:29:59Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=85546a5477d470ab84922b3bc28debe127a47f05'/>
<id>urn:sha1:85546a5477d470ab84922b3bc28debe127a47f05</id>
<content type='text'>
There are several places in the source tree that have:

  32bit, 32 bit, 64bit, 64 bit

Fix by using the conventional names with a hyphen.

Signed-off-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Reviewed-by: Lukas Auer &lt;lukas.auer@aisec.fraunhofer.de&gt;
Acked-by: Anup Patel &lt;anup.patel@wdc.com&gt;
</content>
</entry>
<entry>
<title>docs: qemu/virt platform documentation fixes and updates</title>
<updated>2019-04-15T03:22:59Z</updated>
<author>
<name>Karsten Merker</name>
<email>merker@debian.org</email>
</author>
<published>2019-04-14T18:47:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=743e8ae6e7b7ae5b975cef3b028baefcacff80a8'/>
<id>urn:sha1:743e8ae6e7b7ae5b975cef3b028baefcacff80a8</id>
<content type='text'>
- Correct the payload address in the RV64 examples that use
  fw_jump.elf.

- Change the qemu console configuration in the examples from
  "-display none -serial stdio" to "-nographic". This results in
  qemu handing down a CTRL-C on the emulated console to the VM
  instead of terminating the qemu process.

- Provide examples for RV32.

- Various text corrections.

Signed-off-by: Karsten Merker &lt;merker@debian.org&gt;
Reviewed-by: Alistair Francis &lt;alistair.francis@wdc.com&gt;
</content>
</entry>
<entry>
<title>platform: qemu/virt: Move kernel start address to 4MB alligned</title>
<updated>2019-02-08T03:48:46Z</updated>
<author>
<name>Alistair Francis</name>
<email>alistair.francis@wdc.com</email>
</author>
<published>2019-01-29T17:59:31Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=9f44d07df533755d061f06e09b8f0f1793a18d7d'/>
<id>urn:sha1:9f44d07df533755d061f06e09b8f0f1793a18d7d</id>
<content type='text'>
In order to support 32-bit guests move the start address to a 4MB
allignment. As 64-bit kernels have a requirement on being 2MB alligned
let's just make this the default for both 32 and 64 bit kernels.

Signed-off-by: Alistair Francis &lt;alistair.francis@wdc.com&gt;
</content>
</entry>
<entry>
<title>docs: Typo fixes</title>
<updated>2019-01-29T01:47:14Z</updated>
<author>
<name>Atish Patra</name>
<email>atish.patra@wdc.com</email>
</author>
<published>2019-01-27T07:41:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=3211b6c54204e85998e2af1f90ce75fa5c6a27e0'/>
<id>urn:sha1:3211b6c54204e85998e2af1f90ce75fa5c6a27e0</id>
<content type='text'>
Signed-off-by: Atish Patra &lt;atish.patra@wdc.com&gt;
</content>
</entry>
</feed>
