Message ID | 1261446643-21714-3-git-send-email-ptyser@xes-inc.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Grant Likely |
Headers | show |
Hi, On Mon, Dec 21, 2009 at 07:50:42PM -0600, Peter Tyser wrote: > diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile > index bb2465b..e56ec21 100644 > --- a/arch/powerpc/boot/Makefile > +++ b/arch/powerpc/boot/Makefile > @@ -310,6 +310,9 @@ $(obj)/zImage.iseries: vmlinux > $(obj)/uImage: vmlinux $(wrapperbits) > $(call if_changed,wrap,uboot) > > +$(obj)/uImage.fit.%: vmlinux $(obj)/%.dtb $(wrapperbits) > + $(call if_changed,wrap,uboot.fit,,$(obj)/$*.dtb) > + > $(obj)/cuImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits) > $(call if_changed,wrap,cuboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz) > > @@ -349,7 +352,7 @@ install: $(CONFIGURE) $(addprefix $(obj)/, $(image-y)) > > # anything not in $(targets) > clean-files += $(image-) $(initrd-) cuImage.* dtbImage.* treeImage.* \ > - zImage zImage.initrd zImage.chrp zImage.coff zImage.holly \ > + uImage.* zImage zImage.initrd zImage.chrp zImage.coff zImage.holly \ Please no. It's not entirely uncommon that I will save a "known good" binary in the build tree for a while, by copying it aside with a different suffix. That'd give me one very big surprise in this case. -Olof
Hi Olof, On Mon, 2009-12-21 at 21:48 -0600, Olof Johansson wrote: > Hi, > > On Mon, Dec 21, 2009 at 07:50:42PM -0600, Peter Tyser wrote: > > diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile > > index bb2465b..e56ec21 100644 > > --- a/arch/powerpc/boot/Makefile > > +++ b/arch/powerpc/boot/Makefile > > @@ -310,6 +310,9 @@ $(obj)/zImage.iseries: vmlinux > > $(obj)/uImage: vmlinux $(wrapperbits) > > $(call if_changed,wrap,uboot) > > > > +$(obj)/uImage.fit.%: vmlinux $(obj)/%.dtb $(wrapperbits) > > + $(call if_changed,wrap,uboot.fit,,$(obj)/$*.dtb) > > + > > $(obj)/cuImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits) > > $(call if_changed,wrap,cuboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz) > > > > @@ -349,7 +352,7 @@ install: $(CONFIGURE) $(addprefix $(obj)/, $(image-y)) > > > > # anything not in $(targets) > > clean-files += $(image-) $(initrd-) cuImage.* dtbImage.* treeImage.* \ > > - zImage zImage.initrd zImage.chrp zImage.coff zImage.holly \ > > + uImage.* zImage zImage.initrd zImage.chrp zImage.coff zImage.holly \ > > Please no. It's not entirely uncommon that I will save a "known good" > binary in the build tree for a while, by copying it aside with a different > suffix. That'd give me one very big surprise in this case. You're right that it'd probably be better if the clean pattern was uImage.fit.* to be more restrictive, but your concern would still exist, as it does for a number of other image formats already (cuImage.*, simpleImage.*, etc). I can't think of a way to work around that issue though... Any ideas? Don't keep backup images in arch/powerpc/boot?:) Thanks for the feedback, Peter
On Mon, Dec 21, 2009 at 6:50 PM, Peter Tyser <ptyser@xes-inc.com> wrote: > Recent U-Boot versions support booting a Flattened Image Tree (FIT) > image format. The FIT uImage format uses a tree structure to describe a > kernel image as well as supporting device tree blobs, ramdisks, etc. > The 'mkimage' and 'dtc' utilities convert this tree description into a > binary blob that bootloaders such as U-Boot can execute. > > This patch adds support for automatically creating a U-Boot FIT image > using the "make uImage.fit.<boardname>" command where <boardname> is > one of arch/powerpc/boot/dts/<boardname>.dts. The resulting > arch/powerpc/boot/uImage.fit.<boardname> file will contain a kernel > image as well as a device tree blob. U-Boot versions compiled with FIT > support can directly boot this image using the "bootm" command. > > Additional information about the FIT format and its uses can be found in > doc/uImage.FIT/howto.txt of U-Boot's source tree. > > Signed-off-by: Peter Tyser <ptyser@xes-inc.com> > --- > Changes since v1: > - Add 'dts-v1' header to scripts/mkits.sh output > - Don't strip leading 0x from dts addresses > - Default to using kernel dtc if the user doesn't have it in their path I think I need to NAK this one. As it is, the wrapper script is a moderately complex thing, but it has to do a non-trivial job: create a custom linked executable that sets up the environment that the kernel expects. zImage.* wrappers uncompress the kernel, dtbImage.* wrappers also contain a .dtb image. cuImage.* wrappers adapt to the old u-boot interface, etc. Unfortunately, the wrapper script is also being used to do things that are completely unrelated to creating wrapper binaries. FIT images (and uImages) don't use any of the wrapper bits at all. In fact, as seen in this patch, generating them involves bailing out of the wrapper script early to avoid linking the wrapper bits. I think for all types of uImages, the wrapper script is being misused and I don't like the extra complexity that it adds. Rather than adding new paths to arch/powerpc/boot/wrapper, I would rather see a new script used for generating FIT image that isn't complicated by all the current wrapper cruft. Also, the Makefile rule doesn't need to depend on $(wrapperbits) which means faster build times when only building uImages. Bonus points if you also convert the uImage target to use the new script; but I'm not demanding that you do that yet. Finally, you need to add documentation about the new target to Documentation/powerpc/bootwrapper.txt. g. > diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile > index bb2465b..e56ec21 100644 > --- a/arch/powerpc/boot/Makefile > +++ b/arch/powerpc/boot/Makefile > @@ -310,6 +310,9 @@ $(obj)/zImage.iseries: vmlinux > $(obj)/uImage: vmlinux $(wrapperbits) > $(call if_changed,wrap,uboot) > > +$(obj)/uImage.fit.%: vmlinux $(obj)/%.dtb $(wrapperbits) > + $(call if_changed,wrap,uboot.fit,,$(obj)/$*.dtb) > + > $(obj)/cuImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits) > $(call if_changed,wrap,cuboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz) > > @@ -349,7 +352,7 @@ install: $(CONFIGURE) $(addprefix $(obj)/, $(image-y)) > > # anything not in $(targets) > clean-files += $(image-) $(initrd-) cuImage.* dtbImage.* treeImage.* \ > - zImage zImage.initrd zImage.chrp zImage.coff zImage.holly \ > + uImage.* zImage zImage.initrd zImage.chrp zImage.coff zImage.holly \ > zImage.iseries zImage.miboot zImage.pmac zImage.pseries \ > simpleImage.* otheros.bld *.dtb > > diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper > index f4594ed..1f35b66 100755 > --- a/arch/powerpc/boot/wrapper > +++ b/arch/powerpc/boot/wrapper > @@ -46,6 +46,9 @@ CROSS= > # mkimage wrapper script > MKIMAGE=$srctree/scripts/mkuboot.sh > > +# script to generate an .its file for uImage.fit.* images > +MKITS=$srctree/scripts/mkits.sh > + > # directory for object and other files used by this script > object=arch/powerpc/boot > objbin=$object > @@ -157,7 +160,7 @@ coff) > lds=$object/zImage.coff.lds > link_address='0x500000' > ;; > -miboot|uboot) > +miboot|uboot|uboot.fit) > # miboot and U-boot want just the bare bits, not an ELF binary > ext=bin > objflags="-O binary" > @@ -277,6 +280,21 @@ uboot) > fi > exit 0 > ;; > +uboot.fit) > + rm -f "$ofile" > + ${MKITS} -A ppc -C gzip -a $membase -e $membase -v $version \ > + -d "$srctree/$dtb" -k "$srctree/$vmz" -o "$object/uImage.its" > + > + # mkimage calls dtc for FIT images so use kernel dtc if necessary > + export PATH=$PATH:$srctree/scripts/dtc > + > + ${MKIMAGE} -f "$object/uImage.its" "$ofile" > + rm "$object/uImage.its" > + if [ -z "$cacheit" ]; then > + rm -f "$vmz" > + fi > + exit 0 > + ;; > esac > > addsec() { > diff --git a/scripts/mkits.sh b/scripts/mkits.sh > new file mode 100755 > index 0000000..fae43dd > --- /dev/null > +++ b/scripts/mkits.sh > @@ -0,0 +1,111 @@ > +#!/bin/bash > +# > +# Licensed under the terms of the GNU GPL License version 2 or later. > +# > +# Author: Peter Tyser <ptyser@xes-inc.com> > +# > +# U-Boot firmware supports the booting of images in the Flattened Image > +# Tree (FIT) format. The FIT format uses a device tree structure to > +# describe a kernel image, device tree blob, ramdisk, etc. This script > +# creates an Image Tree Source (.its file) which can be passed to the > +# 'mkimage' utility to generate an Image Tree Blob (.itb file). The .itb > +# file can then be booted by U-Boot (or other bootloaders which support > +# FIT images). See doc/uImage.FIT/howto.txt in U-Boot source code for > +# additional information on FIT images. > +# > + > +usage() { > + echo "Usage: `basename $0` -A arch -C comp -a addr -e entry" \ > + "-v version -k kernel [-d dtb] -o its_file" > + echo -e "\t-A ==> set architecture to 'arch'" > + echo -e "\t-C ==> set compression type 'comp'" > + echo -e "\t-a ==> set load address to 'addr' (hex)" > + echo -e "\t-e ==> set entry point to 'entry' (hex)" > + echo -e "\t-v ==> set kernel version to 'version'" > + echo -e "\t-k ==> include kernel image 'kernel'" > + echo -e "\t-d ==> include Device Tree Blob 'dtb'" > + echo -e "\t-o ==> create output file 'its_file'" > + exit 1 > +} > + > +while getopts ":A:C:a:d:e:k:o:v:" OPTION > +do > + case $OPTION in > + A ) ARCH=$OPTARG;; > + C ) COMPRESS=$OPTARG;; > + a ) LOAD_ADDR=$OPTARG;; > + d ) DTB=$OPTARG;; > + e ) ENTRY_ADDR=$OPTARG;; > + k ) KERNEL=$OPTARG;; > + o ) OUTPUT=$OPTARG;; > + v ) VERSION=$OPTARG;; > + * ) echo "Invalid option passed to '$0' (options:$@)" > + usage;; > + esac > +done > + > +# Make sure user entered all required parameters > +if [ -z "${ARCH}" ] || [ -z "${COMPRESS}" ] || [ -z "${LOAD_ADDR}" ] || \ > + [ -z "${ENTRY_ADDR}" ] || [ -z "${VERSION}" ] || [ -z "${KERNEL}" ] || \ > + [ -z "${OUTPUT}" ]; then > + usage > +fi > + > +# Create a default, fully populated DTS file > +DATA="/dts-v1/; > + > +/ { > + description = \"Linux kernel ${VERSION}\"; > + #address-cells = <1>; > + > + images { > + kernel@1 { > + description = \"Linux Kernel ${VERSION}\"; > + data = /incbin/(\"${KERNEL}\"); > + type = \"kernel\"; > + arch = \"${ARCH}\"; > + os = \"linux\"; > + compression = \"${COMPRESS}\"; > + load = <${LOAD_ADDR}>; > + entry = <${ENTRY_ADDR}>; > + hash@1 { > + algo = \"crc32\"; > + }; > + hash@2 { > + algo = \"sha1\"; > + }; > + }; > + > + fdt@1 { /* start fdt */ > + description = \"Flattened Device Tree blob\"; > + data = /incbin/(\"${DTB}\"); > + type = \"flat_dt\"; > + arch = \"${ARCH}\"; > + compression = \"none\"; > + hash@1 { > + algo = \"crc32\"; > + }; > + hash@2 { > + algo = \"sha1\"; > + }; > + }; /* end fdt */ > + > + configurations { > + default = \"config@1\"; > + config@1 { > + description = \"Default Linux kernel\"; > + kernel = \"kernel@1\"; > + fdt = \"fdt@1\"; > + ramdisk = \"ramdisk@1\"; > + }; > + }; > +};" > + > +# Conditionally strip fdt information out of tree > +if [ -z "${DTB}" ]; then > + DATA=`echo "$DATA" | sed '/start fdt/,/end fdt/d'` > + DATA=`echo "$DATA" | sed '/fdt/d'` > +fi > + > +# Write .its file to disk > +echo "$DATA" > ${OUTPUT} > -- > 1.6.2.1 > > _______________________________________________ > Linuxppc-dev mailing list > Linuxppc-dev@lists.ozlabs.org > https://lists.ozlabs.org/listinfo/linuxppc-dev >
Dear Grant, In message <fa686aa40912301457l704c324bk511a207d07218525@mail.gmail.com> you wrote: > > Unfortunately, the wrapper script is also being used to do things that > are completely unrelated to creating wrapper binaries. FIT images > (and uImages) don't use any of the wrapper bits at all. In fact, as > seen in this patch, generating them involves bailing out of the > wrapper script early to avoid linking the wrapper bits. I think for > all types of uImages, the wrapper script is being misused and I don't > like the extra complexity that it adds. Agreed. > Rather than adding new paths to arch/powerpc/boot/wrapper, I would > rather see a new script used for generating FIT image that isn't > complicated by all the current wrapper cruft. Also, the Makefile rule > doesn't need to depend on $(wrapperbits) which means faster build > times when only building uImages. > > Bonus points if you also convert the uImage target to use the new > script; but I'm not demanding that you do that yet. I think if this is handles in a separate script, the legacy uImage support must be handled in this new script, too. Otherwise it would be too difficult to understanmd the relation of the two image formats. > Finally, you need to add documentation about the new target to > Documentation/powerpc/bootwrapper.txt. Let's keep in mind that the uImage formats (both the old legacy and the new FIT format) are inherently architecture independent. We want to use this same mechanism for example on ARM, and on other architectures as well. Best regards, Wolfgang Denk
On Fri, Jan 1, 2010 at 7:18 AM, Wolfgang Denk <wd@denx.de> wrote: >> Rather than adding new paths to arch/powerpc/boot/wrapper, I would >> rather see a new script used for generating FIT image that isn't >> complicated by all the current wrapper cruft. Also, the Makefile rule >> doesn't need to depend on $(wrapperbits) which means faster build >> times when only building uImages. >> >> Bonus points if you also convert the uImage target to use the new >> script; but I'm not demanding that you do that yet. > > I think if this is handles in a separate script, the legacy uImage > support must be handled in this new script, too. Otherwise it would be > too difficult to understanmd the relation of the two image formats. I'm fine with this. But if I receive a patch that does one and not the other, I'll probably still merge it. :-) >> Finally, you need to add documentation about the new target to >> Documentation/powerpc/bootwrapper.txt. > > Let's keep in mind that the uImage formats (both the old legacy and > the new FIT format) are inherently architecture independent. We want > to use this same mechanism for example on ARM, and on other > architectures as well. That's fine, but Documentation/powerpc/bootwrapper.txt happens to also be the place that documents how the boot image creation on arch/powerpc works. I'm happy for the text about uImage and fitImage to make reference to a different Documentation file or URL. g.
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 1a54a3b..459aed5 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile @@ -158,7 +158,8 @@ drivers-$(CONFIG_OPROFILE) += arch/powerpc/oprofile/ # Default to zImage, override when needed all: zImage -BOOT_TARGETS = zImage zImage.initrd uImage zImage% dtbImage% treeImage.% cuImage.% simpleImage.% +BOOT_TARGETS = zImage zImage.initrd uImage uImage.fit.% zImage% dtbImage% \ + treeImage.% cuImage.% simpleImage.% PHONY += $(BOOT_TARGETS) @@ -185,6 +186,7 @@ define archhelp @echo '* zImage - Build default images selected by kernel config' @echo ' zImage.* - Compressed kernel image (arch/$(ARCH)/boot/zImage.*)' @echo ' uImage - U-Boot native image format' + @echo ' uImage.fit.<dt> - U-Boot Flattened Image Tree image format' @echo ' cuImage.<dt> - Backwards compatible U-Boot image for older' @echo ' versions which do not support device trees' @echo ' dtbImage.<dt> - zImage with an embedded device tree blob' diff --git a/arch/powerpc/boot/.gitignore b/arch/powerpc/boot/.gitignore index 3d80c3e..a443f1c 100644 --- a/arch/powerpc/boot/.gitignore +++ b/arch/powerpc/boot/.gitignore @@ -19,6 +19,7 @@ kernel-vmlinux.strip.c kernel-vmlinux.strip.gz mktree uImage +uImage.fit.* cuImage.* dtbImage.* treeImage.* diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index bb2465b..e56ec21 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile @@ -310,6 +310,9 @@ $(obj)/zImage.iseries: vmlinux $(obj)/uImage: vmlinux $(wrapperbits) $(call if_changed,wrap,uboot) +$(obj)/uImage.fit.%: vmlinux $(obj)/%.dtb $(wrapperbits) + $(call if_changed,wrap,uboot.fit,,$(obj)/$*.dtb) + $(obj)/cuImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits) $(call if_changed,wrap,cuboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz) @@ -349,7 +352,7 @@ install: $(CONFIGURE) $(addprefix $(obj)/, $(image-y)) # anything not in $(targets) clean-files += $(image-) $(initrd-) cuImage.* dtbImage.* treeImage.* \ - zImage zImage.initrd zImage.chrp zImage.coff zImage.holly \ + uImage.* zImage zImage.initrd zImage.chrp zImage.coff zImage.holly \ zImage.iseries zImage.miboot zImage.pmac zImage.pseries \ simpleImage.* otheros.bld *.dtb diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper index f4594ed..1f35b66 100755 --- a/arch/powerpc/boot/wrapper +++ b/arch/powerpc/boot/wrapper @@ -46,6 +46,9 @@ CROSS= # mkimage wrapper script MKIMAGE=$srctree/scripts/mkuboot.sh +# script to generate an .its file for uImage.fit.* images +MKITS=$srctree/scripts/mkits.sh + # directory for object and other files used by this script object=arch/powerpc/boot objbin=$object @@ -157,7 +160,7 @@ coff) lds=$object/zImage.coff.lds link_address='0x500000' ;; -miboot|uboot) +miboot|uboot|uboot.fit) # miboot and U-boot want just the bare bits, not an ELF binary ext=bin objflags="-O binary" @@ -277,6 +280,21 @@ uboot) fi exit 0 ;; +uboot.fit) + rm -f "$ofile" + ${MKITS} -A ppc -C gzip -a $membase -e $membase -v $version \ + -d "$srctree/$dtb" -k "$srctree/$vmz" -o "$object/uImage.its" + + # mkimage calls dtc for FIT images so use kernel dtc if necessary + export PATH=$PATH:$srctree/scripts/dtc + + ${MKIMAGE} -f "$object/uImage.its" "$ofile" + rm "$object/uImage.its" + if [ -z "$cacheit" ]; then + rm -f "$vmz" + fi + exit 0 + ;; esac addsec() { diff --git a/scripts/mkits.sh b/scripts/mkits.sh new file mode 100755 index 0000000..fae43dd --- /dev/null +++ b/scripts/mkits.sh @@ -0,0 +1,111 @@ +#!/bin/bash +# +# Licensed under the terms of the GNU GPL License version 2 or later. +# +# Author: Peter Tyser <ptyser@xes-inc.com> +# +# U-Boot firmware supports the booting of images in the Flattened Image +# Tree (FIT) format. The FIT format uses a device tree structure to +# describe a kernel image, device tree blob, ramdisk, etc. This script +# creates an Image Tree Source (.its file) which can be passed to the +# 'mkimage' utility to generate an Image Tree Blob (.itb file). The .itb +# file can then be booted by U-Boot (or other bootloaders which support +# FIT images). See doc/uImage.FIT/howto.txt in U-Boot source code for +# additional information on FIT images. +# + +usage() { + echo "Usage: `basename $0` -A arch -C comp -a addr -e entry" \ + "-v version -k kernel [-d dtb] -o its_file" + echo -e "\t-A ==> set architecture to 'arch'" + echo -e "\t-C ==> set compression type 'comp'" + echo -e "\t-a ==> set load address to 'addr' (hex)" + echo -e "\t-e ==> set entry point to 'entry' (hex)" + echo -e "\t-v ==> set kernel version to 'version'" + echo -e "\t-k ==> include kernel image 'kernel'" + echo -e "\t-d ==> include Device Tree Blob 'dtb'" + echo -e "\t-o ==> create output file 'its_file'" + exit 1 +} + +while getopts ":A:C:a:d:e:k:o:v:" OPTION +do + case $OPTION in + A ) ARCH=$OPTARG;; + C ) COMPRESS=$OPTARG;; + a ) LOAD_ADDR=$OPTARG;; + d ) DTB=$OPTARG;; + e ) ENTRY_ADDR=$OPTARG;; + k ) KERNEL=$OPTARG;; + o ) OUTPUT=$OPTARG;; + v ) VERSION=$OPTARG;; + * ) echo "Invalid option passed to '$0' (options:$@)" + usage;; + esac +done + +# Make sure user entered all required parameters +if [ -z "${ARCH}" ] || [ -z "${COMPRESS}" ] || [ -z "${LOAD_ADDR}" ] || \ + [ -z "${ENTRY_ADDR}" ] || [ -z "${VERSION}" ] || [ -z "${KERNEL}" ] || \ + [ -z "${OUTPUT}" ]; then + usage +fi + +# Create a default, fully populated DTS file +DATA="/dts-v1/; + +/ { + description = \"Linux kernel ${VERSION}\"; + #address-cells = <1>; + + images { + kernel@1 { + description = \"Linux Kernel ${VERSION}\"; + data = /incbin/(\"${KERNEL}\"); + type = \"kernel\"; + arch = \"${ARCH}\"; + os = \"linux\"; + compression = \"${COMPRESS}\"; + load = <${LOAD_ADDR}>; + entry = <${ENTRY_ADDR}>; + hash@1 { + algo = \"crc32\"; + }; + hash@2 { + algo = \"sha1\"; + }; + }; + + fdt@1 { /* start fdt */ + description = \"Flattened Device Tree blob\"; + data = /incbin/(\"${DTB}\"); + type = \"flat_dt\"; + arch = \"${ARCH}\"; + compression = \"none\"; + hash@1 { + algo = \"crc32\"; + }; + hash@2 { + algo = \"sha1\"; + }; + }; /* end fdt */ + + configurations { + default = \"config@1\"; + config@1 { + description = \"Default Linux kernel\"; + kernel = \"kernel@1\"; + fdt = \"fdt@1\"; + ramdisk = \"ramdisk@1\"; + }; + }; +};" + +# Conditionally strip fdt information out of tree +if [ -z "${DTB}" ]; then + DATA=`echo "$DATA" | sed '/start fdt/,/end fdt/d'` + DATA=`echo "$DATA" | sed '/fdt/d'` +fi + +# Write .its file to disk +echo "$DATA" > ${OUTPUT}
Recent U-Boot versions support booting a Flattened Image Tree (FIT) image format. The FIT uImage format uses a tree structure to describe a kernel image as well as supporting device tree blobs, ramdisks, etc. The 'mkimage' and 'dtc' utilities convert this tree description into a binary blob that bootloaders such as U-Boot can execute. This patch adds support for automatically creating a U-Boot FIT image using the "make uImage.fit.<boardname>" command where <boardname> is one of arch/powerpc/boot/dts/<boardname>.dts. The resulting arch/powerpc/boot/uImage.fit.<boardname> file will contain a kernel image as well as a device tree blob. U-Boot versions compiled with FIT support can directly boot this image using the "bootm" command. Additional information about the FIT format and its uses can be found in doc/uImage.FIT/howto.txt of U-Boot's source tree. Signed-off-by: Peter Tyser <ptyser@xes-inc.com> --- Changes since v1: - Add 'dts-v1' header to scripts/mkits.sh output - Don't strip leading 0x from dts addresses - Default to using kernel dtc if the user doesn't have it in their path arch/powerpc/Makefile | 4 +- arch/powerpc/boot/.gitignore | 1 + arch/powerpc/boot/Makefile | 5 ++- arch/powerpc/boot/wrapper | 20 +++++++- scripts/mkits.sh | 111 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 138 insertions(+), 3 deletions(-) create mode 100755 scripts/mkits.sh