Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Stuck on loading inittial ramdisk
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
shieldoxacillin
n00b
n00b


Joined: 10 Mar 2024
Posts: 11

PostPosted: Thu Mar 14, 2024 4:49 pm    Post subject: Stuck on loading inittial ramdisk Reply with quote

Hello,

I'm stuck on loading initial ramdisk when using a custom kernel (gentoo-sources, linux-6.6.21-gentoo )
I thought it might be because I'm using an nvidia driver so I looked on the wiki but that didn't help.
I'm using dracut.
These are the commands I use to edit my kernel: cd /usr/src/linux && sudo make clean && sudo make nconfig && sudo make modules_prepare && sudo make -j24 && sudo make modules_install && sudo make install && sudo emerge @module-rebuild && sudo grub-mkconfig -o /boot/grub/grub.cfg
I don't know what else may be causing the issue. I double checked and I don't think that there's anything missing for the nvidia-drivers neither is it for linux-firmware

.config:
https://gist.githubusercontent.com/functionexpression/34dee1785e62cdc3b028f98747f48212/raw

Thank you for the help.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54253
Location: 56N 3W

PostPosted: Thu Mar 14, 2024 5:10 pm    Post subject: Reply with quote

shieldoxacillin,

Welcome to Gentoo.

Code:
# CONFIG_FRAMEBUFFER_CONSOLE is not set


All consoles are framebuffer now, even the old 80x24 VGA text console.
All may be well but you don't have and console output.

Code:
cd /usr/src/linux && sudo make clean && sudo make nconfig && sudo make modules_prepare && sudo make -j24 && sudo make modules_install && sudo make install && sudo emerge @module-rebuild && sudo grub-mkconfig -o /boot/grub/grub.cfg


Skip the make clean and make modules_prepare.
modules_prepare is no longer required.
clean removes all the existing binaries, that make might otherwise reuse.

I think modules_install is redundant with install but I don't use install.

If your kernel needs an initrd containing modules, you need to build the every time too.

Code:
# CONFIG_LOGO is not set
is a menu. Enable that and choose a logo if you want to see a tux for every logical core at boot.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
shieldoxacillin
n00b
n00b


Joined: 10 Mar 2024
Posts: 11

PostPosted: Thu Mar 14, 2024 5:48 pm    Post subject: Reply with quote

NeddySeagoon wrote:
shieldoxacillin,

Welcome to Gentoo.

Code:
# CONFIG_FRAMEBUFFER_CONSOLE is not set


All consoles are framebuffer now, even the old 80x24 VGA text console.
All may be well but you don't have and console output.

Code:
cd /usr/src/linux && sudo make clean && sudo make nconfig && sudo make modules_prepare && sudo make -j24 && sudo make modules_install && sudo make install && sudo emerge @module-rebuild && sudo grub-mkconfig -o /boot/grub/grub.cfg


Skip the make clean and make modules_prepare.
modules_prepare is no longer required.
clean removes all the existing binaries, that make might otherwise reuse.

I think modules_install is redundant with install but I don't use install.

If your kernel needs an initrd containing modules, you need to build the every time too.

Code:
# CONFIG_LOGO is not set
is a menu. Enable that and choose a logo if you want to see a tux for every logical core at boot.



Thank you for help. I have applied these options. However, I have realised that dracut does not actually generate an initramfs for the gentoo-sources kernel.

Code:
 eselect kernel list
Available kernel symlink targets:
  [1]   linux-6.6.16-gentoo-dist
  [2]   linux-6.6.21-gentoo *


Code:
ls -l
total 8
lrwxrwxrwx  1 root root   19 Mar 13 19:29 linux -> linux-6.6.21-gentoo
drwxr-xr-x 26 root root 4096 Mar 12 18:49 linux-6.6.16-gentoo-dist
drwxr-xr-x 27 root root 4096 Mar 14 18:46 linux-6.6.21-gentoo




Code:
sudo dracut --force
dracut[I]: Executing: /usr/bin/dracut --force
dracut[I]: Module 'dash' will not be installed, because command 'dash' could not be found!
dracut[I]: Module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut[I]: Module 'systemd' will not be installed, because command '/lib/systemd/systemd' could not be found!
dracut[I]: Module 'systemd-ask-password' will not be installed, because command 'systemd-ask-password' could not be found!
dracut[I]: Module 'systemd-ask-password' will not be installed, because command 'systemd-tty-ask-password-agent' could not be found!
dracut[I]: Module 'systemd-coredump' will not be installed, because command 'coredumpctl' could not be found!
dracut[I]: Module 'systemd-coredump' will not be installed, because command '/lib/systemd/systemd-coredump' could not be found!
dracut[I]: Module 'systemd-creds' will not be installed, because command 'systemd-creds' could not be found!
dracut[I]: Module 'systemd-hostnamed' will not be installed, because command 'hostnamectl' could not be found!
dracut[I]: Module 'systemd-hostnamed' will not be installed, because command '/lib/systemd/systemd-hostnamed' could not be found!
dracut[I]: Module 'systemd' will not be installed, because command '/lib/systemd/systemd' could not be found!
dracut[E]: Module 'systemd-initrd' depends on 'systemd', which can't be installed
dracut[I]: Module 'systemd-integritysetup' will not be installed, because command '/lib/systemd/systemd-integritysetup' could not be found!
dracut[I]: Module 'systemd-integritysetup' will not be installed, because command '/lib/systemd/system-generators/systemd-integritysetup-generator' could not be found!
dracut[I]: Module 'systemd-journald' will not be installed, because command 'journalctl' could not be found!
dracut[I]: Module 'systemd-journald' will not be installed, because command '/lib/systemd/systemd-journald' could not be found!
dracut[I]: Module 'systemd-modules-load' will not be installed, because command '/lib/systemd/systemd-modules-load' could not be found!
dracut[I]: Module 'systemd-networkd' will not be installed, because command 'networkctl' could not be found!
dracut[I]: Module 'systemd-networkd' will not be installed, because command '/lib/systemd/systemd-networkd' could not be found!
dracut[I]: Module 'systemd-networkd' will not be installed, because command '/lib/systemd/systemd-network-generator' could not be found!
dracut[I]: Module 'systemd-networkd' will not be installed, because command '/lib/systemd/systemd-networkd-wait-online' could not be found!
dracut[I]: Module 'systemd-pcrphase' will not be installed, because command '/lib/systemd/systemd-pcrphase' could not be found!
dracut[I]: Module 'systemd-pcrphase' will not be installed, because command '/lib/systemd/systemd-pcrextend' could not be found!
dracut[I]: Module 'systemd-portabled' will not be installed, because command 'portablectl' could not be found!
dracut[I]: Module 'systemd-portabled' will not be installed, because command '/lib/systemd/systemd-portabled' could not be found!
dracut[I]: Module 'systemd-pstore' will not be installed, because command '/lib/systemd/systemd-pstore' could not be found!
dracut[I]: Module 'systemd-repart' will not be installed, because command 'systemd-repart' could not be found!
dracut[I]: Module 'systemd-resolved' will not be installed, because command 'resolvectl' could not be found!
dracut[I]: Module 'systemd-resolved' will not be installed, because command '/lib/systemd/systemd-resolved' could not be found!
dracut[I]: Module 'systemd-sysctl' will not be installed, because command '/lib/systemd/systemd-sysctl' could not be found!
dracut[I]: Module 'systemd-sysext' will not be installed, because command 'systemd-sysext' could not be found!
dracut[I]: Module 'systemd-sysusers' will not be installed, because command 'systemd-sysusers' could not be found!
dracut[I]: Module 'systemd-timedated' will not be installed, because command 'timedatectl' could not be found!
dracut[I]: Module 'systemd-timedated' will not be installed, because command '/lib/systemd/systemd-timedated' could not be found!
dracut[I]: Module 'systemd-timesyncd' will not be installed, because command '/lib/systemd/systemd-timesyncd' could not be found!
dracut[I]: Module 'systemd-timesyncd' will not be installed, because command '/lib/systemd/systemd-time-wait-sync' could not be found!
dracut[I]: Module 'systemd-veritysetup' will not be installed, because command '/lib/systemd/systemd-veritysetup' could not be found!
dracut[I]: Module 'systemd-veritysetup' will not be installed, because command '/lib/systemd/system-generators/systemd-veritysetup-generator' could not be found!
dracut[I]: Module 'modsign' will not be installed, because command 'keyctl' could not be found!
dracut[I]: Module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut[I]: Module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut[I]: Module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut[I]: Module 'connman' will not be installed, because command 'connmand' could not be found!
dracut[I]: Module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut[I]: Module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut[I]: Module 'network-legacy' will not be installed, because command 'dhclient' could not be found!
dracut[I]: Module 'network-manager' will not be installed, because command 'NetworkManager' could not be found!
dracut[I]: 62bluetooth: Could not find any command of '/usr/lib/bluetooth/bluetoothd /usr/libexec/bluetooth/bluetoothd'!
dracut[I]: Module 'lvmmerge' will not be installed, because command 'lvm' could not be found!
dracut[I]: Module 'lvmthinpool-monitor' will not be installed, because command 'lvm' could not be found!
dracut[I]: Module 'btrfs' will not be installed, because command 'btrfs' could not be found!
dracut[I]: 90crypt: Could not find any command of '/lib/systemd/systemd-cryptsetup cryptsetup'!
dracut[I]: Module 'dm' will not be installed, because command 'dmsetup' could not be found!
dracut[I]: Module 'dmraid' will not be installed, because command 'dmraid' could not be found!
dracut[I]: Module 'dmsquash-live-ntfs' will not be installed, because command 'ntfs-3g' could not be found!
dracut[I]: Module 'lvm' will not be installed, because command 'lvm' could not be found!
dracut[I]: Module 'mdraid' will not be installed, because command 'mdadm' could not be found!
dracut[I]: Module 'multipath' will not be installed, because command 'multipath' could not be found!
dracut[I]: Module 'pcsc' will not be installed, because command 'pcscd' could not be found!
dracut[I]: Module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut[I]: Module 'cifs' will not be installed, because command 'mount.cifs' could not be found!
dracut[I]: Module 'fcoe' will not be installed, because command 'dcbtool' could not be found!
dracut[I]: Module 'fcoe' will not be installed, because command 'fipvlan' could not be found!
dracut[I]: Module 'fcoe' will not be installed, because command 'lldpad' could not be found!
dracut[I]: Module 'fcoe' will not be installed, because command 'fcoemon' could not be found!
dracut[I]: Module 'fcoe' will not be installed, because command 'fcoeadm' could not be found!
dracut[I]: Module 'fcoe-uefi' will not be installed, because command 'dcbtool' could not be found!
dracut[I]: Module 'fcoe-uefi' will not be installed, because command 'fipvlan' could not be found!
dracut[I]: Module 'fcoe-uefi' will not be installed, because command 'lldpad' could not be found!
dracut[I]: Module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut[I]: Module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut[I]: Module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut[I]: Module 'nbd' will not be installed, because command 'nbd-client' could not be found!
dracut[I]: 95nfs: Could not find any command of 'rpcbind portmap'!
dracut[I]: Module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut[I]: Module 'nvmf' will not be installed, because command 'jq' could not be found!
dracut[I]: Module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut[E]: Module 'systemd-initrd' depends on 'systemd', which can't be installed
dracut[E]: Module 'dracut-systemd' depends on 'systemd-initrd', which can't be installed
dracut[I]: Module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut[I]: memstrack is not available
dracut[I]: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut[I]: Module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut[I]: Module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut[I]: *** Including module: i18n ***
dracut[I]: *** Including module: kernel-modules ***
dracut[I]: *** Including module: kernel-modules-extra ***
dracut[I]: *** Including module: nvdimm ***
dracut[I]: *** Including module: qemu ***
dracut[I]: *** Including module: qemu-net ***
dracut[I]: *** Including module: lunmask ***
dracut[I]: *** Including module: resume ***
dracut[I]: *** Including module: rootfs-block ***
dracut[I]: *** Including module: terminfo ***
dracut[I]: *** Including module: udev-rules ***
dracut[I]: *** Including module: virtiofs ***
dracut[I]: *** Including module: usrmount ***
dracut[I]: *** Including module: base ***
dracut[I]: *** Including module: fs-lib ***
dracut[I]: *** Including module: shutdown ***
dracut[I]: *** Including modules done ***
dracut[I]: *** Installing kernel module dependencies ***
dracut[I]: *** Installing kernel module dependencies done ***
dracut[I]: *** Resolving executable dependencies ***
dracut[I]: *** Resolving executable dependencies done ***
dracut[I]: *** Hardlinking files ***
dracut[I]: *** Hardlinking files done ***
dracut[I]: *** Generating early-microcode cpio image ***
dracut[I]: *** Constructing AuthenticAMD.bin ***
dracut[I]: *** Store current command line parameters ***
dracut[I]: *** Stripping files ***
dracut[I]: *** Stripping files done ***
dracut[I]: *** Creating image file '/boot/initramfs-6.6.16-gentoo-dist.img' ***
dracut[I]: Using auto-determined compression method 'gzip'
dracut[I]: *** Creating initramfs image file '/boot/initramfs-6.6.16-gentoo-dist.img' done ***



Unfortunately, I can't seem to find a way to make dracut make an initramfs for gentoo-sources, it just keeps on creating an initramfs for the distribution kernel.
Back to top
View user's profile Send private message
shieldoxacillin
n00b
n00b


Joined: 10 Mar 2024
Posts: 11

PostPosted: Thu Mar 14, 2024 6:02 pm    Post subject: Reply with quote

Hello,

I have fixed the problem by using genkernel instead of Dracut

Thank you for helping me set other correct kernel flags though.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1660

PostPosted: Thu Mar 14, 2024 6:30 pm    Post subject: Reply with quote

shieldoxacillin wrote:
Unfortunately, I can't seem to find a way to make dracut make an initramfs for gentoo-sources, it just keeps on creating an initramfs for the distribution kernel.

FWIW, you just need to add the option --kver linux-6.6.21-gentoo for dracut to look at something besides what is booted (its default).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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