Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing kernel using gentoo-sources
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1597
Location: Adelaide/Australia

PostPosted: Thu May 02, 2024 9:51 am    Post subject: Installing kernel using gentoo-sources Reply with quote

Could someone please point me to the instructions for installing gentoo-sources, building and installing.

For YEARS I have been installing gentoo-sources, compiling and make installing it followed by grub-mkconfig and rebuilding nvidia-drivers.

Now, it doesn't work and my system is broken due to my attempts to fix it.

I gather it's something to do with this 'installkernel' package?

I can boot and mount my system using a USB image so really, all I need is what packages to install, how to configure and what to do when there is a kernel update.

I have an existing .config file in the kernel source, which has been working for me for years. I tried replacing that with the kernel config used in the USB Install iso, to no avail, things are broken everywhere, as I have turned on and off features over the years.

So, I would really like to continue using my existing .config with whatever the new build/install process is.

Any assistance would be greatly appreciated.
_________________
...Lyall
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31256
Location: here

PostPosted: Thu May 02, 2024 9:55 am    Post subject: Reply with quote

I think you missed this news item.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2387

PostPosted: Thu May 02, 2024 9:56 am    Post subject: Reply with quote

Maybe one of those news items will answer your questions:

https://www.gentoo.org/support/news-items/2024-03-12-debianutils-installkernel.html
https://www.gentoo.org/support/news-items/2024-02-01-grub-upgrades.html

In the mean time aside from not being able to boot which is too general, it's not clear what specific issue you have and what you have done to get there, so you could explain a bit more.

Best Regards,
Georgi
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1597
Location: Adelaide/Australia

PostPosted: Thu May 02, 2024 10:39 am    Post subject: Reply with quote

At this point grub runs, I select my kernel and the kernel panics not being able to mount root.
At one point I had things booting but the kernel installed modules into -x86_64 folders and the kernel looked in my old modules folder, and as such, nvidia was out of sync resulting in X not starting
Installing using make install_modules puts the modules in /usr/lib/modules/vmlinuz-xxxxxx-x86_64 but the make install creates a vmlinuz file in /boot, which grub does not find
I tried renaming things and now I am back to kernel panics.
So what I want to do is start from scratch with regard to kernel install.
What I have to install, what config settings I need to use, what commands I need to run to install the kernel successfully such that
0. it doesn't panic on boot - my root filesystem is BTRFS
1. grub finds it
2. it looks in the correct folder for modules

Ideally I would like to continue using my existing kernel .config as I have things like bluetooth, firewalls, virtualisation, sound, etc setup.

It was all working fine before.
My install is years old and I do nightly updates and build new kernels as they arrive with no issues, until now.
_________________
...Lyall
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1597
Location: Adelaide/Australia

PostPosted: Thu May 02, 2024 10:43 am    Post subject: Reply with quote

fedeliallalinea wrote:
I think you missed this news item.


I did see it but did not realise it applied to myself

Sigh... I see where i have screwed things and it's the combination of grub updates and installkernel that has tripped me up.

I will report back.
_________________
...Lyall
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5063
Location: Bavaria

PostPosted: Thu May 02, 2024 1:37 pm    Post subject: Reply with quote

lyallp wrote:
Ideally I would like to continue using my existing kernel .config as I have things like bluetooth, firewalls, virtualisation, sound, etc setup.
[...]
My install is years old and I do nightly updates and build new kernels as they arrive with no issues, until now.

I don't know how much you know about the configuration of a kernel and hope that you have done a "make oldconfig":
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#What_does_a_.22make_oldconfig.22_.3F

The steps to update to a new kernel are here:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Cheat_Sheets
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1597
Location: Adelaide/Australia

PostPosted: Fri May 03, 2024 1:33 am    Post subject: Reply with quote

Been doing kernel configuration since early this century. :)

All good regarding 'oldconfig'.

I have done something with my installkernel config during my attempts to fix it.

installkernel is creating kernel images suffixed with a type suffix, when it did not used to, and although my .config has the correct firewall modules, iptables is not starting, so failtoban is not starting either. The required modules are set to 'Y', not 'M' because I know they will be used.

Also, installkernel is creating a initramfs, when it didn't before, I suspect this is because dracut is installed, despite the use flag for installkernel telling it not to. I also have to experment with removing dracut before rebuilding.

X wont start, I suspect nvidia-drivers is not putting its modules in the newly named modules folder - though I have not proven that yet (I will have another look this evening).

Finally, I have tried deleting the entire /usr/lib/modules folder contents, blowing away everything in /boot that is created by the kernel install and re-building.

My next step is to restore my .config from a backup and repeat the whole build process.

After that, uninstalling gentoo-sources, blowing the whole folder away and re-installing sources and re-building, just in case something got tweaked in the source tree.
_________________
...Lyall
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1597
Location: Adelaide/Australia

PostPosted: Fri May 03, 2024 5:54 am    Post subject: Reply with quote

Ok,
1. restored .config from a backup a few months back
2. deleted all /usr/lib/module contents
3. deleted all top level files in /boot
4. linux kernel
4.0 make clean
4.1 make oldconfig
4.2 make -j 6
4.3 make modules_install && make install
4.4 grub-install /dev/sdb
4.5 grub-mkdconfig > /boot/grub/grub.cfg
5. Built kernel dependant programs
5.1 nvidia-drivers
5.2 docker
5.3 virtualbox-modules
7. Rebooted

It boots now, X starts, apps start, things all look good except firefox, which is one of the things that started me down this whole track.

Firefox115.10.0(esr) hangs - it does not render pages, and, after a minute or two of 100% CPU, simply stops.

I should mention I have refreshed firefox, tried starting with --safe-mode, to no avail.

I am using konqueror to post this message.

I tried re-building firefox.
I even tried re-building firefox with --empty-tree!

