From: Tom Rini Date: Fri, 23 Jun 2017 10:32:47 -0400 Subject: [U-Boot] [U-Boot,2/2] board/db410c: fix fdt address In-Reply-To: <20170620215525.10430-2-robdclark@gmail.com> References: <20170620215525.10430-2-robdclark@gmail.com> Message-ID: <20170623143247.GE27196@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, Jun 20, 2017 at 05:55:25PM -0400, Rob Clark wrote: > Signed-off-by: Rob Clark > --- > Maybe there is a better way to not hardcode this? But at least with > the build of lk that I have, the fdt table is at 0x81e00000. I guess > there must be a more robust way to do this, since presumably lk when > booting the linux kernel directly somehow passes the fdt address. I would assume that lk does what Documentation/arm64/booting.txt describes and places the physical address in x0, so you might be able to implement a save_boot_params that saves this information for later use? Perhaps even make this somewhat generic for armv8 as there's probably other cases where U-Boot is being called in this manner? Thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: