From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 8 Jan 2021 08:43:50 -0500 Subject: [PATCH v2] cmd: pxe: add support for FDT overlays In-Reply-To: <0bb8051a-3fb3-e48b-4b6c-62329ebabd75@baylibre.com> References: <20210104143343.16037-1-narmstrong@baylibre.com> <20210104144117.GB2292@bill-the-cat> <6338426.mjuQUSspIG@jernej-laptop> <0bb8051a-3fb3-e48b-4b6c-62329ebabd75@baylibre.com> Message-ID: <20210108134350.GD2292@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Jan 05, 2021 at 09:14:24AM +0100, Neil Armstrong wrote: > On 04/01/2021 17:21, Jernej ?krabec wrote: > > Dne ponedeljek, 04. januar 2021 ob 15:41:17 CET je Tom Rini napisal(a): > >> On Mon, Jan 04, 2021 at 03:33:43PM +0100, Neil Armstrong wrote: > >>> 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 > >>> devicetree /soc-board.dtb > > > > This should be "fdt /soc-board.dtb", > > > Indeed, thx > > > > >>> 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 > >>> Signed-off-by: Neil Armstrong > > > > Tested-by: Jernej Skrabec > > > > With above fix: > > Reviewed-by: Jernej Skrabec > > > >>> --- > >>> Hi Tom, > >>> > >>> This is repost of my last year's attempt. > >>> It fills a hole to allow loading FDT overlays using PXE/Extlinux without > >>> using FIT. > >>> > >>> V2 adds documentation. > >> > >> Thanks for following up. I assume this follows what the spec says for > >> this file? > > > > Which specs? Official extlinux configuration specs [1] don't say anything about > > device tree files, so anything related to that is an extension (I hope I found > > correct specs). I think this one is extremely useful, users can easily specify > > which overlay file(s) they want to be applied in a text file. > > Indeed, it follows the spec by not breaking it and simply extends the already > u-boot specific pxe format. I could have sworn that the spec on freedesktop.org had been extended for overlays, but I don't see it now. Thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: