Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

[Solved] Installing Ethernet Drivers on Installation Media

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
99 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
Author
Message
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56076
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Mar 01, 2025 9:04 pm

xevra,

Your /boot is good. What of your grub.cfg?
That's in /boot/grub/
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
xevra
n00b
n00b
User avatar
Posts: 52
Joined: Tue Feb 04, 2025 9:09 pm
Location: United States

  • Quote

Post by xevra » Sat Mar 01, 2025 9:08 pm

NeddySeagoon wrote:
I suppose you do have initrd support enabled in the kernel?
NeddySeagoon,

I had "ugrd' enabled in the USE flags, so the initramfs should be enabled in the kernel. The distribution kernel requires that you use one or the other.

On my other machine, I successfully booted Gentoo using a distribution kernel compiled with the same flags.

Additionally, when I try to emerge the distribution kernel again, with "--newuse", it says there is nothing to be done.

However, it's always better to put eyes on it than trust that I executed the same command on both machines. Is there a way for me to explicitly check?
NeddySeagoon wrote: They should both be in the grub menu
The grub menu presently suggests:

Code: Select all

Gentoo GNU/Linux
Advanced options for Gentoo GNU/Linux
UEFI Firmware Settings
I only see one Gentoo listing, and it's not specific enough for me to identify it as one or the other of those files.
NeddySeagoon wrote: One boot stanza in grub.cfg should say

Code: Select all

echo "Loading kernel ..."
kernel vmlinuz-6.13.4-gentoo-dist ...
echo "Loading initrd ..." 
initrd initramfs-6.13.4-gentoo-dist.img
After running a fresh grub-mkconfig, it looks like this: pastebin
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56076
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Mar 01, 2025 9:17 pm

xevra,

That's good, almost

Code: Select all

	echo	'Loading Linux 6.13.4-gentoo-dist ...'
	linux	/boot/vmlinuz-6.13.4-gentoo-dist root=UUID=4643c03f-299a-4e28-b975-5c95b56244f0 ro net.ifnames=0 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/amd-uc.img /boot/initramfs-6.13.4-gentoo-dist.img
I didn't see /boot/amd-uc.img in your /boot. I don't knew if that's a problem, with it missing.
As I don't use grub, I don't know how it got autodetected unless it was in /boot

Do you have

Code: Select all

CONFIG_BLK_DEV_INITRD=y
set in your kernel?
The kernel will not use the initrd without it.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
xevra
n00b
n00b
User avatar
Posts: 52
Joined: Tue Feb 04, 2025 9:09 pm
Location: United States

  • Quote

Post by xevra » Sat Mar 01, 2025 9:32 pm

NeddySeagoon wrote:xevra,

That's good, almost

Code: Select all

	echo	'Loading Linux 6.13.4-gentoo-dist ...'
	linux	/boot/vmlinuz-6.13.4-gentoo-dist root=UUID=4643c03f-299a-4e28-b975-5c95b56244f0 ro net.ifnames=0 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/amd-uc.img /boot/initramfs-6.13.4-gentoo-dist.img
I didn't see /boot/amd-uc.img in your /boot. I don't knew if that's a problem, with it missing.
As I don't use grub, I don't know how it got autodetected unless it was in /boot

Do you have

Code: Select all

CONFIG_BLK_DEV_INITRD=y
set in your kernel?
The kernel will not use the initrd without it.
NeddySeagoon,

I can confirm that CONFIG_BLK_DEV_INITRD=y is set in /boot/config-6.13.4-gentoo-dist
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56076
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Mar 01, 2025 9:37 pm

xevra,

Does /boot/amd-uc.img exist ?
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
xevra
n00b
n00b
User avatar
Posts: 52
Joined: Tue Feb 04, 2025 9:09 pm
Location: United States

  • Quote

Post by xevra » Sat Mar 01, 2025 9:40 pm

pingtoo wrote:However I like to point out your SHOULD NOT get same kernel panic. At least the line that said
VFS: Cannot open root device "UUID=4643c03f-299a-4e28-b975-5c95b56244f0" or unknown-block(0,0)
would have changed to
VFS: Cannot open root device "PARTUUID=6f7921b9-6801-4905-9a33-506de5659ba4" or unknown-block(0,0)
I know I may be picky but since I am not set in front of the computer I have no way to judge what happen.

