]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Xilinx: ARM: Enable Flattened uImage Tree(FIT) support
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Wed, 29 Aug 2012 19:27:25 +0000 (00:57 +0530)
committerJohn Linn <john.linn@xilinx.com>
Thu, 30 Aug 2012 22:38:24 +0000 (15:38 -0700)
This patch enables the FIT or new uImage support to all
zynq boards.

The new uImage format allows more flexibility in handling
images of various types (kernel, ramdisk, etc.),  it also
enhances integrity protection of images with sha1 and md5 checksums.

FIT creation (see for doc/uImage.FIT/howto.txt for more info):
bash> mkimage -f input.its output.itb

FIT loading:
zynq-uboot> tftp 0x2000000 output.itb
zynq-uboot> bootm 0x2000000

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
include/configs/zynq_common.h
include/configs/zynq_ep107.h

index ac11129b6f0eb80db65773a9b19b37cf9eb313b1..5c6086cffe86e9d8a58e116093a8b84c114d6c04 100644 (file)
 #define CONFIG_FPGA_ZYNQPL
 #define CONFIG_CMD_FPGA
 
+/* FIT support */
+#define CONFIG_FIT             1
+#define CONFIG_FIT_VERBOSE     1 /* enable fit_format_{error,warning}() */
+
 /* For now, use only single block reads for the MMC */
 
 #define CONFIG_SYS_MMC_MAX_BLK_COUNT 1
index 2e84b60a3a5273d5edafd3b8279daa8af70a0161..b466b0a1fef859905b762f1d4030c28773adca90 100644 (file)
@@ -85,6 +85,9 @@
 #define CONFIG_AUTO_COMPLETE
 #define CONFIG_CMDLINE_EDITING
 
+#undef CONFIG_FIT
+#undef CONFIG_FIT_VERBOSE
+
 /* this is to initialize GEM at uboot start */
 /* #define CONFIG_ZYNQ_INIT_GEM        */
 /* this is to set ipaddr, ethaddr and serverip env variables. */