diff options
author | Jeffy Chen <jeffy.chen@rock-chips.com> | 2019-12-27 11:24:41 +0800 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2019-12-27 15:17:07 +0800 |
commit | eea6cd8d7c41df5f7118ac4fb1e9e375eb04c4eb (patch) | |
tree | 20705ff63626513ce8f4765aefbc527982f34e2f /tools/mkimage.c | |
parent | dcdea292d9f3434bf5940338cfacc64cd5bd4444 (diff) | |
download | u-boot-eea6cd8d7c41df5f7118ac4fb1e9e375eb04c4eb.zip u-boot-eea6cd8d7c41df5f7118ac4fb1e9e375eb04c4eb.tar.gz u-boot-eea6cd8d7c41df5f7118ac4fb1e9e375eb04c4eb.tar.bz2 |
rockchip: mkimage: support packing optional second level boot-loader
Support packing optional second level boot-loader:
$ ./tools/mkimage -n rk3399 -T rksd -d \
rk3399_ddr_800MHz_v1.24.bin:rk3399_miniloader_v1.19.bin out -v
Adding Image rk3399_ddr_800MHz_v1.24.bin
Size 116492(pad to 116736)
Adding Image rk3399_miniloader_v1.19.bin
Size 88060(pad to 88064)
Image Type: Rockchip RK33 (SD/MMC) boot image
Init Data Size: 116736 bytes
Boot Data Size: 88064 bytes
Mainly parse init file and boot file from datafile option, copy them to
the image with 2KB alignment.
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'tools/mkimage.c')
-rw-r--r-- | tools/mkimage.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c index 4217188..5f51d2c 100644 --- a/tools/mkimage.c +++ b/tools/mkimage.c @@ -544,6 +544,14 @@ int main(int argc, char **argv) ret = imx8mimage_copy_image(ifd, ¶ms); if (ret) return ret; + } else if ((params.type == IH_TYPE_RKSD) || + (params.type == IH_TYPE_RKSPI)) { + /* Rockchip has special Image format */ + int ret; + + ret = rockchip_copy_image(ifd, ¶ms); + if (ret) + return ret; } else { copy_file(ifd, params.datafile, pad_len); } |