So if really come out exact same error messages then it mean your change to grub.cfg did not take effect, or you pick a wrong line to boot.

If PARTUUID=... still does not work then most likely your kernel have some problem detect nvme device.
Earlier, I was able to get a kernel panic method with the PARTUUID, and was still getting unknown-block(0,0), -6 errors, but "PARTUUID" was in the error.

I'm not sure I had done that correctly however, because while I could find and replace UUID=4643... with PARTUUID=6f... there's two other kinds of places where the UUID shows up. There's one kind of place where it's just part of and address, and another kind of place where it is in an --fs-uuid. At one point, I had tried changing that to --pt-uuid and replacing the value, following this, but I'm not sure that worked either. I'm not sure this person's work was ever merged upstream.

Following this, I ran another grub-mkconfig to reset what I had done, because it didn't seem right.

Edit: I don't know why I said "null-device." I meant "unknown-block"
Last edited by xevra on Sat Mar 01, 2025 9:48 pm, edited 1 time in total.
Top
xevra
n00b
n00b
User avatar
Posts: 52
Joined: Tue Feb 04, 2025 9:09 pm
Location: United States

  • Quote

Post by xevra » Sat Mar 01, 2025 9:43 pm

NeddySeagoon wrote:xevra,

Does /boot/amd-uc.img exist ?
Yes, it is 145Kb, according to ls.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56076
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Mar 01, 2025 9:48 pm

xevra,

The numbers in

Code: Select all

unknown-block(0,0)
here (0,0) are the kernel major and minor device numbers.
(0,0) means that the kernel cannot find any block devices at all.

That's because the initrd didn't do anything.
Is

Code: Select all

CONFIG_BINFMT_SCRIPT=y
set?

The initrd is a root filesystem in a file. The kernel mounts it as root then executes the script called init.
The above option is required to permit scripts to execute.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
xevra
n00b
n00b
User avatar
Posts: 52
Joined: Tue Feb 04, 2025 9:09 pm
Location: United States

  • Quote

Post by xevra » Sat Mar 01, 2025 9:54 pm

NeddySeagoon,

Thanks for the explanation.

I can confirm that option is set.

Thank you,
Xevra
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56076
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Mar 01, 2025 9:58 pm

xevra,

There is a list of devices at /usr/src/linux/Documentation/admin-guide/devices.txt
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
xevra
n00b
n00b
User avatar
Posts: 52
Joined: Tue Feb 04, 2025 9:09 pm
Location: United States

  • Quote

Post by xevra » Sat Mar 01, 2025 10:00 pm

NeddySeagoon wrote:xevra,

There is a list of devices at /usr/src/linux/Documentation/admin-guide/devices.txt
That's a negative. There is a /usr/src/linux/Documentation folder, but there is no admin-guide within that folder.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56076
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Mar 01, 2025 10:17 pm

xevra,

It's in git too https://github.com/torvalds/linux/blob/ ... evices.txt
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
pietinger
Moderator
Moderator
Posts: 6614
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Sat Mar 01, 2025 10:32 pm

xevra wrote:[...] nor Ubuntu, [..] have boot media with 6.13 yet.
Yes, the newest Ubuntu 24.10 has 6.11 ... but ... Ubuntu do a lot of patches for its kernel ... so there is a chance (but I dont know) that the needed ethernet module is in there ... just try it ;-)
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
xevra
n00b
n00b
User avatar
Posts: 52
Joined: Tue Feb 04, 2025 9:09 pm
Location: United States

  • Quote

Post by xevra » Sat Mar 01, 2025 11:01 pm

pietinger wrote:
xevra wrote:[...] nor Ubuntu, [..] have boot media with 6.13 yet.
Yes, the newest Ubuntu 24.10 has 6.11 ... but ... Ubuntu do a lot of patches for its kernel ... so there is a chance (but I dont know) that the needed ethernet module is in there ... just try it ;-)
My friends, we have internet.

We still don't have ethernet, but we have wifi, which feels backwards to me, but I'll take it!
Top
xevra
n00b
n00b
User avatar
Posts: 52
Joined: Tue Feb 04, 2025 9:09 pm
Location: United States

  • Quote

Post by xevra » Sun Mar 02, 2025 12:50 am

I have managed to encounter the same kernel panic while trying to web install.

I have about a dozen other things I want to try now, but that will be tomorrow.

We have wifi and sshd. No more sneakernet. That is progress.
Top
pietinger
Moderator
Moderator
Posts: 6614
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Sun Mar 02, 2025 1:00 am

xevra wrote:[...] We still don't have ethernet, but we have wifi, which feels backwards to me, but I'll take it!
:lol:

@Neddy: @xevra is using our Gentoo-distribution-kernel ... which has everything which is necessary for an initramfs ... most important is in grub.cfg the line:

Code: Select all

initrd   /boot/amd-uc.img /boot/initramfs-6.13.4-gentoo-dist.img
below of

Code: Select all

linux   /boot/vmlinuz-6.13.4-gentoo-dist root=UUID=....
So, for me it looks correct. ( /boot/amd-uc.img is the CPU microcode for your AMD; u means µ)
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56076
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Mar 02, 2025 1:57 pm

pietinger,

Yes, it all looks correct but it doesn't work, so its not. :)

xevra,

You may have two different places on your system called boot. boot is a partition /boot (leading /) is a directory on the root filesystem.
For updating the kernel, the boot partition is normally mounted at /boot, so they look to be the same.
When you forget to mount the boot partition on the /boot mount point, everything goes into the /boot directory on the root partition.
That's not an error ... yet.

When grub is doing its thing, the kernel filesystem tree does not exist. It has to make its own arrangements to read the files it needs.
It cannot call the kernel as the kernel is not yen loaded. Grub is going to do that.

We can tell from

Code: Select all

	search --no-floppy --fs-uuid --set=root 4643c03f-299a-4e28-b975-5c95b56244f0
	echo	'Loading Linux 6.13.4-gentoo-dist ...'
	linux	/boot/vmlinuz-6.13.4-gentoo-dist root=UUID=4643c03f-299a-4e28-b975-5c95b56244f0 ro net.ifnames=0 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/amd-uc.img /boot/initramfs-6.13.4-gentoo-dist.img
That you do indeed have a separate boot partition. Its UUID is 4643c03f-299a-4e28-b975-5c95b56244f0 which is different to root=UUID=4643c03f-299a-4e28-b975-5c95b56244f0

After all that, please check the following ...
With the boot partition mounted at /boot

Code: Select all

ls -l /boot 
should show lots of files.
With the boot partition not mounted,

Code: Select all

ls -l /boot
should show nothing. If there are files there, it shows that you forgot to mount the boot partition at some time. Grub will not find them.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
pietinger
Moderator
Moderator
Posts: 6614
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Sun Mar 02, 2025 3:57 pm

NeddySeagoon wrote:[...] That you do indeed have a separate boot partition. [...]
I am sorry, I have not seen, :oops: I have only looked at his installation routine description:

Code: Select all

# 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
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
xevra
n00b
n00b
User avatar
Posts: 52
Joined: Tue Feb 04, 2025 9:09 pm
Location: United States

  • Quote

Post by xevra » Sun Mar 02, 2025 4:24 pm

Okay, I have more things to try, but I was able to boot the stable kernel from a web install using dracut.

Still no ethernet, and I haven't actually configured wpa-supplicant yet, and my whole screen is yellow, but dhcpcd does find my wifi card.

Have some errands to run, but we have achieved first boot.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56076
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Mar 02, 2025 8:45 pm

pietinger,

boot and the ESP may be same partition. I can't tell.
grub.cfg tells that gpubs root is not the same partition as the kernels root.

All the boot files in the ESP works, as long as no symlinks are required.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
xevra
n00b
n00b
User avatar
Posts: 52
Joined: Tue Feb 04, 2025 9:09 pm
Location: United States

  • Quote

Post by xevra » Sun Mar 02, 2025 9:55 pm

The yellow screen was fixed by installing x11-drivers/nvidia-drivers
Top
xevra
n00b
n00b
User avatar
Posts: 52
Joined: Tue Feb 04, 2025 9:09 pm
Location: United States

  • Quote

Post by xevra » Sun Mar 02, 2025 10:26 pm

wpa-supplicant is now configured (although the ip keeps jumping around because I suspect NetworkManager and wpa_supplicant are fighting for control of the device, but I will remedy this is in the next installation by just installing wpa_supplicant on its own).

