Linux 启动总结

1.总括

2. stage2
展示splash screen
把kernel和inittrd读入内存
然后把控制权传递到kernel image中,之后kernel解压和初始化,之后
检查系统硬件
清点硬件设备,
mount根设备
导入必要的模块
完成后进入一个用户空间进程:init

3.


4.
LILO扩展了启动能力(2阶段启动),但是对文件系统支持不够, GRUB支持许多文件系统
The LILO boot loader expanded the boot capabilities, but lacked any file system awareness. The latest generation of boot loaders, such as GRUB, permits Linux to boot from a range of file systems (from Minix to Reiser).

5.
kernel不是可执行内核,而是一个压缩的内核影像, 内核头是一些执行理性操作比如硬件设置,然后就解压影像内部的内核部分,并放置到高位内存中。
如果initrd也存在,那么也会把它放到内存中公以后使用
然后进入内核控制执行阶段
The kernel image isn't so much an executable kernel, but a compressed kernel image. Typically this is a zImage (compressed image, less than 512KB) or a bzImage (big compressed image, greater than 512KB), that has been previously compressed with zlib. At the head of this kernel image is a routine that does some minimal amount of hardware setup and then decompresses the kernel contained within the kernel image and places it into high memory. If an initial RAM disk image is present, this routine moves it into memory and notes it for later use. The routine then calls the kernel and the kernel boot begins.

本文出自 “技术博客” 博客,谢绝转载!

你可能感兴趣的:(启动顺序)