Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing Ethernet Drivers on Installation Media
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1515
Location: Richmond Hill, Canada

PostPosted: Sun Feb 09, 2025 12:41 pm    Post subject: Reply with quote

I realize my mistake. :oops: One should not do switch_root inside dracut emergency_shell.

my apology for given wrong instruction.

For testing the setup problem the correction action should be
Code:
mount /dev/nvme0n1p3 /sysroot -o ro
exit


Once exit from the emergency_shell, dracut will automatically resume from failed mounting root and should be able to do the switch_root in its own logic.

I should have caught this condition when you said in went back in a loop. Sorry for wasting your time for doing those unnecessary work.

This is the disadvantage debug from remote, I think switch_root should actually report an error condition state that the parent process ID is not 1 and cannot do its work. but dracut would mess up the output because its way of working.


Anyway wish you have safe trip. And welcome back whenever you feel comfortable.
Back to top
View user's profile Send private message
xevra
n00b
n00b


Joined: 04 Feb 2025
Posts: 30
Location: United States

PostPosted: Sun Feb 09, 2025 12:47 pm    Post subject: Reply with quote

Pingtoo,

Thank you for the information and assistance.

Please do not worry about wasting my time. I don't see it that way. I am learning a lot!

I am happy to persist in the installation upon my return.

Until then, take care!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Feb 09, 2025 1:38 pm    Post subject: Reply with quote

xevra,

We will be here. Have a safe trip.
_________________
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
xevra
n00b
n00b


Joined: 04 Feb 2025
Posts: 30
Location: United States

PostPosted: Tue Feb 25, 2025 3:05 pm    Post subject: Reply with quote

Hello again,

I have returned, and fooled around a bit on my other laptop (hostname Ryu-Ran), installing Gentoo 3 times using different settings, and writing down every command I entered into the terminal (apart from things that change no settings like "ls").

I have not turned on the machine with the Ethernet driver problem (hostname: Pharaon).

The last set of instructions for Ryu-Ran are as follows:
Code:

# I'm going to attempt to install a testing version of the kernel

fdisk /dev/sda
g
n
[Enter]
[Enter]
+1G
[Y]
t
[Enter]
1
n
[Enter]
[Enter]
+12G
[Y]
t
[Enter]
19
n
[Enter]
[Enter]
[Enter]
[Y]
t
[Enter]
23
w

# Preparing the disks
mkfs.vfat -F 32 /dev/sda1
mkswap /dev/sda2
mkfs.xfs /dev/sda3
swapon /dev/sda2
mount /dev/sda3 /mnt/gentoo/
mkdir /mnt/gentoo/efi
mount /dev/sda1 /mnt/gentoo/efi

# Downloading the stage file
cd /mnt/gentoo
chronyd -q
wget https://distfiles.gentoo.org/releases/amd64/autobuilds/20250223T170333Z/stage3-amd64-openrc-20250223T170333Z.tar.xz
tar xpvf stage3-*.tar.xz --xattrs-include='*.*' --numeric-owner -C /mnt/gentoo

# Changes to make.conf
nano /mnt/gentoo/etc/portage/make.conf
-------------------------------------------------------------------------------
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

# NOTE: This stage was built with the bindist USE flag enabled

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C.utf8
USE="ugrd -systemd dist-kernel suid X"
NTHREADS=8
MAKEOPTS="-j8 -l9"
EMERGE_DEFAULT_OPTS="--jobs 8"
GRUB_PLATFORMS="efi-64"
ACCEPT_LICENSE="* -@EULA"
-------------------------------------------------------------------------------

