luckfox-pico-sdk/sysdrv/source/uboot/u-boot/scripts
luckfox-eng29 8f34c2760d project:build.sh: Added fastboot support; custom modifications to U-Boot and kernel implemented using patches.
project:cfg:BoardConfig_IPC: Added fastboot BoardConfig file and firmware post-scripts, distinguishing between
the BoardConfigs for Luckfox Pico Pro and Luckfox Pico Max. project:app: Added fastboot_client and rk_smart_door
for quick boot applications; updated rkipc app to adapt to the latest media library. media:samples: Added more
usage examples. media:rockit: Fixed bugs; removed support for retrieving data frames from VPSS. media:isp:
Updated rkaiq library and related tools to support connection to RKISP_Tuner. sysdrv:Makefile: Added support for
compiling drv_ko on Luckfox Pico Ultra W using Ubuntu; added support for custom root filesystem.
sysdrv:tools:board: Updated Buildroot optional mirror sources, updated some software versions, and stored device
tree files and configuration files that undergo multiple modifications for U-Boot and kernel separately.
sysdrv:source:mcu: Used RISC-V MCU SDK with RT-Thread system, mainly for initializing camera AE during quick
boot. sysdrv:source:uboot: Added support for fastboot; added high baud rate DDR bin for serial firmware upgrades.
sysdrv:source:kernel: Upgraded to version 5.10.160; increased NPU frequency for RV1106G3; added support for
fastboot.

Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
2024-10-14 09:47:04 +08:00
..
basic creat: first commit 2023-08-08 20:36:47 +08:00
coccinelle/net creat: first commit 2023-08-08 20:36:47 +08:00
dtc creat: first commit 2023-08-08 20:36:47 +08:00
kconfig creat: first commit 2023-08-08 20:36:47 +08:00
.gitignore creat: first commit 2023-08-08 20:36:47 +08:00
android2distro.sh creat: first commit 2023-08-08 20:36:47 +08:00
android2fit.sh creat: first commit 2023-08-08 20:36:47 +08:00
atf.sh creat: first commit 2023-08-08 20:36:47 +08:00
avbtool.py creat: first commit 2023-08-08 20:36:47 +08:00
bin2c.c creat: first commit 2023-08-08 20:36:47 +08:00
binutils-version.sh creat: first commit 2023-08-08 20:36:47 +08:00
build-tftp-firmware.sh creat: first commit 2023-08-08 20:36:47 +08:00
build-whitelist.sh creat: first commit 2023-08-08 20:36:47 +08:00
check-config.sh creat: first commit 2023-08-08 20:36:47 +08:00
check-rkconfig.sh project:build.sh: Added fastboot support; custom modifications to U-Boot and kernel implemented using patches. 2024-10-14 09:47:04 +08:00
checkpatch.pl creat: first commit 2023-08-08 20:36:47 +08:00
checkstack.pl creat: first commit 2023-08-08 20:36:47 +08:00
cleanpatch creat: first commit 2023-08-08 20:36:47 +08:00
compress.sh creat: first commit 2023-08-08 20:36:47 +08:00
config_whitelist.txt creat: first commit 2023-08-08 20:36:47 +08:00
const_structs.checkpatch creat: first commit 2023-08-08 20:36:47 +08:00
coreboot.sed creat: first commit 2023-08-08 20:36:47 +08:00
decomp.sh creat: first commit 2023-08-08 20:36:47 +08:00
diffconfig creat: first commit 2023-08-08 20:36:47 +08:00
docproc.c creat: first commit 2023-08-08 20:36:47 +08:00
dtc-version.sh creat: first commit 2023-08-08 20:36:47 +08:00
fill_scrapyard.py creat: first commit 2023-08-08 20:36:47 +08:00
fit-core.sh project:build.sh: Added fastboot support; custom modifications to U-Boot and kernel implemented using patches. 2024-10-14 09:47:04 +08:00
fit-msg.sh creat: first commit 2023-08-08 20:36:47 +08:00
fit-repack.sh creat: first commit 2023-08-08 20:36:47 +08:00
fit-resign.sh creat: first commit 2023-08-08 20:36:47 +08:00
fit-unpack.sh creat: first commit 2023-08-08 20:36:47 +08:00
fit.sh project:build.sh: Added fastboot support; custom modifications to U-Boot and kernel implemented using patches. 2024-10-14 09:47:04 +08:00
gcc-stack-usage.sh creat: first commit 2023-08-08 20:36:47 +08:00
gcc-version.sh creat: first commit 2023-08-08 20:36:47 +08:00
get_default_envs.sh creat: first commit 2023-08-08 20:36:47 +08:00
get_maintainer.pl creat: first commit 2023-08-08 20:36:47 +08:00
Kbuild.include creat: first commit 2023-08-08 20:36:47 +08:00
kernel-doc creat: first commit 2023-08-08 20:36:47 +08:00
ld-version.sh creat: first commit 2023-08-08 20:36:47 +08:00
Lindent creat: first commit 2023-08-08 20:36:47 +08:00
loader.sh creat: first commit 2023-08-08 20:36:47 +08:00
mailmapper creat: first commit 2023-08-08 20:36:47 +08:00
Makefile creat: first commit 2023-08-08 20:36:47 +08:00
Makefile.autoconf creat: first commit 2023-08-08 20:36:47 +08:00
Makefile.build creat: first commit 2023-08-08 20:36:47 +08:00
Makefile.clean creat: first commit 2023-08-08 20:36:47 +08:00
Makefile.extrawarn creat: first commit 2023-08-08 20:36:47 +08:00
Makefile.host creat: first commit 2023-08-08 20:36:47 +08:00
Makefile.lib creat: first commit 2023-08-08 20:36:47 +08:00
Makefile.spl creat: first commit 2023-08-08 20:36:47 +08:00
Makefile.uncmd_spl creat: first commit 2023-08-08 20:36:47 +08:00
mkbootimg creat: first commit 2023-08-08 20:36:47 +08:00
mkenv.sh creat: first commit 2023-08-08 20:36:47 +08:00
mkkrnlimg creat: first commit 2023-08-08 20:36:47 +08:00
mkmakefile creat: first commit 2023-08-08 20:36:47 +08:00
objdiff creat: first commit 2023-08-08 20:36:47 +08:00
pack_resource.sh creat: first commit 2023-08-08 20:36:47 +08:00
README.rockchip project:build.sh: Added fastboot support; custom modifications to U-Boot and kernel implemented using patches. 2024-10-14 09:47:04 +08:00
repack-bootimg creat: first commit 2023-08-08 20:36:47 +08:00
rkpatch.sh creat: first commit 2023-08-08 20:36:47 +08:00
setlocalversion project:build.sh: Added fastboot support; custom modifications to U-Boot and kernel implemented using patches. 2024-10-14 09:47:04 +08:00
show-gnu-make creat: first commit 2023-08-08 20:36:47 +08:00
spl.sh creat: first commit 2023-08-08 20:36:47 +08:00
stacktrace.sh creat: first commit 2023-08-08 20:36:47 +08:00
sync-fragment.sh creat: first commit 2023-08-08 20:36:47 +08:00
tos.sh creat: first commit 2023-08-08 20:36:47 +08:00
uboot.sh creat: first commit 2023-08-08 20:36:47 +08:00
uimage-pack.sh creat: first commit 2023-08-08 20:36:47 +08:00
unpack_bootimg creat: first commit 2023-08-08 20:36:47 +08:00
unpack_resource.sh creat: first commit 2023-08-08 20:36:47 +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