* [PATCH] ref-manual/variables.rst: document the QB_DEFAULT_BIOS variable
@ 2026-08-04 9:01 Antonin Godard
2026-08-04 9:26 ` Antonin Godard
2026-08-06 9:07 ` [docs] " Quentin Schulz
0 siblings, 2 replies; 3+ messages in thread
From: Antonin Godard @ 2026-08-04 9:01 UTC (permalink / raw)
To: docs; +Cc: Thomas Petazzoni, Antonin Godard
The QB_DEFAULT_BIOS allows setting the -bios parameter of QEMU, which
can be used to emulate U-Boot, for example.
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
documentation/ref-manual/variables.rst | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index e75f42afe..cfc764961 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -8084,6 +8084,18 @@ system and gives an overview of their function and contents.
replaces the ``@CLIENT@`` and ``@GATEWAY@`` place holders by the IP and
the gateway address of the QEMU guest.
+ :term:`QB_DEFAULT_BIOS`
+ the `QB_DEFAULT_BIOS` variable can be used to add the ``-bios`` option to
+ the initialization parameters of QEMU. For example, this parameter can be
+ set as follows to emulate U-Boot for the :oecore_path:`qemuarm64
+ <meta/conf/machine/qemuarm64.conf>` machine::
+
+ QB_DEFAULT_BIOS = "u-boot.bin"
+
+ The above example makes the assumption you have built the U-Boot recipe
+ and that the ``u-boot.bin`` file is located in the
+ :term:`DEPLOY_DIR_IMAGE` directory.
+
:term:`QB_DEFAULT_FSTYPE`
The :term:`QB_DEFAULT_FSTYPE` variable controls the default filesystem
---
base-commit: 41dae3c3da3ada1745fc60228ff6269c64ee2361
change-id: 20260804-qb-default-bios-7c12e88f0db2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ref-manual/variables.rst: document the QB_DEFAULT_BIOS variable
2026-08-04 9:01 [PATCH] ref-manual/variables.rst: document the QB_DEFAULT_BIOS variable Antonin Godard
@ 2026-08-04 9:26 ` Antonin Godard
2026-08-06 9:07 ` [docs] " Quentin Schulz
1 sibling, 0 replies; 3+ messages in thread
From: Antonin Godard @ 2026-08-04 9:26 UTC (permalink / raw)
To: docs; +Cc: Thomas Petazzoni, Antonin Godard
On Tue Aug 4, 2026 at 11:01 AM CEST, Antonin Godard wrote:
> The QB_DEFAULT_BIOS allows setting the -bios parameter of QEMU, which
> can be used to emulate U-Boot, for example.
>
> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
> ---
> documentation/ref-manual/variables.rst | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
> index e75f42afe..cfc764961 100644
> --- a/documentation/ref-manual/variables.rst
> +++ b/documentation/ref-manual/variables.rst
> @@ -8084,6 +8084,18 @@ system and gives an overview of their function and contents.
> replaces the ``@CLIENT@`` and ``@GATEWAY@`` place holders by the IP and
> the gateway address of the QEMU guest.
>
> + :term:`QB_DEFAULT_BIOS`
> + the `QB_DEFAULT_BIOS` variable can be used to add the ``-bios`` option to
Just realized I messed up the formatting here, should be "The
:term:`QB_DEFAULT_BIOS`".
Antonin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [docs] [PATCH] ref-manual/variables.rst: document the QB_DEFAULT_BIOS variable
2026-08-04 9:01 [PATCH] ref-manual/variables.rst: document the QB_DEFAULT_BIOS variable Antonin Godard
2026-08-04 9:26 ` Antonin Godard
@ 2026-08-06 9:07 ` Quentin Schulz
1 sibling, 0 replies; 3+ messages in thread
From: Quentin Schulz @ 2026-08-06 9:07 UTC (permalink / raw)
To: antonin.godard, docs; +Cc: Thomas Petazzoni
Hi Antonin,
On 8/4/26 11:01 AM, Antonin Godard via lists.yoctoproject.org wrote:
> The QB_DEFAULT_BIOS allows setting the -bios parameter of QEMU, which
> can be used to emulate U-Boot, for example.
>
> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
> ---
> documentation/ref-manual/variables.rst | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
> index e75f42afe..cfc764961 100644
> --- a/documentation/ref-manual/variables.rst
> +++ b/documentation/ref-manual/variables.rst
> @@ -8084,6 +8084,18 @@ system and gives an overview of their function and contents.
> replaces the ``@CLIENT@`` and ``@GATEWAY@`` place holders by the IP and
> the gateway address of the QEMU guest.
>
> + :term:`QB_DEFAULT_BIOS`
> + the `QB_DEFAULT_BIOS` variable can be used to add the ``-bios`` option to
> + the initialization parameters of QEMU. For example, this parameter can be
No. It is the path of the file relative to DEPLOY_DIR_IMAGE that is then
passed to QEMU via the -bios option. The wording here seems to imply
that setting this variable passes -bios as a parameter to QEMU and
that's it.
Also this only applies if BIOS is not set otherwise it takes precedence
and this variable isn't actually used. We probably take this opportunity
to document this variable as it'll achieve the same goal as
QB_DEFAULT_BIOS, just that it takes precedence over it and that it'll
expect a path differently formatted than QB_DFAULT_BIOS which expects it
to be in DEPLOY_DIR_IMAGE (unclear if BIOS can be a relative path (and
relative to which directory) or if it needs to be absolute (which is
disastrous for reusability across machines).
I\m traveling currently so cannot check, but is there a link to the QEMU
docs to explain what this -bios argument should be set to by any chance?
If there is one, it'd be nice to add a link to it here.
> + set as follows to emulate U-Boot for the :oecore_path:`qemuarm64
> + <meta/conf/machine/qemuarm64.conf>` machine::
> +
> + QB_DEFAULT_BIOS = "u-boot.bin"
> +
> + The above example makes the assumption you have built the U-Boot recipe
> + and that the ``u-boot.bin`` file is located in the
s/is located in the/deployed to the root directory at/ ?
Cheers,
Quentin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-08-06 12:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-04 9:01 [PATCH] ref-manual/variables.rst: document the QB_DEFAULT_BIOS variable Antonin Godard
2026-08-04 9:26 ` Antonin Godard
2026-08-06 9:07 ` [docs] " Quentin Schulz
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.