All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] board/qemu/aarch64-virt/linux.config: Support QEMU Virt UEFI Boot
@ 2021-09-14 11:31 Takumi Takahashi
  2021-09-22 21:02 ` Arnout Vandecappelle
  0 siblings, 1 reply; 2+ messages in thread
From: Takumi Takahashi @ 2021-09-14 11:31 UTC (permalink / raw)
  To: buildroot; +Cc: Gerome Burlats, Romain Naour, Takumi Takahashi

QEMU Virt machine type requires ACPI support.

Example:

```
qemu-system-aarch64 \
  -nographic \
  -M virt \
  -cpu cortex-a57 \
  -m 512 \
  -bios QEMU_EFI.fd \
  -kernel Image
```

Signed-off-by: Takumi Takahashi <takumiiinn@gmail.com>
---
 board/qemu/aarch64-virt/linux.config | 1 +
 1 file changed, 1 insertion(+)

diff --git a/board/qemu/aarch64-virt/linux.config b/board/qemu/aarch64-virt/linux.config
index e3a4a92913..20e8367fc6 100644
--- a/board/qemu/aarch64-virt/linux.config
+++ b/board/qemu/aarch64-virt/linux.config
@@ -14,6 +14,7 @@ CONFIG_ARCH_VEXPRESS=y
 CONFIG_COMPAT=y
 CONFIG_FW_CFG_SYSFS=y
 CONFIG_FW_CFG_SYSFS_CMDLINE=y
+CONFIG_ACPI=y
 CONFIG_MODULES=y
 CONFIG_MODULE_UNLOAD=y
 CONFIG_BLK_DEV_BSGLIB=y
-- 
2.33.0

_______________________________________________
buildroot mailing list
buildroot@lists.buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] board/qemu/aarch64-virt/linux.config: Support QEMU Virt UEFI Boot
  2021-09-14 11:31 [Buildroot] [PATCH 1/1] board/qemu/aarch64-virt/linux.config: Support QEMU Virt UEFI Boot Takumi Takahashi
@ 2021-09-22 21:02 ` Arnout Vandecappelle
  0 siblings, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2021-09-22 21:02 UTC (permalink / raw)
  To: Takumi Takahashi, buildroot; +Cc: Gerome Burlats, Romain Naour



On 14/09/2021 13:31, Takumi Takahashi wrote:
> QEMU Virt machine type requires ACPI support.
> 
> Example:
> 
> ```
> qemu-system-aarch64 \
>    -nographic \
>    -M virt \
>    -cpu cortex-a57 \
>    -m 512 \
>    -bios QEMU_EFI.fd \

  I wanted to apply and update board/qemu/aarch64-virt/readme.txt with this EFI 
option. However, when I run with it, it reports "Could not find ROM image 
'QEMU_EFI.fd'".

  I've tried with edk2-aarch64-code.fd instead, and that indeed worked and gave 
a few ACPI variables. However, the kernel booted just as well without 
CONFIG_ACPI (but then of course can't access the ACPI variables).

  So now I'm not sure what the point is really of this patch. I'm not against it 
per se - but I'd like to understand the reasoning.

  Therefore, could you resubmit this patch with:

- and update to readme.txt that explains how to boot with EFI;

- an explanation why CONFIG_ACPI is needed.

The latter can be as simple as: "It is possible to run QEMU with UEFI boot, 
which exposes ACPI variables. To be able to access them from Linux, CONFIG_ACPI 
must be set." - in the end, we *do* want a kernel config that exposes all 
features that qemu has to offer.

  Regards,
  Arnout


>    -kernel Image
> ```
> 
> Signed-off-by: Takumi Takahashi <takumiiinn@gmail.com>
> ---
>   board/qemu/aarch64-virt/linux.config | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/board/qemu/aarch64-virt/linux.config b/board/qemu/aarch64-virt/linux.config
> index e3a4a92913..20e8367fc6 100644
> --- a/board/qemu/aarch64-virt/linux.config
> +++ b/board/qemu/aarch64-virt/linux.config
> @@ -14,6 +14,7 @@ CONFIG_ARCH_VEXPRESS=y
>   CONFIG_COMPAT=y
>   CONFIG_FW_CFG_SYSFS=y
>   CONFIG_FW_CFG_SYSFS_CMDLINE=y
> +CONFIG_ACPI=y
>   CONFIG_MODULES=y
>   CONFIG_MODULE_UNLOAD=y
>   CONFIG_BLK_DEV_BSGLIB=y
> 
_______________________________________________
buildroot mailing list
buildroot@lists.buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-22 21:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-14 11:31 [Buildroot] [PATCH 1/1] board/qemu/aarch64-virt/linux.config: Support QEMU Virt UEFI Boot Takumi Takahashi
2021-09-22 21:02 ` Arnout Vandecappelle

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.