linux 實現極速開機(開機時間5S)

來源:互聯網
上載者:User

Author : DriverMonkey

Contact Way: 196568501(QQ), bookworepeng.hotmail.com

測試環環境:

處理器:TI  AM335X

測試開發板: TI AM3359BeagleBone

啟動方式: uboot SD 記憶卡啟動

裁減掉模組:ALL 網路模組

                        除了ext3檔案系統外, 所有檔案系統

                       ALL Cryptographic API
                       ALL Library routines  

                       ALL   Kernel hacking

核心列印資訊:

Uncompressing Linux... done, booting the kernel.                                
[    0.000000] Linux version 3.2.0 (root@ubuntu) (gcc version 4.5.3 20110311 (p2
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d  

......      

    
[    4.338134] Freeing init memory: 192K (每次測試時間不確定有 2-3S 差異)

......

測試結果

核心啟動時間:1.9S

核心解壓拷貝時間:2.xS

Bootloader時間:1 S  

整個啟動時間為:5S     

總結:

整個系統起來所花時間分為三部分:

1. 網路初始化

2.檔案系統初始化

3.指令碼執行時間

知道所化時間代碼對相應代碼點剪裁即可

裁減前後時間對比——

裁減前:70.S

裁減後:5.3S

註:包括bootloader 到系統起來的時間

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.