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
  • 1
  • 2
  • 3
  • 4
  • Next
Author
Message
xevra
n00b
n00b
User avatar
Posts: 52
Joined: Tue Feb 04, 2025 9:09 pm
Location: United States

[Solved] Installing Ethernet Drivers on Installation Media

  • Quote

Post by xevra » Wed Feb 05, 2025 12:48 am

Hello!

I have thusfar been unsuccessful in accessing the internet on any bootable media from my new computer.

I have installed gentoo on a few broken laptops in the past month or two (from the minimum install CD), but am otherwise fairly new. I had no trouble configuring dhcpcd, sshd, or openRC on those devices.

This computer is a newly assembled a desktop computer, and I think the problem is that I am missing a driver for Ethernet connection.

The machine is connected to the same ethernet cable these other machines were connected to, and to the same port on the router.

My motherboard did not come with a manual, so I am never buying from Gigabyte again, but moreover: here's what I have tried so far (also apologies; I cannot copy/paste, so I am copying these by hand):
-------------------------------------------------------------------------------
Running

Code: Select all

ip link
displays:

Code: Select all

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
As there are no devices aside from the loopback, my next search was:

Code: Select all


lspci -k | less
The two entries I thought were relevant were:

Code: Select all

06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 0c)
         Subsystem: Gigabyte Technology Co., Ltd Device e000
         Kernel modules: r8169
07:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8922AE 802.11be PCIe Wireless Network Adapter (rev 01)
         Subsystem: Realtek Semiconductor Co., Ltd RTL8922AE 802.11be PCIe Wireless Network Adapter
This is why I assume that the issue is with the drivers; the Ethernet controller shows up in lspci.

The next thing I tried to do was download the driver for the RTL8125. It is the second file here: https://www.realtek.com/Download/List?cate_id=584

It comes as a file.tar.bz2

I copied it onto a second flash drive, and copied it onto the filesystem for the minimum install cd, only to discover that make and gcc are not included.

Following this thread: viewtopic-t-1005562-start-0.html I attempted to install Gentoo from SystemRescue as well, but encountered the exact same issue at the exact same time.

I also tried the Gentoo liveCD with the plasma GUI. This has make and gcc. From the liveCD, I could still not connect to the internet without fixing anything (I did try).

After copying the files and unpacking the tarball, I attempted:

Code: Select all

cd ~/Desktop/r8125-9.014.01
sudo su
./autorun.sh
However, this time I got the following errors:

Code: Select all

Check the old driver and unload it.
rmmod r8169
Build the module and install
make[2]: *** /lib/modules/6.6.74-gentoo-dist/build: No such file or directory. Stop.
make[1]: *** [Makefile:201: clean] Error 2
make: ** [Makefile:48: clean] Error 2

This is a freshly loaded liveCD, so if there's anything I need to do first, assume I haven't done it.

Finally, I gave up and tried to install debian. I downloaded and installed the latest bookworm iso, and Debian also couldn't find a network driver. This is my best indication that something is wrong, because Debian has never failed me like this before.

I compiled the driver on my other debian computer, and loaded it onto a USB, and Debian says:

Code: Select all

Cannot read removable media, or no drivers found
So I'm clearly missing something here, and I could use some assistance.
Last edited by xevra on Mon Mar 03, 2025 3:35 am, edited 1 time in total.
Top
b11n
Guru
Guru
User avatar
Posts: 301
Joined: Wed Mar 26, 2003 8:15 am
Location: New Zealand

  • Quote

Post by b11n » Wed Feb 05, 2025 1:45 am

try and

Code: Select all

modprobe r8169
and see if your ethernet card shows in `ip link`
Is there gas in the caaaaar?
Yes, there's gas in the caaaar
Top
xevra
n00b
n00b
User avatar
Posts: 52
Joined: Tue Feb 04, 2025 9:09 pm
Location: United States

  • Quote

Post by xevra » Wed Feb 05, 2025 2:12 am

Thanks for the suggestion,

I tried this on both the minimal install and the liveCD. No new devices appear in `ip link`

Also, on a fresh boot of the minimal install, I ran:

Code: Select all

lsmod | grep r8169
It comes up with:

Code: Select all

r8169 102400 0
This indicates to me that r8169 was already running in the kernel.
Top
b11n
Guru
Guru
User avatar
Posts: 301
Joined: Wed Mar 26, 2003 8:15 am
Location: New Zealand

  • Quote

Post by b11n » Wed Feb 05, 2025 2:13 am

Hm, I saw somewhere the 8125 should work under the 8169 driver. Sorry, that's all I've got.
Is there gas in the caaaaar?
Yes, there's gas in the caaaar
Top
xevra
n00b
n00b
User avatar
Posts: 52
Joined: Tue Feb 04, 2025 9:09 pm
Location: United States

  • Quote

Post by xevra » Wed Feb 05, 2025 2:28 am

Ah, that's okay. Thanks for trying to help!

Maybe someone else will come along.
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Wed Feb 05, 2025 2:53 am

Welcome to the forums. I think it is unusual for lspci to report the kernel module for a network device, but then ip link not to show it. Is there anything relevant in dmesg noting that the kernel found your card? I wonder if your card needs firmware, and without the firmware, is not functional enough for ip link to report it.
Top
xevra
n00b
n00b
User avatar
Posts: 52
Joined: Tue Feb 04, 2025 9:09 pm
Location: United States

  • Quote

Post by xevra » Wed Feb 05, 2025 3:22 am

Hi, and thank you!

I'm not sure how to interpret *dmesg*, but here are some lines I think are relevant (because the numbers 8125 and 8922 match the ethernet and network devices, and because 6:00 and 7:00 match those devices in the *lspci* call):

Code: Select all

[    0.451186] pci 0000:04:00.0: PCI bridge to [bus 05]
[    0.451235] pci 0000:06:00.0: [10ec:8125] type 00 class 0x020000
[    0.451254] pci 0000:06:00.0: reg 0x10: [io  0xd000-0xd0ff]
[    0.451280] pci 0000:06:00.0: reg 0x18: [mem 0xdeb00000-0xdeb0ffff 64bit]
[    0.451297] pci 0000:06:00.0: reg 0x20: [mem 0xdeb10000-0xdeb13fff 64bit]
[    0.451413] pci 0000:06:00.0: supports D1 D2
[    0.451414] pci 0000:06:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.451648] pci 0000:04:02.0: PCI bridge to [bus 06]
[    0.451651] pci 0000:04:02.0:   bridge window [io  0xd000-0xdfff]
[    0.451653] pci 0000:04:02.0:   bridge window [mem 0xdeb00000-0xdebfffff]
[    0.451698] pci 0000:07:00.0: [10ec:8922] type 00 class 0x028000
[    0.451715] pci 0000:07:00.0: reg 0x10: [io  0xc000-0xc0ff]
[    0.451735] pci 0000:07:00.0: reg 0x18: [mem 0xdea00000-0xdeafffff 64bit]
[    0.451846] pci 0000:07:00.0: PME# supported from D0 D3hot D3cold
[    0.452042] pci 0000:04:03.0: PCI bridge to [bus 07]
If you're wondering how I copied and pasted this without internet, I copied /var/log/dmesg to a flash drive.

Also, this is the motherboard: https://www.aorus.com/en-us/motherboard ... y-Features

Thanks for taking the time to help!
Top
pietinger
Administrator
Administrator
Posts: 6620
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Wed Feb 05, 2025 7:59 am

This is your motherboard:
https://github.com/torvalds/linux/commi ... e2fc5db1df

Try to boot with a 6.13.1 kernel. If this does not work you really need 6.14.
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56080
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Wed Feb 05, 2025 10:47 am

xevra,

Code: Select all

06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 0c)
         Subsystem: Gigabyte Technology Co., Ltd Device e000
         Kernel modules: r8169 
That kernel module has been around for a very long time. Realtek/kerned devs keep adding to it.
As you have a 2.5GbE device, I'll guess that your kernel is too old.

Adding to the install media is difficult, so don't. :)
You appear to have got the hang of sneakernet, so install using that instead, at least, until you boot your own testing kernel .

That post is nearly 20 years old. The idea still works but some of the paths have changed.

The Gentoo testing kernel is important. The install media has the stable kernel and we already know that that doesn't work for you.
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 » Wed Feb 05, 2025 2:09 pm

Thank you both for the information, suggestions, and links.

Fortunately, it seems like it will be easier to sneakernet with a USB than optical disks, and I have another machine with a working Gentoo installation (along with portage).

The pull request seems to suggest that version 6.13 of the kernel may be new enough, and again, quite fortunately, there is both a distribution kernel and a binary for version 6.13.1 (though they are considered to be in testing).

If I am understanding you correctly, then I will be completing most of the installation of the operating system (from the Stage 3 tarball to boot) in sneakernet mode. This means that each package I need to install along the way will need to be copied onto the USB stick.

There are steps in the handbook I will need to skip (the emerge-websync, setting up cron, etc...) until after I boot.

I will need to sneakernet many files for emerge to work properly.

Following you instructions in the other thread, I can

Code: Select all

emerge <target> -fp
to identify urls that I will need, and use wget to download them on another machine, which doesn't even need to be a Gentoo machine.

Have I interpreted that correctly?

This will take me some time to work through.
Thank you for the help!
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56080
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Wed Feb 05, 2025 6:13 pm

xevra,

You don't need many files.

A portage snapshot.
A Stage 3
A kernel - 6.13.x
A boot loader is optional but advised - say grub.
efibootmgr will be good too, to point your firmware at your Gentoo.

If you build your own kernel, no initrd is required unless you need user space tools to expose the root filesystem, or have /usr and or /var on their own partitions.
Going this way means that everything required to mount root must be built into the kernel.

If you want a dracut or genkernel initrd, than you need all the userspace sources that they will want to install.

What you said is essentially correct.

== edit ==

Gentoo only stabilises LTS kernels. There is too much testing to do to do more than that, so don't worry about the Gentoo testing status of 6.13.x
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
freke
Veteran
Veteran
Posts: 1136
Joined: Thu Jan 23, 2003 3:17 pm
Location: Somewhere in Denmark
Contact:
Contact freke
Website

  • Quote

Post by freke » Wed Feb 05, 2025 6:38 pm

NeddySeagoon wrote:Gentoo only stabilises LTS kernels. There is too much testing to do to do more than that, so don't worry about the Gentoo testing status of 6.13.x
Well..... 6.12 is LTS but not stabilized here a couple of months later ;)
Top
xevra
n00b
n00b
User avatar
Posts: 52
Joined: Tue Feb 04, 2025 9:09 pm
Location: United States

  • Quote

Post by xevra » Wed Feb 05, 2025 9:25 pm

NeddySeagoon wrote:xevra,

You don't need many files.

A portage snapshot.
A Stage 3
A kernel - 6.13.x
A boot loader is optional but advised - say grub.
efibootmgr will be good too, to point your firmware at your Gentoo.

If you build your own kernel, no initrd is required unless you need user space tools to expose the root filesystem, or have /usr and or /var on their own partitions.
Going this way means that everything required to mount root must be built into the kernel.

If you want a dracut or genkernel initrd, than you need all the userspace sources that they will want to install.

What you said is essentially correct.

== edit ==

Gentoo only stabilises LTS kernels. There is too much testing to do to do more than that, so don't worry about the Gentoo testing status of 6.13.x
NeddySeagoon, thank you again for the clarifications.

I do have a few more questions because I am fairly new.

I've been trying to ask intelligent questions up to this point, but it would be less work in the long run for me to ask my stupid questions now as well.
A portage snapshot.
How do I find a portage snapshot, and is it complicated to use / is there a page in the manual I should be reading?
A kernel - 6.13.x
When you say I need a kernel, do you mean the binary itself? So I should compile one on a separate Gentoo distribution and make sure the USE flags don't exclude the hardware on my new machine, and then just copy and paste it?

