linuxOS_AP05/u-boot/scripts
2025-06-02 13:59:07 +08:00
..
basic add dma for uart 2025-06-02 13:59:07 +08:00
coccinelle/net add dma for uart 2025-06-02 13:59:07 +08:00
dtc add dma for uart 2025-06-02 13:59:07 +08:00
kconfig add dma for uart 2025-06-02 13:59:07 +08:00
.gitignore add dma for uart 2025-06-02 13:59:07 +08:00
android2distro.sh add dma for uart 2025-06-02 13:59:07 +08:00
android2fit.sh add dma for uart 2025-06-02 13:59:07 +08:00
atf.sh add dma for uart 2025-06-02 13:59:07 +08:00
avbtool.py add dma for uart 2025-06-02 13:59:07 +08:00
bin2c.c add dma for uart 2025-06-02 13:59:07 +08:00
binutils-version.sh add dma for uart 2025-06-02 13:59:07 +08:00
build-tftp-firmware.sh add dma for uart 2025-06-02 13:59:07 +08:00
build-whitelist.sh add dma for uart 2025-06-02 13:59:07 +08:00
check-config.sh add dma for uart 2025-06-02 13:59:07 +08:00
checkpatch.pl add dma for uart 2025-06-02 13:59:07 +08:00
checkstack.pl add dma for uart 2025-06-02 13:59:07 +08:00
cleanpatch add dma for uart 2025-06-02 13:59:07 +08:00
compress.sh add dma for uart 2025-06-02 13:59:07 +08:00
config_whitelist.txt add dma for uart 2025-06-02 13:59:07 +08:00
const_structs.checkpatch add dma for uart 2025-06-02 13:59:07 +08:00
coreboot.sed add dma for uart 2025-06-02 13:59:07 +08:00
decomp.sh add dma for uart 2025-06-02 13:59:07 +08:00
diffconfig add dma for uart 2025-06-02 13:59:07 +08:00
docproc.c add dma for uart 2025-06-02 13:59:07 +08:00
dtc-version.sh add dma for uart 2025-06-02 13:59:07 +08:00
fill_scrapyard.py add dma for uart 2025-06-02 13:59:07 +08:00
fit-core.sh add dma for uart 2025-06-02 13:59:07 +08:00
fit-msg.sh add dma for uart 2025-06-02 13:59:07 +08:00
fit-repack.sh add dma for uart 2025-06-02 13:59:07 +08:00
fit-resign.sh add dma for uart 2025-06-02 13:59:07 +08:00
fit-unpack.sh add dma for uart 2025-06-02 13:59:07 +08:00
fit.sh add dma for uart 2025-06-02 13:59:07 +08:00
gcc-stack-usage.sh add dma for uart 2025-06-02 13:59:07 +08:00
gcc-version.sh add dma for uart 2025-06-02 13:59:07 +08:00
get_default_envs.sh add dma for uart 2025-06-02 13:59:07 +08:00
get_maintainer.pl add dma for uart 2025-06-02 13:59:07 +08:00
Kbuild.include add dma for uart 2025-06-02 13:59:07 +08:00
kernel-doc add dma for uart 2025-06-02 13:59:07 +08:00
ld-version.sh add dma for uart 2025-06-02 13:59:07 +08:00
Lindent add dma for uart 2025-06-02 13:59:07 +08:00
loader.sh add dma for uart 2025-06-02 13:59:07 +08:00
mailmapper add dma for uart 2025-06-02 13:59:07 +08:00
Makefile add dma for uart 2025-06-02 13:59:07 +08:00
Makefile.autoconf add dma for uart 2025-06-02 13:59:07 +08:00
Makefile.build add dma for uart 2025-06-02 13:59:07 +08:00
Makefile.clean add dma for uart 2025-06-02 13:59:07 +08:00
Makefile.extrawarn add dma for uart 2025-06-02 13:59:07 +08:00
Makefile.host add dma for uart 2025-06-02 13:59:07 +08:00
Makefile.lib add dma for uart 2025-06-02 13:59:07 +08:00
Makefile.spl add dma for uart 2025-06-02 13:59:07 +08:00
Makefile.uncmd_spl add dma for uart 2025-06-02 13:59:07 +08:00
mkbootimg add dma for uart 2025-06-02 13:59:07 +08:00
mkenv.sh add dma for uart 2025-06-02 13:59:07 +08:00
mkkrnlimg add dma for uart 2025-06-02 13:59:07 +08:00
mkmakefile add dma for uart 2025-06-02 13:59:07 +08:00
objdiff add dma for uart 2025-06-02 13:59:07 +08:00
pack_resource.sh add dma for uart 2025-06-02 13:59:07 +08:00
README.rockchip add dma for uart 2025-06-02 13:59:07 +08:00
repack-bootimg add dma for uart 2025-06-02 13:59:07 +08:00
rkpatch.sh add dma for uart 2025-06-02 13:59:07 +08:00
setlocalversion add dma for uart 2025-06-02 13:59:07 +08:00
show-gnu-make add dma for uart 2025-06-02 13:59:07 +08:00
spl.sh add dma for uart 2025-06-02 13:59:07 +08:00
stacktrace.sh add dma for uart 2025-06-02 13:59:07 +08:00
sync-fragment.sh add dma for uart 2025-06-02 13:59:07 +08:00
tos.sh add dma for uart 2025-06-02 13:59:07 +08:00
uboot.sh add dma for uart 2025-06-02 13:59:07 +08:00
uimage-pack.sh add dma for uart 2025-06-02 13:59:07 +08:00
unpack_bootimg add dma for uart 2025-06-02 13:59:07 +08:00
unpack_resource.sh add dma for uart 2025-06-02 13:59:07 +08:00

