FORUMS
Remove All Ads from XDA

Firmware Upgrade Guide For RK3188 RK3288 RK3368 Devices

83 posts
Thanks Meter: 15
 
By Such_A_Victor, Member on 3rd November 2015, 10:12 AM
Post Reply Email Thread
UPD: Rreflashing guide for linux Host PC added.

BEFORE START

What you need:

1. Image file
2. Host PC (Windows)
3. USB OTG Cable

Supported host OS:
1. Windows XP (32/64bit)
2. Windows 7 (32/64bit)
3. Windows 8 (32/64bit)

All manipulations I show using UGOOS devices example. Procedure is common for all RK SoC based devices.

The first thing you need to do is to DOWNLOAD the firmware archive.
Inside archive you find: BatchTool or Android Tool - tools for reflashing and DriverAssitant - tool that helps you to install device drivers and firmware image file.


INSTALLING DRIVERS

If you need to install the drivers, you can find setup file in the program folder.



Launch RK DriverAssitant and press “Install Driver” button.



During installation a couple of times program will ask whether you want to install the driver. In the end of installation you can see diolog window: "Install driver ok".





Ugoos UT-3

1. Turn off the device.
2. Connect device to PC via USB using OTG- port.



3. Press and hold the hardware reset button.



4. Turn on the device.



Ugoos UM-3

1. Press and hold the hardware reset button.



2. Connect device to PC via USB using OTG- port.





UPGRADE FIRMWARE WITH ROCKCHIP BATCH TOOL
Run the Rockchip Batch Tool and click on the “…” to choose file with firmware pack.
If everything is correctly done and the driver is installed on your computer,
you will see green light on one of the indicators.



Now click the “Upgrade” button to reflash the device. When progress is finished you will see a sign indicating a successful operation.



UPGRADE FIRMWARE WITH ANDROID TOOL
Run the Android Tool and click on the “Upgrade Firmware”.
If everything is correctly done and the driver is installed on your computer, you will see “Found One Loader Device “



Click on button “Firmware” and specify the path to the firmware file.
You need to wait until the program downloading information about the firmware, then it will display some information on the screen. Now click the Upgrade button to reflash the device. At the end you will see a sign indicating a successful operation.




For flashing dualboot or clear linux firmware
1. Run the Android Tool. If you everything is correctly done and the driver is installed on your computer, you will see “Found One Loader Device.
2. Default program configured to flash"clear" android on your device. If you want install “Dualboot” or “Clear linux” click right mouse button by program window, and then select “Load config”.



3. Then choose one of configurations files:
 config.cfg - if want flash only Android
 config_dualboot.cfg - if want flash dualboot
 config_linux.cfg - if want flash only linux
4. Now click the Upgrade button to reflash the device. At the end you will see a sign indicating a successful operation.


For Linux Host PC users:

Rockchip provides a command line utility named "upgrade_tool" under Linux, which support flashing of both update.img and partition images.

In addition, we have two choices with regard to open source tools:



rkflashtool https://github.com/linux-rockchip/rkflashtool
rkflashkit https://github.com/linuxerwang/rkflashkit


Both of them only support flashing partition images, not update.img. rkflashtool is a command line tool, and flashkit has a nice and easy to use GUI with command line support lately added.



If you use Upgrade Tool:

There is no need to install device driver. Just connect the device and host PC.

Download Linux_Upgrade_Tool, and install it to host filesystem:

Quote:

tar xf Linux_UpgradeTool_v1.2.tar.gz

cd Linux_UpgradeTool_v1.2

sudo mv upgrade_tool /usr/local/bin

sudo chown root:root /usr/local/bin/upgrade_tool

Flash update.img:

Quote:

sudo upgrade_tool uf update.img

upgrade_tool

Flash partition images:

Quote:

sudo upgrade_tool di -b /path/to/boot.img
sudo upgrade_tool di -k /path/to/kernel.img
sudo upgrade_tool di -s /path/to/system.img
sudo upgrade_tool di -r /path/to/recovery.img
sudo upgrade_tool di -m /path/to/misc.img
sudo upgrade_tool di resource /path/to/resource.img
sudo upgrade_tool di -p paramater # flash parameter
sudo upgrade_tool ul bootloader.bin # flash bootloader

If errors occur due to flash problem, you can try to low format, or erase the flash:

Quote:

upgrade_tool lf # low format flash
upgrade_tool ef # erase flash

Following instruction is for rkflashkit utility.

Install:

Quote:

sudo apt-get install build-essential fakeroot
git clone https://github.com/linuxerwang/rkflashkit
cd rkflashkit
./waf debian
sudo apt-get install python-gtk2
sudo dpkg -i rkflashkit_0.1.2_all.deb

GUI:

rkflash

Quote:

sudo rkflashkit

Command line:

Quote:

$ rkflashkit --help
Usage: <cmd> [args] [<cmd> [args]...]


part List partition
flash @<PARTITION> <IMAGE FILE> Flash partition with image file
cmp @<PARTITION> <IMAGE FILE> Compare partition with image file
backup @<PARTITION> <IMAGE FILE> Backup partition to image file
erase @<PARTITION> Erase partition
reboot Reboot device

For example, flash device with boot.img and kernel.img, then reboot:

Quote:

sudo rkflashkit flash @boot boot.img @kernel.img kernel.img reboot

UPD:
REFLASHING IN MASKROM MODE

If you have problems with standard reflashing options, or your device had bricked
IMPORTANT: users can perform further manipulations only at their own risk, and only if all other reflashing options can’t help.

Before reflashing in maskrom mode we need to make the same steps as before:
Installing RK drivers
Installing Android Tool or Batch Tool

CONNECTING TO PC in MASKROM MODE



Maskrom mode is reflashing way, when you block reading data from NAND using hardware short circuit of NAND pins.



1. Open device housing and detect NAND (is standalone chip with 48 pins on two sides) on PCBA. In some boxes you also need detached heatsink or cooler in order to reach NAND
2. Place PCBA in front of you so you can clearly read NAND’s name and board number
3. You should choose 6th-7th or 7th-8th pin from NAND bottom on the right side or 6th-7th or 7th-8th pin from first pin (first pin is marked on PCBA with a point or ) and circuit it during plugging to Host PC and powering on (check pin sequence for other devices very clearly)

UM3 maskrom
Ugoos UM3 example

UT3s maskrom
Ugoos UT3s example

UT4 maskrom
Ugoos UT4 example

After circuit and attaching to host PC, Android tool will show you message in progress bar: Found one maskrom device

Android tool in maskrom mode

Then start upgrade. The reflashing process should run several steps

Android tool in maskrom mode

You also can use Batch tool for this action. Device indication should turn blue instead of green for maskrom mode.

Batch tool in maskrom mode


There are photos of several well spread NAND chips and circuit schemas:

NAND
NAND2
The Following 5 Users Say Thank You to Such_A_Victor For This Useful Post: [ View ] Gift Such_A_Victor Ad-Free
 
 
1st December 2015, 12:34 AM |#2  
Member
Flag Singapore
Thanks Meter: 0
 
More
Hi,
I'm using a new RK3368 device. The device is recognized when I use Batch tool, and I was able to flash it that way. But I need it to be recognized in Android tool so I can flash the recovery. It says "No device found". Any advice on how to get it to recognize so I can install TWRP recovery?

Thanks!
1st December 2015, 02:28 AM |#3  
OP Member
Thanks Meter: 15
 
More
Quote:
Originally Posted by mekler22

Hi,
I'm using a new RK3368 device. The device is recognized when I use Batch tool, and I was able to flash it that way. But I need it to be recognized in Android tool so I can flash the recovery. It says "No device found". Any advice on how to get it to recognize so I can install TWRP recovery?

Thanks!

Looks strange, first thing come to mind is to change Android tool. Try to use Android Tool 2.35.
And where did you get TWRP for rk3368?
The Following 3 Users Say Thank You to Such_A_Victor For This Useful Post: [ View ] Gift Such_A_Victor Ad-Free
1st December 2015, 02:51 AM |#4  
Member
Flag Singapore
Thanks Meter: 0
 
More
Quote:
Originally Posted by Such_A_Victor

Looks strange, first thing come to mind is to change Android tool. Try to use Android Tool 2.35.
And where did you get TWRP for rk3368?

I did use android tool 2.35
I got the TWRP from here: http://freaktab.com/forum/tv-player-...ayers-no-iroot
1st December 2015, 03:02 AM |#5  
OP Member
Thanks Meter: 15
 
More
Quote:
Originally Posted by mekler22

I did use android tool 2.35
I got the TWRP from here: http://freaktab.com/forum/tv-player-...ayers-no-iroot

What Win version on your computer? Win 8.1 has a lot of problems with AT as I know.
1st December 2015, 03:02 AM |#6  
Member
Flag Singapore
Thanks Meter: 0
 
More
Windows 10 64 bit
1st December 2015, 03:18 AM |#7  
OP Member
Thanks Meter: 15
 
More
Quote:
Originally Posted by mekler22

Windows 10 64 bit

So strange.
Stupid question but, did you start AT under admin rights? If do, one more thing I can offer is to send you my Android Tool 2.35.
I reflashed RK3368 device with it just yesterday.
8th December 2015, 08:29 AM |#8  
Member
Flag Pune
Thanks Meter: 1
 
More
I flash TWRP on my RK3368 based Z4 android tv box but and it seems working fine but after flash my microUSB port is not detecting any devices not even detected in PC in boot loader mods. I have stock ROM image as update.img format. Is there any ways I can extract recovery image from this ROM file and get back to stock recovery image.

My TWRP works fine and I rroted my devices using TWRP but TWRP csnnot flash this TV box firmware in update.img format. any ways which I can update firmware using TWRP.

thanks for help.
9th December 2015, 07:06 AM |#9  
OP Member
Thanks Meter: 15
 
More
Quote:
Originally Posted by vinaysharma76

I flash TWRP on my RK3368 based Z4 android tv box but and it seems working fine but after flash my microUSB port is not detecting any devices not even detected in PC in boot loader mods. I have stock ROM image as update.img format. Is there any ways I can extract recovery image from this ROM file and get back to stock recovery image.

My TWRP works fine and I rroted my devices using TWRP but TWRP csnnot flash this TV box firmware in update.img format. any ways which I can update firmware using TWRP.

thanks for help.

You can use Rk 3xxx firmware tools for extracting recovery image from ROM and than flash it with Androidtool
9th December 2015, 08:37 AM |#10  
Member
Flag Pune
Thanks Meter: 1
 
More
Quote:
Originally Posted by Such_A_Victor

You can use Rk 3xxx firmware tools for extracting recovery image from ROM and than flash it with Androidtool

Can you provide link for same. Thanks for help. Appriciated.

---------- Post added at 02:07 PM ---------- Previous post was at 01:37 PM ----------

Quote:
Originally Posted by Such_A_Victor

You can use Rk 3xxx firmware tools for extracting recovery image from ROM and than flash it with Androidtool

Quote:
Originally Posted by vinaysharma76

Can you provide link for same. Thanks for help. Appriciated.

Never mind I got the link for tool and tried to unpack update.img from my tvbox but it failed to extract component images.
9th December 2015, 08:45 AM |#11  
OP Member
Thanks Meter: 15
 
More
Quote:
Originally Posted by vinaysharma76

Can you provide link for same. Thanks for help. Appriciated.

---------- Post added at 02:07 PM ---------- Previous post was at 01:37 PM ----------





Never mind I got the link for tool and tried to unpack update.img from my tvbox but it failed to extract component images.

is your update.img a full package? What did you exactly do?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread