工具使用說(shuō)明actduino啟動(dòng)時(shí)間優(yōu)化指南v_第1頁(yè)
工具使用說(shuō)明actduino啟動(dòng)時(shí)間優(yōu)化指南v_第2頁(yè)
工具使用說(shuō)明actduino啟動(dòng)時(shí)間優(yōu)化指南v_第3頁(yè)
工具使用說(shuō)明actduino啟動(dòng)時(shí)間優(yōu)化指南v_第4頁(yè)
工具使用說(shuō)明actduino啟動(dòng)時(shí)間優(yōu)化指南v_第5頁(yè)
已閱讀5頁(yè),還剩6頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、ActDuino S500_啟動(dòng)時(shí)間優(yōu)化指南最新版本:1.02015-04-08ActDuino S500_ 啟動(dòng)時(shí)間優(yōu)化指南1 目錄12錄1言2目引2.12.2編寫(xiě)目的2術(shù)語(yǔ)和縮寫(xiě)詞2概 述2生成啟動(dòng)數(shù)據(jù)文件3kernel打開(kāi)調(diào)試配置3編譯生成kernel鏡像3更新kernel鏡像和刪除數(shù)據(jù)文件3抓取開(kāi)機(jī)到主界面的串口打印4344.14.24.34.44.5腳本提取文件4用5更新啟動(dòng)數(shù)據(jù)文件4測(cè)試啟動(dòng)數(shù)據(jù)文件4替換啟動(dòng)數(shù)據(jù)文件5kernel關(guān)閉調(diào)試配置5編譯生成新固件5測(cè)試啟動(dòng)優(yōu)化結(jié)果6測(cè)試條件6測(cè)試結(jié)果6參考資料6版本歷史7.85.15.25.35.466.16.2789版本:1.0第 1

2、 頁(yè)ActDuino S500_ 啟動(dòng)時(shí)間優(yōu)化指南2 引言2.1 編寫(xiě)目的本文檔主要幫助的客戶(hù)熟悉如何優(yōu)化啟動(dòng)時(shí)間,讓客戶(hù)能夠生成和替換啟動(dòng)數(shù)據(jù)文件,并正確集成到固件中。2.2術(shù)語(yǔ)和縮寫(xiě)詞3 概述由于每個(gè)樣機(jī)的硬件性能差異(DDR 和 NAND 性能不同)和流程差異(內(nèi)置 APK不同),啟動(dòng)時(shí)間優(yōu)化需要每個(gè)版型(樣機(jī))單獨(dú)更新啟動(dòng)數(shù)據(jù)文件,并重新生成固件,下面主要從這兩方面進(jìn)行講述。版本: 1.0第 2 頁(yè)縮寫(xiě)和術(shù)語(yǔ)解 釋無(wú)ActDuino S500_ 啟動(dòng)時(shí)間優(yōu)化指南4 生成啟動(dòng)數(shù)據(jù)文件主要步驟:先制作一個(gè)帶調(diào)試的 kernel 鏡像,更新樣機(jī)中的 kernel 鏡像,刪除啟動(dòng)數(shù)據(jù)文件,重啟

3、后抓取開(kāi)機(jī)到主界面串口打印,再用 PC 腳本轉(zhuǎn)換成啟動(dòng)數(shù)據(jù)文件。4.1 kernel 打開(kāi)調(diào)試配置打開(kāi) SDK 下的 kernel 配置文件 kernel/arch/arm/configs/atm7059a_mid_defconfig,修改或增加如下配置:4.2 編譯生成 kernel 鏡像在 android 目錄下執(zhí)行編譯 kernel 命令,生成帶調(diào)試的 kernel 鏡像,文件路徑為kernel/arch/arm/boot/uImage,將 uImage 拷貝出來(lái)備用,重命名成 uImage_debug。4.3 更新 kernel 鏡像和刪除數(shù)據(jù)文件樣機(jī)打開(kāi) adb 并連接好usb 線(xiàn),

4、執(zhí)行如下 adb 命令更新kernel 鏡像和刪除啟動(dòng)數(shù)據(jù)文件。版本: 1.0第 3 頁(yè)adb rootadb wait-for-device adb remountadb shell mount -o remount,rw /misc adb push uImage_debug /misc/uImageadb shell rm /system/etc/ahead_file_blocks adb shell syncrm kernel/.config./autobuild.sh kernelcp kernel/arch/arm/boot/uImage ./uImage_debugCONFIG_

