xref: /rk3399_rockchip-uboot/scripts/README.rockchip (revision effae6d71544d6cab5ae01aa7160bb709b3a3e6e)
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[tools]
36	# resource_tool
37		./tools/resource_tool rk-kernel.dtb logo_kernel.bmp logo.bmp
38		./tools/resource_tool --unpack --image=resource.img out/
39
40	# trust_merger
41		./tools/trust_merger ./RKTRUST/RK3399TRUST.ini
42		./tools/trust_merger --unpack trust.img
43
44	# boot_merger
45		./tools/boot_merger ./RKBOOT/RK3399MINIALL.ini
46		./tools/boot_merger --unpack rk3399_loader_v1.17.115.bin
47
48	# loaderimage
49		./tools/loaderimage --pack --uboot ./u-boot.bin uboot.img 0x60000000 --size 1024 2
50		./tools/loaderimage --unpack --uboot uboot.img uboot.bin
51
52		./tools/loaderimage --pack --trustos ./bin/rk32/rk322x_tee_v2.00.bin trust.img 0x80000000  --size 1024 2
53		./tools/loaderimage --unpack --trustos trust.img tee.bin
54	# bmp2gray16
55		./tools/bmp2gray16 --uboot-logo uboot.bmp --charge-logo charging.bmp --lowpower-logo lowpower.bmp --kernel-logo kernel.bmp --output ./logo.img
56