Rk Flash Tool

Sep 08, 2021 Download RockChip Batch Tool. RockChip Batch Tool is compatible with all versions of Windows OS, including Windows XP to Windows 11 (x32 or x64 bit). If in case you were looking for the latest version of the tool, then use the following links to get it on the computer: v1.23: RockChipBatchToolv1.23.zip. V1.24: RockChipBatchToolv1.24.zip. Firmware and Tools ¶. Firmware and Tools. Firmware Download Page. Firmware Flashing Tools: To flash to the SD card: GUI: SDCard Installer (Linux/Windows/Mac) Etcher (Linux/Windows/Mac) CLI. Download the Proper Flashing Tool: RK3066 (Dual-Core) Firmware Image Flashing: English RKbatch Tool v1.5; RK3188 (Quad-Core) Firmware Image Flashing: English RKbatch Tool v1.6. Jun 09, 2020 After the flashing, a success message will appear. Disconnect your phone and turn on. More Tools:-Download Latest Sony Mobile Flasher v0.9.28.0 (Xperia Flashing tool) Download Moto RSD Lite Flash Tool For Windows V6.2.4; Download All Versions LG Flash Tool To Flash Firmware on LG devices.

This page describes how to install an image to the nand flash of Marsboard RK3066, ie, how to flash the board. You can choose to either flash the whole image (ie, update.img) to the board or just flash the selected partitions. You can download the prebuilt images or from our server the images.

  • 2Windows
    • 2.1Install driver
    • 2.2Flash Image
  • 3Linux
    • 3.1Using Linux Upgrade Tool to flash update.img

Before you start

Keep in mind that:

What you will need to flash the board is:

  • a MarsBoard RK3066 board
  • a PC running Windows (XP 32/64bit, Windows 7 32/64 bit) or Linux (32/64bit)
  • a micro USB cable with one side plugged in to the OTG port of MarsBoard and the other side plugged into the USB port on PC.

Windows

The Windows tool for flashing the image is provided by Rockchip. To flash the update.img, you need to use the RKBatchTool and to flash the partitions, you will need to use RKDevelopTool. Both RKBatchTool and RKDevelopTool rely on the RK USB driver so you will need to install it first as below:

Install driver

There two ways to install the driver under Windows:

  1. install using RKDriverAssistant tools - the easy way
  2. install manually

If you have already installed the USB driver please skip this step.

Install using RK Driver Assistant tools

There’s no need to connect your Rockchip device during this procedure just download and extract RKDriverAssistant.zipThen double click on DriverInstall.exe in the RKDriverAssistant directory to start the utility.If you've previously tried to install the Rockchip USB drivers for any Rockchip devices make sure you click “Uninstall Driver” first.

Then click “Install Driver”, and depending on your version of Windows the Security below may show up twice during installation. Just click “Install”

when the driver has finish installing then shut down MarsBoard and connect the MarsBoard to your computer and let the board go to recovery mode, then your computer will detect the board and you will see it within device manager.

Now the driver should have been installed successfully!

Install Manually

Download the file (Rockusb_Driver_v3.7.rar) from here and shut down the MarsBoard then connect the MarsBoard to the computer and let the board go to recovery mode. After your computer should detect the board and you will see an unknown device within device manager.

Select the Unknown device then right click and select 'Update Driver Software'.

Select 'Browse the computer for driver software'.

Find the file unzipped file you downloaded earlier (Rockusb_Driver_v3.7.rar) and select either the 32/64bit folder then click 'OK' to install.

When the driver is installed successful you will then see a Rockusb Device in the device manager window.

Now the driver is installed successfully.

Flash Image

There are two methods to flash an image use android tools.

  1. use Download Image (can flash by partitions)


  1. use upgrading firmware (flash update.img only, it will erase everything.)


Using AndroidTool to flash update.img (Firmware)

Download AndroidTool from here. Then unzip it and double click AndroidTool.exe

Select an image (RK3066 update.img), click Firmware. For information on how to make an update.img see update.img

Power down the MarsBoard and connect the MarsBoard to the computer then let the board go to recovery mode after the program should detect the device.

Click the 'Upgrade' button to begin flashing and when the flashing process finishes successfully you will see the following interface.

