新聞中心

EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計應(yīng)用 > Linux內(nèi)核初始化過程簡要介紹

Linux內(nèi)核初始化過程簡要介紹

作者: 時間:2007-05-10 來源:網(wǎng)絡(luò) 收藏
全部引導(dǎo)過程是四步

  1:boot PROM phase
  2:boot Programs phase
  3:kernel initialization phase
  4:init phase


  system初始化,檢測內(nèi)存和cpu,檢查設(shè)備和創(chuàng)建設(shè)備樹,設(shè)置console

  kernel初始化過程

  kernel self -initialization 內(nèi)核自檢
  loading of kernel modules 載入內(nèi)核模塊
  reading of the kernel configuration file in /etc/system 讀內(nèi)核配置文件
  staring of the /sbin/init process 運行/sbin/init進程

  bootblk是用于裝載第二個引導(dǎo)程序ufsboot的主引導(dǎo)程序
  bootblk是被PROM的boot設(shè)備的引導(dǎo)扇區(qū)裝載的
  ufsboot程序是用了裝載兩部分核心genunix和unix的
  installboot是用來在磁盤分區(qū)上安裝bootblk的
  genunix is the platform-independent generic kernel file ,while unix is the platform-specific kernel component.

  整個的引導(dǎo)過程:

  PROM from the boot sector of the boot device-->bookblk-->ufsboot-->genunix(是一個獨立平臺的普通內(nèi)核文件) and unix(是一個特殊平臺內(nèi)核文件)-->其它



評論


相關(guān)推薦

技術(shù)專區(qū)

關(guān)閉