From: Matthias Schoepfer Date: Mon, 6 Jan 2020 16:22:02 +0100 Subject: fitImage align 8-byte for ARM64 In-Reply-To: <20200106142054.GC4866@bill-the-cat> References: <222c1023-fef5-bed2-520e-285fd99dd1d5@googlemail.com> <20200106142054.GC4866@bill-the-cat> Message-ID: <74cf7380-5926-268b-3967-e3169b9f5dea@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de Hi Tom, thanks for your reply. As far as I can understand this code, only if=20 fdt_high is set to 0xffffffffffffffff (which is the very case for=20 dragonboard410c) a not aligned mapping of the fdt can happen. In this case, the address is images->ft_addr, which I *think* comes from=20 the fitImage creation?! I wonder, whether just removing fdt_high is a valid solution... Regards, Matthias On 1/6/20 3:20 PM, Tom Rini wrote: > On Mon, Jan 06, 2020 at 01:47:25PM +0100, Matthias Schoepfer wrote: >=20 >> Hi! >> >> I have had trouble booting a fitImage packed kernel for dragonboard410c, >> which is an ARM64 platform. After days and days of debugging, I found th= at >> the fdt is 4-byte aligned. But within the linux kernel, >> Documentation/arm64/booting.txt says, fdt must be 8 byte aligned. >> >> If I change the alignment by means of fdt_high, the Kernel boots, otherw= ise, >> it hangs. >> >> Is there an option to align the fitImage to 8-byte boundaries, and if no= t, >> is it feasible to submit a patch or will this never have a chance to get >> merged?! >=20 > That's interesting. It sounds like you need to look at > boot_relocate_fdt() perhaps? Thanks! >=20 --=20 Dr.-Ing. Matthias Sch=C3=B6pfer matthias.schoepfer at googlemail.com