From 69076dff2284ed099cc0583e5e64bd8012d1ab5c Mon Sep 17 00:00:00 2001 From: Neil Armstrong Date: Wed, 20 Jan 2021 09:54:53 +0100 Subject: cmd: pxe: add support for FDT overlays MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This adds support for specifying FDT overlays in an extlinux/pxelinux configuration file. Without this, there is no simple way to apply overlays when the kernel and fdt is loaded by the pxe command. This change adds the 'fdtoverlays' keyword for a label, supporting multiple overlay files to be applied on top of the fdt specified in the 'fdt' or 'devicetree' keyword. Example: label linux kernel /Image fdt /soc-board.dtb fdtoverlays /soc-board-function.dtbo append console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait This code makes usage of a new variable called fdtoverlay_addr_r used to load the overlay files without overwritting anything important. Cc: Tom Rini Cc: Andre Heider Cc: Jernej Škrabec Cc: Jonas Karlman Tested-by: Jernej Škrabec Reviewed-by: Jernej Škrabec Signed-off-by: Neil Armstrong --- cmd/pxe_utils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/pxe_utils.h') diff --git a/cmd/pxe_utils.h b/cmd/pxe_utils.h index 77d25888758..6af95237343 100644 --- a/cmd/pxe_utils.h +++ b/cmd/pxe_utils.h @@ -43,6 +43,7 @@ struct pxe_label { char *initrd; char *fdt; char *fdtdir; + char *fdtoverlays; int ipappend; int attempted; int localboot; -- cgit v1.2.3