2014-06-29 06:24:54

by Gideon D'souza

[permalink] [raw]
Subject: How is an OS bound to the Linux kernel

hey guys,

I generally manage to understand the various pieces of the linux
kernel and what their functions are.

However, one thing I don't fully understand is how is any OS, say
fedora (which is what I use) is bound to the kernel.

Lets say I want to just build a system on top of linux that boots and
keeps printing hello world to the screen. When the user presses a key
it exits.

How would I begin to do this? What should I read or look at?

I'm guessing it's a two part thing right, one I need to somehow tell
the kernel what to do after booting, and second I'll have to tell the
kernel what the screen is ? Where would I find more information about
this?

Note: I actually want to make the program I described so tips on how
to play with grub to get the whole thing to work would also be
helpful.

Regards,
Gideon


2014-06-29 07:07:27

by Martin Steigerwald

[permalink] [raw]
Subject: Re: How is an OS bound to the Linux kernel

Am Sonntag, 29. Juni 2014, 11:54:32 schrieb Gideon D'souza:
> hey guys,

Hi Gideon,

> I generally manage to understand the various pieces of the linux
> kernel and what their functions are.
>
> However, one thing I don't fully understand is how is any OS, say
> fedora (which is what I use) is bound to the kernel.
>
> Lets say I want to just build a system on top of linux that boots and
> keeps printing hello world to the screen. When the user presses a key
> it exits.
>
> How would I begin to do this? What should I read or look at?
>
> I'm guessing it's a two part thing right, one I need to somehow tell
> the kernel what to do after booting, and second I'll have to tell the
> kernel what the screen is ? Where would I find more information about
> this?
>
> Note: I actually want to make the program I described so tips on how
> to play with grub to get the whole thing to work would also be
> helpful.

Look for init= kernel parameter (there is a kernel-parameter documentation file
in kernel doc drawer).

And I suggest looking through things like Linux From Scratch. I am not sure
how useful this is to your case.

Ciao,
--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7