Rk Flash Tool

Tools for flashing Rockchip devices Topics. Rockchip linux-rockchip rkflashtool Resources. Readme Releases No releases published. No packages published. 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. This tool is made for new Android users who just exploring Android Customization. Xda member Masked created this Universal TWRP Flasher Tool for All Android device expect Samsung and Huawei device. This tool will flash TWRP image file in the background, you just have to download the twrp recovery file and copy the file into the tool folder. 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. 1-B-1 Update Procedure for a TV-Box with RK Batch Tool. Disconnect the power cord on the Rockchip TV-Box; Start the program RK Batch Tool with the “ RKBatchTool.exe “ Click on the Firmware button “” Select the Firmware file with extension “. Img “and will be loaded on the screen.

中文(中国大陆)‎
Deutsch
  • 2Windows
    • 2.1Install driver
    • 2.2Flash Image
    • 2.3Troubleshooting
  • 3Linux
    • 3.1Upgrade_tool from Rockchip
      • 3.1.2Flash by partitions
    • 3.4Troubleshooting

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

Before you start

Keep in mind that:

What you will need to flash the board is:

  • Firmware image, check hardware revision. there are Pro and Full/Lite, firmware is different
  • Radxa Rock or Rock Pro or Rock2 Square 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 the board 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'd better click this link and read this page,it's very Important for the radxa beginner), 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

  1. install using RKDriverAssistant tools - the easy way(Just for winXp, Vista, Win7,not support Win8)
  2. install manually (WinXp,Vista,Win7,Win8)

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

a. Install using RK Driver Assistant tools

Note:The method just support WinXp,Vista,Win7, NOT SUPPORT Win8

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 when the driver has finish installing then shut down radxa board and connect the Radxa Rock board to your computer and let the board go to loader mode, then your computer will detect the board and you will see it within device manager.

Now the driver should have been installed successfully!

b. Install Manually

Download driver file first. For WinXp,Vista,Win7,Download the file (usb_driver_v3.5.zip) from here . For Win8 Download the file(usb_driver_v3.7.zip) from here. shut down the Radxa Rock board then connect the Radxa Rock board to the computer and let the board go to loader 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 (usb_driver_v3.5.zip) 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

Rk Flash Tool

Download the tool first AndroidTool_Release_v2.71.zip

There are two methods to flash an image.

  1. Flash the whole firmware only, it will erase everything.
  2. Flash firmware by partitions, it's very convenient when debugging part function such as kernel



Flash the whole firmware

Power down the Radxa Rock board and connect the Radxa Rock board to the computer then let the board go to loader mode after the program should detect the device.

you can see “Found One MASKROM device “ at the bottom of the tool when you first flash the board or just unbrick the board

Or “Found One Loader Device” at the bottom of the tool when you flashed image not first time

Then Select an image (rockdev/update.img). For information on how to make nand image see update.img

After that, Click 'Upgrade ' to begin flashing


Flash firmware by partitions

Power down the Radxa Rock board and connect the Radxa Rock board to the computer then let the board go to loader mode after the program should detect the device.

you can see “Found One MASKROM device “ at the bottom of the tool when you first flash the board or just unbrick the board

Or “Found One Loader Device” at the bottom of the tool when you flashed image not first time.

Then select the partitions you need update, and select the right image which you can find under rockdev or kernel directory. finally click 'Run ' to flash

Note: if your address of the partitions doesn't the same as the pic below, you can modify the address by click the address item.

Here is the video you can refer

Troubleshooting

Tool

FlashTool can not recognize the board

This often happened by the follow reasons:

1) Not enter the loader mode (refer to [rock loader mode] [rock2 square loader mode])

Note:

In general, When you connect to PC with radxa( in loader mode), the PC can recongize radxa as Rockusb Device(windows)

2) the used usb port of pc is usb3.0 (please change usb2.0 port)

3) the OS of PC is windows 8 (if windows 8,please use http://dl.radxa.com/rock/tools/windows/Rockusb%20Driver%20v3.7.zip)

4) bad quality usb cable, you can change a short and good quality one to try again

If the problem still exists, you can refer to the topics in talk.radxa.com, create a new topic on it or send email to support@radxa.com

Flashing failed

For rock pro

After flashing, the uart print

and not boot.

If flashing failed, try to format the nand flash before flashing it.

  • AndroidTool V2.3 -> Upgrade firmware - click 'Erease Flash' button to format the nand flash
  • AndroidTool V2.3 -> Download Image - click 'LowerFormat' to format the nand flash

For rock2 square

you can press reset key and reflash , if still failed ,you can refer to http://talk.radxa.com/topic/957/bricked-rock2/19 or send mail to support@radxa.com

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 rock is 'bricked'. Follow this unbrick instructions to unbrick it.

Win8.1 and USB 3.0

If you have problem with Win8.1 and USB 3.0, please check:http://talk.radxa.com/topic/1026/solution-rk-batchtool-problem-with-64bit-windows-8-1-usb3

Linux

Rockchip has provided tools for upgrading within Linux (closed source) since Android 4.4. It's called upgrade_tool.It supports update.img, parameter, bootloader and other partitions, and it's command line based.

rkflashkit is an open source GUI version flashing tool for rockchip devices. It can not flash bootloader or parameter, only supports kernel and other partitions, but it supports backup the partitions.


For developers: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. Please note: both rkflashtool and rkflashkit can not flash the rock/update.img and can only flash within rock/bootloader mode and not rock/mask rom mode because the rock/mask rom updating protocol is not RE yet. If you are interested in the RE protocol ping naobsd at #radxa on IRC. Since the rock/bootloader has remained unchanged for a long time it's enough for normal usage. If you don't know what this means, just ignore it.

Upgrade_tool from Rockchip

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.

Note: there are two ways to flash the android image.

1> Just flash one image file. refer to the 'Flash update.img' ,The image you can download here prebuilt_image . or you can build the image by yourself refer to Android_Build

2>Flash image by partitions,this methods you need flash serveral images depends on the partitions and your requirement. refer to 'Flash parameter ', 'Flash bootloader ','Flash the kernel(boot.img)'


Flash all-in-one nand/emmc image file(Recommended)

Let the board go to loader mode [Rock Loader mode], [Rock2 Square Loader mode] and run the following command to flash the update.img:

If you have an error with upgrading you can low level format the nand flash first with the following command: Emory respondus lockdown browser.

Flash by partitions

The whole files you should flash are'parameter','bootloader','boot.img','recovery.img'system.img' , all the file you can find under the rockdev/ after you build the android successful.

How to flash the file and images.

Flash bootloader

Other partitions can be flashed by di command. You can use upgrade_tool di partition_name image_name to flash the image to the partition. There are some shortcuts for certain image name.

partition name short name
parameter -p
boot -b
system -s
recovery -r
misc -m
Flash parameter

or for short


Flash the kernel(boot.img)

or for short


Flash the rootfs


Others

There are other commands in the upgrade_tool, such as:


FAQ

1) why I must flash this file?

The android image is constructed by this files.

2)what's the paration info?

The partations info you can get from the paramteter file under the rockdev/ which in the android source code.

Rkflashtool

3) why other parations do have image to flash?

Other parations are used to store data.

4) why not flash the kernel.img ?

The kernel.img is packed into boot.img . more info you can refer to Android_Build

5) Other questions

Post on the talk.radxa.com or send email to support@radxa.com

Rk Flash Tool 1.37 Descargar

Flash with rkflashtool(Advanced)

rkflashtool is an open source tool to write nand flash via the loader mode for rockchip platform.

To install rkflashtool:

To read/write parameter:

To read/write partitions:

Rk Flash Tool

Rkflashkit with GUI

Rk Flash Tool 1.37

You can download the pre-built rkflashkit here or build it yourself with the following command:

And install it with the following command

Run it with the following command

You can see the interface looks like this:

Connect the Radxa Rock board to the computer and let the board go into loader mode you will then see the the program detect the board in loader mode.

  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.


Troubleshooting

Creating Comm Object failed!

that's udev issues… You can solve this by creating a new file in /etc/udev/rules.d/ with the rule for the rock.

To do that, copy and paste these commands:

Finally, just remove and reinsert the USB cable.

What's verision of My board and Which Image should I flash!

refer to update.img

Install the image on RR without PC

If you want to write the image on RR without any other host PC, you can download the image and write with dd:

Videos tutorial

  • Flashing the image to nand flash https://www.youtube.com/watch?v=r20lOKu2E1s&feature=youtu.be

External Reference

Retrieved from 'https://wiki.radxa.com/mw/index.php?title=Rock/flash_the_image&oldid=4975'

We will introduce how to flash the firmware to the SD card. If not explicitly stated, the following firmware is referred to the Raw Firmware. Read about firmware format if of any doubt.

We recommend to use SDCard Installer to flash the Raw Firmware to the SD card.

If you are using tools other than SDCard Installer, please download the Raw Firmware in the Download Page first.

Here’s the available OS list of firmware:

  • Android 7.1.2
  • Ubuntu 16.04
  • Debian 9
  • LibreELEC 9.0

WARNING: Only Raw Firmwares are available in the download page. We DO NOT PROVIDERK Firmware any more.

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.

Flashing Tools¶

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

  • To flash to the SD card
    • GUI:
      • SDCard Installer (Linux/Windows/Mac)
      • Etcher (Linux/Windows/Mac)
    • CLI:
      • dd (Linux)

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:

  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. Forza horizon 5 full game crack download.

  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: Download mac os el capitan iso.

  • 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.

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.

First install pv:

Then add pv to the pipe to report progress:

SD Firmware Tool¶

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

First, you will need to download SD Firmware Tool from the SD Firmwware Tool Download Page and extract it.

Rk Flash Tools

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.

Rk Flash Tool 1.7

Run SD_Firmware_Tool.exe:

  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.