Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Difference between revisions of "Rock/update.img"

(Created page with "__TOC__ == About == '''update.img''' is Rockchip's closed image format for nand flash images, which can be flashed via the [http://dl.radxa.com/rock/tools/windows/RK_BatchToo...")
 
(Linux)
Line 26: Line 26:
 
     recover-script recover-script
 
     recover-script recover-script
 
===Linux===
 
===Linux===
 +
A linux version of afptool and image maker can be found in radxa rockdev folder, use it with the following command:
 +
    afptool  -pack . Image/update_tmp.img
 +
    img_maker -rk31 RK3188Loader\(L\)_V1.24.bin 4 2 2 Image/update_tmp.img update.img
  
 
===Source code===
 
===Source code===
 
The source code of
 
The source code of

Revision as of 11:21, 7 November 2013

About

update.img is Rockchip's closed image format for nand flash images, which can be flashed via the rockchip batch tool into nand flash.

Generating the image

Windows

A window batch tool is provided by Rockchip to create the image, which calls the AFPTool.exe and RKImageMaker.exe to generate the image.

   Afptool -pack ./ Image\update.img
   RKImageMaker.exe -RK31 RK3188Loader(L)_V1.24.bin  Image\update.img update.img -os_type:androidos

The afptool reads the package-file which contains what files to be packed into the image.

   # NAME		Relative path
   #
   #HWDEF		HWDEF
   package-file	package-file
   bootloader	RK3188Loader(L)_V1.24.bin
   parameter	parameter
   misc		Image/misc.img
   kernel	Image/kernel.img
   boot		Image/boot.img
   recovery	Image/recovery.img
   system	Image/system.img
   backup			RESERVED
   update-script	update-script
   recover-script	recover-script

Linux

A linux version of afptool and image maker can be found in radxa rockdev folder, use it with the following command:

   afptool  -pack . Image/update_tmp.img
   img_maker -rk31 RK3188Loader\(L\)_V1.24.bin 4 2 2 Image/update_tmp.img update.img

Source code

The source code of