In the long run, I want to use a distribution kernel because I want it to automatically recompile when I change my use flags and cast the legendary spell:

Code: Select all

emerge --keep-going -e --ask @world
A boot loader is optional but advised - say grub.
I am happy to install grub.

This is also a good time to mention that I eventually want to install gnome, and was planning to use eselect profile to select default/linux/amd64/23.0/desktop/gnome. Is it still possible to do that using this approach?
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56080
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Wed Feb 05, 2025 10:07 pm

xevra,

There is only one stupid question. That's the one you never ask. You never know the answer.

It used to be in the handbook. Snapshots are posted to https://distfiles.gentoo.org/snapshots/ You will want portage-latest.tar.xz or portage-latest.tar.bz2.
You could even cheat an use the copy of the ::gentoo repo on your existing Gentoo install.
Paranoid users can check the gpgsig too.

That takes the place of websync

Code: Select all

A kernel - 6.13.x
In the interests of avoiding building an initrd, I would use gentoo-sources and configure it by hand.

As you have a working gentoo off to one side, you could make a kernel and initrd there that works for both sets of hardware, then copy over the kernel binary, the initrd and the kernel modules.
That works best if you install the kernel on the build box then the modules end up in /lib/modules/<kernel-name> You want the entire /lib/modules/<kernel-name> directory.
As I've said, the initrd is only required if you need user space programs to expose the root filesystem or you need kernel modules to mount the root filesystem.

Its a verybadthing to need to read /lib/modules/<kernel-name> to load a module needed to read /lib/modules/<kernel-name>. :)

This approach is aimed at getting you working networking with no more than a framebuffer console. After that you can add whatever you want.
The idea is to not do more than you need to to to be able to boot your own kernel, or a 6.13.x kernel of some sort and log in as root.
The r8169 driver is very common. You just need a new version but to get that it's easiest if you have a whole kernel.
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 » Thu Feb 06, 2025 4:21 am

NeddySeagoon,

Thank you for your thoughtful answers!

I have unpacked a stage 3 tarball on my machine, and copied over portage-latest.tar.xz

I don't know how to install it.

I attempted to do:

Code: Select all

tar xpvf portage-latest.tar.xz --xattrs-includ='*.*' --numeric-owner -C /usr
and verified that the tarball unpacked at /usr/portage.

However, when I run emerge -fp sys-kernel/gentoo-sources, I get some error messages:

Code: Select all

!!! Section 'gentoo' in repos.conf has location attributes set to nonexistent directory: '/var/db/repos/gentoo'
!!! Invalid Repository Location (not a dir): '/var/db/repos/gentoo'


