FORUMS
Remove All Ads from XDA

[TOOL] rkDumper (utility for backup firmware of RockChip's devices)

317 posts
Thanks Meter: 231
 
By RedScorpioXDA, Senior Member on 23rd October 2014, 11:03 AM
Post Reply Email Thread
10th December 2014, 05:12 PM |#11  
Senior Member
Thanks Meter: 30
 
More
rkDumper (version 0.93)
Utility for Rockchip's firmware backup

(c) RedScorpio, Moscow, 2014
[email protected]

==========================[ START ]==========================

-- Devices enumerating --

Devices table (found 10 USB devices):
1 Device #0: USB Root Hub
1.1 Device #1: USB Composite Device
VID = 0x045e, PID = 0x00db
1.2 Device #2: USB Input Device
VID = 0x046d, PID = 0xc05a
2 Device #3: USB Root Hub
3 Device #4: USB Root Hub
3.5 Device #5: Rockusb Device
VID = 0x2207, PID = 0x292c
4 Device #6: USB Root Hub
5 Device #7: USB Root Hub
6 Device #8: USB Root Hub
7 Device #9: USB Root Hub

==========================[ STOP ]==========================


this is mine, and when I try to do "dump" I get:

rkDumper (version 0.93)
Utility for Rockchip's firmware backup

(c) RedScorpio, Moscow, 2014
[email protected]

==========================[ START ]==========================

--- Firmware dumping ---

The utility requires administrator rights

==========================[ STOP ]==========================

I am an administrator, and the device is a RK3026

also, is there a way to dump the loader of these tablets?

Thanks
 
 
11th December 2014, 07:19 AM |#12  
OP Senior Member
Thanks Meter: 231
 
Donate to Me
More
Quote:
Originally Posted by niabi

I am an administrator, and the device is a RK3026

Do you run tool as administrator (Ctrl+Shift+Enter on cmd string)? Try to use /admin key
Quote:
Originally Posted by niabi

also, is there a way to dump the loader of these tablets?

No. But sometime you can found loader in backup.img partition (use imgRePackerRK)
19th December 2014, 08:12 PM |#13  
Junior Member
Thanks Meter: 0
 
More
Thumbs up Kudos to RedScorpio!
Great work RedScorpio!
It never hasn't be that easy to create a dump for rockchip devices!

But I still see some room for improvements and also have some questions:
Can I create a full dump of a device including the user partition? I appreciate to create full dumps - so I can play with my devicesm flash different firmwares and finally I'm able to restore everything to the former state - in case it's not possible to create a full dump at the moment it would be great if you could add it!

Another great addition would be if you could simplify the installation of the drivers in windows 8.1 - please take a look at this post: http://forum.xda-developers.com/show...8&postcount=56

Basically Microsoft decided to change the behaviour of the usb stack in windows 8.1 and so it's not possible to install the rockchip driver that easily - you need to figure out 3 details of your device and create an exception-rule in the windows registry so your device is handled as it has been with the previous usb stack.
To create this registry key you'll need VID, PID and REV from the usb device - maybe you can display REV also in your output of 'scan' ? (windows device manager don't even display those details...)
Finally it would be great if you could create this registry key automatically (or with another command) in case you notice that the os is windows 8.1 and the device isn't recognized properly - in my case I'll get the following output when I connect my rockchip device without the registry entry:

C:\Users\roland\Desktop\Rockchip Tools\rkDumper_093>rkDumper.exe scan

rkDumper (version 0.93)
Utility for Rockchip's firmware backup

(c) RedScorpio, Moscow, 2014
[email protected]

==========================[ START ]==========================

-- Devices enumerating --

Devices table (found 11 USB devices):
1 Device #0: USB Root Hub
1.1 Device #1: USB Hub
VID = 0x8087, PID = 0x8009
2 Device #2: USB Root Hub
2.4 Device #3: USB Hub
VID = 0x0424, PID = 0x2514
2.4.1 Device #4: USB-Eingabegerät
VID = 0x1bcf, PID = 0x0005
2.4.2 Device #5: USB-Verbundgerät
VID = 0x045e, PID = 0x00db
2.11 Device #6: Unbekanntes USB-Gerät (Fehler beim Anfordern einer Gerätebeschreibung.)
VID = 0x2207, PID = 0x290a

2.14 Device #7: USB-Verbundgerät
VID = 0x041e, PID = 0x30df
2.15 Device #8:
3 Device #9: USB Root Hub
3.1 Device #10: USB Hub
VID = 0x8087, PID = 0x8001

==========================[ STOP ]==========================


I've also attached my debug-log so you can check how to identify a blocked device - the hardware id is displayed as 'USB\DEVICE_DESCRIPTOR_FAILURE' in device manager in windows.

After creating the registry key as explained in the linked post above everything is working fine in windows 8.1, the drivers get installed and I can create a dump with your tool

Finally it would great if you could add an automatic request for administrative permissions in your application - I think this would simplify the execution a little bit more.

Keep up the good work!
Attached Files
File Type: txt rkDumper.txt - [Click for QR Code] (27.2 KB, 312 views)
22nd December 2014, 04:55 PM |#14  
OP Senior Member
Thanks Meter: 231
 
Donate to Me
More
Quote:
Originally Posted by nalor

Can I create a full dump of a device including the user partition?

I still can't find a simple method of determining the full size of the NAND (it need to count user partition size)

Quote:
Originally Posted by nalor

To create this registry key you'll need VID, PID and REV from the usb device - maybe you can display REV also in your output of 'scan' ?

I have used USB_DEVICE_DESCRIPTOR for detection VID and PID:
Code:
typedef struct _USB_DEVICE_DESCRIPTOR {
  UCHAR  bLength;
  UCHAR  bDescriptorType;
  USHORT bcdUSB;
  UCHAR  bDeviceClass;
  UCHAR  bDeviceSubClass;
  UCHAR  bDeviceProtocol;
  UCHAR  bMaxPacketSize0;
  USHORT idVendor;
  USHORT idProduct;
  USHORT bcdDevice;
  UCHAR  iManufacturer;
  UCHAR  iProduct;
  UCHAR  iSerialNumber;
  UCHAR  bNumConfigurations;
} USB_DEVICE_DESCRIPTOR, *PUSB_DEVICE_DESCRIPTOR;
So what is revision in this structure?

Quote:
Originally Posted by nalor

Finally it would great if you could add an automatic request for administrative permissions in your application

Sorry, I'm not a programmer. I can't find example for C (CodeBlocks + gcc)
23rd December 2014, 08:37 AM |#15  
OP Senior Member
Thanks Meter: 231
 
Donate to Me
More
Quote:
Originally Posted by RedScorpioXDA

So what is revision in this structure?

Solved. Revision detection will be added into new version
12th January 2015, 10:19 AM |#16  
OP Senior Member
Thanks Meter: 231
 
Donate to Me
More
rkDumper
Utility for backup firmware of RockChip's devices


New version (0.94 Windows) ready

! pre-Release #4;
+ support of RK3288 added;
+ manifest file added;
+ detection of device revision added;
~ administrator's rights checking algorithm changed.
4th August 2015, 10:52 PM |#17  
OP Senior Member
Thanks Meter: 231
 
Donate to Me
More
rkDumper
Utility for backup firmware of RockChip's devices


New version (0.95 Windows) ready

! pre-Release #5;
+ support of RK3128 added;
+ /user key added;
+ ROM size/vendor/ID determinetion added ("info" command);
~ bug of incorrect determination of disks in multi-CD systems fixed.
4th August 2015, 11:24 PM |#18  
Tigrouzen's Avatar
Senior Member
Flag MARSEILLE
Thanks Meter: 2,089
 
More
Just thank you !
2nd September 2015, 12:21 PM |#19  
OP Senior Member
Thanks Meter: 231
 
Donate to Me
More
rkDumper
Utility for backup firmware of RockChip's devices


New version (1.00 Windows) ready

! Release;
+ /incl key added;
+ /excl key added;
~ some algorithms improved.
27th November 2015, 10:28 AM |#20  
Member
Flag Florence
Thanks Meter: 10
 
Donate to Me
More
Hello, one question, is possible to use this tool with Rockchip/Intel sofia platform? Thanks in advance
10th December 2015, 04:56 PM |#21  
Member
Thanks Meter: 22
 
More
Is there an option to force using a specific VID/PID combo. It doesn't seem to recognized the newest 2207:310D combination.
Code:
        rkDumper (version 1.00)
        Utility for Rockchip's firmware backup

        (c) RedScorpio, Moscow, 2014-2015
            [email protected]

        ==========================[ START ]==========================

        -- Devices enumerating --

        Devices table (found 11 USB devices):
        1       Device #0: USB Root Hub
        1.1     Device #1: USB Hub
                VID = 0x8087, PID = 0x0024, REV = 0x0000
        1.1.5   Device #2: Microsoft Mouse and Keyboard Detection Driver (USB)
                VID = 0x045e, PID = 0x0745, REV = 0x0663
        1.1.6   Device #3: Rockusb Device
                VID = 0x2207, PID = 0x310d, REV = 0x0100
        2       Device #4: USB Root Hub
        3       Device #5: USB Root Hub
        4       Device #6: USB Root Hub
        4.1     Device #7: USB Hub
                VID = 0x8087, PID = 0x0024, REV = 0x0000
        4.1.2   Device #8: USB Printing Support
                VID = 0x04f9, PID = 0x0027, REV = 0x0100
        5       Device #9: USB Root Hub
        5.6     Device #10: USB Attached SCSI (UAS) Mass Storage Device
                VID = 0x0bc2, PID = 0xab24, REV = 0x0100

        Can't find RockChip device

        ==========================[ STOP  ]==========================
Post Reply Subscribe to Thread

Tags
rockchip dump

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

Advanced Search
Display Modes