# Changes to accept_keywords
nano /mnt/gentoo/etc/portage/package.accept_keywords/gentoo-sources
-------------------------------------------------------------------------------
sys-kernel/* ~amd64
virtual/dist-kernel ~amd64
dev-util/pahole ~amd64
app-text/ascii-doc ~amd64
-------------------------------------------------------------------------------

# Changes to locale.gen
nano /mnt/gentoo/etc/locale.gen
-------------------------------------------------------------------------------
en_US ISO-8859-1
en_US.UTF-8 UTF-8
-------------------------------------------------------------------------------

# Changes to installkernel
nano /mnt/gentoo/etc/portage/package.use/installkernel
-------------------------------------------------------------------------------
sys-kernel/installkernel grub ugrd
-------------------------------------------------------------------------------

# Fstab
nano /mnt/gentoo/etc/fstab
-------------------------------------------------------------------------------
/dev/sda1 /efi vfat umask=0077 0 2
/dev/sda2 none swap sw 0 0
/dev/sda3 / xfs defaults,noatime 0 1
-------------------------------------------------------------------------------

# Copy network stuff
cp --dereference /etc/resolv.conf /mnt/gentoo/etc/

# Enter the filesystem
arch-chroot /mnt/gentoo
source /etc/profile

# Sync Portage
emerge-webrsync

# locale-gen
locale-gen
source /etc/profile
env-update && source /etc/profile && export PS1="(chroot) ${PS1}"

# Install the kernel
emerge --ask sys-kernel/linux-firmware
# Note, with the USE flag for dist-kernel, this will install the kernel
# In the future, it may be better to install this before adding dist-kernel
#   to the use flags, and then recompiling it once the dist-kernel
#   has been installed.

# Setup
echo "Ryu-Ran" > /etc/hostname
passwd

# Manage packages and DHCPCD and SSHD
emerge --ask net-misc/dhcpcd app-shells/bash-completion sys-fs/xfsprogs sys-fs/dosfstools
rc-update add dhcpcd default
rc-update add sshd default

# GRUB
emerge --ask --verbose sys-boot/grub
grub-install --efi-directory=/efi
grub-mkconfig -o /boot/grub/grub.cfg

# Chrony
emerge --ask net-misc/chrony
chronyd -q

# Reboot
exit
cd
umount -R /mnt/gentoo
reboot


My Gentoo speedrun installation (no binaries category) is down to 3 hours on Ryu-Ran, and with
Code:
eselect kernel list
, I can verify that I am running linux-6.13.4-gentoo-dist on Ryu-Ran.

This is a newer kernel than 6.13.1, which is currently the version on Pharaon. So if part of the intention of this test was to verify that there's no issues with the testing packages, I have only verified that there are no issues which present themselves on Ryu-Ran now, and have not verified either the version of the packages installed on Pharaon or the use case with different hardware.

I did leave march alone in the make.conf file this time (see above), so I want to think that this installation of Gentoo may be able to run on Pharaon if I copy everything over.

Do you advise that at this time, and if so, how?

Thank you again for your time and energy!
Xevra
Back to top
View user's profile Send private message
xevra
n00b
n00b


Joined: 04 Feb 2025
Posts: 30
Location: United States

PostPosted: Thu Feb 27, 2025 11:02 pm    Post subject: Reply with quote

Running
Code:
rc-service dhcpcd start

returns a warning:
Code:
No permission to apply cgroup settings
.

This appears to be because way back when I installed the stage 3 tarball, I didn't use the "--xattrs='*.*'" flag.

I think I just ran
Code:

tar [letters] stage3*.tar.xz


I'm not sure if this is connected to my issues with the initramfs, but I think this is a good time to start over with a fresh stage 3, to grab a new portage snapshot, and attempt to install 6.13.4 and ugrd (instead of dracut).

I'll get started on that.
Back to top
View user's profile Send private message
xevra
n00b
n00b


Joined: 04 Feb 2025
Posts: 30
Location: United States

PostPosted: Thu Feb 27, 2025 11:03 pm    Post subject: Reply with quote

Clarification: It only returns that warning while chrooted.

Edit: Further clarification: and no, it still doesn't find my ethernet devices.
Back to top
View user's profile Send private message
xevra
n00b
n00b


Joined: 04 Feb 2025
Posts: 30
Location: United States

PostPosted: Fri Feb 28, 2025 1:11 am    Post subject: Reply with quote

Okay, so the good news is that tar-ing and un-tar-ing /var/db/repos/gentoo and /var/cache/distfiles from a functional build with 6.13.4 is much faster and less of a headache than wget-ing the files and copying them over one at a time as emerges fail.

More good news is that the 6.13.4 kernel compiles with no issue, and grub both compiled and installed successfully.

Grub loads on boot, and directs to the initramfs, just as it did before.

The bad news is that even with ugrd (instead of dracut), I'm still not booting with the new setup.

It's now complaining about a kernel panic (copied by hand, so there may be typos):
Code:

md: autorun ...
md: ... autorun DONE.
/dev/root: Can't open blockdev
VFS: Cannot open root device "UUID=4643c03f-299a-4e28-b975-5c95b56244f0" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
List of all bdev filesystems:
 ext3
 ext2
 ext4
 xfs
 btrfs

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
CPU: 1 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.13.4-gentoo-dist #1
Hardware name: Gigabyte Technology Co., Ltd. X870 AORUS ELITE WIFI7 ICE/X870 AORUS ELITE WIFI7 ICE, BIOS F2 08/14/2024
Call Trace:
 <TASK>
 dump_stack_lvl+0x5d/0x80
 panic+0x155/0x327
 mount_root_generic+0x1ce/0x270
 prepare_namespace+0x1ec/0x240
 kernel_init_freeable+0x2d7/0x310
 ? __pfx_kernel_init+0x10/0x10
 kernel_init+0x1a/0x140
 ret_from-fork+0x31/0x50
 ? __pfx_kernel_init+0x10/0x10
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Kernel Offset: 0x22000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

How should I interpret this?
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
Goto page Previous  1, 2, 3
Page 3 of 3

 
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