Rockchip · AI & Linux Hub

Linux & boot

SecureBootTool 1.85: understand a historical Rockchip Secure Boot workflow

SecureBootTool belongs to a historical Rockchip security toolchain. Its bundled application note covers signing, eFuse provisioning, firmware upgrades and testing.

SecureBootTool

Historical Secure Boot application note V1.2

This 2016 manual lists RK3126, RK3128, RK3228, RK3288 and RK3368; it is not a generic RK35xx configuration. Features include Secure Boot ROM, SHA256/SHA160, RSA2048/RSA1024, OTP verification of RSA public keys and Secure Boot Rockusb upgrades. Minimum versions: Miniloader 2.19, U-Boot 2.17, EfuseTool 1.35, SecureBootTool 1.75 and RKBatchTool 1.8.

1. Trust chain and signing configuration

The original diagram below shows verification across ROM, boot images and later stages. In the Windows tool choose the chip, using others for chips preceding 3188, then eFuse-level or software mode. The source lists 3128, 3288, 3228 and 3368 for eFuse-level support, excluding other older chips. The UI uses the word encryption; do not confuse signature verification with firmware confidentiality.

3188 and earlier use loaderex=false and 1024-bit keys. For 3128/3288/3228/3368 use the following with the minimum Loader/U-Boot versions above. Key accepts only 1024 or 2048.

[Options]
Loaderex=true
Key=2048
Boot-image signing and verification flow
Figure 1: Boot-image signing and verification flow
SecureBootTool main window
Figure 2: SecureBootTool main window
Select the target chip
Figure 3: Select the target chip
Select eFuse or software mode
Figure 4: Select eFuse or software mode

2. Generate, save and load RSA keys

The source requires one key pair per product design, reused for later firmware and backed up separately. Generate, confirm and save, then load it from that location. OpenSSL .pem RSA2048 keys are supported. Losing keys can prevent future signed upgrades and recovery. The screenshots demonstrate workflow, not a production key-management system.

Confirm saving the generated key pair
Figure 5: Confirm saving the generated key pair
Choose the key storage directory
Figure 6: Choose the key storage directory
Load the saved private-key file
Figure 7: Load the saved private-key file

3. Prepare and sign firmware

Both boot.img and recovery.img must include the kernel. The source terminal screenshot demonstrates the following for RK3288 Android 4.4; NAND firmware also needs miniloader and uboot.img. Load the saved RSA key, select and sign the firmware, and retain the success result. The original repeats section number 3.5; the workflow is ordered here.

./mkimage.sh ota
TARGET_PRODUCT=rk3288
TARGET_HARDWARE=rk30board
system filesystem is ext4
make ota images...
create boot.img with kernel... done.
create recovery.img with kernel... done.
create misc.img.... done.
Build boot and recovery images containing the kernel
Figure 8: Build boot and recovery images containing the kernel
Start signing with Sign Firmware
Figure 9: Start signing with Sign Firmware
Select the firmware to sign
Figure 10: Select the firmware to sign
Firmware signing success prompt
Figure 11: Firmware signing success prompt

4. eFuse programming

Open the eFuse tool, select signed production firmware and press Start. A blank device powers up over USB in maskromrockusb, triggering automatic programming; multiple devices are supported. RK312X needs a fixture with separate eFuse power, whereas RK3288 PCBA provides software-controlled power. Before a batch, program one device, upgrade complete signed firmware and verify all functions. eFuse is irreversible provisioning, not a procedure to trial casually on a normal board.

Open the eFuse tool
Figure 12: Open the eFuse tool
Select the signed production firmware
Figure 13: Select the signed production firmware
Start the tool and wait for the device
Figure 14: Start the tool and wait for the device
Inspect the eFuse programming result
Figure 15: Inspect the eFuse programming result

5. Upgrade and verify

Upgrade signed firmware with the matching production tool. The source states that Secure Boot is not enabled without eFuse programming. Its negative test writes unsigned firmware: boot should fail, remain in maskromrockusb, and report a tool error after Loader upgrade. Original screenshots follow; they are not ArmSoM measurements.

Load signed firmware in the batch tool
Figure 16: Load signed firmware in the batch tool
Successful signed-firmware upgrade
Figure 17: Successful signed-firmware upgrade
Negative verification with unsigned firmware
Figure 18: Negative verification with unsigned firmware

6. Common errors

For eFuse programming errors check power and whether the device has already been provisioned. Do not troubleshoot by repeatedly writing; retain keys, firmware version, target chip and operation records and consult the matching chip documentation.

Applicability and verification

This is a documentation-based workflow for the supplied tool collection. Confirm the exact board, SoC, carrier, SDK/BSP and host architecture before using it. No flashing, provisioning, register writes or hardware tests were performed. Package availability does not establish support for every ArmSoM product.

GitHub tool directory, versions and SHA-256

Open the matching GitHub directory, select the required host/version, then verify the file hash and extract the full directory. Links below open repository directories.

Open the tool directory on GitHub

Platform / version File SHA-256
Host to verify / 1.85 SecureBootTool_v1.85_foruser.zip d241ccc7503a3202c68a036f51cdd7f5d2db2a7594eb749ec19e2ffb2c67681a

GitHub · catalog.json · SHA256SUMS

Source documents and figures

  • Rockchip Secure Boot Application Note_v1.2_20160202.pdf

Find the correct ArmSoM board documentation

For board and carrier requirements, use the product manual first. The links below are platform references, not a statement that this archived tool has been validated on these products.

ArmSoM Docs · Sige7 / Docs · CM5 / Docs

Explore this topic → · Learning paths →