I'm a good amount of the way through my Gentoo installation. I chose to go with the musl stage 3 archive. I used systemrescuecd for the installation, and shortly after some installing the kernel and some minor kernel configuration, I discovered this system was bootable as the GRUB bootloader on the live CD I used had the ability to search for a Linux installation and boot into it.
I don't have users set up yet, and I don't have grub installed yet, if that's any indication of where I'm at in the installation process. I had just set up root password before I found out I could boot into the installation.
I've done most of everything I need the graphical environment for, and Ethernet works just fine in my booted Gentoo installation, I'm just stuck with setting up WiFi.
Here are some command outputs and settings. Apologies, I am leaving out some potentially irrelevant information (denoted by an ellipsis) as I'm typing this up with my phone, including command outputs.
Code: Select all
# lspci | grep RTL8852
04:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8852AE 802.11ax PCIe Wireless Network Adapter
Code: Select all
# ifconfig -a
eno1: flags=4099<UP, BROADCAST,MULTICAST> mtu 1500 ether...
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1...
# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536... link/loopback...
2: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500... link/ether...
Code: Select all
# ifconfig wlan0 up
wlan0: ERROR while getting interface flags: No such device
According to a few different sources on forums found in Google searching, this driver module should be present in the current kernel version.
I decided to attempt to install the rtw89 drivers from lfinger's GitHub, but it failed to compile. I no longer have the output, but essentially it couldn't find /lib/modules/6.6.14-1-lts/
That's because the directory 6.6.14-1-lts does not exist in /lib/modules/. What I do have there is this:
Code: Select all
# ls/lib/modules
6.6.21-gentoo-dist-hardened
Code: Select all
SHELL := /bin/bash
KVER ?= $(shell uname -r)
...
Code: Select all
SHELL := /bin/bash
#KVER ?= $(shell uname -r)
KVER ?= 6.6.21-gentoo-dist-hardened
Modprobe check according to the GitHub's readme:
Code: Select all
# modprobe rtw89.
modprobe: FATAL: Module rtw89 not found in directory /lib/modules/6.6.14-1-lts
I try a few different module names: rtw89, rtw_8852ae, rtw89core, rtw89_pci, rtw89pci, just trying to find some semblance of things working semi-correctly. None of these modules are found, and modprobe returns the same error each time.
I try this:
Code: Select all
# modprobe --set-version 6.6.21-gentoo-dist-hardened rtw89
modprobe: FATAL: Module rtw89 no found in directory /lib/modules/6.6.21-gentoo-dist-hardened
Ok, at this point I decide to walk through the driver GitHub's readme and find there's a workaround for Lenovo and HP laptop bios not handling PCIE properly. I have a Lenovo laptop. link to the readme
I make an attempt:
Code: Select all
# cp 70-rtw89.conf /etc/modprobe.d/
cp: cannot create regular file '/etc/modprobe.d/': Not a directory
Just to make sure I'm not going crazy:
Code: Select all
# ls -al /etc | grep modprobe
At this point I find on what I deem to be the last remaining forum post on the Internet that I haven't yet seen about setting up this chip/driver, that again confirms that this wireless chip should have drivers supported by default in the latest kernel, and it tells me where in the menuconfig I can find it. This is how it is setup by default:
Code: Select all
Device Drivers --->
-*- Network device support
[*] Wireless LAN --->
[*] Realtek devices
<M> Realtek 802.11ax wireless chips support --->
<M> Realtek 8851BE PCI wireless network (Wi-Fi 6) adapter
<M> Realtek 8852AE ...
<M> Realtek 8852BE ...
<M> Realtek 8852CE ... (Wifi 6E) adapter
[ ] Realtek rtw89 debug message support
[ ] Realtek rtw89 debugfs support
I've been trying to get this figured out all day now and I just don't know what's going on anymore, I'm seeing a lot of strange behavior and can't figure out where I misstepped.
Some side notes:
Windows wifi continues to work. SystemRescueCD wifi works out of the box, it automatically gets the chip running and I just choose a network in the GUI, and it has no trouble at all. Not a hardware issue.
Somewhere in this process I accidentally rm -rf'ed the folder for my kernel in /lib/modules/. This was dumb, and I have no explanation for why i did this. I reinstalled the kernel and it came back.
After installing lwfinger's rtw89 drivers, I redid all of the same checks outlined previously and continued to get the same errors.
There were numerous reboots in between steps and not just where I deemed it necessary. Despite continuing to piggyback off of the SystemRescueCD's GRUB, it boots so damn fast and logging in is a non-issue, my eyes' need to blink is the only bottleneck.
I've been attempting to fix this with what I already know, my natural problem solving ability, and a few new things I learned from my scouring of the Internet for a solution. I would appreciate some help, and any ideas for what else I could check. This HAS to be possible.
Yes, I could continue working in my Live CD, but that just means I have to worry about this later. Since this is bootable, I want to continue working in this environment.



