From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 16 Apr 2021 08:26:20 -0400 Subject: [PATCH v3 3/6] spl: LOAD_FIT_FULL: Relocate FDT for u-boot payloads In-Reply-To: <20210401182531.2147653-4-mr.nuke.me@gmail.com> References: <20210401182531.2147653-1-mr.nuke.me@gmail.com> <20210401182531.2147653-4-mr.nuke.me@gmail.com> Message-ID: <20210416122620.GE1310@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 Thu, Apr 01, 2021 at 01:25:28PM -0500, Alexandru Gagniuc wrote: > U-Boot expects the FDT to be located right after the _end > linker symbol (see fdtdec.c: board_fdt_blob_setup()) > > The "basic" LOAD_FIT path is aware of this limitation, and relocates > the FDT at the expected location. Guessing the expected location > probably only works reliably on 32-bit arm, and it feels like a hack. > One proposal would be to pass the FDT address to u-boot > (e.g. using 'r2' on arm platforms). > > The variable is named "fdt_hack" to remind future contributors that, > "hey! we should fix the underlying problem". However, that is beyond > the scope of this patch. > > Signed-off-by: Alexandru Gagniuc Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: