View previous topic :: View next topic |
Author |
Message |
Pipeng Tux's lil' helper
Joined: 23 Jul 2013 Posts: 117
|
Posted: Tue Jul 02, 2024 9:46 pm Post subject: How to handle Kernel with a Binary Host |
|
|
Hi all!, I'm looking on mount a binary host for my laptop, from all the things above that, there is one in particular I can't found.
How do we handle the kernel? The kernel is compiled with genkernel using the config we want (lets skip the already compiled ones), so here comes the issue, to fully have a binary server, also needs to compile the kernel on the server, I found we can use Distcc for this task, just... is there any other options? Like compile in the server, and then just retrieve the new ones to install?
Thx! |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1972
|
Posted: Tue Jul 02, 2024 9:49 pm Post subject: |
|
|
Why not make a binpkg of sys-kernel/gentoo-kernel? |
|
Back to top |
|
|
Pipeng Tux's lil' helper
Joined: 23 Jul 2013 Posts: 117
|
Posted: Tue Jul 02, 2024 10:07 pm Post subject: |
|
|
How that can be performed automatically?
the idea is use the custom kernel config/modules and microcodes.
Edited: Maybe I'm confused, does gentoo-kernel actually compiles with genkernel? so any change can be done there and the binpkg will be the same as using gentoo-sources? |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1972
|
|
Back to top |
|
|
Pipeng Tux's lil' helper
Joined: 23 Jul 2013 Posts: 117
|
Posted: Tue Jul 02, 2024 10:46 pm Post subject: |
|
|
mm, seems very useful, just there is some options I can't found.
From generkernel I use 3 options, parallel compilations, maybe it uses the same make options as make.conf. Firmware folder to be added, and the microcodes ones.
The latest two things, can't found info about them... how can be customized? |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1972
|
Posted: Tue Jul 02, 2024 11:14 pm Post subject: |
|
|
The customisation is described in the wiki page I linked. gentoo-kernel builds using your regular make.conf CFLAGS and parallelisation and so on.
The firmware and microcode is handled via Dracut. |
|
Back to top |
|
|
Pipeng Tux's lil' helper
Joined: 23 Jul 2013 Posts: 117
|
Posted: Wed Jul 03, 2024 2:42 pm Post subject: |
|
|
I'm checking dracut, it has a lot of options for modules, but for microcodes, it only allows to include all of them.... no info how to choose the microcodes to use....
Is there anywhere to look info for that? |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2439
|
Posted: Wed Jul 03, 2024 8:40 pm Post subject: |
|
|
Pipeng wrote: | I'm checking dracut, it has a lot of options for modules, but for microcodes, it only allows to include all of them.... no info how to choose the microcodes to use....
Is there anywhere to look info for that? |
You can use savedconfig to include the necessary firmware and microcode in your kernel.
Best Regards,
Georgi |
|
Back to top |
|
|
Nowa Developer
Joined: 25 Jun 2014 Posts: 429 Location: Nijmegen
|
Posted: Thu Jul 04, 2024 8:52 am Post subject: |
|
|
Pipeng wrote: | I'm checking dracut, it has a lot of options for modules, but for microcodes, it only allows to include all of them.... no info how to choose the microcodes to use.... |
If "hostonly=yes" is in /etc/dracut.conf then dracut only includes the microcode for your CPU vendor (i.e. only the Intel or AMD microcode instead of both). To narrow it down even further you can omit non-relevant microcodes from installation using USE=savedconfig (AMD) and/or USE=hostonly (Intel) as previous poster also pointed out. _________________ OS: Gentoo 6.10.12-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400 |
|
Back to top |
|
|
Pipeng Tux's lil' helper
Joined: 23 Jul 2013 Posts: 117
|
Posted: Fri Jul 05, 2024 2:51 pm Post subject: |
|
|
how is set cpu vendor for the objetive system? |
|
Back to top |
|
|
Nowa Developer
Joined: 25 Jun 2014 Posts: 429 Location: Nijmegen
|
Posted: Fri Jul 05, 2024 3:08 pm Post subject: |
|
|
Pipeng wrote: | how is set cpu vendor for the objetive system? |
The microcode and initramfs images are generated locally by /sbin/installkernel, they are not part of the binpkg, so there is no need to tell a build host how you want the microcode/initramfs on the objective systems. If you want to ensure that the kernel is installed the same way on all target systems, simply ensure that the USE flag configuration of sys-kernel/installkernel and dracut's configuration match (you could even be fancy about this and write some ebuild that installs exactly the dracut configuration you want via portage).
There is actually a way to make an initramfs and UKI image that are part of the binpkg by enabling the "generic-uki" USE flag. But as the name of the flag implies, these images will be generic and are not customizable (they ignore local dracut and ukify configuration). So I don't think this is what you are looking for. _________________ OS: Gentoo 6.10.12-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400 |
|
Back to top |
|
|
|