]> git.sur5r.net Git - u-boot/commit
rockchip: Add support for the SPI image
authorSimon Glass <sjg@chromium.org>
Sun, 30 Aug 2015 22:55:26 +0000 (16:55 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 3 Sep 2015 03:28:23 +0000 (21:28 -0600)
commit10b84fe1b59b4f8b485057b911f2d5bdd9b1c9a4
treeae30e02224a612965867418294bad627459c0c93
parentf9a3c278b98a17eddbf0ad903689cce47e3e6f47
rockchip: Add support for the SPI image

The Rockchip boot ROM requires a particular file format for booting from SPI.
It consists of a 512-byte header encoded with RC4, some padding and then up
to 32KB of executable code in 2KB blocks, separated by 2KB empty blocks.

Add support to mkimage so that an SPL image (u-boot-spl-dtb.bin) can be
converted to this format. This allows booting from SPI flash on supported
machines.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/image.c
include/image.h
tools/rkspi.c [new file with mode: 0644]