Application NotesAmlogic 烧录工具V2使用手册Revision 0.9Amlogic,Inc.2518Mission College Blvd Santa Clara,CA 95054U.S.A.Legal Notices©2014Amlogic,Inc.All rights reserved.Amlogic ®is registered trademarks of Amlogic,Inc.All other registered trademarks,trademarks and service marks are property of their respective owners.This document is Amlogic Company confidential and is not intended for any external distribution.Aml og i cCo nf i de nt i a l !目录1.概要说明 (4)1.1简介.....................................................................................................................................................................................41.2术语.....................................................................................................................................................................................42.SDK 与工具获取 (5)2.1代码下载与固件打包..........................................................................................................................................................52.2PC 工具获取.........................................................................................................................................................................73.Sdcard 烧录使用说明 (9)3.1整包烧录 (9)3.2单个分区烧录(开发者用户使用)B 烧录使用说明.. (14)4.1工具与驱动安装................................................................................................................................................................144.2整包烧录............................................................................................................................................................................154.3单个分区烧录(开发者用户使用)................................................................................................................................165.Key 的配置与烧录 (20)5.1编译与配置支持................................................................................................................................................................205.2使用USB 烧录工具烧录key .............................................................................................................................................255.3使用usb 命令工具烧录key ..............................................................................................................................................28Aml og i cCo nf i de nt i a l !文档版本版本日期作者修改0.1Aug.13,2013Sam Wu 初稿,只包含命令工具使用说明0.5Aug.16,2013Sam Wu 增加USB 整包烧录工具使用说明0.6Aug.23,2013Sam Wu Support g18/g24/g33in m6kernel3.8development 0.7Oct.09,2013Sam Wu Support k100/k101/k200of m8platform0.8Oct.15,2013Sam Wu Sdcard burning support output dynamic progress bar on LCD,and enabled on k100/k1010.9Feb.10,214Sam WuAdd key burning descriptionAml og i cCo nf i de nt i a l !1.概要说明1.1简介本文档介绍Amlogic kernel3.10下支持的镜像烧录方式,镜像烧录目前包括USB 烧录和sdcard 烧录两种。
本文档适用Amlogic Kernel 3.10SDK 的开发,Kernel 3.0方案不支持此方式.本文档暂不描述OTA 方式升级的相关内容。
1.2术语1)Version 2烧录:一种基于Amlogic 的NFTL 驱动接口和worldcup USB 协议,在uboot 下实现的按镜像方式烧录,目前支持USB 烧录和sdcard 烧录两种烧录方式。
2)AmlUsbBurning 2.0.xx:version2对于的USB 烧录工具,目前支持win7/winxp 等windows OS.3)Update.exe:基于Amlogic libusb 驱动的命令行工具,也相当于uboot 的usb 终端,可以通过libusb 驱动给uboot 发送命令,主要用于开发用户部分烧录,也可以用于调试。
4)Update:uboot 下命令,使平台进入worldcup 协议模式,用于进入Amlogic 的USB 烧录模式。
5)Sdc_update:uboot 命令,用于从tf 卡读取一个文件并烧录到平台一个分区。
6)Sdc_burn:uboot 命令,用于从tf 卡上读到配置文件并读取Amlogic 格式的烧录包进行烧录。
Aml og i cCo nf i de nt i a l !2.SDK 与工具获取2.1代码下载与固件打包2.1.1code download仅介绍m8支持的kernel 3.10+android 4.4.a.android:+ubootrepo init -u git:///platform/manifest.git -b kk-amlogic --repo-url=git://10.8.9.5/tools/repo.git repo syncNote:uboot 代码仍然单独编译,但code 已经包含在sdk 根目录下,即/uboot/。
2.1.2system builda.uboot:i.uboot configconfig command for k200:"make m8_k200_v1_config"config command for k100:"make m8_k100_v1_config"config command for k101:"make m8_k101_v1_config"ii.uboot make;iii.uboot output (uboot\build\)copy uboot\build\u-boot.bin to directory device/amlogic/gxxxx/Copy uboot\build\ddr_init.bin to directory device/amlogic/gxxx/Copy uboot\build\u-boot-orig.bin to directory device/amlogic/gxxx/b.Android:i.source build/envsetup.sh ii.K100:lunch k100-userdebugK101:lunch k101-userdebug K200:Lunch k200-userdebug2.1.3Make out burning package生成大的完整烧录包:Aml og i cCo nf i de nt i a l !Lunch 到相应方案后,在sdk 的root 目录下直接make(或者make otapackage)即可在对应的out 路径(如out\target\product\k100)下生成完整的烧录包aml_upgrade_package.img.aml_upgrade_package.img 烧录包可同时用于USB 烧录和卡烧录两种烧录方式。
如果make tool 提示没有aml_upgrade 的rule 可生成,或者aml_upgrade_package.img 没有生成,说明您的所在项目代码没有在makefile 中enable TARGET_SUPPORT_USB_BURNING_V2相关编译宏,请联系项目的对应owner 。