Dump the firmware of a RK3188 device for dummies (Using Linux + ADB)

This guide will explain a quick method to dump the firmware of a RK3188 device (ROM). It is theoretically applicable to any RockChip device, I’ve tested it on my Q7 ( AKA CS918 or MK888 or K-R42) Android TV Box.

The article makes the assumptions about you use any Linux distribution flavour  with ADB already installed.

 

Let’s start :

1) Power-up your device and enable the USB Debugging :

Go to Settings -> Developer Opetions -> USB Debugging and check the item

dump the firmware of a RK3188 device

USB Debug

 

2) Connect the device to your the PC and open a terminal

 

3) Start ADB server Type “sudo adb start-server”. Using ‘sudo’ (superuser command) avoids any annoyance due to the right permission to USB device

[email protected]:~$ sudo adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

 

4) Verify the android device is detected :

[email protected]:~$ adb devices
List of devices attached
NCGS6ERVFX    device

 

5) Check whether mtd block devices are detected

[email protected]:~$ adb shell ls -al /dev/block/mtd/by-name/
lrwxrwxrwx root     root              2011-01-01 11:00 backup -> /dev/block/mtdblock4
lrwxrwxrwx root     root              2011-01-01 11:00 boot -> /dev/block/mtdblock2
lrwxrwxrwx root     root              2011-01-01 11:00 cache -> /dev/block/mtdblock5
lrwxrwxrwx root     root              2011-01-01 11:00 kernel -> /dev/block/mtdblock1
lrwxrwxrwx root     root              2011-01-01 11:00 kpanic -> /dev/block/mtdblock7
lrwxrwxrwx root     root              2011-01-01 11:00 misc -> /dev/block/mtdblock0
lrwxrwxrwx root     root              2011-01-01 11:00 recovery -> /dev/block/mtdblock3
lrwxrwxrwx root     root              2011-01-01 11:00 system -> /dev/block/mtdblock8
lrwxrwxrwx root     root              2011-01-01 11:00 user -> /dev/block/mtdblock9
lrwxrwxrwx root     root              2011-01-01 11:00 userdata -> /dev/block/mtdblock6

 

6) Directly dump the partitions you want into your PC by issuing a dump (dd) command as the example below :

[email protected]:~$ adb pull /dev/block/mtdblock7 kernel.img
4145 KB/s (4194304 bytes in 0.988s)

 

The procedure is extremely simple and it’s possible to backup the whole device.

An essential backup consists in a dump of the following partitions :

  • misc
  • kernel
  • boot
  • recovery
  • system

 

That’s all Folk!

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

*
*
Website