rv1126-uboot/scripts
Joseph Chen 4b1cd58cd0 scripts: fit: support sign recovery.img
Add args:
	--recovery_img
	--rollback-index-recovery
	--version-recovery

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Iabd9a78155f1d6e10b9539bb9fee6d17153b8074
2021-02-02 17:06:43 +08:00
..
basic UPSTREAM: fixdep: fix dependency on options surrounded by CONFIG_VAL() 2018-01-17 15:27:28 +08:00
coccinelle/net scripts: Add a cocci patch for miiphy_register 2016-08-15 15:26:23 -05:00
dtc scripts/dtc: phandle index start from 0x1000000 2021-01-18 10:24:07 +08:00
kconfig kconfig: re-sync with Linux 4.10 2017-02-12 14:31:25 -05:00
.gitignore cmd: add a new command "config" to show .config contents 2017-02-08 15:56:26 -05:00
Kbuild.include UPSTREAM: scripts/dtc: Update to upstream version v1.4.3 2018-01-16 18:16:48 +08:00
Lindent
Makefile UPSTREAM: dtc: Switch to building and using our own dtc unless provided 2018-01-16 18:16:48 +08:00
Makefile.autoconf kbuild: add include linux/kconfig.h in config.h 2017-01-28 08:47:42 -05:00
Makefile.build scripts/Makefile* Add SPDX-License-Identifier tag 2016-01-19 08:31:17 -05:00
Makefile.clean scripts/Makefile* Add SPDX-License-Identifier tag 2016-01-19 08:31:17 -05:00
Makefile.extrawarn UPSTREAM: scripts/dtc: Update to upstream version v1.4.3 2018-01-16 18:16:48 +08:00
Makefile.host dm: Add a more efficient libfdt library 2016-07-14 20:40:24 -06:00
Makefile.lib UPSTREAM: kbuild: fix dependency of DT build 2018-01-17 15:27:28 +08:00
Makefile.spl UPSTREAM: usb: Add Cadence USB3 host and gadget driver 2020-01-07 17:25:03 +08:00
Makefile.uncmd_spl UPSTREAM: scripts: spl: fix typo 2018-01-17 15:27:28 +08:00
README.rockchip tools: add tools for convert bmp to gray16 and saved as logo.img. 2020-12-10 17:51:14 +08:00
android2fit.sh scripts: android2fit.sh transform Android image to FIT image 2020-11-14 08:28:45 +00:00
atf.sh scripts: not allow error for rockchip scripts 2020-09-16 12:07:25 +08:00
bin2c.c scripts: import bin2c.c from Linux 4.10-rc6 2017-02-08 15:56:19 -05:00
binutils-version.sh
build-whitelist.sh sunxi: Fix CONFIG_SUNXI_GMAC references 2017-09-01 20:48:27 +05:30
check-config.sh scripts: config_whitelist: Handle lines with leading spaces/tabs 2017-06-29 10:01:10 -04:00
checkpatch.pl UPSTREAM: checkpatch: Support wide strings 2018-01-17 15:27:28 +08:00
checkstack.pl avr32: Retire AVR32 for good 2017-07-06 16:17:19 -04:00
cleanpatch
config_whitelist.txt rockchip: rv1126: rename periph device region 2020-12-30 17:48:20 +08:00
const_structs.checkpatch UPSTREAM: checkpatch: update from Linux v4.13-rc6 2018-01-16 18:14:09 +08:00
coreboot.sed x86: Add a script to aid code conversion from coreboot 2016-03-17 10:27:23 +08:00
diffconfig scripts: add diffconfig from kernel project 2020-07-08 17:57:49 +08:00
docproc.c
dtc-version.sh UPSTREAM: Makefile: Update minimum dtc version to 1.4.3 2018-01-16 18:16:48 +08:00
fill_scrapyard.py scripts: add a utility to fill blank fields of doc/README.scrapyard 2015-01-14 10:58:49 -05:00
fit-msg.sh scripts: fit: validate image type of source file 2020-12-31 18:19:44 +08:00
fit-repack.sh scripts: fit: validate image type of source file 2020-12-31 18:19:44 +08:00
fit-resign.sh scripts: fit: validate image type of source file 2020-12-31 18:19:44 +08:00
fit-unpack.sh scripts: fit: validate image type of source file 2020-12-31 18:19:44 +08:00
fit.sh scripts: fit: support sign recovery.img 2021-02-02 17:06:43 +08:00
gcc-stack-usage.sh
gcc-version.sh
get_default_envs.sh scripts: Add script to extract default environment 2016-10-06 21:00:53 -04:00
get_maintainer.pl UPSTREAM: scripts/get_maintainer.pl: enable find_maintainer_files 2018-01-17 15:27:28 +08:00
kernel-doc
ld-version.sh
loader.sh scripts: not allow error for rockchip scripts 2020-09-16 12:07:25 +08:00
mailmapper UPSTREAM: host-tools: use python2 explicitly for shebang 2020-11-02 21:26:47 +08:00
mkbootimg scripts: add mkbootimg and unpack_bootimg 2019-11-12 19:32:12 +08:00
mkkrnlimg scripts: add mkkrnlimg tool to pack rockchip format image 2019-04-04 10:15:19 +08:00
mkmakefile
objdiff scripts: objdiff: Ignore debug info when comparing 2017-08-26 14:56:14 -04:00
pack_resource.sh scripts: pack_resource.sh: support android and fit image 2020-12-18 18:02:35 +08:00
repack-bootimg scripts: repack-bootimg: repack second if total repack 2019-12-10 11:30:51 +08:00
rkpatch.sh scripts: rkpatch: update patch order 2020-10-28 21:23:07 +08:00
setlocalversion scripts: setlocalversion: add more information 2020-03-30 17:31:40 +08:00
show-gnu-make
spl.sh scritps: spl.sh: support new idb pack 2020-11-06 18:21:26 +08:00
stacktrace.sh scripts: stacktrace.sh: use grep to filter lines 2019-11-22 08:42:16 +08:00
sync-fragment.sh scripts: sync-fragment: use "mv" instread of "cp" 2020-07-10 15:14:41 +08:00
tos.sh scripts: not allow error for rockchip scripts 2020-09-16 12:07:25 +08:00
uboot.sh scripts: uboot.sh: use lodaerimage from rkbin 2020-09-16 12:07:25 +08:00
uimage-pack.sh scripts: add uimage pack script 2020-04-24 10:23:26 +08:00
unpack_bootimg scripts: add mkbootimg and unpack_bootimg 2019-11-12 19:32:12 +08:00
unpack_resource.sh scripts: add unpack_resource.sh 2019-10-22 16:42:22 +08:00

README.rockchip

#
# 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

[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