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 |
||
|---|---|---|
| .. | ||
| basic | ||
| coccinelle/net | ||
| dtc | ||
| kconfig | ||
| .gitignore | ||
| Kbuild.include | ||
| Lindent | ||
| Makefile | ||
| Makefile.autoconf | ||
| Makefile.build | ||
| Makefile.clean | ||
| Makefile.extrawarn | ||
| Makefile.host | ||
| Makefile.lib | ||
| Makefile.spl | ||
| Makefile.uncmd_spl | ||
| README.rockchip | ||
| android2fit.sh | ||
| atf.sh | ||
| bin2c.c | ||
| binutils-version.sh | ||
| build-whitelist.sh | ||
| check-config.sh | ||
| checkpatch.pl | ||
| checkstack.pl | ||
| cleanpatch | ||
| config_whitelist.txt | ||
| const_structs.checkpatch | ||
| coreboot.sed | ||
| diffconfig | ||
| docproc.c | ||
| dtc-version.sh | ||
| fill_scrapyard.py | ||
| fit-msg.sh | ||
| fit-repack.sh | ||
| fit-resign.sh | ||
| fit-unpack.sh | ||
| fit.sh | ||
| gcc-stack-usage.sh | ||
| gcc-version.sh | ||
| get_default_envs.sh | ||
| get_maintainer.pl | ||
| kernel-doc | ||
| ld-version.sh | ||
| loader.sh | ||
| mailmapper | ||
| mkbootimg | ||
| mkkrnlimg | ||
| mkmakefile | ||
| objdiff | ||
| pack_resource.sh | ||
| repack-bootimg | ||
| rkpatch.sh | ||
| setlocalversion | ||
| show-gnu-make | ||
| spl.sh | ||
| stacktrace.sh | ||
| sync-fragment.sh | ||
| tos.sh | ||
| uboot.sh | ||
| uimage-pack.sh | ||
| unpack_bootimg | ||
| unpack_resource.sh | ||
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