If the flashing has aborted ,it could possibly be an error with the update.img, you can either try to redo the operations above or make the update.img again!

Flash

Using AndroidTool to falsh image by partition

Download AndroidTool from here. Unzip it the file and double click AndroidTool.exe.

Power down the MarsBoard and connect the MarsBoard to the computer and let the board go to recovery mode then the program will detect it.

There are eight selections to choose from so select the correct row and then select the checkbox to the left of the row to select it. After you must click the column on the right side for the path of the file you want to flash. You can then select one or more files and flash them at once. Finally Click 'Run' to flash images to the device (the right most selection shows the log of the progress).

If successful the board will disconnect from the tool and boot into the system.

Please Note:

  1. The kernel is contained within the boot.img when you package the image by './mkimage.sh ota' please see Android Build for more information.
  2. you can flash one of more image at one time as needed

Preparing IDB failed

This happens at upgrading bootloader, if you need to upgrade the bootloader or the update.img contains a new bootloader, you probably will meet this. The marsboard is 'bricked'. Follow this unbrick instructions to unbrick it.

Linux

Rockchip has provided tools for upgrading within Linux (closed source) since Android 4.4. The initial RE work of the Rockchip bootloader updating protocol is by naobsd and has been improved by some in rkflashtool. linuxerwang has made a GUI version of the rkflashtool called rkflashkit.

Warning: both rkflashtool and rkflashkit can not flash the update.img.

Using Linux Upgrade Tool to flash update.img

Download the Rockchip linux upgrade tool here. Unzip it and you will get a file called upgrade_tool which is a binary executable file under Linux.

Flash update.img

Let the board go to recovery mode and run the following command to flash the update.img:

Lowlevel Format nand

If you have an error with upgrading you can low level format the nand flash first with the following command:

Flash parameter

Flash bootloader

Flash the boot.img

Flash the kernel.img

Others

There are other commands in the upgrade_tool, such as:

Installing RkFlashKit

In order to install RkFlashKit in Debian or Ubuntu, you need to get the source code, build it,You can download the pre-built rkflashkit here or build it yourself with the following command:

And install it with the following command

Flashing firmware with RkFlashKit

Run it with the following command

The tool is similar to RkAndroidTool as it can burn partition images to specific partitions. You’ll need to enter recovery mode just like you would do in Windows, by pressing the recovery button, before powering the device via the USB port, and connect the USB cable to your PC. RkFlashKit should automatically find your device, so you just have to select the correct NAND partition, select the image file to flash, and click on Flash image.

  1. Click the Nand partition and you will see the partitions of the board listed then choose the one you want to flash.
  2. Choose the location of the image you want to flash to that partition.
  3. Click the 'Flash image' button and it will start flashing
  4. After it's finished click 'Reboot Device' button to reboot the board.

Flash RKBatchTool Firmware File with RkFlashKit

the firmware updates are often distributed using RKBatchTool file format, which can not be directly handled by RkFlashKit. Luckily, there are some other tools available to extract the partitions file from such firmware.

You’ll first need to build rk-tools:

Then use img_unpack tools to unpack the firmware to another format:

Finally, run afptool to extract the files from the resulting file into “firmware” directory:

./afptool -unpack update_mk908_106j2107_04_unpack.img firmwareCheck file...OK

UNPACK -------

Now that we’ve got our partition files, simply use RkFlashKit as mentioned above.

Please enable JavaScript to view the comments powered by Disqus.blog comments powered by Disqus
Retrieved from 'http://www.hotmcu.com/wiki/index.php?title=Flashing_Firmware_Image_Files_Using_The_Rockchip_Tool&oldid=6437'

We will introduce how to flash the firmware to the SD card. Read about firmware format if of any doubt.

We recommend using SDCard Installer to flash the Raw Firmware, and SD Firmware Tool to flash the RK Firmware.

Here’s the available OS list of firmware:

  • Android 7.1.2

  • Ubuntu 16.04

  • Ubuntu 18.04

  • Debian 9

  • LibreELEC 9.0

Preparing the SD Card¶

