EngineerN
EngineerN

Reputation: 133

Linux boot process

I'm playing a little bit with the kernel linux and I got some errors during the boot process : Kernel panic - not syncing: Attempted to kill init! I want to understand how the boot process of the linux kernel works in general, and especially during and after the start_kernel() function and the load of the rootfs.

Thank you guys.

Upvotes: 1

Views: 712

Answers (1)

Rahul Verma
Rahul Verma

Reputation: 68

Lets take an example of porting linux on beaglebone through mmc., You get the idea of boot process. It works like this -

  1. First when we power on the board the bootrom code executes(Hard coded in the rom of board) and initialize the CPU, disable MMU.
  2. after executing boot-ROM code it jumps to MLO (X-loader with header, it is board specific) and load it.
  3. MLO executes and load the Uboot it is board specific and all peripherals are initialized here.
  4. Now the Uboot executed and looking for bootcmd where the Kernel and rootfs addressed(in mmc). this calls the kernel
  5. Kernel extracted and than it calls the initramfs (root file system)

Actually user can not interact with hardware by Kernel only thus the rootfs gives user inerface to the kernel to run application.

Upvotes: 0

Related Questions