Commit Graph

12 Commits

Author SHA1 Message Date
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
Joseph Chen
77e74af750 tools: boot_merge: support "--size" args
Change-Id: I7be7588cb331d6305eed738933221ac27947219a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-12 10:26:15 +08:00
Jeffy Chen
c43ff02802 tools: resource_tool: Use not stripped version
Base on rkdevelop branch:
118d14adfe clk: rk32xx: rk3288: fix up the hclk_vio freq error

and:
+++ b/tools/resource_tool/Makefile
@@ -17,7 +17,6 @@ HEADERS += tests.h

 $(TARGET): $(OBJS)
        $(CC) -o $@ $(OBJS) $(CFLAGS) $(LDFLAGS) $(LIBS)
-       $(STRIP) $@

Change-Id: I6be971937ab3c17cad0a81d18d38415e64a61a13
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2018-08-10 12:24:39 +08:00
Joseph Chen
a8f9b31577 tools: loaderimage/trust_merge: support min size 64KB pack
Usually, it must be at 512kb align due to preloader detects every 512kb.
But some product has critial flash size requirement, we have to make it
small than 512KB.

Change-Id: If493ce1b680ebaa07a490dda7488b41b4e012902
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-08-02 19:50:13 +08:00
Joseph Chen
21b58542c1 tools: loaderimage: don't print build version info
Change-Id: Ib88dc9f2ea2a956a8a345f63ce6f50f36b013d5e
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-06-25 09:35:34 +08:00
Joseph Chen
713410c699 tools: loaderimage: fix load address parse error
0x0 is valid load address which is used in 32-bit platforms.

Change-Id: I851b870651596e1d1bdeff59a037c13b428cd36c
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-06-13 15:53:26 +08:00
Joseph Chen
d3746717e5 tools: loaderimage and trust_merger support "--size" command
With this command, we can assign image size.

command format: --size [per image KB size] [copy count]

[per image KB size]: per copy image size(unit KB), should be 512Kb align;
[copy count]: copies count to pack;

Change-Id: I43c075c4b5018ed4f7af2966a07af73c974cde39
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-06-12 10:14:57 +08:00
Shunqian Zheng
be7a16a925 upgrade_tool: update to v1.33 version
The v1.33 upgrade_tool supports gpt parameter flashing, usage:

 $ sudo ./tools/upgrade_tool di -p ./tools/parameter_gpt.txt

Then it would write gpt table to emmc.

Change-Id: I6c4668d0405c880030cf4dfcc291caa62f23cf14
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
2018-05-23 11:34:41 +08:00
Joseph Chen
3b0f13927b tools: trust_merger: support option for RSA algorithm and SHA algorithm
1. RSA option: --rsa [algorithm magic]

  --rsa 0: none RSA
  --rsa 1: RSA 1024
  --rsa 2: RSA 2048
  --rsa 3: RSA 2048 PSS(PKCS1 V2.1, only RK3308/PX30/RK3326 need)

2. SHA option: --sha [algorithm magic]
  --sha 0: none sha
  --sha 1: SHA 160
  --sha 2: rk big endian SHA 256(only rk3368 need)
  --sha 3: little endian SHA 256

Change-Id: I54bc8e1b1e5f4a8aadb6787da1f17ffeb55ff1dd
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-05-11 14:24:42 +08:00
Joseph Chen
f8ca6fb309 tools: update resource_tool to support "--root" command
Change-Id: I313e35ac62f236864afc4761c13810eb25b7ec0a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-01-27 14:13:00 +08:00
Joseph Chen
55f592f16a tools: update boot_merger and trust_merger
both of them support "--replace" command:
./boot_merge --replace [legacy prefix path] [new prefix path] [File]
./trust_merge --replace [legacy prefix path] [new prefix path] [File]

Change-Id: Ia6a47d04324b647667ba3c813daec5c5bb43eb86
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-01-26 19:06:22 +08:00
Kever Yang
224850510b tools: add tools for merge rkbin
These tools are from tool/ of Rockchip u-boot rkdevelop branch

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2017-12-12 10:52:56 +08:00