logo资料库

联咏开发环境搭建.pdf

第1页 / 共41页
第2页 / 共41页
第3页 / 共41页
第4页 / 共41页
第5页 / 共41页
第6页 / 共41页
第7页 / 共41页
第8页 / 共41页
资料共41页,剩余部分请下载后查看
Linux Development Environment User Guide 2016/8/29 For PR-WIN only With respect to the information represented in this document, Novatek makes no warranty, expressed or implied, including the warranties of merchantability, fitness for a particular purpose, non-infringement, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any such information. Linux 開發環境使用手冊 - 1 -
1.1 1.2 1.3 1.4 1.5 2.1 2.2 2.3 2.4 Linux Development Environment User Guide For PR-WIN only 目錄...................................................................................................................................... 2 1 發展環境 ....................................................................................................................... 4 VirtualBox/Ubuntu OS 安裝 ........................................................................... 4 Linux 開發環境設定 ....................................................................................... 9 安裝 NT96660 SDK ...................................................................................... 10 安裝 Cross compiler ..................................................................................... 11 環境變數 ....................................................................................................... 12 2 編譯說明 ..................................................................................................................... 12 環境設定 ....................................................................................................... 12 編譯 .............................................................................................................. 12 Top level Makefile ......................................................................................... 13 Project configuration ..................................................................................... 14 3 U-boot 編譯 ................................................................................................................. 15 3.1 編譯 .............................................................................................................. 15 3.2 選單設定 ....................................................................................................... 15 Linux Kernel 編譯 ........................................................................................................ 16 編譯 .............................................................................................................. 16 4.1 4.2 System configuration .................................................................................... 16 4.2.1 選單設定 ................................................................................................ 16 4.2.2 Nand partition ........................................................................................ 17 4.3 除錯 .............................................................................................................. 18 Linux Kernel Modules 編譯 ......................................................................................... 19 5.1 編譯 Build-in module ..................................................................................... 19 編譯 out-of-tree module ................................................................................ 20 5.2 5.3 安裝 .............................................................................................................. 20 6 工具 ............................................................................................................................ 21 編譯 .............................................................................................................. 21 安裝 .............................................................................................................. 21 7 檔案系統 ..................................................................................................................... 22 簡介 .............................................................................................................. 22 參數設定 ....................................................................................................... 22 編譯 .............................................................................................................. 23 With respect to the information represented in this document, Novatek makes no warranty, expressed or implied, including the warranties of merchantability, fitness for a particular purpose, non-infringement, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any such information. 6.1 6.2 7.1 7.2 7.3 4 5 目錄 2016/8/29 - 2 -
10 11 12 7.4 7.5 7.6 7.7 8.1 9.1 Linux Development Environment User Guide 2016/8/29 目錄說明 ....................................................................................................... 24 UBIFS ........................................................................................................... 25 Squashfs ...................................................................................................... 26 Jffs2 .............................................................................................................. 26 8 應用程式 ..................................................................................................................... 27 編譯 .............................................................................................................. 27 9 函式庫 ......................................................................................................................... 28 編譯 .............................................................................................................. 28 Busybox ............................................................................................................... 29 10.1 編譯 .............................................................................................................. 29 10.2 選單設定 ....................................................................................................... 29 測試程式 .............................................................................................................. 31 11.1 編譯 .............................................................................................................. 31 韌體更新 .............................................................................................................. 32 12.1 分區設定 ....................................................................................................... 32 12.2 使用 NvtPack.exe 將各 Firmware 壓成一個 bin ........................................ 32 12.3 Update Firmware .......................................................................................... 33 12.4 燒 Loader ..................................................................................................... 33 開機 ..................................................................................................................... 34 13.1 開機方式 ....................................................................................................... 34 除錯 ..................................................................................................................... 35 Coredump ..................................................................................................... 35 Messages ..................................................................................................... 35 GDB ............................................................................................................. 36 Printk ............................................................................................................ 38 Kmemleak .................................................................................................... 39 OpenOCD ..................................................................................................... 39 For PR-WIN only With respect to the information represented in this document, Novatek makes no warranty, expressed or implied, including the warranties of merchantability, fitness for a particular purpose, non-infringement, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any such information. 14.1 14.2 14.3 14.4 14.5 14.6 13 14 - 3 -
1 發展環境 Linux Development Environment User Guide 2016/8/29 1.1 VirtualBox/Ubuntu OS 安裝 此節介紹如何安裝 Ubuntu 於 Windows 系統上,如果你是安裝於單一 OS 的系統可以忽略本 節介紹,請至 VirtualBox 官網 (https://www.virtualbox.org/wiki/Downloads)上下載 VirtualBox 並依照指示安裝。 For PR-WIN only With respect to the information represented in this document, Novatek makes no warranty, expressed or implied, including the warranties of merchantability, fitness for a particular purpose, non-infringement, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any such information. - 4 -
Linux Development Environment User Guide 2016/8/29 這邊會安裝一些裝置的 Driver,請選擇 Install: For PR-WIN only With respect to the information represented in this document, Novatek makes no warranty, expressed or implied, including the warranties of merchantability, fitness for a particular purpose, non-infringement, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any such information. - 5 -
Linux Development Environment User Guide 2016/8/29 建立虛擬機器(選擇你要安裝的版本:Ubuntu 64-Bit): 選取虛擬機器可以使用的記憶體大小,這會影響到 Ubuntu 執行的速度: For PR-WIN only With respect to the information represented in this document, Novatek makes no warranty, expressed or implied, including the warranties of merchantability, fitness for a particular purpose, non-infringement, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any such information. - 6 -
Linux Development Environment User Guide 2016/8/29 建立虛擬硬碟: 設定使用的虛擬硬碟空間(至少保留硬碟 40GB 的空間): For PR-WIN only With respect to the information represented in this document, Novatek makes no warranty, expressed or implied, including the warranties of merchantability, fitness for a particular purpose, non-infringement, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any such information. - 7 -
Linux Development Environment User Guide 2016/8/29 點選光碟機並且選擇 Ubuntu ISO 檔案(Ubuntu 12.04/14.04 64-bit)啟動並安裝: For PR-WIN only With respect to the information represented in this document, Novatek makes no warranty, expressed or implied, including the warranties of merchantability, fitness for a particular purpose, non-infringement, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any such information. - 8 -
分享到:
收藏