From: Tom Rini Date: Thu, 11 Feb 2016 11:36:09 -0500 Subject: [U-Boot] [PATCH 19/26] mkimage: Support adding device tree files to a FIT In-Reply-To: <1453999186-18747-20-git-send-email-sjg@chromium.org> References: <1453999186-18747-1-git-send-email-sjg@chromium.org> <1453999186-18747-20-git-send-email-sjg@chromium.org> Message-ID: <20160211163609.GR23166@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, Jan 28, 2016 at 09:39:39AM -0700, Simon Glass wrote: > To make the auto-FIT feature useful we need to be able to provide a list of > device tree files on the command line for mkimage to add into the FIT. Add > support for this feature. [snip] > +.BI "\-b > +Specifies that the following arguments are device tree binary files (.dtb). > + > +.TP > .BI "\-c [" "comment" "]" > Specifies a comment to be added when signing. This is typically a useful > message which describes how the image was signed or some other useful > @@ -125,6 +129,10 @@ This can be used to sign images with additional keys after initial image > creation. > > .TP > +.BI "\-i > +Specifies that the following arguments are image files. > + > +.TP > .BI "\-k [" "key_directory" "]" > Specifies the directory containing keys to use for signing. This directory > should contain a private key file .key for use with signing and a > @@ -191,6 +199,15 @@ is required. > .br > .B -c """Kernel 4.4 image for production devices""" -d vmlinuz kernel.itb > .fi > +.P > +Create a FIT image containing a kernel and some device tree files, using > +automatic mode. No .its file is required. > +.nf > +.B mkimage -f auto -A arm -O linux -T kernel -C none -a 43e00000 -e 0 \\\\ > +.br > +.B -c """Kernel 4.4 image for production devices""" -d vmlinuz \\\\ > +.B -b rk3288-firefly.dts rk3288-jerry.dts -i kernel.itb > +.fi OK, I'm confused in a few ways here. First, we don't need quotes around the space separated list of dts files? Second, we need dts not dtb? Third, I think this would be a better example if (as I suspect we need really) it was a full path to the output rather than assuming that we've copied the files to $PWD. Fourth, -i is inputs or outputs? The help reads like inputs and is where I assume we would say vmlinuz here and not use -d and then end with our output of kernel.itb. Thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: