[PATCH v2 0/3] mkimage/rockchip: support packing optional second level boot-loader

Jeffy Chen jeffy.chen at rock-chips.com
Thu Dec 5 11:58:26 CET 2019


When enabling back-to-bootrom, the bootrom would continue to load the
second level boot-loader. And currently we are packing it by appending
the generated image manually (with a predefined max size):

./firefly-rk3288/tools/mkimage -n rk3288 -T rksd -d \
   firefly-rk3288/spl/u-boot-spl-dtb.bin out && \
   cat firefly-rk3288/u-boot-dtb.bin >> out

This series add support of packing optional second level loader with
mkimage tool:
./tools/mkimage -n rk3399 -T rksd -d \
    rk3399_ddr_800MHz_v1.24.bin:rk3399_miniloader_v1.19.bin out


Changes in v2:
Do rc4 encode for boot data when needed as well.

Jeffy Chen (3):
  rockchip: mkimage: support packing optional second level boot-loader
  doc: rockchip: document packing second level loader with mkimage
  rockchip: mkimage: fix wrong range of rc4 encoding for boot image

 doc/README.rockchip |  11 +++
 tools/imagetool.h   |   1 +
 tools/mkimage.c     |   8 ++
 tools/rkcommon.c    | 245 +++++++++++++++++++++++++++++++++++++++++++---------
 tools/rkcommon.h    |  18 ++--
 tools/rkimage.c     |   2 +-
 tools/rksd.c        |  35 +-------
 tools/rkspi.c       |  42 +++------
 8 files changed, 245 insertions(+), 117 deletions(-)

-- 
2.11.0





More information about the U-Boot mailing list