rv1126-uboot/scripts
Joseph Chen b42d2103f1 make.sh: clean up and simplify
There are so many commands in make.sh, we have to clean
and seperate command into individual script file. And
some command is to be the official option for outside.

By the way, adding nm command to analyze image size.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I37ba38b621216f6db79325fada5980a54ca987cb
2020-08-11 20:28:08 +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 UPSTREAM: pylibfdt: compile pylibfdt only when dtoc/binman is necessary 2018-01-17 15:27:28 +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 scripts: add README for rockchip scripts and tool 2019-11-28 14:48:43 +08:00
atf.sh make.sh: clean up and simplify 2020-08-11 20:28:08 +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 UPSTREAM: configs: move CONFIG_USB_EHCI_VF to Kconfig 2020-01-07 17:24:56 +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
fit-mkimg.sh make.sh: clean up and simplify 2020-08-11 20:28:08 +08:00
fit-repack.sh scripts: add script to support repack fit 2020-07-09 11:47:03 +08:00
fit-resign.sh scripts: fit: refactor code 2020-05-18 18:16:20 +08:00
fit-unpack.sh scripts: fit: refactor code 2020-05-18 18:16:20 +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 make.sh: clean up and simplify 2020-08-11 20:28:08 +08:00
mailmapper
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 pack_resource.sh: move to ./scripts/ folder 2019-02-13 17:31:13 +08:00
repack-bootimg scripts: repack-bootimg: repack second if total repack 2019-12-10 11:30:51 +08:00
rkpatch.sh make.sh: move debug command to scripts/rkpatch.sh 2019-12-10 16:45:54 +08:00
setlocalversion scripts: setlocalversion: add more information 2020-03-30 17:31:40 +08:00
show-gnu-make
spl.sh make.sh: clean up and simplify 2020-08-11 20:28:08 +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 make.sh: clean up and simplify 2020-08-11 20:28:08 +08:00
uboot.sh make.sh: clean up and simplify 2020-08-11 20:28:08 +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