xref: /OK3568_Linux_fs/u-boot/scripts/README.rockchip (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#
2# Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
3#
4# SPDX-License-Identifier: GPL-2.0
5#
6
7Example usage of scripts/tools for Rockchip
8
9- Here only shows the typical example usage, but not all
10- Mainly for providing developers with a quick reference
11- Get more detail information by scripts/tools help
12========================================================
13
14[scripts]
15	# pack_resource.sh
16		./scripts/pack_resource.sh resource.img
17
18	# unpack_resource.sh
19		./scripts/unpack_resource.sh resource.img  out/
20
21	# mkbootimg
22		./scripts/mkbootimg --kernel zImage --second resource.img --ramdisk ramdisk.img --out boot.img
23
24	# unpack_bootimg
25		./scripts/unpack_bootimg --boot_img boot.img --out out/
26
27	# repack-bootimg
28		./scripts/repack-bootimg --boot_img boot.img --kernel zImage -o boot_repack.img
29
30	# stacktrace.sh
31		./scripts/stacktrace.sh dump.txt
32		./scripts/stacktrace.sh dump.txt spl
33		./scripts/stacktrace.sh dump.txt tpl
34
35	# avbtool.py
36		./scripts/avbtool.py info_image --image vbmeta.img
37
38[tools]
39	# resource_tool
40		./tools/resource_tool rk-kernel.dtb logo_kernel.bmp logo.bmp
41		./tools/resource_tool --unpack --image=resource.img out/
42
43	# trust_merger
44		./tools/trust_merger ./RKTRUST/RK3399TRUST.ini
45		./tools/trust_merger --unpack trust.img
46
47	# boot_merger
48		./tools/boot_merger ./RKBOOT/RK3399MINIALL.ini
49		./tools/boot_merger --unpack rk3399_loader_v1.17.115.bin
50
51	# loaderimage
52		./tools/loaderimage --pack --uboot ./u-boot.bin uboot.img 0x60000000 --size 1024 2
53		./tools/loaderimage --unpack --uboot uboot.img uboot.bin
54
55		./tools/loaderimage --pack --trustos ./bin/rk32/rk322x_tee_v2.00.bin trust.img 0x80000000  --size 1024 2
56		./tools/loaderimage --unpack --trustos trust.img tee.bin
57	# bmp2gray16
58		./tools/bmp2gray16 --uboot-logo uboot.bmp --charge-logo charging.bmp --lowpower-logo lowpower.bmp --kernel-logo kernel.bmp --output ./logo.img
59