From: Tom Rini Date: Fri, 1 Nov 2019 09:29:25 -0400 Subject: [U-Boot] [PATCH] mkimage: Set correct FDT type and ramdisk architecture in FIT auto mode In-Reply-To: <20190913104312.2878-1-ms@2x.cz> References: <20190913104312.2878-1-ms@2x.cz> Message-ID: <20191101132925.GU11173@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 Fri, Sep 13, 2019 at 12:43:12PM +0200, Michal Sojka wrote: > From: Michal Sojka > > When running the following command > > mkimage -f auto -A arm -O linux -T kernel -C none -a 0x8000 -e 0x8000 \ > -d zImage -b zynq-microzed.dtb -i initramfs.cpio image.ub > > the type of fdt subimage is the same as of the main kernel image and > the architecture of the initramfs image is not set. Such an image is > refused by U-Boot when booting. This commits sets the mentioned > attributes, allowing to use the "-f auto" mode in this case instead of > writing full .its file. > > Following is the diff of mkimage output without and with this commit: > > FIT description: Kernel Image image with one or more FDT blobs > Created: Thu Sep 12 23:23:16 2019 > Image 0 (kernel-1) > Description: > Created: Thu Sep 12 23:23:16 2019 > Type: Kernel Image > Compression: uncompressed > Data Size: 4192744 Bytes = 4094.48 KiB = 4.00 MiB > Architecture: ARM > OS: Linux > Load Address: 0x00008000 > Entry Point: 0x00008000 > Image 1 (fdt-1) > Description: zynq-microzed > Created: Thu Sep 12 23:23:16 2019 > - Type: Kernel Image > + Type: Flat Device Tree > Compression: uncompressed > Data Size: 9398 Bytes = 9.18 KiB = 0.01 MiB > Architecture: ARM > - OS: Unknown OS > - Load Address: unavailable > - Entry Point: unavailable > Image 2 (ramdisk-1) > Description: unavailable > Created: Thu Sep 12 23:23:16 2019 > Type: RAMDisk Image > Compression: Unknown Compression > Data Size: 760672 Bytes = 742.84 KiB = 0.73 MiB > - Architecture: Unknown Architecture > + Architecture: ARM > OS: Linux > Load Address: unavailable > Entry Point: unavailable > Default Configuration: 'conf-1' > Configuration 0 (conf-1) > Description: zynq-microzed > Kernel: kernel-1 > Init Ramdisk: ramdisk-1 > FDT: fdt-1 > Loadables: kernel-1 > > Signed-off-by: Michal Sojka Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: