Commit Graph

61 Commits

Author SHA1 Message Date
liuyi
2de2cf1bc4 tools: sign_tool: uploading
1.uploading sign_tool in c++
2.support to sign by key in the server
3.support to verify signed file in local

Signed-off-by: liuyi <liuyi@rock-chips.com>
Change-Id: I19456f8d2c4be1d0929ec022012d4b0e59f0d60c
2022-03-01 11:35:49 +00:00
liuyi
06f81b974a tools: rk_sign_tool: delete
1.delete rk_sign_tool and library in python
2.prepare for uploading sign_tool in c++

Signed-off-by: liuyi <liuyi@rock-chips.com>
Change-Id: I12766d6715e8f9bb647479690358ddec4ec032c5
2022-03-01 11:34:37 +00:00
liuyi
9f43b3c163 tools: boot_merger: v1.2
1.add IDB_PATH in the OUTPUT section
2.add CREATE_IDB in the FLAG section
3.support to create idblock binary during packing loader

Signed-off-by: liuyi <liuyi@rock-chips.com>
Change-Id: Ic8b1f5eef0151e5813ec0493c6bc6ef6490768d0
2022-03-01 11:34:37 +00:00
liuyi
731cd6f554 tools: boot_merger: update for RV1106 support
1.support chip flag start with -RV

Signed-off-by: liuyi <liuyi@rock-chips.com>
Change-Id: I1b64b0ca275b54d7752430e76d67b1e9894dd9f2
2022-02-16 14:51:55 +08:00
Zhihuan He
8edfcbea7b tool: ddrbin_tool: update to v1.09 20211130
updata: add support rk3588

Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
Change-Id: I025871d99b45ebacbc891f99d1594f99cbbc9d0b
2021-12-30 10:15:51 +08:00
Joseph Chen
cf03aba7fa tools: trust_merger: use p_paddr property to filter segments
PX30s bl31 contains none flat VA/PA mapping segments, it should
use p_paddr to filter them.

build from next-dev:
	02c35d15a0 tool: trust_merger: use p_paddr property to filter segments

build command:
	./make.sh px30

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I94926352b33b6e1b6feba3349743744a7554501d
2021-12-21 14:48:17 +08:00
Joseph Chen
f31d599039 tools: add gpt2env
This tool generates the gpt table with env format which
can be used in U-Boot by command:
    gpt write mmc 0 $partitions
    gpt verify mmc 0 $partitions

Usage:
   ./tools/gpt2env -i parameter.txt -o gpt_env.txt

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ib7ec33ac3d19fa8a1874c1b20526516b0d9f6006
2021-11-29 14:32:08 +08:00
Zhihuan He
d0242c74a8 tool: ddrbin_tool: update to v1.08 20211018
updata: add support rk3308BS

Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
Change-Id: I01891b2bfb0983139262469f379ee017ee521a38
2021-10-19 09:29:27 +08:00
Zhihuan He
ee173db8dd tool: ddrbin_tool: modify rk3288 support version
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
Change-Id: I98acafa705db87fdbb233d73dc2974b5450a89dc
2021-08-18 17:09:21 +08:00
Zhihuan He
65cc5683f9 tool: ddrbin_tool: modify freq describe
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
Change-Id: I07eda8e977da6f783ee67e6c013ac86d6bc6cc99
2021-07-16 15:40:05 +08:00
Zhihuan He
862514293b tool: ddrbin_tool: update to v1.07 20210603
1.add modify driver strength, odt, Vref and etc for rv1126 and rk3568
2.support getting ddrbin config to gen_param.txt:
    ./ddrbin_tool -g gen_param.txt px30_ddr_333MHz_v1.15.bin
3.add disable print training.

Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
Change-Id: I8c101dacd14926891d1632095fa9e1af1ab4f286
2021-06-25 09:05:07 +08:00
Zorro Liu
b29e7bf22a tools: bmp2gray16: support eink power off logo
Build from next-dev with command ./make.sh rk3566-eink

on-commit:
    (74b82d9635 tools: rockchip: bmp2gray16: support eink power off logo)

Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: Iedb3768cd55c253a311dfd3a6ef9351ade96cc47
2021-06-22 18:19:16 +08:00
Jon Lin
b3cdf972c0 tools: programmer_image_tool: Update to 1.20
Support rk3568 IDB packet format

Usage: ./programmer_image_tool -i loader.bin -b 256 -p 4 -t emmc

Change-Id: I316f3bb527464a9c1def79c61a22ca4040c9f034
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2021-06-16 15:17:20 +08:00
liuyi
373ba40e14 tools: rk_sign_tool: add 1109|1126|2206 setting
Signed-off-by: liuyi <liuyi@rock-chips.com>
Change-Id: Ie31e10ef1d14ae6879c37230bcded4b721526085
2021-04-12 11:52:42 +08:00
Wenping Zhang
681e83b5eb tools: bmp2gray16: fix segment fault error.
Build from next-dev with command ./make.sh rk3566-eink

on-commit:
       (e091b6c996 tools: bmp2gray16: fix segment fault because of image size error.)

Change-Id: Ic2d219272a747b25d54008ff0a448e47ec21c104
Signed-off-by: Wenping Zhang <wenping.zhang@rock-chips.com>
2021-04-12 09:20:13 +08:00
Jason Zhu
1c5d2cdba8 tools: programmer_image_tool: add version v1.0_20210204
This tool is used to make loader.bin as idb image.

Usage:
	./programmer_image_tool -i loader.bin -b 256 -p 4 -t emmc

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I7e6bd7480e1ab1aa0636527afac521289e61dc53
2021-02-24 14:53:26 +08:00
Zhihuan He
3e8d76b8fb tool: ddrbin_tool: update to v1.05 20210201
add support rk356x and ssmod.

Change-Id: Ida79ba2d7ae1dcf62241a727e5f9f29b73b0309e
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
2021-02-01 15:08:27 +08:00
Jason Zhu
14087ca6d5 tools: rk_sign_tool: update to v1.40
1.cut ssl command off
2.compatible with 35XX using sl command

Signed-off-by: liuyi <liuyi@rock-chips.com>
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Ia80e53a4b37541eebcb734bf7046cf51a3491c82
2020-12-30 16:31:41 +08:00
liuyi
96997db3bb tools: rk_sign_tool: update to v1.38
tools: boot_merger: set rc4_off as default

Signed-off-by: liuyi <liuyi@rock-chips.com>
Change-Id: I80ea3762c051a81082885bab01c3d047646f08b8
2020-12-30 16:31:41 +08:00
liuyi
c2d09f8bab tools: boot_merger: delete lib and softlink
Signed-off-by: liuyi <liuyi@rock-chips.com>
Change-Id: I50c5fa194ed5a7acb850cdb7b7b4ead03f1448bb
2020-12-30 16:31:41 +08:00
Wenping Zhang
3627082d32 tools: bmp2gray16: support bmp images transform to gray16 images for eink logo.
Build from next-dev with command ./make.sh rk3568

on-commit:
	(73f4e1977b tools: add tools for convert bmp to gray16 and saved as logo.img)

Signed-off-by: Wenping Zhang <wenping.zhang@rock-chips.com>
Change-Id: Ic4910ba40c5626d0910f052025f15d7571c0095f
2020-12-10 17:51:33 +08:00
Joseph Chen
7afa67f19f tools: soft link boot_merger from lib/boot_merger
lib/boot_merger is build from lib/boot_merger.py and
it's required by RK3568.

It compabiles with old loader format.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ib9ace18d5b3a7465322e3f128e2e1ccb9192f3cf
2020-11-27 16:55:46 +08:00
liuyi
b851481d4f tools: boot_merger: update to v1.31
Compatible with old loader format

Signed-off-by: liuyi <liuyi@rock-chips.com>
Change-Id: I51b778c799b5fd4524d221280ce677a795acfdc4
2020-11-27 16:55:46 +08:00
Jon Lin
d9a210f461 tools: burner_image_kits: Support the relative address in the first line of input file
Change-Id: I72ff4be81d5a9ef3098822ca26a0b354405ec55d
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-11-20 20:18:09 +08:00
Zhihuan He
fcd897c2c0 tool: ddrbin_tool: modify support version for rk3288
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
Change-Id: I8c9a4fedc88441efbde9b81eaaf8f1f705335254
2020-11-20 15:36:03 +08:00
liuyi
adfba59723 tools: boot_merger: update to v1.3
1.change loader format
2.support to generate sha512 hash

Signed-off-by: liuyi <liuyi@rock-chips.com>
Change-Id: I0f25a6f2c93340e265abec1037da07c961edc742
2020-11-19 15:25:44 +08:00
Jon Lin
a99428b748 tools: burner_image_kits: Support spinand 4096B page size
Change-Id: Icc8e95807749b54845a647e95c996ca7a3d6183c
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-11-15 16:00:03 +08:00
Jon Lin
6f1360c8a3 tools: burner_image_kits: Support boot_merge v1.2
Change-Id: I6d2945e2367bbe4505606e31f51806f92a278438
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-11-13 09:44:47 +08:00
liuyi
e42d12cd0e tools: boot_merger:
support to create rk3566 loader

Signed-off-by: liuyi <liuyi@rock-chips.com>
Change-Id: Ic23ba56c0e82b631946b9ea1e04169b2000d57bd
2020-11-06 18:28:07 +08:00
Jon Lin
554a3f27e0 tools: burner_image_kits: Support parsing soft link
Change-Id: I238e8d4fb19b8d164985766e1e6c1269b88618c9
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-11-04 20:14:00 +08:00
Jon Lin
62d2805350 tools: burner_image_kits: Support oobsize 224 SLC Nand
Change-Id: I28db45bad4143c9bd162c5ad32e3c5eb5dfab7b9
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-11-04 15:00:49 +08:00
Zhihuan He
72640b4b42 tool: ddrbin_tool: add more instructions for ddr*_f*_freq_mhz/lp*_f*_freq_mhz
Change-Id: I6675270be751c6bbfd5353ace24263d6565e4b42
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
2020-11-03 14:49:42 +08:00
Jon Lin
75f45d5e79 tools: burner_image_kits: Make idblocks.img
1.Output idblock.img.bak and idblocks.img
2.idblocks.img is merged with three copies of idblock.img.bak

Change-Id: I23a4fad55fc3c0e9210f63f668600a4a9a5c3eb4
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-10-23 11:55:14 +08:00
Jon Lin
899a586d57 tools: update mkimage
build with command:
	./make.sh rv1126

from next-dev:
	3ac03e839 mtd: spinand: Support FM25S02A

update feature:
	support packing optional second level boot-loader

usage:
	./tools/mkimage ... rksd -d ddr.bin:spl:bin ....

Change-Id: I31f9f77ec43e065689833cab550d23d72c3e8993
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-10-22 14:51:42 +08:00
Jon Lin
4e66ef7fd0 tools: burner_image_kits: Add code
1.Support burner_image_kits consult to the developer guide:
    Rockchip_Developer_Guide_Linux_Flash_Open_Source_Solution_CN.md
2.Update upgrade_tool ver 1.53
3.Update mkimage from next-dev commit: 3ac03e83

Change-Id: Ib83a825d1d5954ecb7a787df41a1a99a837c06f6
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-10-21 16:40:06 +08:00
Joseph Chen
01f9ac0d21 tools: update mkimage
build with command:
	./make.sh rv1126

from next-dev:
	1de0df4 scripts: fit: support set image version of uboot.img and boot.img

update feature:
	support assign image version with "-v"

usage:
	./mkimage ... -v [version]

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I7f7f284b9eb495243cd4c96618f4fcc569091b41
2020-10-21 16:14:57 +08:00
Zhihuan He
eea48410ac tool: ddrbin_tool: update to v1.03 20200720
add support rv1126/rv1109.

Change-Id: I1037697d47c02896aa5bb17a3d3ed0a04492bcfa
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
2020-07-23 10:22:22 +08:00
Joseph Chen
277d3c86fe tools: update mkimage
Fix: "Can't set 'totalsize' property for '' node (FDT_ERR_NOSPACE)"

build command: ./make.sh rv1126

from next-dev on:
	664ab5c configs: rv1126: Enable GMAC

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ibd11c4e21aaa66f32a2cffee1acd9b77cf60b6e9
2020-06-02 18:25:01 +08:00
Joseph Chen
cf0580ef22 tools: add mkimage tool to make fit image
build with command: ./make.sh rv1126

from next-dev on:
	eaa66b0 tools: fit: add "/totalsize" property for itb size

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I91cf2e1f1553ef351206657ae51109046d1fbc16
2020-05-26 11:43:25 +08:00
Zhichao Yu
236375c536 tools: loaderimage: support pack kernel image for rv110x
Build from next-dev with command ./make.sh evb-rv1108

on commit:
    (c64e256218d tools: add pack kernel tool for rv1108)

Signed-off-by: Zhichao Yu <zhichao.yu@rock-chips.com>
Change-Id: Ie843bfb5386a18735638b8ee22effe8b5b05ac72
2020-04-29 17:00:53 +08:00
zain wang
66c72f7806 tools: trust_merger: copy ImageSize from Component to ComponentData
build for next-dev with command ./make.sh rk3399

on commit:
(5033bc62fe tools: trust_merger: copy ImageSize from Component to
ComponentData)

Signed-off-by: zain wang <wzz@rock-chips.com>
Change-Id: Ibeadc46c915dea4ad05aefd4bebc290d6a8076d0
2020-04-24 15:45:44 +08:00
Zhihuan He
2820321c69 tool: ddrbin_tool: update to v1.02 20200108
1. If setup no value, it will not update ddr bin's info.
   example: if "baudrate=", the baudrate will keep the
   same with ddr bin's config.
2. add ddr_2t info modify

Change-Id: I180e729f5d45d2dbfa16b98041a9523c47c5c7b7
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
2020-01-10 14:56:04 +08:00
Tang Yun ping
558a25b2c4 tool: ddrbin_tool: update to v1.01 20191122
If setup value is 0, it will not update ddr bin's info.

Change-Id: I3b062f7662d6a345597d974340489184f263f403
Signed-off-by: Tang Yun ping <typ@rock-chips.com>
2019-11-25 16:38:23 +08:00
Joseph Chen
54c21b4632 tools: resource: add sha1 for file entry
Base on U-Boot next-dev branch:
(5e817a0 tools: rockchip: resource_tool: add sha1 for file entry)

Change-Id: Ife061cabacab488dbecf2a3245d58cc660091dbd
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-11-07 09:58:43 +08:00
Tang Yun ping
54a17cb116 ddrbin tool: add ddrbin tool for ddr bin param modify
tool version: v1.00 20190920
This tool support modifying ddr frequency and uart infomation.
See tools/ddrbin_tool_user_guide.txt for more detail.

Change-Id: I1d634395c3cb0635a61fe8f227242523b926cd1b
Signed-off-by: Tang Yun ping <typ@rock-chips.com>
2019-09-23 18:09:40 +08:00
Joseph Chen
f50b5d3ef7 tools: boot_merger: add option to enable rc4 flag
Base on U-Boot next-dev commit:
(abe2842 tools: rockchip: boot_merger: add option to enable rc4 flag)

The legacy chips like rk3188 maskrom require all IDB data with RC4,
the boot_merger pack the loader with a rc4 flag in header,
and the upgrade_tool will write the data with rc4 to IDB area.

usage:
boot_merger --rc4 RKBOOT/RK310BMINIALL.ini

and you can see log below if success with RC4:
* enable RC4 for IDB data(both ddr and preloader)

Test on rk3188.

Change-Id: I7de55a09a849d16cee516ebdf0782a67d26db165
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-06-26 11:24:57 +08:00
Joseph Chen
d6a9e22ee1 tools: boot/trust_merger: add "--prepath" support
build from next-dev with command: ./make.sh rk3399

on commit:
(2e6f3f4 tool: rockchip: boot/trust_merger: ignore prepath when it's already exist)

Change-Id: If82105789adbf2f500cca08468d1b94e34bc4e00
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-05-27 14:21:53 +08:00
Kever Yang
943c1053fb upgrade_tool: update to v1.43
Change-Id: I80648b903b27350c7ef5427ac3591ab27f07e7c3
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2019-03-26 10:17:02 +08:00
Joseph Chen
9fb0218203 tools: trust_merger: support "--ignore-bl32"
Ignore bl32 image pack even SEC=1 of [BL32_OPTION].

Change-Id: I3ee903d6fd0ca128d39b2cf06374fe72b5b7e58a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-02-13 16:54:20 +08:00
Kever Yang
8e2e2d4193 tools: boot_merger: support add rc4 for legacy soc
The legacy chips like rk3188 maskrom require all IDB data with RC4,
the boot_merger pack the loader with a rc4 flag in header,
and the upgrade_tool will write the data with rc4 to IDB area.

usage:
boot_merger --rc4 RKBOOT/RK310BMINIALL.ini

Change-Id: I7788011885f153046117f193c9c9cbabe725eefa
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-12-06 11:09:46 +08:00