The Linux kernel has two types of images: a non-compressed kernel, called an image, and a compressed kernel called zimage. Depending on the kernel image, the startup of the Linux kernel is different at the beginning. Zimage is an image that has been formed by compression, so it is smaller than image size. However, before using the Zimage, the extracted code must be added at the beginning of the Zimage, and then it will execute slower than the image. Considering that the embedded system storage space is generally relatively small, the use of zimage can occupy less storage space, so sacrifice a bit of the cost of the performance is also worthwhile, so the general embedded systems are compressed kernel mode.
After the bootloader is started, control over the system boot is transferred to kernel. Kernel boot consists of initializing the kernel, initializing the device driver, booting the kernel, mounting the file system, and initiating the user-space process.
Kernel initialization is the configuration of each hardware device in the chest. Mainly include: Create exception vector table and initialize interrupt processing function, initialize system core process scheduler and clock interrupt processing mechanism; initialize serial console;
To create and initialize the system, the cache provides caching for various memory invocation mechanisms, initializes memory management, detects memory size and memory consumed by the kernel, and initializes the communication mechanism between the system processes.
Linux kernel Boot