[Upgrading, Modifying and Unlocking] cmserio:
English Translation of README.txt

For those that do not read Russian ... an English translation of the README.txt file.

[17.02.2014] ============================================= ========================================

imgrepackerRK.exe & imgrepackerrk

version 1.04 (windows & linux)

(c) RedScorpio, Moscow, 2013-2014

Program to unpack / repack firmware images for RockChip (* .img)

Purpose:

Unpacking for modification and subsequent images repack firmware format RockChip.

Can also be used to correct the md5 checksums and RockChip CRC.

Features:

- Packing and unpacking RKFW-firmware images (with the ability to handle files of 2-layer);

- Packing and unpacking RKAF-firmware images (with the ability to handle files of 2-layer);

- Packing and unpacking files 2nd layer are supported:

- Android boot image (04);

- RockChip bootloader image (15);

- Gzip / cpio archive file (14);

- Cpio_ascii_new archive file (19).

- Check and repair checksums md5, SHA and RockChip CRC.

Tested on firmware:

- RK29xx (ChipID = 0x00000050);

- RK30xx (ChipID = 0x00000060);

- RK31xx (ChipID = 0x00000070).

use:

"imgrepackerRK.exe [options] <name [.ext]>" - unpacking (Windows)

"imgrepackerRK.exe [options] <name [.ext]>. dump" - wrapping (Windows)

"imgrepackerRK.exe [options] <name [.ext]>. cfg" - wrapping file 2nd layer (Windows)

"./imgrepackerrk [options] <name [.ext]>" - unpacking (Linux)

"./imgrepackerrk [options] <name [.ext]>. dump" - wrapping (Linux)

"./imgrepackerrk [options] <name [.ext]>. cfg" - wrapping file 2nd layer (Linux)

Options (shown in brackets in the name of the ini-file and the default value):

/ log - log-file creating (log = 0);

/ debug - write debugging information, works only with option / log (debug = 0);

/ quiet - disable console output (quiet = 0);

/ mono - include monochrome mode (mono = 0);

/ md5 - md5 ignore error when unpacking or Do not add md5 checksum at repack (md5 = 0);

/ rkcrc - ignore errors RockChip CRC (rkcrc = 0);

/ rkaf - create RKAF image at repack (rkaf = 0);

/ skip - skip checking the file size of the firmware image; used when unpacking (skip = 0);

/ 2nd - unpacking / wrapping files of the second layer (2nd = 0);

/ cid - do not check ChipID (cid = 0);

/ blk - ImgFSize indicates the number of blocks (blk = 0);

/ ini - overwrite the ini-file with the options from the command line (-);

Note: Command line options always override the above parameters ini-file.

Note: To unpack / repack gzip / cpio files the Windows-version of the utility uses an external library

zlib1.dll (http://www.zlib.net/) and its own simple decompression algorithm, ( / repack cpio) while

similar, judging by the results, the original Linux-version uses native calls to external

utilities gzip / gunzip and cpio (so simple repackaging unchanged does not directly match

received firmware).

Used codes designating types of files:

-1 - Is not defined;

00 - Unknown;

04 - Android boot image;

06 - ext3 image;

11 - RockChip KRNL signed file;

12 - RockChip PARM signed file;

14 - gzip / cpio archive file;

15 - RockChip bootloader image;

16 - ext4 image;

17 - cpio_bin_odc archive file;

18 - cpio_ascii_odc archive file;

19 - cpio_ascii_new archive file;

20 - cpio_ascii_crc archive file.

The composition of the archive:

1. imgrepackerRK.exe - Windows-version.

2. zlib1.dll - library support gzip-files for Windows-based version.

3. imgrepackerrk - Linux-version.

4. ReadMe.txt - this file. (Russian Text)

================================================== =================================================

Download:

http://4pda.ru/forum/index.php?showtopic=457790 (rus)

http://xdaforums.com/showthread.php?t=2257331 (eng)

================================================== =================================================

Special thanks:

Jean-loup Gailly & Mark Adler for zlib library (http://www.zlib.net/)

================================================== =================================================

History:

1.04 [W & L] (17.02.2014)

+ Unpacking / wrapping "the single standing" PARM-signed files;

~ Changed decompression algorithm KRNL-signed files (cut the "extra");

~ Improved algorithm for automatic error correction describe the size of the area; allocated for individual files;

+ Deleted key / blk;

+ Minor improvements.

1.03 [W & L] (21.01.2014)

~ The bug check symlink-s with absolute paths (CPIO);

+ Added automatic correction of errors describe the size of the area allocated for individual files;

+ Added key / blk;

+ Added key / cid.

1.02 [W & L] (03.10.2013)

~ Fixed bug with unpacking / wrapping "the single standing" KRNL-signed images.

1.01 [W & L] (01.10.2013)

+ Added support for the format nongzipped cpio_ascii_new archive file;

+ Added key / skip.

1.00 [W & L] (06.09.2013) ! Release;

+ Added support for the format gzip / cpio archive file;

+ Added support for the format cpio_ascii_new archive file;

~ Optimized some parts of the code;

- Removed key / inter;

- Fixed minor bugs in the code;

+ Minor improvements.

0.95 [W & L] (26.05.2013) ! pre-Release # 5;

+ Added support for the format RockChip bootloader image.

0.94 [W & L] (17.05.2013) ! pre-Release # 4;

+ Added key / 2nd;

+ Added support for the format Android boot image.

0.93 [W & L] (29.04.2013) ! pre-Release # 3.

0.92 [W & L] (21.04.2013) ! pre-Release (for internal use).

================================================== =================================================