#Wifi interface detected on liveusb but not on installed system

1 messages · Page 1 of 1 (latest)

solid inlet
#

Trying to troubleshoot my interface not showing up. Built this absolute monster of a machine and this is the ONLY issue left. Wifi card is RTL8822CE, OpenRC seems to suggest that the drivers are not installed, does the kernel not support it?

solemn prawn
#

do you have the linux-firmware package?

solid inlet
#

Yes, version 20240513

solid inlet
#

I think I found the issue -- recompiling the kernel right now.

solemn prawn
#

are you using a custom kernel?

solid inlet
#

Yes, I am

solemn prawn
#

yeah i'd start with gentoo-kernel

#

it's kinda hard to go wrong with it

solid inlet
#

I was using it previously, but I am kinda infatuated with the internals

solemn prawn
#

yeah it's really helpful to have a know-working reference though

solid inlet
#

I agree

#

I don't even have a comment to follow that up, I just am acknowledging the fact that you're right

solemn prawn
#

lol

#

yeah i learned it the hard way, i spent many hours getting kernels working from literally NO config, every option disabled

#

it was kinda fun but really got me nothing but more bugs

#

if you want to do that, i'd do it in a vm if you want to retain any sanity

solid inlet
#

I actually did try it in a VM but my company disables certain networking features that made my antics impossible

#

So now I'm doing it at home because I'm frustrated at the use of Windows 11 in the workplace

solemn prawn
#

ah, doing gentoo at work?

#

ah lol

#

yea i use gentoo wherever possible, w11 is a nightmare

solid inlet
#

They've got me doing literally nothing there, it's an improvement

#

Anyway, I think it's done baking!

#

Time to reboor

#

Shit.

solemn prawn
#

gentoo moment

solid inlet
#

Don't worry I just need a couple more days so I can shave .3 seconds off my boot time

solemn prawn
#

if you want to boot faster use ugrd lol

#

id appreciate if you actually timed it compared to whatever else you may be using

solid inlet
#

That was a joke, mostly. I really just want to see how a custom kernel feels to use

#

And also to say that I did

#

Okay, now I don't even know what's happening.

#

I literally built in support for my network card and it isn't showing the driver in lspci -k

solemn prawn
#

you're certain you built it for the right model?

#

and that you're actually using the new kernel?

solid inlet
#

I'm checking if I'm using the new kernel right now, actually

#

I added in the linux logo thing, it should display it in color if it's the new kernel

#

Well, it's new alright

#

Same problem though :/

solid inlet
#

I'm also noticing that it isn't picking up support for my IOMMU driver? Is there some way I can point it to the driver manually?

#

I have no modules enabled, it's all built in directly

solemn prawn
#

yeah that's a bad idea

#

wifi won't work like that

#

unless you are also particular and bake the wifi firmware files into the kernel

#

but just don't

#

it has to be a module for the firmware to be properly loaded

solid inlet
#

I'll give it a shot.

solemn prawn
#

that's another thing i learned the hard way

#

yeah it's plainly not worth trying to build the firmware in

#

you're going entirely against the grain of how the kernel is desingeed d

#

linux is not a monolithic kernel

solid inlet
#

I don't think my drivers can be modules

#

It isn't giving the option

solemn prawn
#

yeah

#

because you likely disabled modules kernel wide lol

#

you kinda made a bit of a knot there

#

i don't think you should keep doubling down on that decision, it being a module ultimately makes more sense and helps you

#

what if you want to reload it?

solid inlet
#

That's embarrassing, done

#

Sucks that I was so close to just not needing modules at all, but I need this machine to run

solemn prawn
#

yeah not really reasonable with wifi in particular

#

well really anything that needs firmware

solid inlet
#

Clearly I'm missing something -- /proc/modules is completely empty

solemn prawn
#

did you try modprobing something

solid inlet
#

Yes, modprobe ahci outputs nothing

#

I also did a search for all .ko files, they're definitely there

solemn prawn
#

nothing in lsmod?

solid inlet
#

Nothing at all

solemn prawn
#

huh does dmesg complain?

solid inlet
#

Not that I can see

solemn prawn
#

that is strange

#

it should give some status about a loaded module

#

and i think it should let you load random ones that don't need to be used

solid inlet
#

I'm looking for the answer, but I don't think many people have this issue

solemn prawn
#

yeah maybe you should try to make more things modules

#

and see when you can see them being used

solid inlet
#

I did a find-exec on all system modules, started 4

#

libarc4, iommu_v2, cfg80211, and rfkill

solemn prawn
#

i don't see your wireless driver in there

solid inlet
#

I assume that's what cfg80211 is, but the wireless driver gives an "unknown symbol in module" error

#

This is probably our devious culprit

solemn prawn
#

not for your card in particular

solid inlet
#

Okay, now rtw88_core has started after checking again?

solemn prawn
#

yeah that is more likley it

#

or part ofit

solid inlet
#

Running the find exec again, it started the modules

#

This shit is black magic I swear

#

For the FIRST time, I can see my interface

#

I just don't get it at all. I rebooted to test it again and it ONLY works after re-running the find-exec exactly 3 times

#

The only thing that motivates me now is the sheer speed this machine is running at. Everything is working incredibly except the wifi drivers.

#

I'm looking into the dmesg output now.

#

It looks like it's not able to load the firmware to begin with

solemn prawn
#

yeah that hapens if it can't access it

#

especially fi it's builting

#

the kernel will look for it before the rootfs is even mounted

solid inlet
#

Hm

solemn prawn
#

especially if it's builtin

#

i cannot type

#

but check the whole kernel log, it may try to be loading that stuff before the rootfs is present

#

in which case it won't find any firmware and fails

solid inlet
#

Is there a way to mount root beforehand?

solemn prawn
#

an initramfs?

solid inlet
#

Okay, nvm, I'm going deep with this

solemn prawn
#

but even then you don't wnat these builtin

#

you want modules

#

so they will be loaded when the firmware can be read

solid inlet
#

Working on adding the firmware to CONFIG_EXTRA_FIRMWARE

solid inlet
#

Oh my god progress

#

I'm getting a different error 🙏

#

Do I need wpa_supplicant?

solemn prawn
#

that or iwd

#

i prefer wpa_supplicant

solid inlet
#

I have successfully baked the wifi firmware into the kernel

#

My interface is showing, now to get it working

solemn prawn
#

nice

#

now wait for the firmware file to change names lol

solid inlet
#

I will lose my shir

solid inlet
#

How do I connect to the internet to build wpa_supplicant?

#

Surely there's a better way than using the livecd

solemn prawn
#

nop

#

i meanyou can remove your wifi password

#

or use ethernet

solid inlet
#

Well, I'm currently trying to copy the net-setup script to the root dir lmao