rv1126-uboot/scripts
Wenping Zhang 0466543ca9 tools: add tools for convert bmp to gray16 and saved as logo.img.
This tool support convert 16bpp/24bpp/32bpp bmp images into
4 bits grayscale image, and add header info to save as logo.img.
logo.img is flash into emmc and parsed in uboot to display
uboot/charging/lowpower/kernel logo.
[Note]the requirement of bmp files:
1. The resolution of all bmp image must be same.
2. The logo.img will be parsed in uboot, the uboot require the resolution
   of image must be same as screen resolution, otherwise will be failed.
3. The color depth of bmp image must be 16bpp/24bpp/32bpp, 8bpp is not supported.

The usage:
./tools/bmp2gray16 --uboot-logo tools/images/eink/uboot.bmp --kernel-logo tools/images/eink/kernel.bmp
--charge-logo tools/images/eink/battery_0.bmp tools/images/eink/battery_1.bmp tools/images/eink/battery_2.bmp
tools/images/eink/battery_3.bmp tools/images/eink/battery_4.bmp tools/images/eink/battery_5.bmp
tools/images/eink/battery_fail.bmp --output ./logo.img

Signed-off-by: Wenping Zhang <wenping.zhang@rock-chips.com>
Change-Id: Ifc39f0344693fb0b26b04d7904289847e6fa9b90
2020-12-10 17:51:14 +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: host-tools: use python2 explicitly for shebang 2020-11-02 21:26:47 +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 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-msg.sh scripts: fit-msg.sh: read components image message 2020-11-14 09:00:35 +00:00
fit-repack.sh scritps: fit-repack: clean coding style 2020-11-09 21:23:41 +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
fit.sh scripts: fit.sh: add "burn-key-hash = <1>" in u-boot-spl.dtb 2020-12-10 15:40:26 +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 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 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