From: Kever Yang Date: Tue, 7 Jan 2020 09:25:53 +0800 Subject: =?UTF-8?B?UmU6IGZpdEltYWdlIGFsaWduIDgtYnl0ZSBmb3IgQVJNNjTjgJDor7c=?= =?UTF-8?B?5rOo5oSP77yM6YKu5Lu255SxdS1ib290LWJvdW5jZXNAbGlzdHMuZGVueC5kZQ==?= =?UTF-8?B?5Luj5Y+R44CR?= In-Reply-To: <20200106142054.GC4866@bill-the-cat> References: <222c1023-fef5-bed2-520e-285fd99dd1d5@googlemail.com> <20200106142054.GC4866@bill-the-cat> Message-ID: <63812697-5c19-9601-ac86-e89e5a689c3e@rock-chips.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de Hi Tom, Simon, On 2020/1/6 下午10:20, Tom Rini wrote: > On Mon, Jan 06, 2020 at 01:47:25PM +0100, Matthias Schoepfer wrote: > >> 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 that >> 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, otherwise, >> it hangs. >> >> Is there an option to align the fitImage to 8-byte boundaries, and if not, >> is it feasible to submit a patch or will this never have a chance to get >> merged?! > That's interesting. It sounds like you need to look at > boot_relocate_fdt() perhaps? Thanks! > When I use the FIT image, I met another issue: - The emmc/sd read is by block which is 512byte; - The FIT image header is always not 512byte align, and the entry of   image in FIT is always not aligned to block; - The image read from block device always need memory coppy which   make it slow. I can truncate the image in FIT align to 512 byte, but not able to make the header which is dtb 512byte align,  any idea to implement this? Thanks, - Kever