On Friday, 19 September 2025 19:37:10 British Summer Time Javier Martinez 
wrote:
> El 19/9/25 a las 20:34, Dennis Clarke escribió:
> 
> > ...
> > 
> >>>>> The bug report includes a .config file, which has set:
> >>>>>
> >>>>>
> >>>>>
> >>>>> CONFIG_NET_NS=y
> >>>>> CONFIG_NAMESPACES=y
> >>>>> CONFIG_PID_NS=y
> >>>>> CONFIG_NET_NS=y
> >>>>>
> >>>>>
> >>>>>
> >>>>> among others.
> >>>>
> >>>>
> >>>>
> >>>> Maybe one zgrep CONFIG_NET /proc/config.gz could give as more info.
> >>>
> >>>
> >>>
> >>> With complete honesty I do not know what the next reasonable step is.
> >>> I have unplugged the machine because this has taken a week of my time
> >>> and the end result is "does not work". So I may look at it again next
> >>> week.
> >>>
> >>>
> >>>
> >>> For now I have an ORACLE S7-2 server to begin work on and my plan is to
> >>> get Linux running on that. With a great deal of luck the Gentoo
> >>> handbook
> >>> procedure will "just work" or maybe we land here in two days with the
> >>> same problem. Regardless I would rather deal with this using a 4.2GHz
> >>> processor than the old old SPARCv9 500MHz unit.
> >>>
> >>>
> >>>
> >>>
> >> get into kernel sources dir
> > 
> > 
> > I don't think that is specific enough. I see a whole whack of stuff :
> > 
> > chroot# cd /var/db/repos/gentoo/sys-kernel/
> > chroot# ls -la
> > total 144
> > drwxr-xr-x  33 portage portage 4096 Sep 10 22:06 .
> > drwxr-xr-x 181 portage portage 4096 Sep 10 22:24 ..
> > -rw-r--r--   1 portage portage 5418 Sep 10 10:11 Manifest.gz
> > drwxr-xr-x   3 portage portage 4096 Sep 10 15:02 asahi-sources
> > drwxr-xr-x   2 portage portage 4096 Sep 10 15:02 bliss-initramfs
> > drwxr-xr-x   2 portage portage 4096 Sep 10 15:02 cryptodev
> > drwxr-xr-x   2 portage portage 4096 Sep 10 15:02 dkms
> > drwxr-xr-x   3 portage portage 4096 Sep 10 15:02 dracut
> > drwxr-xr-x   2 portage portage 4096 Sep 10 15:02 dracut-crypt-ssh
> > drwxr-xr-x   3 portage portage 4096 Sep 10 15:02 genkernel
> > drwxr-xr-x   2 portage portage 4096 Sep 10 22:06 gentoo-kernel
> > drwxr-xr-x   2 portage portage 4096 Sep 10 22:06 gentoo-kernel-bin
> > drwxr-xr-x   2 portage portage 4096 Sep 10 22:06 gentoo-sources
> > drwxr-xr-x   2 portage portage 4096 Sep 10 15:02 git-sources
> > drwxr-xr-x   2 portage portage 4096 Sep 10 15:02 installkernel
> > drwxr-xr-x   2 portage portage 4096 Sep 10 15:02 kci-dev
> > drwxr-xr-x   2 portage portage 4096 Sep 10 15:02 kergen
> > drwxr-xr-x   3 portage portage 4096 Sep 10 15:02 kpatch
> > drwxr-xr-x   2 portage portage 4096 Sep 10 15:02 linux-docs
> > drwxr-xr-x   3 portage portage 4096 Sep 10 15:02 linux-firmware
> > drwxr-xr-x   3 portage portage 4096 Sep 10 15:02 linux-headers
> > drwxr-xr-x   2 portage portage 4096 Sep 10 15:02 linux-next
> > -rw-r--r--   1 portage portage 1472 Sep 11  2021 metadata.xml
> > drwxr-xr-x   2 portage portage 4096 Sep 10 15:02 mips-sources
> > drwxr-xr-x   2 portage portage 4096 Sep 10 15:02 modprobed-db
> > drwxr-xr-x   2 portage portage 4096 Sep 10 15:02 pf-sources
> > drwxr-xr-x   2 portage portage 4096 Sep 10 15:02 raspberrypi-image
> > drwxr-xr-x   3 portage portage 4096 Sep 10 15:02 raspberrypi-sources
> > drwxr-xr-x   2 portage portage 4096 Sep 10 15:02 rt-sources
> > drwxr-xr-x   3 portage portage 4096 Sep 10 15:02 scx
> > drwxr-xr-x   2 portage portage 4096 Sep 10 15:02 ugrd
> > drwxr-xr-x   2 portage portage 4096 Sep 10 22:06 vanilla-kernel
> > drwxr-xr-x   2 portage portage 4096 Sep 10 22:06 vanilla-sources
> > drwxr-xr-x   2 portage portage 4096 Sep 10 15:02 virtme-ng
> > drwxr-xr-x   2 portage portage 4096 Sep 10 15:02 zen-sources
> > chroot#

This is the wrong directory - only the ebuild files are found in there rather 
than the kernel tree.  The latter failed at the compilation stage because the 
.config file it used appears to have CONFIG_NET disabled.

First you will need to create a .config file for your kernel.

ebuild /var/db/repos/gentoo/sys-kernel/gentoo-kernel/gentoo-kernel-
X.x.x.ebuild configure

Adjust the above X.x.x version as per the kernel version you want to install.

Note which directory the source is unpacked - normally this will be in /var/
tmp/portage/...

cd into it and run:

make nconfig

Or, 

> >> make menuconfig
> > 
> > 
> > I don't think that will work unless a pile of ncurses stuff is in place.

You should have a fully functioning ncurses within the LiveISO, or whatever OS 
you chrooted from:

~ $ ls -la /usr/lib64/libncurses.so
lrwxrwxrwx 1 root root 15 Sep 13 12:23 /usr/lib64/libncurses.so -> 
libncurses.so.6


> >> switch on CONFIG_NET
> > 
> > 
> > If I can ever get to it.

I hope the CONFIG_NET will be already enabled, if not then enable it and save 
the changed .config when you exit.

You have to copy the edited .config from the /var/tmp/portage subdirectory it 
was saved in, to /etc/portage/savedconfig/sys-kernel/gentoo-kernel

Finally, you must enable USE="savedconfig" for sys-kernel/gentoo-kernel, 
before you re-emerge it.

For more details please read this page:

https://wiki.gentoo.org/wiki/Project:Distribution_Kernel


> >> make
> >> install the kernel
> > 
> > 
> > If lucky :/

You shouldn't need to run 'make && make modules_install && make install', 
because emerging a Distribution Kernel should do this automatically for you.

HTH.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to