View previous topic :: View next topic |
Author |
Message |
Fulgurance Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/14669969405a12bd7a28944.jpg)
Joined: 15 Feb 2017 Posts: 1249
|
Posted: Mon Nov 23, 2020 9:28 am Post subject: Question about kernel |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
mrbassie l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/2027197225fd39331ea1f1.jpg)
Joined: 31 May 2013 Posts: 833 Location: Go past the sign for cope, right at the sign for seethe. If you see the target you've missed it.
|
Posted: Mon Nov 23, 2020 9:45 am Post subject: |
|
|
Gentoo-kernel is a binary. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ionen Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/12407261860db424480089.png)
Joined: 06 Dec 2018 Posts: 2892
|
Posted: Mon Nov 23, 2020 9:50 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Fulgurance Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/14669969405a12bd7a28944.jpg)
Joined: 15 Feb 2017 Posts: 1249
|
Posted: Mon Nov 23, 2020 9:52 am Post subject: |
|
|
Finally, you can have your personal config like gentoo-sources with automated update and build process? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ionen Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/12407261860db424480089.png)
Joined: 06 Dec 2018 Posts: 2892
|
Posted: Mon Nov 23, 2020 9:54 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Fulgurance Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/14669969405a12bd7a28944.jpg)
Joined: 15 Feb 2017 Posts: 1249
|
Posted: Mon Nov 23, 2020 3:35 pm Post subject: |
|
|
Oh it's better! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Fulgurance Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/14669969405a12bd7a28944.jpg)
Joined: 15 Feb 2017 Posts: 1249
|
Posted: Tue Nov 24, 2020 6:44 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Ionen Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/12407261860db424480089.png)
Joined: 06 Dec 2018 Posts: 2892
|
Posted: Tue Nov 24, 2020 7:20 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Zucca Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
![](images/avatars/8484577066727ff6a19116.gif)
Joined: 14 Jun 2007 Posts: 3935 Location: Rasi, Finland
|
Posted: Tue Nov 24, 2020 9:18 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
mrbassie l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/2027197225fd39331ea1f1.jpg)
Joined: 31 May 2013 Posts: 833 Location: Go past the sign for cope, right at the sign for seethe. If you see the target you've missed it.
|
Posted: Wed Nov 25, 2020 8:29 am Post subject: |
|
|
I stand corrected. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|