Linux内核初始化过程简要介绍

2016-01-29 19:47 7 1 收藏

Linux内核初始化过程简要介绍,Linux内核初始化过程简要介绍

【 tulaoshi.com - Linux 】

 

  全部引导过程是四步

(本文来源于图老师网站,更多请访问https://www.tulaoshi.com/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.

  整个的引导过程:

(本文来源于图老师网站,更多请访问https://www.tulaoshi.com/linux/)

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

 

来源:https://www.tulaoshi.com/n/20160129/1510113.html

延伸阅读
一维数组的声明方式: type var[]; 或type[] var; 声明数组时不能指定其长度(数组中元素的个数), Java中使用关键字new创建数组对象,格式为: 数组名 = new 数组元素的类型 [数组元素的个数] 实例: TestNew.java: 程序代码: public class TestNew {public static void main(String args[]) { int[] s ; int i ; s = new...
单一类:(静态成员变量&静态初始化块)(成员变量&初始化块)构造函数 代码如下: public class 对象初始化顺序 {     public static void main(String[] args){         Person p = new Person();     } } class Person{     public static String staticf...
final变量的初始化位置 一是其定义处,也就是说在final变量定义时直接给其赋值, 二是在构造函数中。而且在Java1.1以前,只能是在定义时给值。 三是在初如化代码块中{} 或者 static{} 代码如下: public class InitOrder {     {         System.out.println("before---field");  ...
在使用C++编程的过程当中,经常需要对类成员进行初始化,通常的方法有两种: 第一种方法: CMYClass::CSomeClass(){x=0;y=1;} 第二种方法: CSomeClass::CSomeClass() : x(0), y(1){} 本文将要探讨这两种方法的异同以及如何使用这两种方法。     从技术上说,第二种方法比较好,但是在大多数情况下,两者实际上没有什么区...
VB中没有提供定义数组并同时初始化其内容的方法,所以大多数情况下,必须单独地设置每一个元素,就象下面一样: DimstrArray(0To3)AsString strArray(0)="Spring" strArray(1)="Summer" strArray(2)="Fall" strArray(3)="Winter" 在VB4、VB5和VB6中,可以使用Array()函数随意创建一个Variants类型数组: DimvarArray()AsVariant varA...

经验教程

776

收藏

30
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部