Why should we make a bootloader before the kernel first?

Asked

Viewed 93 times

5

Why when we develop an operating system, we always have to make an bootloader, because we can’t start with kernel?

  • 2

    Because the bootloader is responsible for initializing the machine and loading the kernel. I later put a more complete response (working hours...).

1 answer

3


You can start wherever you want. And you can use a bootloader ready, as many do. The GRUB is the best known.

As its name says it is responsible for finding where the operating system is on the disk and putting it in memory, in addition to making some settings on the machine to start running properly. After this task he can transfer control to the kernel of the OS that will already be in memory.

In general the charger makes a minimum charge of the kernel and then he takes care to do the rest.

If you want to go deeper, have a website dedicated to building operating systems. Read the page about the bootloader. It’s not an easy thing to do, but it’s fun.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.