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

Rock/update.img

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. You can find our prebuilt update image of android and ubuntu at http://dl.radxa.com


Note :

the different hardware vision can't flash the same image. otherwise the board can't boot or no video output.

How to download the right image,please refer to the following content

1: Make sure what your board vision is, refer to hardware_revision

2: All the images and source code are stored on the dl.radxa.com

3: Images are stored under the sub-folder by product name

there are four sub-folders named by product name: rock, rock_lite,rock_pro,rock2(coming soon)

   e.g. 
   radxa rock's images are under rock folder , the link is  dl.radxa.com/rock
   radxa rock pro's images are under rock_pro folder. the link is  dl.radxa.com/rock_pro
   radxa rock lite's images are under rock_lite folder, the link is dl.radxa.com/rock_lite

4: the image's name contains many info,you can know whether the image is right for your board

   e.g. 
   a) radxa_rock_android_kitkat_r2_140911_sdcard.zip
   radxa_rock  : the product name, for radxa_rock
   android     : the image's os       
   kitkat      : the os vision is android 4.4
   r2         : release version
   140911     : release date (2014.9.11)
   sdcard      : image for sdcard,  sdcard boot needs.


   b)radxa_rock_ubuntu_14.04_server_140820_update.zip
   radxa_rock   :  the product name, for radxa_rock
   ubuntu      :  the image's os       
   14.04        :  the os vision is ubuntu 14.04
   server       :  server version,not desktop, NO GUI
   140820      :  release date (2014.8.20)
   update       :  no means, just tell us it's a update image

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. You can find the batch tool at the rockdev folder of the SDK source code.

   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 by fonix232 can be found on github, below is the packing tool using afptool and image maker to pack the image.

   git clone https://github.com/radxa/rockchip-pack-tools.git
   ./getimage.sh # Download the kernel and rootfs from dl.radxa.com
   ./mkupdate.sh # Pack the image NOTE: you should put boot.img and rootfs.img in Linux/ directory

You will get the update.img


Source code

The source code of afptool and img_maker:

   git clone https://github.com/neo-technologies/rockchip-mkbootimg.git
   cd rockchip-mkbootimg
   make

Flash the image