libxul is whining, so maybe I will try re-building that.

stdout is as follows

Code:
lyall@Lyalls-PC ~
$ firefox
Initializing context 0x7f782f666921 surface (nil) on display 0x7f7821b17900
GL_VENDOR: NVIDIA Corporation
mVendor: NVIDIA
GL_RENDERER: NVIDIA GeForce RTX 3060/PCIe/SSE2
mRenderer: Unknown
mIsMesa: 0
[Parent 9062, Main Thread] WARNING: 'mIndex >= Count()', file /tmp/portage/www-client/firefox-115.10.0/work/firefox-115.10.0/xpcom/ds/nsStringEnumerator.cpp:202
[Parent 9062, Main Thread] WARNING: 'mIndex >= Count()', file /tmp/portage/www-client/firefox-115.10.0/work/firefox-115.10.0/xpcom/ds/nsStringEnumerator.cpp:202
[Parent 9062, Main Thread] WARNING: 'mIndex >= Count()', file /tmp/portage/www-client/firefox-115.10.0/work/firefox-115.10.0/xpcom/ds/nsStringEnumerator.cpp:202
[Socket 9121, Main Thread] WARNING: 'NS_FAILED(rv)', file /tmp/portage/www-client/firefox-115.10.0/work/firefox-115.10.0/netwerk/protocol/http/nsHttpHandler.cpp:371
Assertion failure: i < NUM_TEST_EV_ROOTS (Could not find built-in EV root), at /tmp/portage/www-client/firefox-115.10.0/work/firefox-115.10.0/security/certverifier/ExtendedValidation.cpp:1282
#01: ???[/usr/lib64/firefox/libxul.so +0x10dccef8]
#02: ???[/usr/lib64/firefox/libxul.so +0x10e6dd0d]
#03: ???[/usr/lib64/firefox/libxul.so +0x7ec3989]
#04: ???[/usr/lib64/firefox/libxul.so +0x7eb866d]
#05: ???[/usr/lib64/firefox/libxul.so +0x7ec0afa]
#06: ???[/usr/lib64/firefox/libxul.so +0x8cb2b6f]
#07: ???[/usr/lib64/firefox/libxul.so +0x8bd418c]
#08: ???[/usr/lib64/firefox/libxul.so +0x8bd4109]
#09: ???[/usr/lib64/firefox/libxul.so +0x8bd40c6]
#10: ???[/usr/lib64/firefox/libxul.so +0x7eb2b54]
#11: ???[/usr/lib64/libnspr4.so +0x2b273]
#12: ???[/usr/lib64/libc.so.6 +0x88341]
#13: ???[/usr/lib64/libc.so.6 +0xfae1c]
#14: ??? (???:???)

Program /usr/lib64/firefox/firefox (pid = 9062) received signal 11.
Stack:
#01: ???[/usr/lib64/firefox/libxul.so +0x113ae382]
#02: ???[/usr/lib64/firefox/libxul.so +0x12c68221]
#03: ???[/usr/lib64/libc.so.6 +0x3a2f0]
#04: ???[/usr/lib64/firefox/libxul.so +0x10dccf06]
#05: ???[/usr/lib64/firefox/libxul.so +0x10e6dd0d]
#06: ???[/usr/lib64/firefox/libxul.so +0x7ec3989]
#07: ???[/usr/lib64/firefox/libxul.so +0x7eb866d]
#08: ???[/usr/lib64/firefox/libxul.so +0x7ec0afa]
#09: ???[/usr/lib64/firefox/libxul.so +0x8cb2b6f]
#10: ???[/usr/lib64/firefox/libxul.so +0x8bd418c]
#11: ???[/usr/lib64/firefox/libxul.so +0x8bd4109]
#12: ???[/usr/lib64/firefox/libxul.so +0x8bd40c6]
#13: ???[/usr/lib64/firefox/libxul.so +0x7eb2b54]
#14: ???[/usr/lib64/libnspr4.so +0x2b273]
#15: ???[/usr/lib64/libc.so.6 +0x88341]
#16: ???[/usr/lib64/libc.so.6 +0xfae1c]
#17: ??? (???:???)
Sleeping for 300 seconds.
Type 'gdb /usr/lib64/firefox/firefox 9062' to attach your debugger to this thread.
[WARN  webrender::device::gl] Missing optimized shader source for gpu_cache_update
console.error: ({})
[Parent 9062, Main Thread] WARNING: 'mIndex >= Count()', file /tmp/portage/www-client/firefox-115.10.0/work/firefox-115.10.0/xpcom/ds/nsStringEnumerator.cpp:202
[Parent 9062, Main Thread] WARNING: 'mIndex >= Count()', file /tmp/portage/www-client/firefox-115.10.0/work/firefox-115.10.0/xpcom/ds/nsStringEnumerator.cpp:202
console.error: Region.sys.mjs: "Error fetching region" (new Error("TIMEOUT", "resource://gre/modules/Region.sys.mjs", 759))
console.error: Region.sys.mjs: "Failed to fetch region" (new Error("TIMEOUT", "resource://gre/modules/Region.sys.mjs", 411))
[Parent 9062, Main Thread] WARNING: Failed to retarget HTML data delivery to the parser thread.: file /tmp/portage/www-client/firefox-115.10.0/work/firefox-115.10.0/parser/html/nsHtml5StreamParser.cpp:1235
[Child 9217, Main Thread] WARNING: Fallback to FallbackRenderer: file /tmp/portage/www-client/firefox-115.10.0/work/firefox-115.10.0/dom/ipc/BrowserChild.cpp:2688
[Child 9217, Main Thread] WARNING: Fallback to FallbackRenderer: file /tmp/portage/www-client/firefox-115.10.0/work/firefox-115.10.0/dom/ipc/BrowserChild.cpp:2688
[Child 9217, Main Thread] WARNING: Fallback to FallbackRenderer: file /tmp/portage/www-client/firefox-115.10.0/work/firefox-115.10.0/dom/ipc/BrowserChild.cpp:2688
[Child 9217, Main Thread] WARNING: Fallback to FallbackRenderer: file /tmp/portage/www-client/firefox-115.10.0/work/firefox-115.10.0/dom/ipc/BrowserChild.cpp:2688
[Child 9217, Main Thread] WARNING: Fallback to FallbackRenderer: file /tmp/portage/www-client/firefox-115.10.0/work/firefox-115.10.0/dom/ipc/BrowserChild.cpp:2688
JavaScript error: resource://gre/modules/XULStore.sys.mjs, line 60: Error: Can't find profile directory.
[Child 9144, Main Thread] WARNING: '!mLocalStore', file /tmp/portage/www-client/firefox-115.10.0/work/firefox-115.10.0/dom/xul/XULPersist.cpp:146
[Parent 9062, Main Thread] WARNING: NS_ENSURE_TRUE(mNameHashtable.Get(aName, &index)) failed: file /tmp/portage/www-client/firefox-115.10.0/work/firefox-115.10.0/storage/mozStorageRow.cpp:91
[WARN  glean_core::error_recording] fog.initialization: Timespan value already recorded. New value discarded.
Couldn't convert chrome URL: chrome://branding/locale/brand.properties


gdb output as follows
Code:
(gdb)
(gdb) where
#0  0x00007f784cd2a20f in poll () at /usr/lib64/libc.so.6
#1  0x00007f784b309abd in g_poll (fds=0x7f78140e0be0, nfds=5, timeout=-1) at ../glib-2.78.3/glib/gpoll.c:127
#2  0x00007f784130a96a in ??? () at /usr/lib64/firefox/libxul.so
#3  0x00007f784b2ee758 in g_main_context_poll_unlocked
    (context=0x7f782f6263a0, timeout=-1, priority=2147483647, fds=0x7f78140e0be0, n_fds=5) at ../glib-2.78.3/glib/gmain.c:4653
#4  0x00007f784b2edf04 in g_main_context_iterate_unlocked (context=0x7f782f6263a0, block=1, dispatch=1, self=0x7f782f6356a0)
    at ../glib-2.78.3/glib/gmain.c:4344
#5  0x00007f784b2ee003 in g_main_context_iteration (context=0x7f782f6263a0, may_block=1) at ../glib-2.78.3/glib/gmain.c:4414
#6  0x00007f784130adc4 in ??? () at /usr/lib64/firefox/libxul.so
#7  0x00007f78411fe053 in ??? () at /usr/lib64/firefox/libxul.so
#8  0x00007f78411fe594 in ??? () at /usr/lib64/firefox/libxul.so
#9  0x00007f783a8b81b4 in ??? () at /usr/lib64/firefox/libxul.so
#10 0x00007f783a8c0afa in ??? () at /usr/lib64/firefox/libxul.so
#11 0x00007f783b6b1ce0 in ??? () at /usr/lib64/firefox/libxul.so
#12 0x00007f783b5d418c in ??? () at /usr/lib64/firefox/libxul.so
#13 0x00007f783b5d4109 in ??? () at /usr/lib64/firefox/libxul.so
#14 0x00007f783b5d40c6 in ??? () at /usr/lib64/firefox/libxul.so
#15 0x00007f78411fe110 in ??? () at /usr/lib64/firefox/libxul.so
#16 0x00007f7843bf2e5f in ??? () at /usr/lib64/firefox/libxul.so
#17 0x00007f7843dd6e9d in ??? () at /usr/lib64/firefox/libxul.so
#18 0x00007f7843dd80f8 in ??? () at /usr/lib64/firefox/libxul.so
#19 0x00007f7843dd875e in ??? () at /usr/lib64/firefox/libxul.so
#20 0x00007f7843df0d8b in ??? () at /usr/lib64/firefox/libxul.so
#21 0x000055b1f3b5b581 in ??? ()
#22 0x000055b1f3b5ada5 in ??? ()
#23 0x00007f784cc602e0 in ??? () at /usr/lib64/libc.so.6
#24 0x00007f784cc60399 in __libc_start_main () at /usr/lib64/libc.so.6
#25 0x000055b1f3b5a8d5 in _start ()
(gdb)

_________________
...Lyall


Last edited by lyallp on Fri May 03, 2024 8:29 am; edited 1 time in total
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2387

PostPosted: Fri May 03, 2024 6:46 am    Post subject: Reply with quote

emerge --info

Best Regards,
Georgi
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1597
Location: Adelaide/Australia

PostPosted: Fri May 03, 2024 6:58 am    Post subject: Reply with quote

Your wish is my command... :)

I should mention I have my entire system built with debug symbols, whilst my firefox was generating cores at the rate of about 5 per day.

Code:

lyall@Lyalls-PC ~
$ emerge --info
Portage 3.0.63 (python 3.11.9-final-0, default/linux/amd64/23.0/desktop/plasma, gcc-13, glibc-2.38-r13, 6.6.21-gentoo x86_64)
=================================================================
System uname: Linux-6.6.21-gentoo-x86_64-Intel-R-_Core-TM-_i7-7700_CPU_@_3.60GHz-with-glibc2.38
KiB Mem:    32805740 total,   2704816 free
KiB Swap:   33286140 total,  31569148 free
Timestamp of repository gentoo: Thu, 02 May 2024 18:00:00 +0000
Head commit of repository gentoo: fc5d725ae78024a96b2ef780d769fb41e9977ed6
Head commit of repository kde: 1c9fe9b96f7e510523bf915a45567ec2a80320f8

Head commit of repository oubliette: da59471c8aacc8d99ea488a391a39d00d460428b

Head commit of repository steam-overlay: fc142da83eb4eb440c787e9f1befe5945b09f485

Timestamp of repository zugaina: Fri, 16 Jun 2023 08:32:15 +0000
Head commit of repository zugaina: a31fcec20b159a13ccd069d4e13b92d18bc0ffec

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.3::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.0-r1::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           3.11.9::gentoo, 3.12.3::gentoo
dev-lang/rust:             1.77.1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo
sys-devel/gcc:             13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r13::gentoo
Repositories:

gentoo
    location: /data/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 3
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1

kde
    location: /var/db/repos/kde
    sync-type: git
    sync-uri: https://github.com/gentoo/kde.git
    masters: gentoo
    volatile: False

local
    location: /var/db/repos/local
    masters: gentoo
    volatile: False

oubliette
    location: /var/db/repos/oubliette
    sync-type: git
    sync-uri: https://github.com/nabbi/oubliette-overlay.git
    masters: gentoo
    volatile: False

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    volatile: False

zugaina
    location: /var/db/repos/zugaina
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/zugaina.git
    masters: gentoo
    volatile: False

ABI="amd64"
ABI_X86="64 32"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ADA_TARGET="gcc_12"
APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias access_compat dumpio ratelimit log_forensic"
ARCH="amd64"
AUTOCLEAN="yes"
BINPKG_COMPRESS="bzip2"
BINPKG_FORMAT="xpak"
BINPKG_GPG_SIGNING_BASE_COMMAND="/usr/bin/flock /run/lock/portage-binpkg-gpg.lock /usr/bin/gpg --sign --armor [PORTAGE_CONFIG]"
BINPKG_GPG_SIGNING_DIGEST="SHA512"
BINPKG_GPG_VERIFY_BASE_COMMAND="/usr/bin/gpg --verify --batch --no-tty --no-auto-check-trustdb --status-fd 2 [PORTAGE_CONFIG] [SIGNATURE]"
BINPKG_GPG_VERIFY_GPG_HOME="/etc/portage/gnupg"
BOOTSTRAP_USE="unicode internal-glib pkg-config split-usr xml python_targets_python3_11 python_single_target_python3_11 multilib zstd cet"
BROOT=""
BROWSER="/usr/bin/firefox"
CALLIGRA_FEATURES="karbon sheets words"
CARGO_BUILD_JOBS="2"
CARGO_TERM_VERBOSE="false"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -march=native -ggdb3 -pipe"
CFLAGS_amd64="-m64"
CFLAGS_x32="-mx32"
CFLAGS_x86="-m32 -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x32="x86_64-pc-linux-gnux32"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/boot/dtbs/* /lib/modules/*"
COLUMNS="125"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d"
CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3"
CXXFLAGS="-mtune=native -march=native -ggdb3 -pipe"
DBUS_SESSION_BUS_ADDRESS="unix:path=/tmp/dbus-cBWXwoD6ci,guid=5425972d3aff6b9394a3ca266634784f"
DEFAULT_ABI="amd64"
DESKTOP_SESSION="fluxbox"
DIGICAM_PICS="/home/lyall/Digicam Pics"
DISPLAY=":0.0"
DISTDIR="/data/portage/distfiles"
EDITOR="/usr/bin/emacsclient"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="   --color=n   --jobs=3   --keep-going   --quiet-build=y   --verbose   --with-bdeps=y   "
EMERGE_WARNING_DELAY="10"
ENV="/home/lyall/.bashrc"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
EPREFIX=""
EROOT="/"
ESYSROOT="/"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live clean-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FETCHCOMMAND="wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_RSYNC="rsync -LtvP "${URI}" "${DISTDIR}/${FILE}""
FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; eval \"declare -a ssh_opts=(\${3})\" ; exec sftp \${port:+-P \${port}} \"\${ssh_opts[@]}\" \"\${host}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; exec rsync --rsh=\"ssh \${port:+-p\${port}} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FFLAGS="-O2 -pipe"
GCC_SPECS=""
GDMSESSION="fluxbox"
GDM_LANG="en_AU.utf8"
GENTOO_MIRRORS="https://mirror.aarnet.edu.au/pub/gentoo/       http://mirror.aarnet.edu.au/pub/gentoo/       rsync://mirror.aarnet.edu.au/pub/gentoo/       ftp://ftp.swin.edu.au/gentoo       http://ftp.swin.edu.au/gentoo       http://gentoo.mirrors.tds.net/gentoo"
GPG_TTY="/dev/pts/15"
GPG_VERIFY_GROUP_DROP="nogroup"
GPG_VERIFY_USER_DROP="nobody"
GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox"
GRUB_PLATFORMS=""
GSETTINGS_BACKEND="dconf"
GTK_MODULES="canberra-gtk-module:appmenu-gtk-module"
HISTCONTROL="ignoreboth"
HISTTIMEFORMAT="%Y-%m-%d %T "
HOME="/home/lyall"
INFOPATH="/usr/share/info/emacs-29:/usr/share/gcc-data/x86_64-pc-linux-gnu/13/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.41/info:/usr/share/autoconf-2.71/info:/usr/share/autoconf-2.13/info:/usr/share/automake-1.16.5/info:/usr/share/info"
INPUT_DEVICES="evdev"
INSIDE_EMACS="29.3,comint"
IUSE_IMPLICIT="abi_x86_64 prefix prefix-guest prefix-stack"
KDEVARTMP="/tmp/kde-cache"
KERNEL="linux"
L10N="en-AU en"
LANG="en_AU.utf8"
LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text"
LC_MESSAGES="C"
LDFLAGS="-g"
LDFLAGS_amd64="-m elf_x86_64"
LDFLAGS_x32="-m elf32_x86_64"
LDFLAGS_x86="-m elf_i386"
LD_LIBRARY_PATH=":/home/lyall/lib"
LESS="--no-init --raw-control-chars --IGNORE-CASE --LONG-PROMPT --jump-target=10"
LESSOPEN="|lesspipe %s"
LEX="flex"
LIBDIR_amd64="lib64"
LIBDIR_x32="libx32"
LIBDIR_x86="lib"
LINGUAS="en-AU en"
LOGNAME="lyall"
LUA_SINGLE_TARGET="lua5-1"
LUA_TARGETS="lua5-1"
LV2_PATH="/usr/lib64/lv2"
MAIL="/var/mail/lyall"
MAKEOPTS="-j6"
MANPAGER="manpager"
MANPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/13/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.41/man:/usr/lib64/php8.2/man/:/usr/local/share/man:/usr/share/man:/usr/lib/rust/man:/usr/lib/llvm/17/share/man:/etc/eselect/wine/share/man"
MOTD_SHOWN="pam"
MOZ_GMP_PATH="/usr/lib64/nsbrowser/plugins/gmp-gmpopenh264/system-installed"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|binutils|eclipse-3|debug|portage|udev|systemd|clang|python-exec|llvm)"
NOCOLOR="true"
NPM_CONFIG_GLOBALCONFIG="/etc/npm/npmrc"
OFFICE_IMPLEMENTATION="libreoffice"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/opt/bin:/usr/lib/llvm/17/bin:/etc/eselect/wine/bin:/home/lyall/Scripts:/home/lyall/bin:/home/lyall/.local/bin:/home/lyall/.cargo/bin"
PHP_TARGETS="php8-2"
PKGDIR="/data/portage/packages"
PORTAGE_ARCHLIST="alpha amd64 amd64-linux arm arm-linux arm64 arm64-linux arm64-macos hppa ia64 loong m68k mips ppc ppc-macos ppc64 ppc64-linux riscv riscv-linux s390 sparc x64-macos x64-solaris x86 x86-linux x86-macos"
PORTAGE_BIN_PATH="/usr/lib/portage/python3.11"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="warn error info log qa"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --digest-algo SHA256 --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}""
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_INTERNAL_CALLER="1"
PORTAGE_LOGDIR_CLEAN="find "${PORTAGE_LOGDIR}" -type f ! -name "summary.log*" -mtime +7 -delete"
PORTAGE_OVERRIDE_EPREFIX=""
PORTAGE_PYM_PATH="/usr/lib/python3.11/site-packages"
PORTAGE_PYTHONPATH="/usr/lib/python3.11/site-packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_RSYNC_RETRIES="-1"
PORTAGE_SCHEDULING_POLICY="idle"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/tmp"
PORTAGE_TRUST_HELPER="/usr/bin/getuto"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTAGE_XATTR_EXCLUDE="btrfs.* security.evm security.ima    security.selinux system.nfs4_acl user.apache_handler    user.Beagle.* user.dublincore.* user.mime_encoding user.xdg.*"
PORT_LOGDIR="/var/log/portage"
PORT_LOGDIR_CLEAN="find "${PORT_LOGDIR}" -type f ! -name "summary.log*" -mtime +7 -delete"
POSTGRES_TARGETS="postgres15"
PROFILE_ONLY_VARIABLES="ARCH ELIBC IUSE_IMPLICIT KERNEL USE_EXPAND_IMPLICIT USE_EXPAND_UNPREFIXED USE_EXPAND_VALUES_ARCH USE_EXPAND_VALUES_ELIBC USE_EXPAND_VALUES_KERNEL"
PWD="/home/lyall"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python3_11"
PYTHON_TARGETS="python3_11"
QEMU_AUDIO_DRV="pa"
QEMU_AUDIO_TIMER_PERIOD="150"
QEMU_PA_SAMPLES="8192"
RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
RESUMECOMMAND_RSYNC="rsync -LtvP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; exec rsync --rsh=\"ssh \${port:+-p\${port}} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
ROOT="/"
ROOTPATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/17/bin"
RPMDIR="/var/cache/rpm"
RUBY_TARGETS="ruby31"
RUSTFLAGS="-C target-cpu=native"
R_HOME="/usr/lib64/R"
SHELL="/bin/bash"
SHLVL="1"
SSH_AGENT_PID="5239"
SSH_ASKPASS="/usr/bin/ssh-askpass-fullscreen"
SSH_ASKPASS_REQUIRE="prefer"
SSH_AUTH_SOCK="/tmp/ssh-XXXXXXdy3CST/agent.5231"
SSLKEYLOGFILE="/home/lyall/.mozilla/firefox/ssl-key.log"
SUDO_ASKPASS="/usr/bin/ssh-askpass-fullscreen"
SYMLINK_LIB="no"
SYSROOT="/"
TERM="dumb"
TERMCAP=""
TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1"
UBUNTU_MENUPROXY="1"
UNINSTALL_IGNORE="/boot/dtbs/* /lib/modules/* /var/run /var/lock /bin /lib /lib32 /lib64 /libx32 /sbin /usr/sbin /usr/lib/modules/*"
USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus declarative dri dts dvd dvdr elogind emacs encode exif flac gdbm gif gpm gtk gui iconv icu ipv6 jpeg jpegxl kde kwallet lcms libnotify libtirpc mad mng mp3 mp4 mpeg mtp multilib mysql mysqli ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf pipewire plasma png policykit ppds pulseaudio qml qt5 readline samba screencast sdl seccomp semantic-desktop sound spell ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb utils vorbis vulkan wayland webp widgets wxwidgets x264 xattr xcb xft xml xv xvid xvmc zlib" ABI_X86="64 32" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias access_compat dumpio ratelimit log_forensic" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en-AU en" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="nvidia vesa fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
USER="lyall"
USERLAND="GNU"
USE_EXPAND="ABI_MIPS ABI_S390 ABI_X86 ADA_TARGET ALSA_CARDS AMDGPU_TARGETS APACHE2_MODULES APACHE2_MPMS CALLIGRA_FEATURES CAMERAS COLLECTD_PLUGINS CPU_FLAGS_ARM CPU_FLAGS_PPC CPU_FLAGS_X86 CURL_SSL ELIBC FFTOOLS GPSD_PROTOCOLS GRUB_PLATFORMS INPUT_DEVICES KERNEL L10N LCD_DEVICES LIBREOFFICE_EXTENSIONS LLVM_SLOT LLVM_TARGETS LUA_SINGLE_TARGET LUA_TARGETS MONKEYD_PLUGINS NGINX_MODULES_HTTP NGINX_MODULES_MAIL NGINX_MODULES_STREAM OFFICE_IMPLEMENTATION OPENMPI_FABRICS OPENMPI_OFED_FEATURES OPENMPI_RM PHP_TARGETS POSTGRES_TARGETS PYTHON_SINGLE_TARGET PYTHON_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS UWSGI_PLUGINS VIDEO_CARDS VOICEMAIL_STORAGE XTABLES_ADDONS"
USE_EXPAND_HIDDEN="ABI_MIPS ABI_S390 CPU_FLAGS_ARM CPU_FLAGS_PPC ELIBC KERNEL"
USE_EXPAND_IMPLICIT="ARCH ELIBC KERNEL"
USE_EXPAND_UNPREFIXED="ARCH"
USE_EXPAND_VALUES_ARCH="alpha amd64 amd64-linux arm arm64 arm64-macos hppa ia64 loong m68k mips ppc ppc64 ppc64-linux ppc-macos riscv s390 sparc x64-macos x64-solaris x86 x86-linux"
USE_EXPAND_VALUES_ELIBC="bionic Darwin glibc mingw musl SunOS"
USE_EXPAND_VALUES_KERNEL="Darwin linux SunOS"
USE_ORDER="env:pkg:conf:defaults:pkginternal:features:repo:env.d"
VBOX_APP_HOME="/usr/lib64/virtualbox"
VBOX_INSTALL_PATH="/usr/lib64/virtualbox"
VBOX_SDK_PATH="/usr/lib64/virtualbox/sdk"
VIDEO_CARDS="nvidia vesa fbdev"
WWWBROWSER="/usr/bin/firefox"
XAUTHORITY="/home/lyall/.Xauthority"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share:/etc/eselect/wine/share"
XDG_GREETER_DATA_DIR="/var/lib/lightdm-data/lyall"
XDG_RUNTIME_DIR="/run/user/1000"
XDG_SEAT="seat0"
XDG_SEAT_PATH="/org/freedesktop/DisplayManager/Seat0"
XDG_SESSION_CLASS="user"
XDG_SESSION_DESKTOP="fluxbox"
XDG_SESSION_ID="6"
XDG_SESSION_PATH="/org/freedesktop/DisplayManager/Session0"
XDG_SESSION_TYPE="x11"
XDG_VTNR="7"
XEDITOR="/usr/bin/emacsclient"
XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
ac_cv_c_undeclared_builtin_options="none needed"
enable_year2038="no"
ftp="ftp -vip"
gl_cv_compiler_check_decl_option="-Werror=implicit-function-declaration"
gl_cv_func_getcwd_path_max="yes"

lyall@Lyalls-PC ~
$

_________________
...Lyall
Back to top
View user's profile Send private message
Nowa
Developer
Developer


Joined: 25 Jun 2014
Posts: 415
Location: Nijmegen

PostPosted: Fri May 03, 2024 10:01 am    Post subject: Reply with quote

Quote:
Also, installkernel is creating a initramfs, when it didn't before, I suspect this is because dracut is installed, despite the use flag for installkernel telling it not to. I also have to experment with removing dracut before rebuilding.


This happens when you override the /usr/lib/kernel/install.conf from sys-kernel/installkernel with an incomplete /etc/kernel/install.conf.

Dracut by default assumes it is wanted. In the install.conf that the installkernel package provides we resolve this problem by explicitly setting 'initrd_generator=none' when the dracut flag is not enabled.

I highly recommend to not override the install.conf provided by the installkernel package, simply set the USE flags you want (USE=grub probably but not required if you want to 'grub-mkconfig' manually, and USE=systemd if you're on a systemd system) and you'll get the correct install.conf. And please also ensure that you're using at least version 28 of installkernel, there have been a bunch of fixes and improvements and it should now be configure and forget.

The only situation where you might want to create a custom /etc/kernel/install.conf is when you want to use custom initrd/uki generators, or when you want to use some custom user-defined layout.

Quote:
installkernel is creating kernel images suffixed with a type suffix, when it did not used to


What kind of suffix is this? Can we see the output of 'make install' as well as 'emerge -pv sys-kernel/installkernel'?
_________________
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
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1597
Location: Adelaide/Australia

PostPosted: Fri May 03, 2024 10:10 am    Post subject: Reply with quote

I have not overriden the installkernel in /etc/kernel

The i386_x64 suffix has gone now, I have no idea why it was there in the first place. Possibly I uninstalled installkernel and re-installed it with the new use flags, rather than simply re-installing with changed use flags.

I have restored my .config from an even newer backup (I remembered it after the fact) and will see how the next reboot goes, after I have finished rebuilding glibc and firefox and installing chrome, in case firefox does not work.

All of this rebuilding won't finish till early tomorrow.

If both Chromium and Firefox don't work, I have more serious problems, Konqueror is not preferred.

I appreciate any feedback as I work through this, probably self inflicted, mess.
_________________
...Lyall
Back to top
View user's profile Send private message
Nowa
Developer
Developer


Joined: 25 Jun 2014
Posts: 415
Location: Nijmegen

PostPosted: Fri May 03, 2024 10:31 am    Post subject: Reply with quote

lyallp wrote:
I have not overriden the installkernel in /etc/kernel


Then probably the version of installkernel dates from before I fixed this problem by setting 'initrd_generator=none' when the dracut flag is not enabled.

Quote:
The i386_x64 suffix has gone now, I have no idea why it was there in the first place. Possibly I uninstalled installkernel and re-installed it with the new use flags, rather than simply re-installing with changed use flags.


Aah I see, this suffix originates from the kernel config/makefiles, not from installkernel. There are some config options you can set to determine what the kernel version should be and what should be included.
_________________
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
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2387

PostPosted: Fri May 03, 2024 10:46 am    Post subject: Reply with quote

Code:
grep -r EXTRAVERSION /usr/src/linux
...
/usr/src/linux/Makefile:EXTRAVERSION = -gentoo
...


Code:
grep LOCALVERSION /usr/src/linux/.config
CONFIG_LOCALVERSION="-default"


Note: LOCALVERSION above is set by me. I think in gentoo-kernel/gentoo-kernel-bin it's set by default to "-dist" and not set in gentoo-sources.

Best Regards,
Georgi
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1597
Location: Adelaide/Australia

PostPosted: Fri May 03, 2024 11:08 am    Post subject: Reply with quote

My restored .config has....

Code:
/usr/src/linux/.config : CONFIG_LOCALVERSION=""


I deleted the .configs that where giving me trouble, no point keeping them if I have a .config that works.
_________________
...Lyall
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3005
Location: Edge of marsh USA

PostPosted: Sat May 04, 2024 4:14 am    Post subject: Reply with quote

here is a little reminder guide I made for myself. Note: I never run make install for a kernel. I always manually copy the needed files to /boot. Reference at your own risk:
Code:
# Install your new kernel sources. Using 4.9.233 throughout as example.
emerge -a gentoo-sources
Additional references:
https://forums.gentoo.org/viewtopic-p-2431534.html#2431534
http://kernel-seeds.bloodnoc.org/
Also Forums: Unsupported Software for Pappy's preconfigs and seeds

or, to install a specific version by specifying the version:

emerge -a =sys-kernel/gentoo-sources-4.9.233

# NB: /usr/src/linux should currently be a symlink to your current kernel sources.
# Copy the .config from your current kernel sources to your new kernel sources, i.e.
cd /usr/src/
cp linux/.config linux-4.9.233-gentoo/

# Remove the (old) symlink.
rm linux

# Create a new "linux" symlink to your new kernel sources, i.e.
ln -s linux-4.9.233-gentoo linux

# Alternatively, you can change/set the symlink using eselect. Example:
eselect kernel list
Available kernel symlink targets:
  [1]   linux-4.9.221-gentoo
  [2]   linux-4.9.228-gentoo *
  [3]   linux-4.9.233-gentoo

eselect kernel set 3

# Be sure to check your work with:
eselect kernel list
Available kernel symlink targets:
  [1]   linux-4.9.221-gentoo
  [2]   linux-4.9.228-gentoo
  [3]   linux-4.9.233-gentoo *

or

ls -l
lrwxrwxrwx  1 root     root           20 Aug 24 13:20 linux -> linux-4.9.233-gentoo/
drwxr-xr-x 26 root     root         4096 May  5 22:58 linux-4.9.221-gentoo/
drwxr-xr-x 26 root     root         4096 Aug  9 23:11 linux-4.9.228-gentoo/
drwxr-xr-x 26 root     root         4096 Aug 24 13:41 linux-4.9.233-gentoo/

# Change to the new kernel sources directory using,
cd linux/

# Update .config according to new kernel options.
make oldconfig

# Configure the new kernel.
make menuconfig

# Compile the new kernel and install the modules.
make && make modules_install

# Copy important kernel boot files to /boot
cp .config /boot/config-4.9.233-gentoo
cp System.map /boot/System.map-4.9.233-gentoo
cp arch/x86/boot/bzImange /boot/kernel-4.9.233-gentoo

# Alternatively, I understand instead of manually copying files to /boot, one
# can run "make install" which will do it for you automatically. I've never
# done it that way. My way contributes to developing muscle memory.

# remove old symlink "vmlinuz" to old /boot/kernel-n.n.nnn-gentoo and create new
# symlink "vmlinuz" to new kernel file
cd /boot
rm vmlinuz
ln -s kernel-4.9.233-gentoo vmlinuz

# Configure boot loader (grub assumed).
grub-mkconfig -o /boot/grub/grub.cfg

And, don't forget "emerge @module-rebuild" to compile and re-install external kernel modules.

Reference: https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel

Note: https://www.kernel.org/doc/html/v5.4/admin-guide/pm/cpufreq.html
Note: https://www.kernel.org/doc/html/v5.10/admin-guide/pm/cpufreq.html

_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1597
Location: Adelaide/Australia

PostPosted: Sat May 04, 2024 4:19 am    Post subject: Reply with quote

I have been using a script 'Rebuild_Install_Kernel.sh' for a few years now....

The only change has been removing the PARTUUID replacement during grub-config during this whole rebuild issue.

Code:
#!/bin/bash
lsblk --fs --topology  --output NAME,TYPE,SIZE,FSTYPE,MOUNTPOINT,LABEL,PARTLABEL,UUID,PARTUUID

# unmount boot and do a precautionary fsck on it, prior to update
umount /boot

( e2fsck /dev/sdb2 && mount /boot ) || (echo "Failed to mount /boot or already mounted." && exit 1)

cd /usr/src/linux

if [ "${1}" != "grub" ]
then
    make oldconfig
    make -j6 && make modules_install && make install
    if [ $? -ne 0 ]
    then
   echo "kernel failed to build!"
   exit 1
    fi
    # Don't re-install virtualbox modules if not already installed.
    if [ -f /usr/lib/modules-load.d/virtualbox.conf ]
    then
   emerge app-emulation/virtualbox-modules
   if [ $? -ne 0 ]
   then
       echo "virtualbox-modules failed to build!"
       exit 1
   fi
    fi
    emerge x11-drivers/nvidia-drivers
    if [ $? -ne 0 ]
    then
   echo "nvidia drivers failed to build!"
   exit 1
    fi
    emerge app-containers/docker
    if [ $? -ne 0 ]
    then
   echo "docker failed to build!"
   exit 1
    fi
fi

# Only root=/dev/sd?? or root=PARTUUID=?? works at Grub boot time, unless we use an initramfs
#    echo "
#*** Editing /boot/grub/grub.cfg to change
#
#root=?|root=UUID=?|root=PARTUUD=?
#to
#root=PARTUUID=3f1c359a-94b5-4cd8-9fa6-4994740586ee
#
#on kernel parameter line, not entries such as
#set root='hd1,gpt4'
#"
read -t 600 -p "Press ENTER to setup Grub (go clean up older kernels now):"

rootPARTUUID="$(lsblk --output PARTUUID,LABEL| grep 'Root' | cut -d' ' -f1)"
#grub-mkconfig  | sed -e "s/root=[^'][^=]*=*[^ ]*/root=PARTUUID=${rootPARTUUID}/g" > /boot/grub/grub.cfg
grub-mkconfig  > /boot/grub/grub.cfg

sync

# re-install grub, in case of updates
grub-install /dev/sdb

cd /

if [ "${1}" != "grub" ]
then
   # Refresh memory tester, in case of updates
   emerge --oneshot sys-apps/memtest86+
fi

# finished with /boot now
umount /boot

_________________
...Lyall


Last edited by lyallp on Wed May 15, 2024 8:03 am; edited 1 time in total
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3005
Location: Edge of marsh USA

PostPosted: Tue May 07, 2024 4:03 am    Post subject: Reply with quote

There really are very few, logical, and easy steps to upgrade gentoo-sources, I barely have to think about it. It's become muscle memory. The only issue with handing such jobs off to scripts is forgetting how to do these relatively easy things, and it may lead to inattention.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
pabloblo
n00b
n00b


Joined: 24 Jan 2024
Posts: 71

PostPosted: Sun May 19, 2024 9:26 pm    Post subject: Reply with quote

Hello, does anyone have a good tutorial? I get lost
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5063
Location: Bavaria

PostPosted: Sun May 19, 2024 9:30 pm    Post subject: Reply with quote

pabloblo wrote:
Hello, does anyone have a good tutorial? I get lost

If you read this thread carefully you will find it ... 8)

