From 73b1fbc777a85b7e9e960b0076e6cd52c4e3bdbd Mon Sep 17 00:00:00 2001
From: anonymix007 <48598263+anonymix007@users.noreply.github.com>
Date: Tue, 22 Oct 2024 15:07:15 +0300
Subject: [PATCH] man: Document stub behaviour for .hwids and .dtbauto sections
---
man/systemd-stub.xml | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/man/systemd-stub.xml b/man/systemd-stub.xml
index 439d999c64c..6625fca91ef 100644
--- a/man/systemd-stub.xml
+++ b/man/systemd-stub.xml
@@ -79,6 +79,20 @@
A .dtb section with a compiled binary DeviceTree.
+ Zero or more .dtbauto sections. Stub will always try to find first matching one.
+ Matching process extracts first compatible string from .dtbauto
+ section and compares it with the first Devicetree's compatible string supplied by
+ the firmware in configuration tables. If firmware does not provide Devicetree, matching with
+ .hwids section will be used instead. Stub will use SMBIOS data to calculate hardware
+ IDs of the machine (as per specification),
+ then it will proceed to trying to find any of them in .hwids section and will use first
+ matching entry's compatible as a search key among the .dtbauto
+ entries, in a similar fashion as the use of compatible string read from the firmware
+ provided Devicetree was described before. First matching .dtbauto section will be
+ loaded and will override .dtb if present.
+
+ A .hwids section with hardware IDs of the machines to match Devicetrees (refer to .dtbauto section description).
+
A .uname section with the kernel version information, i.e. the
output of uname -r for the kernel included in the .linux
section.
--
2.47.3