#
# Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
#
# SPDX-License-Identifier: GPL-2.0
#

Example usage of scripts/tools for Rockchip

- Here only shows the typical example usage, but not all
- Mainly for providing developers with a quick reference
- Get more detail information by scripts/tools help
========================================================

[scripts]
	# pack_resource.sh
		./scripts/pack_resource.sh resource.img

	# unpack_resource.sh
		./scripts/unpack_resource.sh resource.img  out/

	# mkbootimg
		./scripts/mkbootimg --kernel zImage --second resource.img --ramdisk ramdisk.img --out boot.img

	# unpack_bootimg
		./scripts/unpack_bootimg --boot_img boot.img --out out/

	# repack-bootimg
		./scripts/repack-bootimg --boot_img boot.img --kernel zImage -o boot_repack.img

	# stacktrace.sh
		./scripts/stacktrace.sh dump.txt
		./scripts/stacktrace.sh dump.txt spl
		./scripts/stacktrace.sh dump.txt tpl

	# avbtool.py
		./avbtool.py info_image --image vbmeta.img

[tools]
	# resource_tool
		./tools/resource_tool rk-kernel.dtb logo_kernel.bmp logo.bmp
		./tools/resource_tool --unpack --image=resource.img out/

	# trust_merger
		./tools/trust_merger ./RKTRUST/RK3399TRUST.ini
		./tools/trust_merger --unpack trust.img

	# boot_merger
		./tools/boot_merger ./RKBOOT/RK3399MINIALL.ini
		./tools/boot_merger --unpack rk3399_loader_v1.17.115.bin

	# loaderimage
		./tools/loaderimage --pack --uboot ./u-boot.bin uboot.img 0x60000000 --size 1024 2
		./tools/loaderimage --unpack --uboot uboot.img uboot.bin

		./tools/loaderimage --pack --trustos ./bin/rk32/rk322x_tee_v2.00.bin trust.img 0x80000000  --size 1024 2
		./tools/loaderimage --unpack --trustos trust.img tee.bin
	# bmp2gray16
		./tools/bmp2gray16 --uboot-logo uboot.bmp --charge-logo charging.bmp --lowpower-logo lowpower.bmp --kernel-logo kernel.bmp --output ./logo.img