usb烧录amligic板子

 

 

准备工作
1、下载android源代码到本地
git clone ssh://guizhongyun@elastos.org:29418/KortideInsideProject/Android4_1_2ForAmLogic android-4.1.2-amlogic
2、编译
cd android-4.1.2-amlogic
source ./build/envsetup.sh
lunch 15
make -j8 otapackage
3、准备烧写工具USB-Burning-tool-v1.6.1.1228
下载putty超级终端。
4、生成烧写文件
a)在完成编译之后会生成一个如下的.zip文件
\out\target\product\g02ref\g02ref-ota-yyyymmdd.zip
其中yyyymmdd表示编译日期
b)把g02ref-ota-yyyymmdd.zip拷贝到\USB-Burning-tool-v1.6.1.1228\resources目录下,并把名字改为update.zip。
c) 把resources目录下的update.zip,config_progress.xml,u-boot.bin,u-boot-orig.bin,uImage_recovery ,usb_spl.bin压缩成一个.zip文件。(例如resouces_a3.zip)

烧写amlogic板子
1、擦除iNand
將板子的com port接到PC,打开putty超级终端,给插上电源给板子供电并开机,同事按下PC键盘的空格键。如此会板子将会进入到image模式。擦除iNand可以使用以下命令:
mmc erase 1
结果如下所示:

01 EEEE I3000000032940xf100000003876510EEEE I400000004294_M6_BL1_3003>2137333t
02 wait pll-0x03 target is 0204 now it is 0x00000203
03 set ddr clock ok!
04  
05 DX0DLLCR:40000000
06 DX0DQTR:ffffffff
07 DX0DQSTR:3db05001
08 DX1DLLCR:40000000
09 DX1DQTR:ffffffff
10 DX1DQSTR:3db05001
11 DX2DLLCR:40000000
12 DX2DQTR:ffffffff
13 DX2DQSTR:3db05001
14 DX3DLLCR:40000000
15 DX3DQTR:ffffffff
16 DX3DQSTR:3db05001
17 Stage 00 Result 00000000
18 Stage 01 Result 00000000
19 Stage 02 Result 00000000
20 Stage 03 Result 00000000
21 HHH
22 Boot From SDIO C
23 0x000000c7
24 0x12345678
25 Boot from internal device 1st SDIO C
26  
27 System Started
28  
29  
30  
31 U-Boot 2011.03-V004--00000-g74a5596(m6_mbx_v1@next) (Jan 31 2013 - 15:10:15)
32  
33 aml_rtc_init
34 DRAM:  1 GiB
35 relocation Offset is: 10620000
36 MMC:   SDIO Port B: 0, SDIO Port C: 1
37 In:    serial
38 Out:   serial
39 Err:   serial
40 aml_i2c_init
41 register usb cfg[0] = 9fe8aa64
42 Net:   Meson_Ethernet
43 init suspend firmware done. (ret:0)
44 Device: SDIO Port C
45 Manufacturer ID: 0
46 OEM: 0
47 Name: Tran Speed: 25000000
48 Rd Block Len: 512
49 MMC version 4.0
50 High Capacity: Yes
51 Capacity: 7818182656
52 Bus Width: 4-bit
53  
54  
55 MMC read: dev # 1, block # 0, count 1 ... 1 blocks read: OK
56  
57  
58 MMC write: dev # 1, block # 0, count 1 ... 1 blocks written: OK
59 syntax error
60 SARADC open channel(4).
61 SARADC open channel(4).
62 reboot_mode=charging
63 syntax error
64 efuse version is not selected.
65 Hit any key to stop autoboot:  0
66 m6_mbx_v1#mmc erase 1
67 15269888 blocks erased: OK
68 m6_mbx_v1#reset
69 resetting ...
70 EEEE I3000000032940xf100000003876510EEEE I400000004294_M6_BL1_3003>2137333

2、准备
a)打开烧写工具

上图表示已识别到板子,设备被识别到才能进行烧。
b)导入升级文件
文件->导入升级文件,然后选择自己要导入的文件即可。

3、烧写amlogic板子
点击【开始】按钮开始烧板子

烧写成功:

4、烧写成功后,log信息如下:

01 current pc version is: xp
02 current tool version is: v1.6.1.1228
03 -----importUpgradeFile-----filenameD:\amlogic\USB-Burning-tool-v1.6.1.1228\resources\a3\resources_a3.zip
04 [T 0][17:35:19]: load spl ...
05 [T 0][17:35:19]: Transfer Complete! total size is 16216 Bytes
06 [T 6][17:35:23]: load spl ...
07 [T 6][17:35:25]: load uboot ...
08 [T 6][17:35:26]: Transfer Complete! total size is 455128 Bytes
09 [T 0][17:35:28]: load uboot ...
10 [T 0][17:35:30]: load uboot ...
11 [T 0][17:35:31]: load uboot ...
12 [T 6][17:35:32]: test command exec: crc 0x8f800000 455128 cdb7bef2
13 [T 6][17:35:32]: command exec: crc 0x8f800000 455128 cdb7bef2
14 [T 6][17:35:32]: sendCommandWithReply: crc 0x8f800000 455128 cdb7bef2 maxCount:30
15 [T 0][17:35:33]: load uboot ...
16 [T 6][17:35:34]: begin run 8f800000
17 [T 0][17:35:35]: load uboot ...
18 [T 0][17:35:36]: load uboot ...
19 [T 0][17:35:38]: load uboot ...
20 [T 0][17:35:39]: load uboot ...
21 [T 0][17:35:41]: load uboot ...
22 [T 0][17:35:42]: load uboot ...
23 [T 0][17:35:44]: load uboot ...
24 [T 0][17:35:46]: load uboot ...
25 [T 0][17:35:47]: load uboot ...
26 [T 0][17:35:49]: load uboot ...
27 [T 0][17:35:50]: load uboot ...
28 [T 0][17:35:52]: load uboot ...
29 [T 0][17:35:53]: load uboot ...
30 [T 0][17:35:55]: load uboot ...
31 [T 0][17:35:56]: load uboot ...
32 [T 6][17:35:57]: finish run 8f800000
33 [T 0][17:35:58]: load uboot ...
34 [T 0][17:35:59]: load uboot ...
35 [T 0][17:36:00]: load uboot failed 15 times,maybe because the spl code run err
36 [T 6][17:36:00]: command exec:defenv
37 [T 0][17:36:01]: failed because no connected device ,current step is 1
38 [T 6][17:36:01]: command exec:setenv recovery_command --usb_burning
39 [T 6][17:36:03]: command exec:save
40 [T 6][17:36:04]: load uimage ...
41 [T 6][17:36:05]: Transfer Complete! total size is 5291756 Bytes
42 [T 6][17:36:11]: test command exec: crc 0x82000000 5291756 7b36a946
43 [T 6][17:36:11]: command exec: crc 0x82000000 5291756 7b36a946
44 [T 6][17:36:11]: sendCommandWithReply: crc 0x82000000 5291756 7b36a946 maxCount:30
45 [T 6][17:36:13]: command exec:bootm 0x82000000
46 [T 6][17:36:15]: boot uImage ...
47 [T 6][17:36:37]: find disk: F:
48 [T 6][17:36:39]: recoveyCommand:  wipe_media prepareCommand:
49 [T 6][17:36:39]: send command : wipe_media ok!
50 [T 6][17:36:41]: wipe_media success(wipe_media):ok
51 [T 6][17:36:42]: recoveyCommand:  wipe_data prepareCommand:
52 [T 6][17:36:42]: send command : wipe_data ok!
53 [T 6][17:36:45]: wipe_data success(wipe_data):ok
54 [T 6][17:36:46]: recoveyCommand:  wipe_cache prepareCommand:
55 [T 6][17:36:46]: send command : wipe_cache ok!
56 [T 6][17:36:48]: wipe_cache success(wipe_cache):ok
57 [T 6][17:36:49]: recoveyCommand:  update:update.zip prepareCommand:
58 [T 6][17:37:27]: copy successed:update.zip
59 [T 6][17:37:27]: send command : update:update.zip ok!
60 [T 6][17:38:14]: update:update.zip success(update:update.zip):ok
61 [T 6][17:38:15]: recoveyCommand:  copy_media prepareCommand:
62 [T 6][17:38:16]: recoveyCommand:  set_env prepareCommand:
63 [T 6][17:38:16]: send command : set_env ok!
64 [T 6][17:38:18]: set_env success(set_env):ok
65 D:/amlogic/USB-Burning-tool-v1.6.1.1228/log/04.15.17.38_resources_a3_manual.log
66 success:1 failed:1 failed postion:   s1:1

注意:1、烧板子时,port1会停在6%,而另一个port会继续更新image直到100%,当这个port到100%时,表示烧写成功,可以按【停止】按钮,完成烧写。
2、烧写时,一定要用usb线连接到PC的usb接口。

 | 514 views | 3 comments | 0 flags

 
Leave a comment ?

3 Comments.

    1. avatarJujuBickoille 

      Hi mate,

      Howto get a Git Access ?

      thank you :)

    2. 【Elastos】将Demo部署到AML板子上的步骤

      于 2013/4/26 17:10, 饶志明 写道:
      1. 烧BSP版本(我这边都是陈熹昊烧的)
      2. 下载ElastosRDKForAmlogic,并编译(emake)
      3. 目前Launche及SnowFox还未加入编译, 需要手动编译
      进入ElastosRDKForAmlogic/Sources/Elastos/Framework/Droid/DevSamples/Launcher,并执行emake
      进入ElastosRDKForAmlogic/Sources/Elastos/Framework/Droid/DevSamples/Snowfox,并执行emake
      4. 执行eldrop,将elastos部署到板子上
      5. 由于目前的eldrop还不会拷贝XBMX,Launcher及Snowfox,所以这两个目录需要手动拷贝
       方法1:修改ElastosRDKForAmlogic\Build\Tools\eldrop.list
      添加如下项:
      XBMC dir
      Snowfox dir
      Launcher dir
       方法2:手动拷贝这几个目录
      进入/home/elastosubuntu/ElastosRDKForAmlogic/Targets/rdk/arm.gnu.linux.dbg/bin
      adb push Launcher /data/data/com.elastos.runtime/elastos/Launcher
      adb push Snowfox /data/data/com.elastos.runtime/elastos/Snowfox
      adb push XBMC /data/data/com.elastos.runtime/elastos/XBMC
      6. 部署UI文件
      a.下载ui文件
      svn位置:svn://58.246.74.101/Trinity/trunk/Sandalwood/Elastos/Launcher/UI/tvui
      b.将下载的文件拷贝到板子上
      adb push E:\Trinity\Sandalwood\Elastos\Launcher\UI\tvui /data/data/com.elastos.runtime/elastos/Launcher/ui

      7. 如果板子上没有计算器的apk的话,需要将该apk放置在/data/app目录中

    3. 5.2可以简化为:
      在Elastos开发环境命令行:
      pd @
      elcopy Launcher Launcher
      elcopy Snowfox Snowfox
      elcopy XBMC XBMC

posted on 2013-07-24 19:37  Nickleback  阅读(983)  评论(0)    收藏  举报