日本黄色一级经典视频|伊人久久精品视频|亚洲黄色色周成人视频九九九|av免费网址黄色小短片|黄色Av无码亚洲成年人|亚洲1区2区3区无码|真人黄片免费观看|无码一级小说欧美日免费三级|日韩中文字幕91在线看|精品久久久无码中文字幕边打电话

當前位置:首頁 > 單片機 > 單片機
[導(dǎo)讀]一直對2440上電以后怎么從nandflash中啟動不是很清楚,閑來無事看了下s3c2440的用戶手冊,看到下面這樣一段話: S3C2440A boot code can be executed on an external NAND flash memory. In order to support NAND f

一直對2440上電以后怎么從nandflash中啟動不是很清楚,閑來無事看了下s3c2440的用戶手冊,看到下面這樣一段話:
S3C2440A boot code can be executed on an external NAND flash memory. In order to support NAND flash bootloader, the S3C2440A is equipped with an internal SRAM buffer called "Steppingstone". When booting, the first 4KBytes of the NAND flash memory will be loaded into Steppingstone and the boot code loaded into Steppingstone will be executed.
Generally, the boot code will copy NAND flash content to SDRAM. Using hardware ECC generating, the NAND flash data validity will be checked. Upon the completion of the copy, the main program will be executed on the SDRAM.
雖然大家都看得懂上面的eng,但是為了自己以后看得方便一些,在此稍微解釋一下:
2440的啟動代碼可以從外部的nandflash上執(zhí)行。為了能支持nboot,2440需要帶有一個叫做steppingstone的內(nèi)部sram緩 沖區(qū)。在啟動加載的時候,nandflash的前4k的內(nèi)容(nboot部分)要被先load到steppingstone中去(此時 steppingstone被映射為物理地址的0x0,復(fù)位后執(zhí)行的第一條指令就是從這里取的),并且接著就是在steppingstone中去執(zhí)行該啟 動代碼。這部分代碼(nboot)的作用是會將nandflash中的bootloader step2部分拷貝到sdram中去,并跳到sdram中去執(zhí)行以加載內(nèi)核(nk)。
nboot從nandflash被load到 steppingstone中的過程為:在上點的時候,nandflash控制器通過幾個引腳的狀態(tài)(NCON-Adv flash;GPG13-Page size;GPG14-Address cycle;GPG15-Bus width)來得到nandflash的相關(guān)信息,之后nandflash控制器就會自動load nandflash中前4k的啟動代碼到steppingstone中去,并在其中執(zhí)行了。

本站聲明: 本文章由作者或相關(guān)機構(gòu)授權(quán)發(fā)布,目的在于傳遞更多信息,并不代表本站贊同其觀點,本站亦不保證或承諾內(nèi)容真實性等。需要轉(zhuǎn)載請聯(lián)系該專欄作者,如若文章內(nèi)容侵犯您的權(quán)益,請及時聯(lián)系本站刪除( 郵箱:macysun@21ic.com )。
換一批
延伸閱讀
關(guān)閉