[U-Boot] [RFC PATCH 0/4] RFC: FIT images and device tree on x86

Simon Glass sjg at chromium.org
Sat Jan 12 18:48:44 CET 2013


This little series adds support for booting FITs on x86. A FIT is a single
file that can contain a kernel, device tree and ramdisk.

This is a bit of an experiment, and is work in progress. I would like to
get feedback on the approach.

x86 kernels require a setup.bin file to boot. Rather than try to pack this
into the image in a clever way, this series just adds it as another image
in the FIT. At present compression is not supported for the setup binary.

The kernel image can be compressed using FIT's normal compression options,
such as bzip2 and lzo. U-Boot will decompress it as part of the 'bootm'
command.

More work is needed to make this implementation also support a zImage
(which contains a setup.bin and a compressed kernel in a single image), and
to pass the correct device tree binary to the kernel.

This series builds on the image and FIT code improvements that were
done for verified boot. The full series is available at:

http://git.denx.de/u-boot-x86.git

in branch 'setup'.


Simon Glass (4):
  x86: Enable LMB and RAMDISK_HIGH by default
  x86: Rewrite bootm.c to make it similar to ARM
  x86: Allow cmdline setup in setup_zimage() to be optional
  x86: Support loading kernel setup from a FIT

 arch/x86/include/asm/bootm.h          |   24 +++++
 arch/x86/include/asm/config.h         |    2 +
 arch/x86/lib/bootm.c                  |  152 +++++++++++++++++++++++++--------
 arch/x86/lib/zimage.c                 |   37 +++-----
 common/cmd_bootm.c                    |   22 +++++-
 common/image-fit.c                    |   20 +++++
 common/image.c                        |   11 +++
 doc/uImage.FIT/kernel.its             |   50 +++++++++++
 doc/uImage.FIT/source_file_format.txt |   23 +++--
 include/bootstage.h                   |    3 +
 include/image.h                       |   13 +++
 11 files changed, 285 insertions(+), 72 deletions(-)
 create mode 100644 arch/x86/include/asm/bootm.h

-- 
1.7.7.3



More information about the U-Boot mailing list