[PATCH v5] boot/bootfdt: Add smbios3-entrypoint to FDT for non-EFI boots

Tom Rini trini at konsulko.com
Thu Nov 27 16:26:46 CET 2025


On Thu, Nov 20, 2025 at 12:50:57AM -0800, Adriana Nicolae wrote:

> From: adriana <adriana at arista.com>
> 
> The Linux kernel can discover SMBIOS tables through two primary methods:
> 1. Via EFI tables, when using EFI boot;
> 2. Via the 'smbios3-entrypoint' property in the /chosen node of the
> device tree.
> 
> When U-Boot boots a Linux kernel using a non-EFI command ("bootm",
> "bootz", or "booti"), the kernel relies on the device tree to detect
> the hardware. If SMBIOS tables are available in U-Boot, they should
> be passed to the kernel via this device tree property.
> 
> This patch modifies boot_fdt_prepare(), to inject the SMBIOSv3 table
> address into the device tree if there is a table generated by U-boot.
> The "board_fdt_chosen_smbios" is weak in order to leave the possibilty
> for specific boards to select custom SMBIOS addresses.
> 
> The changes in this patch are added in the context of supporting this
> device tree property in linux kernel:
> https://lkml.org/lkml/2025/10/24/1393
> 
> Device tree schema was updated to include the "smbios3-entrypoint" node
> in pull request: https://github.com/devicetree-org/dt-schema/pull/177
> 
> Signed-off-by: Adriana Nicolae <adriana at arista.com>

A small thing I had fixed up, please reset the patch author to your full
name as well. A bigger problem is that this breaks the expected output
of fdt_test_chosen:
https://source.denx.de/u-boot/u-boot/-/jobs/1313270#L255 for example.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20251127/227897cf/attachment.sig>


More information about the U-Boot mailing list