Jump to content
!_30

[Tutorial-engleza] Linux Boot process :)

Recommended Posts

The Linux boot process can be logically divided into six parts. They are as follows:

Kernel loader loading, setup, and execution (bootsect.s)

In this step the file bootsect.s is loaded into memory by the BIOS. bootsect.s then sets up a few parameters and loads the rest of the kernel into memory.

Parameter setup and switch to 32-bit mode (boot.s)

After the kernel has been loaded, boot.s takes over. It sets up a temporary IDT and GDT and handles the switch to 32-bit mode.

Detailed information on IDT, GDT and LDT can be found on sandpile.org - The world's leading source for pure technical x86 processor information.

Kernel decompression (compressed/head.s)

The kernel is stored in a compressed format. This head.s (since there is another head.s) decompresses the kernel.

Kernel setup (head.s)

After the kernel is decompressed, head.s (the second one) takes over. The real GDT and IDT are created, as is a basic memory-paging table.

Kernel and memory initialization (main.c)

This step is the most complex. The kernel now has control and sets up all remaining parameters and initializes everything remaining. Virtual memory is setup completely and the first processes are created.

Init process creation (main.c)

In the final step of booting, the Init process is created.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...