1 / 17

BIOS 启动介绍

BIOS 启动介绍. 夏启超 07/12/2011. 主要内容. BIOS 基本功能 PMON 启动过程 启动相关考虑. BIOS 基本功能. 初始化处理器状态 设置系统中断 初始化内存、 cache 初始化基本输入输出设备 (串口 / 键盘,显示器、网络、硬盘等). BIOS 特点. 掉电仍保存 上电即执行 启动后隐退. 常见的 BIOS. 通用处理器上的 BIOS X86 (phonix, award, 百傲 ) 嵌入式上的 BIOS (arm ) (vivi,u-boot,core-boot,core-boot )

tana
Télécharger la présentation

BIOS 启动介绍

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. BIOS启动介绍 夏启超 07/12/2011

  2. 主要内容 • BIOS基本功能 • PMON启动过程 • 启动相关考虑

  3. BIOS基本功能 • 初始化处理器状态 • 设置系统中断 • 初始化内存、cache • 初始化基本输入输出设备 (串口/键盘,显示器、网络、硬盘等)

  4. BIOS特点 • 掉电仍保存 • 上电即执行 • 启动后隐退

  5. 常见的BIOS • 通用处理器上的BIOS • X86 (phonix, award,百傲) • 嵌入式上的BIOS (arm) • (vivi,u-boot,core-boot,core-boot) • 大型服务器上的BIOS • 龙芯处理器的BIOS : PMON

  6. X86的BIOS自检 1.启动初始化程序,系统自检 2.跳到0xFFFF0处执行固化程序

  7. PMON启动条件 • 需要满足的条件: • 满足上电时序 • 固定取指地址 3. 执行固化程序

  8. 上电时序 电源电压上电时序关系 3a780e主板Reset电路

  9. 时钟初始化 • 龙芯3A的初始化包括:Core时钟域、DDR2/3时钟域、HT相关时钟域和PCI时钟域 • SYSRESETn为低时,下列信号必须有效: SYSCLK,MEMCLK,HTCLK,差分时钟ht0_clkp/ht0_clkn,差分时钟ht1_clkp/ht1_clkn,PCI_CLK和CLKSEL必须稳定。当SYSRESETn变高后,处理器内部的复位逻辑开始初始化芯片。SYSRESETn应至少保持一个时钟周期内有效,以保证复位逻辑能可靠采样。

  10. 固定取值地址 • 上电后PC即为0xbfc00000 • 地址映射到umapped/uncached的区域

  11. MIPS地址空间

  12. 龙芯处理器核微结构图

  13. 处理器系统结构图

  14. LPC取值

  15. PMON引导过程 CPU Reset Entry Initial North Bridge Jump over the beginning of rom Initial South Bridge Initial Serial Device Assembly C Initial VGA Card Initial Memory Other PCI Device Initail tlb&cache Initial Shell Initail C environment Wait Command Copy codes from Rom to Ram Starto.S的工作,Rom中执行

  16. 异常向量表 异常类型 进入点 SR(BEV)=0 SR(BEV)=1 程序地址 物理地址 程序地址 物理地址 Reset(启动)‏ NMI(不可屏蔽中断)‏ 0xBFC0 0000 0x1FC0 0000 TLB替换(32位) 0x8000 0000 0x0 0xBFC0 0200 0x1FC0 0200 XTLB替换(64位) 0x8000 0080 0x80 0xBFC0 0280 0x1FC0 0280 Cache错 0xA000 0000 0x100 0xBFC0 0300 0x1FC0 0300 普通中断 0x8000 0180 0x180 0xBFC0 0380 0x1FC0 0380

More Related