This patch series adds support for device tree blobs to the minimal loader code in boot-wrapper (rendering it not so minimal any more). This is mostly done by borrowing other peoples' code :-) Patch 1 imports the libfdt library for parsing fdt blobs. Patch 2 imports Dave Martin's C code for loading kernel, initrd and fdt via the semihosting ABI Patch 3 drops our assembly implementation of the semihosting loading code in favour of a simple glue layer that calls the C implementation Patch 4 is just a README. New features: * you can pass in an FDT via the --fdt path/to/fdt option * kernels can now be zImage as well as uImage * the 'everything built in' linux-system.axf now supports semihosting command lines too, so you can override the builtin components (eg use the builtin kernel but give it a new command line) The license remains 3-clause BSD because all the new code is compatible with it (Dave Martin's code is 3-clause BSD, and libfdt is dual-licensed GPL/2-clause-BSD). Available in a git tree at git://git.linaro.org/people/pmaydell/boot-wrapper.git dtb-support Pointy-clicky web interface at http://git.linaro.org/gitweb?p=people/pmaydell/boot-wrapper.git;a=shortlog;h=refs/heads/dtb-support Michael: I think this probably completes our work for the blueprint: https://blueprints.launchpad.net/linaro-toolchain-misc/+spec/kvm-boot-wrapper Peter Maydell (4): bootwrapper: Import libfdt flattened device tree library bootwrapper: Import C semihosting code bootwrapper: Switch to C semihosting code bootwrapper: Add README Makefile | 20 +- README.txt | 73 ++++ boot.S | 418 ++---------------- c_start.c | 65 +++ libfdt/Makefile.libfdt | 24 ++ libfdt/fdt.c | 201 +++++++++ libfdt/fdt.h | 60 +++ libfdt/fdt_ro.c | 469 ++++++++++++++++++++ libfdt/fdt_rw.c | 463 ++++++++++++++++++++ libfdt/fdt_strerror.c | 96 +++++ libfdt/fdt_sw.c | 257 +++++++++++ libfdt/fdt_wip.c | 145 +++++++ libfdt/libfdt.h | 1076 ++++++++++++++++++++++++++++++++++++++++++++++ libfdt/libfdt_env.h | 23 + libfdt/libfdt_internal.h | 95 ++++ model.lds.S | 30 +- semi_loader.c | 525 ++++++++++++++++++++++ semi_loader.h | 99 +++++ semihosting.c | 143 ++++++ semihosting.h | 50 +++ string.c | 137 ++++++ 21 files changed, 4057 insertions(+), 412 deletions(-) create mode 100644 README.txt create mode 100644 c_start.c create mode 100644 libfdt/Makefile.libfdt create mode 100644 libfdt/fdt.c create mode 100644 libfdt/fdt.h create mode 100644 libfdt/fdt_ro.c create mode 100644 libfdt/fdt_rw.c create mode 100644 libfdt/fdt_strerror.c create mode 100644 libfdt/fdt_sw.c create mode 100644 libfdt/fdt_wip.c create mode 100644 libfdt/libfdt.h create mode 100644 libfdt/libfdt_env.h create mode 100644 libfdt/libfdt_internal.h create mode 100644 semi_loader.c create mode 100644 semi_loader.h create mode 100644 semihosting.c create mode 100644 semihosting.h create mode 100644 string.c -- 1.7.9.5