Please read this good article about how to prepare a SD card first, to make sure that you have a good, reliable and fast SD card, which is of essential importance for system stability.

Download Firmware¶

Firmware description: the firmware is divided into Raw Firmware and RK Firmware, which has been classified into different folders. The latest firmware is the one with the latest date, which is often more stable. Please choose the correct tool according to the type of firmware you need.

Flashing Tools¶

Please choose the flashing tool according to your host PC OS:

  • Flash the Raw Firmware

    • GUI:

      • SDCard Installer (Linux/Windows/Mac)

      • Etcher (Linux/Windows/Mac)

      • SD Firmware Tool (Windows)

    • CLI:

      • dd (Linux)

  • Flash the RK Firmware

    • GUI:

      • SD Firmware Tool (Windows)

    • CLI:

      • dd (Linux)

Rk Flash Tool Windows 10

SDCard Installer¶

The easiest way to flash the Raw Firmware is to use the official SDCard Installer, a handy firmware flashing tool derived from Etcher / Rock64 Installer. It saves time to search for available firmwares for your device. You just need to select the board, choose firmware, plugin in the SD card, and finally click the flash button, which is simple and straightforward.

Instructions:

Rk Flash Tool Linux

  1. Download SDCard Installer from the Download Page.

  2. Install and run:

    • Windows: Extract the archive file and run the setup executable inside. After installation, run SDCard Installeras administrator from the start menu.

    • Linux: Extract the archive file and run the .AppImage file inside.

    • Mac: Double click the .dwg file, install to the system or run directly.

  3. Click the “Choose an OS” button, and select “ROC-RK3328-CC” in the “Please select your device” combobox.

  4. A list of available firmware is updated from the network and presented to you, as illustrated below:

  5. Choose an firmware OS, and click “OK” button. To flash local firmware, drag it from your local drive and drop to SDCard Installer.

  6. Plug in the SD card. It should be automatically selected. If there are multiple SD cards, click the “Change” button to choose one.

  7. Click the “Flash!” button. SDCard Installer will start to download the firmware, flash to the SD card, and verify the content. Please wait patiently.

Note:

  • To run SDCard Installer with proper permission in Windows, you need to right click the shortcut and select Run as administrator.

  • Sometimes, when the progress reaches to 99% or 100%, an error of unmounting the SD card may occur, which can be ignored and does no harm to the data flashed to the SD card.

  • The downloaded firmware will be saved to the local directory, which will be reused the next time you flash the same firmware again. The download directory can be set by clicking the setting icon in the bottom left of the main window and changing the “Download Location:” field.

Etcher¶

Compared with SDCard Installer, Etcher lacks of firmware list and download. But its code is newer. If you have any flashing problem with the SDCard Installer, you can try Etcher, reusing the firmware file in the download directory of SDCard Installer.

Etcher can be downloaded from the Etcher official site. Installation and usage are similiar with SDCard Installer.

dd¶

dd is a commonly used command line tool in Linux, which is suitable for flashing Raw Firmware.

First, plug in the SD card, and unmount it if it is automatically mounted by the file manager.

Then find the device file of the SD card by checking kernel log:

If the device file is /dev/mmcblk0, use the following command to flash:

Flashing takes lots time and the command above does not show the progress. We can use another tool pv to do this job.

Rk Flash Tool Download

First install pv:

Rk Flash Tool 1.37 Descargar

Then add pv to the pipe to report progress:

SD Firmware Tool¶

Rk Flash Tool Download

NOTE: This section is about how to flash RK Firmware to the SD card.

Tool: SD Firmwware Tool v1.56

After extraction, in the directory of SD Firmware Tool, edit config.ini by changing the 4th line from Selected=1 to Selected=2, in order to select English as the default user interface language.

Run SD_Firmware_Tool.exe:

Rk Flash Tools

  1. Plug in the SD card.

  2. Select the SD card from the combo box.

  3. Check on the “SD Boot” option.

  4. Click “Firmware” button, and select the firmware in the file dialog.

  5. Click “Create” button.

  6. A warning dialog will show up. By making sure you have the right SD card device selected, select “Yes” to continue.

  7. Wait for the operation to complete, until the info dialog shows up.

  8. Plug out the SD card.