5、LOG_BUF_SHIFT=21 CONFIG_DEBUG_DUMP=yActDuino S500_ 啟動(dòng)時(shí)間優(yōu)化指南4.4 抓取開(kāi)機(jī)到主界面的串口打印正常重啟樣機(jī),為避免 logbuf 滿(mǎn)導(dǎo)致丟數(shù)據(jù),啟動(dòng)時(shí)盡可能早在串口終端輸入如下命令,小機(jī)能看到鎖屏界面時(shí)(啟動(dòng)完畢)終止該命令,多測(cè)試幾次盡量抓到開(kāi)機(jī)完整的打印。4.5 用腳本提取文件樣機(jī)連接 adb,切換當(dāng)前命令行到 android sdk 下的 tools 目錄,執(zhí)行如下命令獲取之前保存的串口打印文件。將 SDK 中 owl/gs705a/config/scripts/blocks_digest.py 腳本拷貝到 PC 端 androi

6、d sdk 下的tools 目錄下,保持樣機(jī)的 adb 連接,執(zhí)行如下命令等待一段時(shí)間后,生成啟動(dòng)數(shù)據(jù)文件ahead_file_blocks,將此文件拷貝出來(lái)備用。5 更新啟動(dòng)數(shù)據(jù)文件主要步驟:將啟動(dòng)數(shù)據(jù)文件通過(guò) adb push 到樣機(jī)來(lái)驗(yàn)證優(yōu)化效果,測(cè)試生效后再替換版型下的啟動(dòng)數(shù)據(jù)文件,生成新固件。5.1 測(cè)試啟動(dòng)數(shù)據(jù)文件生成的數(shù)據(jù)文件ahead_file_blocks 通過(guò) adb push 到樣機(jī)來(lái)驗(yàn)證啟動(dòng)時(shí)間,將執(zhí)行如下命令,再重啟樣機(jī)測(cè)試上電 logo 到主界面顯示的時(shí)間。版本: 1.0第 4 頁(yè)chcp 437monkeyrunner.bat blocks_digest.pyad

7、b rootadb wait-for-deviceadb pull /data/kernel_log.txtcat /proc/kmsg /data/kernel_log.txtActDuino S500_ 啟動(dòng)時(shí)間優(yōu)化指南5.2 替換啟動(dòng)數(shù)據(jù)文件啟動(dòng)時(shí)間優(yōu)化驗(yàn)證生效后,將啟動(dòng)數(shù)據(jù)文件ahead_file_blocks 拷貝到 SDK 版型下的android/etc 目錄,替換之前的文件。5.3 kernel 關(guān)閉調(diào)試配置打開(kāi) SDK 下的 kernel 配置文件 kernel/arch/arm/configs/atm7059a_mid_defconfig,關(guān)閉調(diào)試配置(即恢復(fù)之前的配置):5

8、.4 編譯生成新固件如果沒(méi)有完整編譯過(guò),先選擇版型再編譯,執(zhí)行如下命令生成新固件:如果已經(jīng)完整編譯過(guò),執(zhí)行如下命令生成新固件:版本: 1.0第 5 頁(yè)rm kernel/.config./autobuild.sh kernel./autobuild.sh image./autobuild.sh otazip./autobuild.sh target./autobuild.shCONFIG_LOG_BUF_SHIFT=17#CONFIG_DEBUG_DUMP=yadb rootadb wait-for-device adb remountadb pushahead_file_blocks /sy

9、stem/etc adb shell syncActDuino S500_ 啟動(dòng)時(shí)間優(yōu)化指南6 測(cè)試啟動(dòng)優(yōu)化結(jié)果6.1 測(cè)試條件測(cè)試請(qǐng)遵守如下幾點(diǎn)原則:(1)(2)(3)(4)量產(chǎn)后沒(méi)有安裝 apk 和打開(kāi) wifi 等操作。沒(méi)有 sd 卡,沒(méi)有連接 usb 線(xiàn),沒(méi)有接 adapter。從按鍵 onoff 顯示上電 logo 開(kāi)始計(jì)時(shí)。量產(chǎn)后第一次啟動(dòng)不統(tǒng)計(jì),從第二次啟動(dòng)開(kāi)始統(tǒng)計(jì)。6.2 測(cè)試結(jié)果特定機(jī)型第一次更新數(shù)據(jù)文件,啟動(dòng)時(shí)間情況下會(huì)有 10%20%的提升;如果在硬件和固件都沒(méi)有修改的情況下再次更新數(shù)據(jù)文件,提升的效果就不是很明顯。7 參考資料無(wú)版本:1.0第 6頁(yè)ActDuinoS50

10、0_啟動(dòng)時(shí)間優(yōu)化指南8 版本歷史版本: 1.0第 7 頁(yè)日 期版本號(hào)注釋作者2015-04-081.0建立初始版本ActDuinoS500 項(xiàng)目組ActDuino S500_ 啟動(dòng)時(shí)間優(yōu)化指南9DisclaimerInformation given in this document is provided just as a reference or example for the purpose of using Actions products, and cannot be treated as a part of any quotation or contract for sale.Ac

11、tions products may contain design defects or errors known as anomalies or errata whichmay cause the products functions to deviate from published specifications. Designers mustnot rely on the instructions of Actions products marked “” or “undefined”. Actionsreserves these for future definition and sh

12、all have no responsibility whatsoever foror incompatibilities arising from future changes to them.sACTIONS DISCLAIMS AND EXCLUDES ANY AND ALL WARRLIMITATION ANY AND ALL EXPRESS OR IMPLIED WARRES, INCLUDING WITHOUTES OF MERCHANTABILITY,ACCURACY, SECURITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND

13、INFRINGEMENT OF INTELLECTUAL PROPERTY AND THE LIKE TO THE INFORMATON OF THIS DOCUMENT AND ACTIONS PRODUCTS.IN NO EVENT SHALL ACTIONS BE LIABLE FOR ANY DIRECT, INCIDENTAL, INDIRECT, SPECIAL, PUNITIVE, OR CONSEQUENTIAL DAMAGES WHATSOEVER, INCLUDING, WITHOUT LIMITATION FOR LOST OF DATA, PROFITS, SAVING

14、S OR REVENUES OF ANY KIND ARISING FROM USING THE INFORMATON OF THIS DOCUMENT AND ACTIONS PRODUCTS. REGARDLESS OF THE FORM OF ACTION, WHETHER BASED ON CONTRACT; TORT; NEGLIGENCE OF ACTIONS OR OTHERS; STRICT LIABILITY; OR OTHERWISE; WHETHER OR NOT ANY REMEDY OF BUYER IS HELD TO HAVE FAILED OF ITS ESSE

15、NTIAL PURPOSE, AND WHETHER ACTIONS HAS BEENADVISED OF THE POSSIBILITY OF SUCH DAMAGES OR NOT. Actions products are not designed, intended, authorized or warranted for use in any lifesupport or other application where product failure could cause or contribute toalinjury or severe property damage. Any

16、 and all such uses without prior written approval of an Officer of Actions and further testing and/or modification will be fully at the risk of thecustomer.Ways of obtaining informationCopies of this document and/or other Actions product literature, as well as the Terms and Conditions of Sale Agreem

17、ent, may be obtained by visiting Actions website at:or from an authorized Actions representative.版本: 1.0第 8 頁(yè)ActDuino S500_ 啟動(dòng)時(shí)間優(yōu)化指南TrademarksThe word “Actions” and the logo are the trademarks of Actions Semiconductor Co.,and Actions (Zhuhai) Technology Co., Limited is authorized to use them. Word “

18、 ” is the trademark of Actions (Zhuhai) Technology Co., Limited. Names and brands of other companies and their products that may from time to time descriptively appear in thisdocument are the trademarks of their respective holders, no affiliation, authorization, orendorsement by suchtherein.s are cl

19、aimed or implied except as may be expressly statedRightsThe provision of this document shall not be deemed to grant buyers any right in and to patent, copyright, trademark, trade secret, know how, and any other intellectual property of Actions or others.MiscellaneousInformation contained or described herein relates only to the Actions products and as of the release date of this publication, abrogates and super

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論