Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
¿Cómo prescindir(skip) de linux-5.15.3-rt21?[rt-sources]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Spanish
View previous topic :: View next topic  
Author Message
chrootman
Tux's lil' helper
Tux's lil' helper


Joined: 18 Aug 2020
Posts: 95

PostPosted: Mon Jan 03, 2022 9:06 pm    Post subject: ¿Cómo prescindir(skip) de linux-5.15.3-rt21?[rt-sources] Reply with quote

Hola,
La última vez que compile un kernel con mi config personalizada con las opciones precisas fue el linux-5.13.0-gentoo sacando todo lo que no tiene que ver con mi hardware para acelerar el proceso(es el que uso actualmente tal como quiero), varias veces lo he hecho siempre utilizando -gentoo y compilé ahora el linux-5.15.11-gentoo, el problema es que éste último no arranca(wrong EFI loader signature), antes de actualizar tenía:
Code:
eselect kernel list
Available kernel symlink targets:
  [1]   linux-5.13-rc7
  [2]   linux-5.13.0-gentoo
  [3]   linux-5.15.11-gentoo *

Sin embargo, después del update world cambia automáticamente a esto:
Code:
eselect kernel list
Available kernel symlink targets:
  [1]   linux-5.13-rc7
  [2]   linux-5.13.0-gentoo
  [3]   linux-5.15.3-rt21 *
  [4]   linux-5.15.11-gentoo

No quiero instalar linux-5.15.3-rt21, ni menos cambiarlo para que cree el enlace, lo enmascaré y agregué --exclude en EMERGE_DEFAULT_OPTS pero no parece funcionar y me fuerza a cargar la configuración de ese kernel aunque lo cambie con eselect, le entregue como parámetro --kernel-config= y USE="symlink".
Code:
ls -l /usr/src/
total 20
drwxr-xr-x  3 root root 4096 Mar 21  2021 dsdt
lrwxrwxrwx  1 root root   17 Jan  3 17:37 linux -> linux-5.15.3-rt21
drwxr-xr-x 24 root root 4096 Jul  6 19:34 linux-5.13-rc7
drwxr-xr-x 25 root root 4096 Nov  4 19:27 linux-5.13.0-gentoo
drwxr-xr-x 25 root root 4096 Jan  3 06:58 linux-5.15.11-gentoo
drwxr-xr-x 24 root root 4096 Jan  3 17:36 linux-5.15.3-rt21

Code:
eclean-kernel -l
5.15.11-gentoo-x86_64 [5.15.11-gentoo-x86_64]
- systemmap: /boot/System.map-5.15.11-gentoo-x86_64
- initramfs: /boot/initramfs-5.15.11-gentoo-x86_64.img
- vmlinuz: /boot/vmlinuz-5.15.11-gentoo-x86_64
- modules: /lib/modules/5.15.11-gentoo-x86_64
- build: /usr/src/linux-5.15.11-gentoo
- last modified: 2022-01-03 01:37:06
5.15.11-gentoo-x86_64.old [None]
- initramfs: /boot/initramfs-5.15.11-gentoo-x86_64.img.old
- last modified: 2022-01-03 02:33:13
5.15.3-rt-rt21-x86_64 [5.15.3-rt-rt21-x86_64]
- vmlinuz: /boot/vmlinuz-5.15.3-rt-rt21-x86_64
- last modified: 2022-01-03 05:25:48
5.13.0-gentoo-x86_64 [5.13.0-gentoo-x86_64]
- systemmap: /boot/System.map-5.13.0-gentoo-x86_64
- initramfs: /boot/initramfs-5.13.0-gentoo-x86_64.img
- vmlinuz: /boot/vmlinuz-5.13.0-gentoo-x86_64
- modules: /lib/modules/5.13.0-gentoo-x86_64
- build: /usr/src/linux-5.13.0-gentoo
- last modified: 2021-07-19 03:40:40
5.13.0-gentoo-x86_64.old [5.13.0-gentoo-x86_64]
- systemmap: /boot/System.map-5.13.0-gentoo-x86_64.old
- initramfs: /boot/initramfs-5.13.0-gentoo-x86_64.img.old
- vmlinuz: /boot/vmlinuz-5.13.0-gentoo-x86_64.old
- modules: /lib/modules/5.13.0-gentoo-x86_64
- build: /usr/src/linux-5.13.0-gentoo
- last modified: 2021-07-05 01:41:44