!!! /etc/portage/make.profile is not a symlink and will probably prevent most mergers.
!!! It should point into a profile within /var/db/repos/gentoo/profiles/
!!! (You can safely ignore this message when syncing. It's harmless.)


!!! Your current profile is invalid. If you have just changed your profile
!!! configuration, you should revert back to the previous configuration.
!!! Allowed actions are limited to --help, --info, --search, --sync, and 
!!! --version
What should my next step be?

Edit: typed wrong extension for portage snapshot.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56080
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Thu Feb 06, 2025 12:09 pm

xevra,

Its been a long time since /usr/portage was the default path fro the ::gentoo repo.
You have two choices.

1. Unpack it to the location given in

Code: Select all

emerge --info
Its close to the top.

Code: Select all

Repositories:

gentoo
    location: /var/db/repos/gentoo
2. edit /etc/portage/repos.conf/gentoo.conf to change the location.

Code: Select all

[gentoo]
location = /var/db/repos/gentoo
Both will make portage find the ::repo,
The first way is preferred, so that you use the system defaults.


The location is in your error message

Code: Select all

!!! Section 'gentoo' in repos.conf has location attributes set to nonexistent directory: '/var/db/repos/gentoo'
!!! Invalid Repository Location (not a dir): '/var/db/repos/gentoo'
A mv will fix it too.
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 » Thu Feb 06, 2025 12:42 pm

NeddySeagoon,

Thank you for helping me find the location where those files belong.

I was able to move them, and to read the news using eselect news read.

However, when I now run emerge -fp sys-kernel/gentoo-sources, I get this error:

Code: Select all

These are the packages that would be fetched, in order:

Calculating dependencies  ... done!
Dependency resolution took 0.37 s (backtrack: 0/20).


>>> Downloading 'http://distfiles.gentoo.org/distfiles/layout.conf'
--2025-02-06 20:35:59--  http://distfiles.gentoo.org/distfiles/layout.conf
Resolving distfiles.gentoo.org... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘distfiles.gentoo.org’
!!! Couldn't download '.layout.conf.distfiles.gentoo.org'. Aborting.
http://distfiles.gentoo.org/distfiles/cpio-2.15.tar.bz2 https://artfiles.org/gnu.org/cpio/cpio-2.15.tar.bz2 https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/cpio/cpio-2.15.tar.bz2 https://ftp.gnu.org/gnu/cpio/cpio-2.15.tar.bz2 

>>> Downloading 'http://distfiles.gentoo.org/distfiles/layout.conf'
--2025-02-06 20:35:59--  http://distfiles.gentoo.org/distfiles/layout.conf
Resolving distfiles.gentoo.org... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘distfiles.gentoo.org’
!!! Couldn't download '.layout.conf.distfiles.gentoo.org'. Aborting.
http://distfiles.gentoo.org/distfiles/linux-6.6.tar.xz https://www.kernel.org/pub/linux/kernel/v6.x/linux-6.6.tar.xz 

>>> Downloading 'http://distfiles.gentoo.org/distfiles/layout.conf'
--2025-02-06 20:35:59--  http://distfiles.gentoo.org/distfiles/layout.conf
Resolving distfiles.gentoo.org... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘distfiles.gentoo.org’
!!! Couldn't download '.layout.conf.distfiles.gentoo.org'. Aborting.
http://distfiles.gentoo.org/distfiles/genpatches-6.6-83.base.tar.xz https://dev.gentoo.org/~mpagano/dist/genpatches/genpatches-6.6-83.base.tar.xz https://dev.gentoo.org/~alicef/dist/genpatches/genpatches-6.6-83.base.tar.xz 

>>> Downloading 'http://distfiles.gentoo.org/distfiles/layout.conf'
--2025-02-06 20:35:59--  http://distfiles.gentoo.org/distfiles/layout.conf
Resolving distfiles.gentoo.org... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘distfiles.gentoo.org’
!!! Couldn't download '.layout.conf.distfiles.gentoo.org'. Aborting.
http://distfiles.gentoo.org/distfiles/genpatches-6.6-83.extras.tar.xz https://dev.gentoo.org/~mpagano/dist/genpatches/genpatches-6.6-83.extras.tar.xz https://dev.gentoo.org/~alicef/dist/genpatches/genpatches-6.6-83.extras.tar.xz
That file is readily available for download. However, I do not know where to put it, or how to let portage know how to find it.

What should my next step be?
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56080
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Thu Feb 06, 2025 1:09 pm

xevra,

Code: Select all

/var/db/repos/gentoo/metadata:
total 352
-rw-r--r--   1 root root    923 Feb 12  2024 AUTHORS
drwxr-xr-x   2 root root   4096 Feb  5 20:28 dtd
drwxr-xr-x   2 root root 155648 Feb  5 20:28 glsa
drwxr-xr-x   2 root root   4096 Oct 31 11:03 install-qa-check.d
-rw-r--r--   1 root root   2461 Aug 26 18:11 layout.conf
There it is.

Download it and put it into /var/db/repos/gentoo/metadata
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 » Thu Feb 06, 2025 2:08 pm

NeddySeagoon,

Having done this, I still get the same error message running emerge -fp sys-kernel/gentoo-sources.

Hold on, the packages are right there in the error message. I discovered this by trying to emerge -fp app-editors/vim, and noticed that I got a different number of error messages.

With this in mind, I added ACCEPT_KEYWORDS="~x86" to my make.conf, following the handbook, and ran the command again:

Code: Select all

These are the packages that would be fetched, in order:

Calculating dependencies  ... done!
Dependency resolution took 0.36 s (backtrack: 0/20).


>>> Downloading 'http://distfiles.gentoo.org/distfiles/layout.conf'
--2025-02-06 21:55:11--  http://distfiles.gentoo.org/distfiles/layout.conf
Resolving distfiles.gentoo.org... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘distfiles.gentoo.org’
!!! Couldn't download '.layout.conf.distfiles.gentoo.org'. Aborting.
http://distfiles.gentoo.org/distfiles/cpio-2.15.tar.bz2 https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/cpio/cpio-2.15.tar.bz2 https://ftp.gnu.org/gnu/cpio/cpio-2.15.tar.bz2 https://artfiles.org/gnu.org/cpio/cpio-2.15.tar.bz2 

>>> Downloading 'http://distfiles.gentoo.org/distfiles/layout.conf'
--2025-02-06 21:55:12--  http://distfiles.gentoo.org/distfiles/layout.conf
Resolving distfiles.gentoo.org... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘distfiles.gentoo.org’
!!! Couldn't download '.layout.conf.distfiles.gentoo.org'. Aborting.
http://distfiles.gentoo.org/distfiles/linux-6.13.tar.xz https://www.kernel.org/pub/linux/kernel/v6.x/linux-6.13.tar.xz 

>>> Downloading 'http://distfiles.gentoo.org/distfiles/layout.conf'
--2025-02-06 21:55:12--  http://distfiles.gentoo.org/distfiles/layout.conf
Resolving distfiles.gentoo.org... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘distfiles.gentoo.org’
!!! Couldn't download '.layout.conf.distfiles.gentoo.org'. Aborting.
http://distfiles.gentoo.org/distfiles/genpatches-6.13-2.base.tar.xz https://dev.gentoo.org/~mpagano/dist/genpatches/genpatches-6.13-2.base.tar.xz https://dev.gentoo.org/~alicef/dist/genpatches/genpatches-6.13-2.base.tar.xz 

>>> Downloading 'http://distfiles.gentoo.org/distfiles/layout.conf'
--2025-02-06 21:55:12--  http://distfiles.gentoo.org/distfiles/layout.conf
Resolving distfiles.gentoo.org... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘distfiles.gentoo.org’
!!! Couldn't download '.layout.conf.distfiles.gentoo.org'. Aborting.
http://distfiles.gentoo.org/distfiles/genpatches-6.13-2.extras.tar.xz https://dev.gentoo.org/~mpagano/dist/genpatches/genpatches-6.13-2.extras.tar.xz https://dev.gentoo.org/~alicef/dist/genpatches/genpatches-6.13-2.extras.tar.xz 
Out of that, I believe the files I want are:

Code: Select all

https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/cpio/cpio-2.15.tar.bz2
https://www.kernel.org/pub/linux/kernel/v6.x/linux-6.13.tar.xz
https://dev.gentoo.org/~mpagano/dist/genpatches/genpatches-6.13-2.base.tar.xz
https://dev.gentoo.org/~mpagano/dist/genpatches/genpatches-6.13-2.extras.tar.xz


Also, am I wrong in thinking that the http and https urls in the same line are duplicates, and I only need one of them?
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56080
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Thu Feb 06, 2025 2:10 pm

xevra,

Yes, you need exactly one copy of each file.
Regards,

NeddySeagoon

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

  • Quote

Post by pietinger » Thu Feb 06, 2025 2:34 pm

xevra wrote:[...] With this in mind, I added ACCEPT_KEYWORDS="~x86" to my make.conf, [...]
Do you really want unstable with ~ for your whole system?

If yes, then you need ACCEPT_KEYWORDS="~amd64" (and not ~x86)... but maybe read before:
https://wiki.gentoo.org/wiki/ACCEPT_KEYWORDS
https://wiki.gentoo.org/wiki//etc/porta ... t_keywords

Maybe you want it only to get the newest kernel? ... then please read:
https://wiki.gentoo.org/wiki/User:Pieti ... el_version
... and later this ...
https://wiki.gentoo.org/wiki/User:Pieti ... figuration
:lol:

Then ... maybe ... only maybe ... you want to choose the newest Gentoo distribution kernel ... see more here:
viewtopic-p-8853594.html#8853594

For this you will need a file in your /etc/portage/package.accept_keywords with this content:

Code: Select all

sys-kernel/gentoo-kernel-bin
-OR-

Code: Select all

sys-kernel/gentoo-kernel
(The name of the file doesn't matter, but I recommend naming it the same as what you are unlocking; so: gentoo-kernel-bin OR gentoo-kernel)
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 » Thu Feb 06, 2025 7:17 pm

pietinger wrote:
xevra wrote:[...] With this in mind, I added ACCEPT_KEYWORDS="~x86" to my make.conf, [...]
Do you really want unstable with ~ for your whole system?

If yes, then you need ACCEPT_KEYWORDS="~amd64" (and not ~x86)... but maybe read before:
https://wiki.gentoo.org/wiki/ACCEPT_KEYWORDS
https://wiki.gentoo.org/wiki//etc/porta ... t_keywords

Maybe you want it only to get the newest kernel? ... then please read:
https://wiki.gentoo.org/wiki/User:Pieti ... el_version
... and later this ...
https://wiki.gentoo.org/wiki/User:Pieti ... figuration
:lol:

Then ... maybe ... only maybe ... you want to choose the newest Gentoo distribution kernel ... see more here:
viewtopic-p-8853594.html#8853594

For this you will need a file in your /etc/portage/package.accept_keywords with this content:

Code: Select all

sys-kernel/gentoo-kernel-bin
-OR-

Code: Select all

sys-kernel/gentoo-kernel
(The name of the file doesn't matter, but I recommend naming it the same as what you are unlocking; so: gentoo-kernel-bin OR gentoo-kernel)
Thank you for the suggestions!

And also, thanks NeddySeagoon for the clarification.

I have created a file, /etc/portage/package.accept_keywords/gentoo-sources with the contents:

Code: Select all

sys-kernel/* ~amd64
virtual/dist-kernel ~amd64
dev-util/pahole
app-text/ascii-doc
This way, I have successfully installed the distribution kernel by following the handbook.

It is now time to install grub. I used the same method to install several grub dependencies, such as efivar and efibootmgr.

However, when attempting to emerge grub, some of my wgets are failing:

Code: Select all

wget http://distfiles.gentoo.org/distfiles/grub-2.12-bash-completion.patch.gz
wget https:/dev.gentoo.org/~floppym/dist/grub-2.12-bash-completion.patch.gz
wget http://distfiles.gentoo.org/distfiles/dejavu-sans-ttf-2.37.zip
wget https://www.mirrorservice.org/sites/rftp.gnu.org/gnu/unifont/unifont-15.0.06/unifont-15.0.06.pcf.gz
In the relevant cases, wget has no trouble connecting to http://distfiles.gentoo.org, (part of the error message says "... connected"), but gets a 404 when sending the http request.

Does anybody know why these might be failing?

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

  • Quote

Post by NeddySeagoon » Thu Feb 06, 2025 8:38 pm

xevra,

The 404 error means that the files are not on the mirror system any longer.
Maybe the version of grub you are trying to build has been removed from the up to date ::gentoo repo.

They will still be on the internet so try your favourite search engine.
You don't need to worry about tampering. Portage checks the file size and hash and will reject any files that don't match.

https://www.alexxy.name/grub-2.12-bash- ... n.patch.gz
https://unifoundry.com/pub/unifont/unif ... .06.pcf.gz

https://www.alexxy.name/ has a certificate problem but portage will not use corrupt/tampered files.

I have dejavu-sans-ttf-2.37.zip so it should be in https://bloodnoc.org/~roy/olde-distfiles/ too.
That is 800G of old distfiles on a KVM. There are over 100,000 files there now so it take a while to autoindex that page.

Code: Select all

wget https://bloodnoc.org/~roy/olde-distfiles/dejavu-sans-ttf-2.37.zip
should do nicely.
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 » Thu Feb 06, 2025 11:12 pm

NeddySeagoon,

Thank you! I was able to get those files with no further difficulty, and I was able to energe grub and run grub_install.

On a reboot, grub loaded, and Gentoo attempted to boot.

It did not succeed. However, I was able to copy the rdsosreport.txt to a flash drive. The last bits are:

Code: Select all

[    5.684709] sp5100-tco sp5100-tco: initialized. heartbeat=60 sec (nowayout=0)
[    5.685900] nvme 0000:02:00.0: platform quirk: setting simple suspend
[    5.686232] nvme nvme0: pci function 0000:02:00.0
[    5.703665] nvme nvme0: missing or invalid SUBNQN field.
[    5.730866] nvme nvme0: allocated 32 MiB host memory buffer (1 segment).
[    5.774406] nvme nvme0: 8/0/0 default/read/poll queues
[    5.778722]  nvme0n1: p1 p2 p3
[  200.256672] dracut Warning: Could not boot.
[  200.260305] dracut Warning: /dev/disk/by-uuid/03F4-8F7A does not exist
+ '[' -f /run/initramfs/init.log ']'
Usually, when I can't boot, it's because I've messed up my /etc/fstab file, so I thought it might save time to include it (or at least the parts not commented out):

Code: Select all

/dev/nvme0n1p1	/efi	vfat	umask=0077 0 2
/dev/nvme0n1p2	none	swap	sw	0 0
/dev/nvme0n1p3	/	xfs	defaults,noatime 0 1
Where also, lsblk has this to say about my solid state drive:

Code: Select all

nvme0n1     259:0    0   3.6T  0 disk 
├─nvme0n1p1 259:1    0     1G  0 part /efi
├─nvme0n1p2 259:2    0   128G  0 part [SWAP]
└─nvme0n1p3 259:3    0   3.5T  0 part /
I am aware that 128 Gb is a lot of swap, but I run pretty big simulations sometimes and I don't want things to get killed.

What do you think I should do next?
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2180
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Thu Feb 06, 2025 11:33 pm

xevra wrote:NeddySeagoon,

Thank you! I was able to get those files with no further difficulty, and I was able to energe grub and run grub_install.

On a reboot, grub loaded, and Gentoo attempted to boot.

It did not succeed. However, I was able to copy the rdsosreport.txt to a flash drive. The last bits are:

Code: Select all

[    5.684709] sp5100-tco sp5100-tco: initialized. heartbeat=60 sec (nowayout=0)
[    5.685900] nvme 0000:02:00.0: platform quirk: setting simple suspend
[    5.686232] nvme nvme0: pci function 0000:02:00.0
[    5.703665] nvme nvme0: missing or invalid SUBNQN field.
[    5.730866] nvme nvme0: allocated 32 MiB host memory buffer (1 segment).
[    5.774406] nvme nvme0: 8/0/0 default/read/poll queues
[    5.778722]  nvme0n1: p1 p2 p3
[  200.256672] dracut Warning: Could not boot.
[  200.260305] dracut Warning: /dev/disk/by-uuid/03F4-8F7A does not exist
+ '[' -f /run/initramfs/init.log ']'
You should show the entire report, just the later part of error messages usually does not help.

Having said that my guess is that you most likely have kernel command line using wrong root=XXX where that XXX is wrong or something similar for specify where is rootfs.
Top
Post Reply

99 posts
  • 1
  • 2
  • 3
  • 4
  • Next

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

 

 

magic