Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Question about kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Fulgurance
Veteran
Veteran


Joined: 15 Feb 2017
Posts: 1249

PostPosted: Mon Nov 23, 2020 9:28 am    Post subject: Question about kernel Reply with quote

Hello, today I have question, what is the difference between gentoo-sources and gentoo-kernel?I don't found any documentation about that.
Back to top
View user's profile Send private message
mrbassie
l33t
l33t


Joined: 31 May 2013
Posts: 834
Location: Go past the sign for cope, right at the sign for seethe. If you see the target you've missed it.

PostPosted: Mon Nov 23, 2020 9:45 am    Post subject: Reply with quote

Gentoo-kernel is a binary.
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2892

PostPosted: Mon Nov 23, 2020 9:50 am    Post subject: Reply with quote

gentoo-sources install the sources for you to build/manage yourself, or with other tools (the common/traditional way to do this on gentoo, giving you the most freedom to fit any setups)

gentoo-kernel has portage actually build the kernel which is newer (will still install a trimmed down ~80MB source at /usr/src only enough to build 3rd party modules and run things like menuconfig). Like `make install` the kernel is still installed through /sbin/installkernel by default so it'll also run /etc/kernel/postinst.d scripts allowing you to automate the entire process through normal @world updates if wanted.

By default gentoo-kernel uses a generic configuration taken from fedora, but you can USE=savedconfig to use your own.

mrbassie wrote:
Gentoo-kernel is a binary.
It's not, gentoo-kernel-bin is.

Last edited by Ionen on Mon Nov 23, 2020 9:53 am; edited 1 time in total
Back to top
View user's profile Send private message
Fulgurance
Veteran
Veteran


Joined: 15 Feb 2017
Posts: 1249

PostPosted: Mon Nov 23, 2020 9:52 am    Post subject: Reply with quote

Finally, you can have your personal config like gentoo-sources with automated update and build process?
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2892

PostPosted: Mon Nov 23, 2020 9:54 am    Post subject: Reply with quote

Fulgurance wrote:
Finally, you can have your personal config like gentoo-sources with automated update and build process?
Yep. It does have some limitations (e.g. can't trigger @module-rebuild by itself) but I've happily moved to it myself.

Edit: and before someone asks, it auto-runs `make olddefconfig` on your .config, at most may want to revise your config on major versions changes only
Back to top
View user's profile Send private message
Fulgurance
Veteran
Veteran


Joined: 15 Feb 2017
Posts: 1249

PostPosted: Mon Nov 23, 2020 3:35 pm    Post subject: Reply with quote

Oh it's better!
Back to top
View user's profile Send private message
Fulgurance
Veteran
Veteran


Joined: 15 Feb 2017
Posts: 1249

PostPosted: Tue Nov 24, 2020 6:44 pm    Post subject: Reply with quote

And I have just 2 questions, if I want to now use gentoo-kernel, I just need to emerge it with saved config, update grub and its fine?
My second question :this kernel have experimental feature like gentoo-sources? (I use this to enable optimisation for specific processor)
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2892

PostPosted: Tue Nov 24, 2020 7:20 pm    Post subject: Reply with quote

Fulgurance wrote:
if I want to now use gentoo-kernel, I just need to emerge it with saved config, update grub and its fine?
Yes.

If you want it 100% automated (e.g. grub included), and using installkernel-gentoo (default), then you can set this up with a script in /etc/kernel/postinst.d/ that will be run during pkg_postinst() by gentoo-kernel.

For my EFI stub kernel personally I have a /etc/kernel/postinst.d/efi-install which puts the kernel in /boot/efi (after remounting read-write), setup backup efi boot for running kernel, and cleanup old kernels. For grub I guess you'd just have to do the usual grub-mkconfig

Quote:
My second question :this kernel have experimental feature like gentoo-sources? (I use this to enable optimisation for specific processor)
No, if you _really_ want it then (until bug #706294 is resolved) you'll have to put it in /etc/portage/patches and keep it updated.

Considering the kernel already goes out of its way to disable instructions -march= enables (like -mno-avx, most likely for a reason), I personally feel this whole idea isn't great nor worth it.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3937
Location: Rasi, Finland

PostPosted: Tue Nov 24, 2020 9:18 pm    Post subject: Reply with quote

mrbassie wrote:
Gentoo-kernel is a binary.
No. gentoo-kernel-bin is a binary.
gentoo-kernel in the other hand is a kernel with a pre made config file and it uses dracut to create a initramfs.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
mrbassie
l33t
l33t


Joined: 31 May 2013
Posts: 834
Location: Go past the sign for cope, right at the sign for seethe. If you see the target you've missed it.

PostPosted: Wed Nov 25, 2020 8:29 am    Post subject: Reply with quote

I stand corrected.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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