歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> Linux系統和內核初始化過程簡介

Linux系統和內核初始化過程簡介

日期:2017/3/3 16:41:36   编辑:關於Linux

全部引導過程是四步

1:boot PROM phase

2:boot Programs phase

3:kernel initialization phase

4:init phase

system初始化,檢測內存和cpu,檢查設備和創建設備樹,設置console

kernel初始化過程

kernel self -initialization 內核自檢

loading of kernel modules 載入內核模塊

reading of the kernel configuration file in /etc/system 讀內核配置文件

staring of the /sbin/init process 運行/sbin/init進程

bootblk是用於裝載第二個引導程序ufsboot的主引導程序

bootblk是被PROM的boot設備的引導扇區裝載的

ufsboot程序是用了裝載兩部分核心genunix和unix的

installboot是用來在磁盤分區上安裝bootblk的

genunix is the platform-independent generic kernel file ,while unix is the platform-specific kernel component.

整個的引導過程:

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

Copyright © Linux教程網 All Rights Reserved