Chapter 4: The Boot Process of the Operating System
Computer systems generally comprise various components, including the central processing unit (CPU), memory subsystems, and peripherals. Upon system power-on, the reset circuit forces the program counter (PC) of the CPU to point directly to a fixed, predetermined memory location. Under the management of control logic circuitry, the central controller fetches the initial instruction from this absolute address, kicks off program execution, and performs the diverse computations and operations specified by the software logic.
Storage mediums can be broadly classified into two primary categories: volatile memory and non-volatile memory. Volatile memory completely loses its stored contents when power is disconnected, whereas non-volatile memory retains its data state in the absence of power. To enable system execution, the computer's hardware reset vector must map directly to a non-volatile memory space. These non-volatile memory components store pre-compiled software code tasked with executing low-level baseline hardware initialization, pulling the primary bootloader from a designated external storage medium into physical random-access memory (RAM), and then handing over control to that bootloader. The bootloader subsequently loads the operating system kernel into memory and triggers its execution sequence.
Desktop infrastructures running the Linux operating system typically leverage bootloaders such as GRUB, GRUB2, or LILO to introduce the operating system into RAM. Conversely, embedded Linux deployment pipelines generally employ the U-BOOT bootloader to import the Linux kernel, while BareBox stands out as a highly regarded alternative Linux bootloader within the Internet of Things (IoT) engineering ecosystem.