I have successfully installed neofetch over the wifi:

Code: Select all


         -/oyddmdhs+:.                xevra@Pharaon 
     -odNMMMMMMMMNNmhy+-`             ------------- 
   -yNMMMMMMMMMMMNNNmmdhy+-           OS: Gentoo Linux x86_64 
 `omMMMMMMMMMMMMNmdmmmmddhhy/`        Host: X870 AORUS ELITE WIFI7 ICE -CF-WCP 
 omMMMMMMMMMMMNhhyyyohmdddhhhdo`      Kernel: 6.12.16-gentoo-dist 
.ydMMMMMMMMMMdhs++so/smdddhhhhdm+`    Uptime: 10 mins 
 oyhdmNMMMMMMMNdyooydmddddhhhhyhNd.   Packages: 442 (emerge) 
  :oyhhdNNMMMMMMMNNNmmdddhhhhhyymMh   Shell: bash 5.2.37 
    .:+sydNMMMMMNNNmmmdddhhhhhhmMmy   Terminal: /dev/pts/0 
       /mMMMMMMNNNmmmdddhhhhhmMNhs:   CPU: AMD Ryzen 9 9900X (24) @ 5.658GHz 
    `oNMMMMMMMNNNmmmddddhhdmMNhs+`    GPU: NVIDIA TITAN V 
  `sNMMMMMMMMNNNmmmdddddmNMmhs/.      GPU: AMD ATI Radeon Graphics 
 /NMMMMMMMMNNNNmmmdddmNMNdso:`        Memory: 606MiB / 61871MiB 
+MMMMMMMNNNNNmmmmdmNMNdso/-
yMMNNNNNNNmmmmmNNMmhs+/-`                                     
/hMMNNNNNNNNMNdhs++/-`                                        
`/ohdmmddhys+++/:.`
  `-//////:--.

Thank you all for helping me get this far. At this point I have a functional computer, and the wifi card was one of the key selling points of this motherboard, so I could make do.

However, the scientist in me wants to continue debugging the ethernet drivers. If you would like to keep investigating alongside me, I would appreciate your help.

I think the issues I was having before were caused by one of three things:
- -march=native with hardware that is too new
- ugrd
- 6.13 itself.
All three of these things worked together on my other computer, but this combination didn't work on my new computer.
I'm going to try turning them back on one at a time.

Neddy,

Even on the successfully booted install, there is no "/usr/src/linux/Documentation/admin-guide" folder. I suspect that it is removed from the version of the linux kernel repository which is shipped as part of the distribution kernel.
That you do indeed have a separate boot partition. Its UUID is 4643c03f-299a-4e28-b975-5c95b56244f0 which is different to root=UUID=4643c03f-299a-4e28-b975-5c95b56244f0
Even a CRTL-F reveals that these are the same devices. I suspect that this is something funny about the distribution kernel.

I can confirm that the SSD only has the three partitions.(/efi, swap, and /)

Thanks
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56076
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Mar 02, 2025 10:33 pm

xevra,

You can have wpa-supplicant and NetworkManager installed but you must only start NetworkManager. It will use wpa-supplicant.

Your wired network needs the 6.13 kernel but you have 6.12.
There is no need for a reinstall.

You can add the 6.13 kernel to your install and choose which one to boot from the grub menu.
If 6.13 is still broken, it a menu choice to go back to 6.12
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
xevra
n00b
n00b
User avatar
Posts: 52
Joined: Tue Feb 04, 2025 9:09 pm
Location: United States

  • Quote

Post by xevra » Sun Mar 02, 2025 11:28 pm

NeddySeagoon wrote:xevra,

You can have wpa-supplicant and NetworkManager installed but you must only start NetworkManager. It will use wpa-supplicant.

Your wired network needs the 6.13 kernel but you have 6.12.
There is no need for a reinstall.

You can add the 6.13 kernel to your install and choose which one to boot from the grub menu.
If 6.13 is still broken, it a menu choice to go back to 6.12
NeddySeagoon,

It was just as you said.

I am now running 6.13 and my ethernet device is working.

Thank you!
Top
Post Reply

99 posts
  • Previous
  • 1
  • 2
  • 3
  • 4

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy