S5PV210啟動流程介紹一
時間:2016-12-14作者:華清遠見
手(shou)冊上(shang)關于iROM/iRAM及Bootloader描述(shu)如下: ·The iROM code is placed in internal 64KB ROM. It initializes basic system functions such as clock, stack, and heap. ·The iROM loads the first boot loader image from a specific booting device to internal 96KB SRAM. The booting device is selected by Operating Mode (OM) pins. According to the secure boot key values, the iROM code may do an integrity check on the first boot loader image. ·The first boot loader loads the second boot loader then may check the integrity of the second boot loader according the secure boot key values. ·The second boot loader initializes system clock, UART, and DRAM controller. After initializing DRAM controller, it loads OS image from the booting device to DRAM. According to the secure boot key values, the second boot loader can do an integrity check on the OS image. ·After the booting completes, the second boot loader jumps to the operating system. 按照芯片手冊(ce)上的啟動分析圖及上面的描述,總結啟動流(liu)程為: S5PV210上電將(jiang)iROM(interal ROM)處執(zhi)行(xing)(xing)(xing)固化的(de)(de)啟動代碼,它對系統(tong)時(shi)鐘進行(xing)(xing)(xing)初始化,對啟動設備(bei)進行(xing)(xing)(xing)判斷,并從(cong)啟動設備(bei)中(zhong)復制BL1(大(da)16KB)到iRAM(0xd002_0000處,其中(zhong)0xd002_0010之前的(de)(de)16個(ge)字節存儲的(de)(de)的(de)(de)有BL1的(de)(de)校驗信息和(he)BL1尺寸)中(zhong),并對BL1進行(xing)(xing)(xing)校驗,檢驗OK轉入BL1進行(xing)(xing)(xing)執(zhi)行(xing)(xing)(xing);BL1執(zhi)行(xing)(xing)(xing)完成后,開始執(zhi)行(xing)(xing)(xing)BL2,BL2加載內(nei)核(he),把OS在SDRAM中(zhong)運行(xing)(xing)(xing)起來。 BL0,BL1,BL2: (1)BL0:是指S5PV210的iROM中固化的啟動代碼 (2)BL1:是批在iRAM自動從外擴存儲器(nand/sd/usb)中拷貝的uboot.bin二進制文件的頭大16K代碼 (3)BL2:是指在代碼重定向后在內存中執行的uboot的完整代碼 (4)三(san)者之間的(de)關(guan)系:(Interal ROM固化代(dai)碼(ma))BL0將BL1(bootloader的(de)前16KB--BL1)加載(zai)(zai)到iRAM;BL1然后在(zai)iRAM中運行(xing)將BL2(剩(sheng)下的(de)bootloader)加載(zai)(zai)到SDRAM;BL2加載(zai)(zai)內(nei)核,把OS在(zai)SDRAM中運行(xing)起來,終OS是(shi)運行(xing)在(zai)SDRAM(內(nei)存)中的(de)。 相關資訊
發表評論
|