Lo eliminé, pero vuelve a instalarlo luego de la actualización.
Code:
emerge -C sys-kernel/rt-sources
rm -rf /usr/src/linux-5.15.3-rt21

rm /boot/System.map-5.15.3-rt-rt21-x86_64
rm /boot/vmlinuz-5.15.3-rt-rt21-x86_64

De alguna forma estropea mi configuración.
Code:
* GK_FILENAME_CONFIG set to 'kernel-config-5.15.3-rt-rt21-x86_64' (was: 'kernel-config-%%KV%%')
* GK_FILENAME_KERNEL set to 'vmlinuz-5.15.3-rt-rt21-x86_64' (was: 'vmlinuz-%%KV%%')
* GK_FILENAME_KERNEL_SYMLINK set to 'kernel' (was: 'kernel')
* GK_FILENAME_SYSTEMMAP set to 'System.map-5.15.3-rt-rt21-x86_64' (was: 'System.map-%%KV%%')
* GK_FILENAME_SYSTEMMAP_SYMLINK set to 'System.map' (was: 'System.map')
* GK_FILENAME_INITRAMFS set to 'initramfs-5.15.3-rt-rt21-x86_64.img' (was: 'initramfs-%%KV%%.img')
* GK_FILENAME_INITRAMFS_SYMLINK set to 'initramfs' (was: 'initramfs')
*         >> Kernel version has changed (probably due to config change) since genkernel start:
*            We are now building Linux kernel 5.15.3-rt-rt21-x86_64 for x86_64 ...
*         >> Compiling 5.15.3-rt-rt21-x86_64 bzImage ...

Para más remate me cambia en mi .config CONFIG_LOCALVERSION_AUTO a no seteada y más encima linux-5.15.3-rt21 tiene problemas con () Build named firmware blobs into the kernel binary resultando en error de compilación(antes se podía) y si lo sacó obviamente falta el firmware. Qué puedo hacer para prescindir de él? Nunca antes había tenido este problema, probé varias estrategias en un sistema clonado, pero no logro dar con una solución. No tengo ninguna entrada en /var/lib/portage/world relacionada a esto.
Back to top
View user's profile Send private message
chrootman
Tux's lil' helper
Tux's lil' helper


Joined: 18 Aug 2020
Posts: 95

PostPosted: Tue Jan 04, 2022 5:13 am    Post subject: Reply with quote

Hola de nuevo.

Avance1: Ahora logré compilar linux-5.15.12-gentoo copiando la .config de linux-5.13.0-gentoo y funciona identico al anterior, todo en orden :P
Code:
 emerge sys-kernel/gentoo-sources
zcat /proc/config.gz > /usr/share/genkernel/arch/x86_64/kernel-config

Code:
 # eselect kernel list
Available kernel symlink targets:
  [1]   linux-5.13-rc7
  [2]   linux-5.13.0-gentoo
  [3]   linux-5.15.11-gentoo
  [4]   linux-5.15.12-gentoo *

Code:
cd /usr/src/linux-5.13.0-gentoo/
cp .config /mnt/arch2/kernel/.config-linux-5.13.0-gentoo
cp .config /usr/src/linux     
genkernel all

Code:
/etc/genkernel.conf
INSTALL="yes"
OLDCONFIG="no"
MENUCONFIG="yes"
MOUNTBOOT="yes"
CLEAN="no"
MRPROPER="no"
SYMLINK="yes"
LVM="yes"
CMD_CALLBACK="emerge --quiet @module-rebuild"

Ahora me falta ver si vuelve a instalar las rt-sources con el sync && update, de lo contrario tendría que hacer todo el proceso de eliminar ese kernel de nuevo si quiero compilar.

https://forums.gentoo.org/viewtopic-t-1104154-start-0.html
https://forums.gentoo.org/viewtopic-p-6679803.html
https://forums.gentoo.org/viewtopic-p-8468396.html
https://forums.gentoo.org/viewtopic-p-8627457.html
https://forums.gentoo.org/viewtopic-p-8506876.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Spanish 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