Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Do we have a kernel during installation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
SableEA
n00b
n00b


Joined: 23 Aug 2024
Posts: 4
Location: Belarus

PostPosted: Fri Aug 30, 2024 9:01 pm    Post subject: Do we have a kernel during installation Reply with quote

I don't realize bow does gentoo installation works if we compiling kernel during installation
As far as I know, kernel is the binder between hardware and programs. Didn't compilers require a kernel? I googled that compiler is part of the kernel, but I don't know if there is a dependency between compiler and other kernel's parts.
What about emit? It doesn't look like kernel part so it should require the kernel, am I right?
Back to top
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1127
Location: Richmond Hill, Canada

PostPosted: Fri Aug 30, 2024 9:21 pm    Post subject: Re: Do we have a kernel during installation Reply with quote

SableEA wrote:
I googled that compiler is part of the kernel
Can you share where you find such information?

To be honest, I have never heard anybody said compiler is part of kernel.

Yes, kernel need compiler to build, that is true. but by design kernel once load into memory does not depend on anything. (may be except some kernel module files, but that part should be consider part of kernel and modules once load into memory, the module file no longer necessary)

BTW, Gentoo's Stage3 tarball does not contain kernel. Therefor in installation guild have step(s) that require build/download Linux kernel.
Back to top
View user's profile Send private message
wjb
l33t
l33t


Joined: 10 Jul 2005
Posts: 622
Location: Fife, Scotland

PostPosted: Sat Aug 31, 2024 12:55 am    Post subject: Reply with quote

This is roughly how the Gentoo installation works ...

You boot a live image to start the installation - the live image provides the Linux kernel running at this point.

Then you download the stage file and unpack it onto your hard disk / SSD - this includes the compiler and associated build tools / libraries. At this point you're just using the live image to prep your disk.

Then you chroot to your disk - you're still using the Linux kernel belonging to the live image, but the filesystem you see from the command line is now the files you unpacked from the stage file. These stage 4 files are a functioning Gentoo image, so you can use emerge to update or install new packages (as soon as you've got the networking configured).

Then you use emerge to install whichever kernel sources you want, use make to build the kernel, sort out the boot method, and now your on-disk image has everything it needs to boot and run stand-alone. :o
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4856
Location: Bavaria

PostPosted: Sat Aug 31, 2024 1:32 am    Post subject: Reply with quote

Please let me add that you don't necessarily need to configure (and compile) a kernel, as there is a Gentoo distribution kernel (package: sys-kernel/gentoo-kernel-bin). I recommend this to all users who have never configured a kernel before.

@SableEA,

just read this article:
https://wiki.gentoo.org/wiki/User:Pietinger/New_at_Gentoo
which has a link to:
https://wiki.gentoo.org/wiki/User:Pietinger/Draft/Quick_Installation_OpenRC_for_an_UEFI_System
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
wjb
l33t
l33t


Joined: 10 Jul 2005
Posts: 622
Location: Fife, Scotland

PostPosted: Sat Aug 31, 2024 9:39 am    Post subject: Reply with quote

@pietinger Yup but I think OP is asking how you can be emerging stuff and running things before you've set up a kernel, any kernel. I probably went a bit too specific there at the end.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4856
Location: Bavaria

PostPosted: Sat Aug 31, 2024 9:43 am    Post subject: Reply with quote

wjb wrote:
@pietinger Yup but I think OP is asking how you can be emerging stuff and running things before you've set up a kernel, any kernel. [...]

Yes.
wjb wrote:
[...] I probably went a bit too specific there at the end.

No, your description is excellent.
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
SableEA
n00b
n00b


Joined: 23 Aug 2024
Posts: 4
Location: Belarus

PostPosted: Sat Aug 31, 2024 1:05 pm    Post subject: Re: Do we have a kernel during installation Reply with quote

pingtoo wrote:
SableEA wrote:
I googled that compiler is part of the kernel
Can you share where you find such information?

I tried but didn't found where I reaad it. I found out about it indirectly. After exact qustion "is compiler a part of kernel" I understand that it isn't. Also I found this answer. It looks like false.
Back to top
View user's profile Send private message
SableEA
n00b
n00b


Joined: 23 Aug 2024
Posts: 4
Location: Belarus

PostPosted: Sat Aug 31, 2024 1:23 pm    Post subject: Reply with quote

pietinger wrote:

just read this article:
https://wiki.gentoo.org/wiki/User:Pietinger/New_at_Gentoo
which has a link to:
https://wiki.gentoo.org/wiki/User:Pietinger/Draft/Quick_Installation_OpenRC_for_an_UEFI_System

Thank for material!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum