[TOOL] imgRePackerRK (RockChip's firmware images unpacker/packer)

Search This thread

RedScorpioXDA

Senior Member
Apr 6, 2012
364
247
imgRePackerRK
RockChip's firmware images (*.img) unpacker/packer


Version 1.06 Windows & Linux

Supported firmware images (known):
- RK28xx (ChipID=0x00000021);
- RK29xx (ChipID=0x00000050);
- RK30xx (ChipID=0x00000060);
- RK31xx (ChipID=0x00000070);
- RK32xx (ChipID=0x00000080);
- RK33xx (ChipID=0x00000041).

Supported second layer file formats:
- Android boot image;
- RockChip bootloader image;
- gzip/cpio archive file;
- cpio_ascii_new archive file.
- Rockchip resources image;
- Rockchip uboot image file.

Old versions:
 

Attachments

  • imgRePackerRK_106.zip
    176.3 KB · Views: 38,983
Last edited:

powerpsy

Member
May 26, 2013
5
0
imgRePackerRK working very well

Hi,
Thank you for this wonderful piece of software.
I tested it on windows 7 64 with an official image for 97RQ tablet (found on slatedroid)

So this is RK3188 tablet.

I used "imgRePackerRK tablet.img",
then with th system.img in the dump/Image folder, I was able to mount in ubuntu and modify build.prop and modify some apk as well.

Then, i made "imgRePackerRK tablet.img.dump",
and the image was built correctly.

I flashed the img using RKBatchTool V1.6 and....

Works perfectly !

So thank you very much for this tool RedScorpioXDA.

Cheers,
sam
 

powerpsy

Member
May 26, 2013
5
0
imgRePackerRK
RockChip's firmware images (*.img) unpacker/packer


New version (0.95 Windows & Linux) ready

+ RockChip bootloader images support added

Hey, I confirm your tool opens bootloader images for Rockchip images. It works both ways (packing & repacking)

Do you plan to be able to open images that are done with "dd" command ?
e.g. when rooted in android terminal, sending the command:
Code:
dd if=/dev/block/mmcblk0 of=/sdcard/mmcblk.img


Thanks !

Sam
 

powerpsy

Member
May 26, 2013
5
0

Attachments

  • test1024.7z
    12.1 KB · Views: 3,187

powerpsy

Member
May 26, 2013
5
0
Hello,
when unpacking a rom for RK3188 tablet, i noticed the backup image is not extracted:
example of the image taken is a VISTURE 10.06.2013 full image (found in pan.baidu.com)
It says: backup (RESERVED) skipped

any explanation to do job ?

Thanks

Code:
imgRePackerRK (version 0.95 windows)
Rockchip firmware batch image unpacker/packer

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

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

--- Firmware unpacking ---

"RKFW" image file detected

Image properties:
        Type            RockChip batch image (RKFWf)
        Version         4.1.1
        Date            2013.06.11
        Time            15:09:33
        ChipID          0x00000070
        Code(?)         0x01060000

-- boot.img processing --

-- update.img processing --
Image properties:
        Type            RockChip update image (RKAF)
        Id              "007"
        Model           "V97 HD"
        Manufacturer    "RK30SDK"
        Version         4.1.1

- Files extracting -
Image files count = 10

package-file (package-file)             extracted (format: unknown)
bootloader (RK3188Loader(L)_V1.04.bin)          extracted (format: RockChip bootloader image)
parameter (parameter)           extracted (format: RockChip PARM signed file)
misc (Image/misc.img)           extracted (format: unknown)
boot (Image/boot.img)           extracted (format: Android boot image)
recovery (Image/recovery.img)           extracted (format: Android boot image)
system (Image/system.img)               extracted (format: ext3/ext4 image)
backup (RESERVED)       skipped
update-script (update-script)           extracted (format: unknown)
recover-script (recover-script)         extracted (format: unknown)

- rkCRC summ of update.img checking -
Stored rkCRC            = 0x70fd48ef
Calculated rkCRC        = 0x70fd48ef

- md5 summ checking -
MD5 summ (Z:\xpad\rom\20130610 VISTURE V97 HD FW.img.dump\_img.files\image.md5)         saved
Stored MD5              = "b2ff6c1da264fc8a379ad8e79d7adb3d"
Calculated MD5          = "b2ff6c1da264fc8a379ad8e79d7adb3d"

- image.cfg creating -
image.cfg created

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

powerpsy

Member
May 26, 2013
5
0
Unfortunately, I still can't post links due to posts <10.
Firmwares images for RK3188 can be found on slatedroid on N90FHDRK topics.
Hope I can put links in next posts !

And thanks for the explanation. This means there is no recovery partition... But what happends when flashing an image without recovery partition ? the existing is not replaced or it is erased ?

Unfortunately I have not found images in this discussion. Can you provide a direct link?



This means the file is absent in firmware, the partition name is reserved
 

RedScorpioXDA

Senior Member
Apr 6, 2012
364
247
imgRePackerRK
RockChip's firmware images (*.img) unpacker/packer


New version (1.01 Windows & Linux) ready

+ nongzipped cpio_ascii_new archive file support added (found in Oma's firmware)
+ /skip key added (to support Oma's fw)
 
  • Like
Reactions: hurray

knng

Member
May 4, 2013
7
0
sorry but how to pack system.img again?

first i mounted img file to directory made some modifications but i could not pack the directory again
second i tried to mount img file to a hard drive (dev/sdb1) and did
dd if=/dev/sdb1 of=system.img
but this time system.img file size was long as partition size.. but longer than original system.img
than tried dd with to bs and count parameters but no success.

what is the point to pack system directory to img again?
thanks
 

ronson3ronson

Member
Mar 31, 2011
42
3
hey, great tool, thank you so much, but i'm failing to repack the boot.img too (win7 64)
:confused:getting error "can't open file "boot.img.dump\package-file", what iam doing wrong? :confused:
 

Top Liked Posts

Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone