Rockchip Firmware Tool

Firmware

Features of RockChip Batch Tool. It allows you to flash stock firmware on RK29, RK30, RK31 Chipset Devices. Simply, Launch the RockChip Tool on your computer, then add the firmware in the tool. After adding the firmware, connect your device to the computer and Click on the Upgrade or Restore button in RockChip Tool to begin Flashing. Firmware Upgrade Guide for Rockchip Devices. Education Details: Firmware Upgrade Guide for Rockchip Devices This is a common guide for reflashing RockChip based devices. All RK SoC (RK3066, RK3188, RK3288, RK3229, RK3328, RK3399 and so on) supports the same applications and drivers for Host system, if 3rd party producers do. Rockchipfirmware.com is an online repository of community uploaded firmware files for digital devices that use Rockhip processors. Everyone is welcome to search our repository and download files free of charge and without hassle (no waiting 10 minutes for a download link, filling out captcha's, completing surveys, etc.).

Rockchip Provide Tools for Upgrade firmware to on board storage media like eMMC/NAND/SPI flash. Please chose a appropriate tool for your project.

Rockchip Firmware Format¶

The rockchip firmware release_update.img, contains the boot loader loader.img and the real firmware data update.img:

release_update.img

update.img is packed with multiple image files, described by a control file named package-file. A typical package-file is:

  • package-file: packing description of update.img, which is also included by update.img.
  • Image/MiniLoaderAll.bin: The first bootloader loaded by cpu rom code.
  • Image/parameter.txt: Parameter file where you can set the kernel boot parameters and partition layout.
  • Image/trust.img: The Arm Trusted Image.
  • Image/misc.img: misc partition image, used to control boot mode of Android.
  • Image/kernel.img: Android kernel image.
  • Image/resource.img: Resource image with boot logo and kernel device tree blob.
  • Image/boot.img: Android initramfs, a root filesystem loaded in normal boot, contains important initialization and services description.
  • Image/recovery.img: Recovery mode image.
  • Image/system.img: Android system partition image.

Unpacking is extracting update.img from release_update.img, and then unpacking all the image files inside.

Rockchip sd firmware tool

While repacking, it is the inverse process. It synthesizes the image files described by the package-file, into update.img, which will be further packed together with the bootloader to create the final release_update.img.

Rockchip Firmware ToolRockchip

Installation of Tools¶

Unpacking Rockchip Firmware¶

  • Unpacking release_update.img:

  • Unpacking update.img:

  • Check the file tree in the update directory:

Packing Rockchip Firmware¶

First of all, make sure system partition in parameter.txt file is larger enough to hold system.img. You can reference Parameter file format to understand the partition layout.

For example, in the line prefixed with “CMDLINE” in parameter.txt, you will find the description of system partition similiar to the following content:

Tool

The heximal string before the “@” is the partiton size in sectors (1 sector = 512 bytes here), therefore the size of the system partition is:

To create release_update_new.img:

Customization¶

Customizing system.img¶

system.img is an ext4 file system format image file which can be mounted directly to the system for modification:

Rockchip Firmware Tools

Note that the free space of system.img is almost 0. If you need to expand the image file, do adjust the partition layout in parameter.txt accordingly.

Rockchip Firmware Factory Tool

The following is an example of how to increase the size of the image file by 128MB.

Before expanding, make sure system.img is not mounted by running:

Rockchip Firmware Factory Tool

Resize the image file: