xiaoyu/sysdrv/source/uboot/u-boot/scripts
2025-03-04 22:36:42 +08:00
..
basic all 2025-03-04 22:36:42 +08:00
coccinelle/net all 2025-03-04 22:36:42 +08:00
dtc all 2025-03-04 22:36:42 +08:00
kconfig all 2025-03-04 22:36:42 +08:00
android2distro.sh all 2025-03-04 22:36:42 +08:00
android2fit.sh all 2025-03-04 22:36:42 +08:00
atf.sh all 2025-03-04 22:36:42 +08:00
avbtool.py all 2025-03-04 22:36:42 +08:00
bin2c.c all 2025-03-04 22:36:42 +08:00
binutils-version.sh all 2025-03-04 22:36:42 +08:00
build-tftp-firmware.sh all 2025-03-04 22:36:42 +08:00
build-whitelist.sh all 2025-03-04 22:36:42 +08:00
check-config.sh all 2025-03-04 22:36:42 +08:00
check-rkconfig.sh all 2025-03-04 22:36:42 +08:00
checkpatch.pl all 2025-03-04 22:36:42 +08:00
checkstack.pl all 2025-03-04 22:36:42 +08:00
cleanpatch all 2025-03-04 22:36:42 +08:00
compress.sh all 2025-03-04 22:36:42 +08:00
config_whitelist.txt all 2025-03-04 22:36:42 +08:00
const_structs.checkpatch all 2025-03-04 22:36:42 +08:00
coreboot.sed all 2025-03-04 22:36:42 +08:00
decomp.sh all 2025-03-04 22:36:42 +08:00
diffconfig all 2025-03-04 22:36:42 +08:00
docproc.c all 2025-03-04 22:36:42 +08:00
dtc-version.sh all 2025-03-04 22:36:42 +08:00
fill_scrapyard.py all 2025-03-04 22:36:42 +08:00
fit-core.sh all 2025-03-04 22:36:42 +08:00
fit-msg.sh all 2025-03-04 22:36:42 +08:00
fit-repack.sh all 2025-03-04 22:36:42 +08:00
fit-resign.sh all 2025-03-04 22:36:42 +08:00
fit-unpack.sh all 2025-03-04 22:36:42 +08:00
fit.sh all 2025-03-04 22:36:42 +08:00
gcc-stack-usage.sh all 2025-03-04 22:36:42 +08:00
gcc-version.sh all 2025-03-04 22:36:42 +08:00
get_default_envs.sh all 2025-03-04 22:36:42 +08:00
get_maintainer.pl all 2025-03-04 22:36:42 +08:00
Kbuild.include all 2025-03-04 22:36:42 +08:00
kernel-doc all 2025-03-04 22:36:42 +08:00
ld-version.sh all 2025-03-04 22:36:42 +08:00
Lindent all 2025-03-04 22:36:42 +08:00
loader.sh all 2025-03-04 22:36:42 +08:00
mailmapper all 2025-03-04 22:36:42 +08:00
Makefile all 2025-03-04 22:36:42 +08:00
Makefile.autoconf all 2025-03-04 22:36:42 +08:00
Makefile.build all 2025-03-04 22:36:42 +08:00
Makefile.clean all 2025-03-04 22:36:42 +08:00
Makefile.extrawarn all 2025-03-04 22:36:42 +08:00
Makefile.host all 2025-03-04 22:36:42 +08:00
Makefile.lib all 2025-03-04 22:36:42 +08:00
Makefile.spl all 2025-03-04 22:36:42 +08:00
Makefile.uncmd_spl all 2025-03-04 22:36:42 +08:00
mkbootimg all 2025-03-04 22:36:42 +08:00
mkenv.sh all 2025-03-04 22:36:42 +08:00
mkkrnlimg all 2025-03-04 22:36:42 +08:00
mkmakefile all 2025-03-04 22:36:42 +08:00
objdiff all 2025-03-04 22:36:42 +08:00
pack_resource.sh all 2025-03-04 22:36:42 +08:00
README.rockchip all 2025-03-04 22:36:42 +08:00
repack-bootimg all 2025-03-04 22:36:42 +08:00
rkpatch.sh all 2025-03-04 22:36:42 +08:00
setlocalversion all 2025-03-04 22:36:42 +08:00
show-gnu-make all 2025-03-04 22:36:42 +08:00
spl.sh all 2025-03-04 22:36:42 +08:00
stacktrace.sh all 2025-03-04 22:36:42 +08:00
sync-fragment.sh all 2025-03-04 22:36:42 +08:00
tos.sh all 2025-03-04 22:36:42 +08:00
uboot.sh all 2025-03-04 22:36:42 +08:00
uimage-pack.sh all 2025-03-04 22:36:42 +08:00
unpack_bootimg all 2025-03-04 22:36:42 +08:00
unpack_resource.sh all 2025-03-04 22:36:42 +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
		./scripts/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