Hint: It is my only post in this thread :D
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
jserink
Veteran
Veteran


Joined: 30 Jan 2004
Posts: 1013

PostPosted: Wed Oct 30, 2024 8:37 am    Post subject: My kernel update notes Reply with quote

These are my notes/procedure:
eselect kernel list
eselect kernel set [#]
zcat /proc/config.gz > /usr/src/linux/.config
cd /usr/src/linux
make oldconfig
make menuconfig
mount /dev/nvme0n1p2 /boot #specific to my machine
make -j6 && make -j4 modules_install
make install
grub-install /dev/nvme0n1 --target i386-pc #specific to may machine
cp /home/jserink/folders/downloads/backgroundPhotos/KidsPool.jpg /boot/grub/KidsPool.jpg #specific to my machine
grub-mkconfig -o /boot/grub/grub.cfg


Cheers,
John
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3414
Location: Canada

PostPosted: Wed Oct 30, 2024 4:29 pm    Post subject: Reply with quote

figueroa wrote:
There really are very few, logical, and easy steps to upgrade gentoo-sources, I barely have to think about it. It's become muscle memory. The only issue with handing such jobs off to scripts is forgetting how to do these relatively easy things, and it may lead to inattention.


+1
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


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

PostPosted: Wed Oct 30, 2024 8:44 pm    Post subject: Reply with quote

figueroa wrote:
Note: I never run make install for a kernel. I always manually copy the needed files to /boot.
That's how I did it back when I did use gentoo-sources and/or vanilla-sources... Or rather that's how I was taught to do... and So I did. All manual. But that's how I learned. By doing it manual.
I never did use make install when installing kernel. I only did make modules_install after make.

Nowdays, however, I simply use gentoo-kernel as it doesn't use too much black magic. Especially, because I still have possibility to configure it (/etc/kernel/config.d/) and use whatever initramfs generator I like.
_________________
..: 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
keekkenen
n00b
n00b


Joined: 05 Oct 2024
Posts: 3

PostPosted: Wed Oct 30, 2024 9:57 pm    Post subject: Reply with quote

Zucca wrote:
..and So I did. All manual.


I think this is a good example. I returned to Gentoo two weeks ago. I used it 15 years ago. Everything has changed now.
The UEFI, systemd, installkernel, kernel tuning quest (it took 5 minutes before) are amazing things.
Yes, and make install was easy to understand. I try to use the EFI, solid kernel, systemd and instalkernel. Mm.. fatal mistake.
The EFI, solid kernel, systemd cannot run OS. Installkernel plus other features make something understanding.
I returned to the openrc, unmerge installkernel and etc.
Copy kernel to the efi partition and everything is alright now, and I'm happy.

Great thanks to pietinger, for his wiki pages for kernel and the efi way to run kernel.
_________________
7950x3d / x670e MSI Tomagawk / Sapphire RX 7800XT 16Gb / G.Skill 64Gb 5600 / A-Data Legend 960 2Tb (x2), A-Data SX8200PNP 256Gb
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5063
Location: Bavaria

PostPosted: Fri Nov 01, 2024 1:37 pm    Post subject: Reply with quote

keekkenen wrote:
Great thanks to pietinger, for his wiki pages for kernel and the efi way to run kernel.

You are very Welcome! :D

Have fun with Gentoo. 8)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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