OSDN Git Service

loader: Support Flattened Image Trees (FIT images)
authorPaul Burton <paul.burton@imgtec.com>
Thu, 8 Sep 2016 14:51:56 +0000 (15:51 +0100)
committerYongbok Kim <yongbok.kim@imgtec.com>
Tue, 21 Feb 2017 23:47:40 +0000 (23:47 +0000)
commit51b58561c1dacdb0ce999ada94912caaed157f83
treef00f17849c7265a7ce760c088c25c10e8dfaba4c
parent6e85fce0225f235b11618fe50eaec64c1de2cf3e
loader: Support Flattened Image Trees (FIT images)

Introduce support for loading Flattened Image Trees, as used by modern
U-Boot. FIT images are essentially flattened device tree files which
contain binary images such as kernels, FDTs or ramdisks along with one
or more configuration nodes describing boot configurations.

The MIPS Boston board typically boots kernels in the form of FIT images,
and will make use of this code.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
[yongbok.kim@imgtec.com:
  fixed potential memory leaks,
  isolated building option]
Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
hw/core/Makefile.objs
hw/core/loader-fit.c [new file with mode: 0644]
hw/core/loader.c
include/hw/loader-fit.h [new file with mode: 0644]
include/hw/loader.h