RK3066 update.img
(→About) |
|||
(8 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
== About == | == About == | ||
− | '''update.img''' is Rockchip's closed image format for nand flash images, which can be flashed via the [http://www.haoyuelectronics.com/service/RK3066/tools/windows/RKBatchTool_V1.6.rar rockchip batch tool] into nand flash. You can find our prebuilt update image of android and ubuntu at [http://www.haoyuelectronics.com/service/RK3066/images http://www.haoyuelectronics.com/service/RK3066/images] | + | '''update.img''' is Rockchip's closed image format for nand flash images, which can be flashed via the [http://www.haoyuelectronics.com/service/RK3066/tools/windows/RKBatchTool_V1.6.rar rockchip batch tool] or [http://www.haoyuelectronics.com/service/RK3066/tools/linux/Linux_Upgrade_Tool_v1.16.zip Linux Upgrade Tool] into nand flash. You can find our prebuilt update image of android and ubuntu at [http://www.haoyuelectronics.com/service/RK3066/images http://www.haoyuelectronics.com/service/RK3066/images] |
==Generating the image== | ==Generating the image== | ||
Line 8: | Line 6: | ||
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. | 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 | Afptool -pack ./ Image\update.img | ||
− | RKImageMaker.exe - | + | RKImageMaker.exe -RK30 RK30xxLoader(L)_V1.22.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. | The afptool reads the package-file which contains what files to be packed into the image. | ||
Line 15: | Line 13: | ||
#HWDEF HWDEF | #HWDEF HWDEF | ||
package-file package-file | package-file package-file | ||
− | bootloader | + | bootloader RK30xxLoader(L)_V1.22.bin |
parameter parameter | parameter parameter | ||
misc Image/misc.img | misc Image/misc.img | ||
Line 28: | Line 26: | ||
===Linux=== | ===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. | 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/ | + | git clone https://github.com/powermcu/rockchip-pack-tools |
− | + | # prepare the kernel and rootfs | |
./mkupdate.sh # Pack the image | ./mkupdate.sh # Pack the image | ||
Line 40: | Line 38: | ||
cd rk-tools | cd rk-tools | ||
make | make | ||
+ | |||
+ | ==Flash the image== | ||
+ | * Windows - [http://www.hotmcu.com/wiki/Flashing_Firmware_Image_Files_Using_The_Rockchip_Tool#Using_RKBatchTool_to_flash_update.img UsingRKBatchTool to flash update.img] | ||
+ | * Linux - [http://www.hotmcu.com/wiki/Flashing_Firmware_Image_Files_Using_The_Rockchip_Tool#Using_Linux_Upgrade_Tool_to_flash_update.img Using Linux Upgrade Tool to flash update.img] | ||
+ | |||
+ | |||
+ | {{#widget:DISQUS | ||
+ | |id=marsboard | ||
+ | |uniqid={{PAGENAME}} | ||
+ | |url={{fullurl:{{PAGENAME}}}} | ||
+ | }} |
Latest revision as of 02:13, 15 March 2014
Contents |
[edit] About
update.img is Rockchip's closed image format for nand flash images, which can be flashed via the rockchip batch tool or Linux Upgrade Tool into nand flash. You can find our prebuilt update image of android and ubuntu at http://www.haoyuelectronics.com/service/RK3066/images
[edit] Generating the image
[edit] 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 -RK30 RK30xxLoader(L)_V1.22.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 RK30xxLoader(L)_V1.22.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
[edit] 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/powermcu/rockchip-pack-tools # prepare the kernel and rootfs ./mkupdate.sh # Pack the image
You will get the update.img
[edit] Source code
The source code of afptool and img_maker:
git clone https://github.com/rk3066/rk-tools.git cd rk-tools make
[edit] Flash the image