【正文】
可以為其他,只要在合法的地址范圍(內(nèi)存中)。使用下面的步驟將該交叉編譯工具鏈安裝到 ubuntu中: (1),通過 samba將 交叉編譯工具鏈壓縮包 /opt目錄下 (2),解壓 : $tar – jxvf (3), cd toolschain/(4),pwd命令獲取交叉工具鏈可執(zhí)行文件存放的絕對路徑 /opt/toolschain/(5),修改環(huán)境變量 PATH的值 $cd ~ $vim .bashrc 在最后一行中添加: Export PATH= $PATH:/opt/toolschain/保存退出 執(zhí)行命令: $source ~/.bashrc (6),測試, 使用交叉 工具鏈編譯 c代碼 比如有 armlinuxgnugcc – o test_arm 用 file 命令查看編譯后產(chǎn)生的可執(zhí)行文件的類型,可知該可執(zhí)行文件適合于ARM 平臺運行: csmcsm:~/tmp$ file test_arm test_arm: ELF 32bit LSB executable, ARM, version 1, dynamically linked (uses shared libs), for GNU/Linux , not stripped 安裝 TFTP 和 NFS 服務 使用 uboot引導 Linux內(nèi)核啟動時,在 uboot中可以設(shè)置相關(guān)的參數(shù),使其可以通過廣東石油化工學院本科畢業(yè) (設(shè)計 )論文: 基于 ARM+Linux 的 LCD 驅(qū)動設(shè)計 16 網(wǎng)絡(luò),使用 TFTP服務下載 Linux內(nèi)核或文件系統(tǒng)到 Nandflash中,然后進行引導啟動。 開發(fā)環(huán)境 本設(shè)計采用在 xp中的虛擬機中安裝 ,在 ubuntu下進行全部的開發(fā)和環(huán)境搭建開發(fā)。 任何網(wǎng)絡(luò)事務都經(jīng)過一個網(wǎng)絡(luò)接口形成,即一個能夠和其他主機交換數(shù)據(jù)的設(shè)備。在嵌入式 Linux里,除了直接修改系統(tǒng)核心的源代碼.把設(shè)備驅(qū)動程序加進核心里外.還可以把驅(qū)動程序作為可加載的模塊,由系統(tǒng)管理 員動態(tài)的加載它, 使 之成為核心的一部分。用戶進程可直接通過系統(tǒng)調(diào)用或函數(shù)庫來訪問內(nèi)核資源。移植工作主要集中在一些存儲器管理及中斷處理程序上。 未 用S F R 區(qū)B o o t S R A M( 4 K B )S R O M / S D R A M( n G C S 7 )S R O M / S D R A M( n G C S 6 )S R O M( n G C S 5 )S R O M( n G C S 4 )S R O M( n G C S 3 )S R O M( n G C S 2 )S R O M( n G C S 1 )S R O M( n G C S 0 )未 用S F R 區(qū)未 用S R O M / S D R A M( n G C S 7 )S R O M / S D R A M( n G C S 6 )S R O M( n G C S 5 )S R O M( n G C S 4 )S R O M( n G C S 3 )S R O M( n G C S 2 )S R O M( n G C S 1 )內(nèi) 部 啟 動S R A M ( 4 K B )1 2 8 M B1 2 8 M B1 2 8 M B1 2 8 M B1 2 8 M B2 M B / 4 M B / 8 M B / 1 6 M B/ 3 2 M B / 6 4 M B / 1 2 8 M B2 M B / 4 M B / 8 M B / 1 6 M B/ 3 2 M B / 6 4 M B / 1 2 8 M B1 G BH A D D R [ 2 9 : 0 ]可 訪 問 區(qū) 域[ 不 使 用 N A N D F l a s h 作 為 R O M ] [ 使 用 N A N D F l a s h 作 為 R O M ]O M [ 1 : 0 ] = 0 1 , 1 0 O M [ 1 : 0 ] = 0 00 x f f f f f f f f0 x 6 0 0 0 0 0 0 00 x 4 8 0 0 0 0 0 00 x 4 0 0 0 0 f f f0 x 4 0 0 0 0 0 0 00 x 3 8 0 0 0 0 0 00 x 3 0 0 0 0 0 0 00 x 2 8 0 0 0 0 0 00 x 2 0 0 0 0 0 0 00 x 1 8 0 0 0 0 0 00 x 1 0 0 0 0 0 0 00 x 0 8 0 0 0 0 0 00 x 0 0 0 0 0 0 0 0廣東石油化工學院本科畢業(yè) (設(shè)計 )論文: 基于 ARM+Linux 的 LCD 驅(qū)動設(shè)計 6 第二章 嵌入式 Linux 簡介 隨著計算機技術(shù)、通信技術(shù)的飛速發(fā)展,特別是互聯(lián)網(wǎng)的迅速普及和 3C(Computer、Communication、 Consume)合一的加速,微型化和專業(yè)化成為信息產(chǎn)品發(fā)展的新趨勢,嵌入式產(chǎn) 品成為信息產(chǎn)業(yè)的主流。 APB 主要用于低帶寬的周邊外設(shè)之間的連接,例如 UART 等,它的總線架構(gòu)不像 AHB支持多個主模塊,在 APB 里面唯一的主模塊就是 APB 橋。借助于完善的設(shè)計服務、培訓、支持和維護以及公司的龐大合作伙伴社區(qū),我們提供了一個全面的系統(tǒng)解決方案,為主要電子設(shè)備公司提供一條快速可靠的途徑將產(chǎn)品推向市場。 關(guān)鍵詞 : 嵌入式 ARM9 系列 LCD Linux 內(nèi)核 動態(tài)顯示 關(guān)鍵技術(shù) 廣東石油化工學院本科畢業(yè) (設(shè)計 )論文: 基于 ARM+Linux 的 LCD 驅(qū)動設(shè)計 II Abstract In recent years, with the development of puter technology and integrated circuit technology, embedded technology is the growing popularity of playing an increasingly important role in munications, working, industrial, medical, electronics and other fields. Information age, the digital age makes embedded products was a great opportunity for development, show a bright future for the embedded market, but also new challenges for embedded. In this design, hardware platform of ARM9 more columns, the performance of highend chip. The ARM9 family processors mainstream British pany ARM embedded processors, new design, the more transistors can be achieved more than twice the processing capabilities of the ARM7 processor. This processing capability is achieved by increasing the clock frequency and reduce the cycle of instruction execution. Using model WXCAT35TG3 LCD display, the size of the LCD display is inch with a resolution of 320 240 touch screen response time less than 10ms. The software platform uses the Linux kernel version . Linux system more widely in the embedded field, with its own high degree of modular, open source, a wide range of hardware support, security and reliability, with excellent development tool, have a good work to support the Lee file system support and is fully patible with UNIX features are inseparable, so the design of Linux as a software platform. The ultimate goal of this design is a dynamic display on the LCD display multiple pictures related to the LCD driver layer to the application layer, key technologies, LCD driver, the picture decoding, LCD applications to achieve. Keywords: Embedded ARM9 series LCD Linux kernel Dynamic display key technologies 目錄 I 目 錄 摘 要 ................................................................. I Abstract .............................................................. II 引 言 ............................................................. 1 第一章 ARM9 s3c2410 簡介 ........................................... 2 ARM 技術(shù) .................................................... 2 s3c2410 處理器介紹 .......................................... 2 AMBA、 AHB、 APB 總線特點 ............................... 3 S3C2410 處理器體系結(jié)構(gòu) ................................. 4 S3C2410 處理器體系結(jié)構(gòu) ................................. 4 S3C2410 處理器存儲器映射 ............................... 4 S3C2410 處理器時鐘和電源管理 ........................... 4 第二章 嵌入式 Linux簡介 ............................................ 6 嵌入式 Linux 系統(tǒng)概述 ........................................ 6 嵌入式 Linux 系統(tǒng)的優(yōu)勢 ...................................... 6 構(gòu)建嵌入式 Linux ............................................ 7 精簡內(nèi)核 .............................................. 7 系統(tǒng)啟動 .............................................. 8 設(shè)備驅(qū)動程序 .......................................... 9 第三章 開發(fā)工具 ................................................... 11 開發(fā)環(huán)境 .................................................. 11 虛擬機中安裝 .............................. 11 配置網(wǎng)絡(luò) ............................................. 13 配置 samba 服務器 ...........................