rtw890 not showing in ifconfig

Hello guys.
I have next problem. I compiled rtw890 driver, and it works!
I have output when running
Code:
 sysctl net.wlan.devices
net.wlan.devices: rtw890
but there's no any wireless devices in ifconfig. What it may be?
dmesg:
Code:
rtw890: <rtw89_8852ae> port 0xf000-0xf0ff mem 0xfcf00000-0xfcffffff at device 0.0 on pci1
rtw890: successfully loaded firmware image 'rtw89/rtw8852a_fw.bin'
rtw890: loaded firmware rtw89/rtw8852a_fw.bin
rtw890: Firmware version 0.13.36.0 (c33d3f88), cmd version 0, type 1
rtw890: Firmware version 0.13.36.0 (c33d3f88), cmd version 0, type 3
rtw890: MAC has already powered on
rtw890: chip rfe_type is 1
rtw890: attempting to allocate 1 MSI vectors (1 supported)
rtw890: using IRQ 70 for MSI
rtw890: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
rtw890: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
rtw890: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
 
Last edited by a moderator:
Hello guys.
I have next problem. I compiled rtw890 driver, and it works!
I have output when running
sysctl net.wlan.devices net.wlan.devices: rtw890
but there's no any wireless devices in ifconfig. What it may be?
dmesg:
rtw890: <rtw89_8852ae> port 0xf000-0xf0ff mem 0xfcf00000-0xfcffffff at device 0.0 on pci1 rtw890: successfully loaded firmware image 'rtw89/rtw8852a_fw.bin' rtw890: loaded firmware rtw89/rtw8852a_fw.bin rtw890: Firmware version 0.13.36.0 (c33d3f88), cmd version 0, type 1 rtw890: Firmware version 0.13.36.0 (c33d3f88), cmd version 0, type 3 rtw890: MAC has already powered on rtw890: chip rfe_type is 1 rtw890: attempting to allocate 1 MSI vectors (1 supported) rtw890: using IRQ 70 for MSI rtw890: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps rtw890: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps rtw890: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
Have you Looked at this yet? And This?
 
Hello лось,
where are you find rtw890 sources? How did you compile the driver? I tried with /usr/ports/net/wifi-firmware-rtw89-kmod for my RTL8852AE but nothing happen after following the wireless network freebsd handbook.
Code:
pciconf -lv | grep -A1 -B3 network :
none2@pci0:4:0:0:    class=0x028000 rev=0x00 hdr=0x00 vendor=0x10ec device=0x8852 subvendor=0x17aa subdevice=0x4852
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8852AE 802.11ax PCIe Wireless Network Adapter'
    class      = network

sysctl net.wlan.devices
net.wlan.devices:

uname -a :  FreeBSD fabbsd 14.0-RELEASE FreeBSD 14.0-RELEASE #0 releng/14.0-n265380-f9716eee8ab4: Fri Nov 10 05:57:23 UTC 2023     [EMAIL]root@releng1.nyi.freebsd.org[/EMAIL]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
 
Check and see that your wifi card is an RTL8852AE or a RTL8852CE.
cd /usr/src/modules/rtw89
make install

If you have built and installed the driver (and firmware) from source, and loading the driver attaches to the device.

There might be a kernel panic with wpa_supplicant.conf(5).

If that is the case I would rebuild the source code from a working linux driver and debug the error message to see if updating the kernel or switching a version could initialize it.


is your wifi initialized?

ls -l /sys/class/net

look through dmesg after boot on the kernel that can find the wifi, and note which module produces WLAN-related messages.

ifconfig -a
ip link show


diff <( ifconfig ) <( ifconfig -a ) | sed -nE 's/^> ([^[:blank:]]+).*/\1/p'

This will compare the output of ifconfig with that of ifconfig -a. From that output, any line starting with > (signifying that they are only in the ifconfig -a output) will be relating to interfaces that are not "UP". The sed expression parses out the interface names.


The result will be a list of interfaces that are not up.

Not connected is not the same as down. ifconfig is deprecated

You can check the state of the network interface from /sys/class/net/$interface/carrier file. (1 = connected , 0 = disconnected)

лось:​


Code:

sysctl net.wlan.devices
net.wlan.devices: rtw890

but there's no any wireless devices in ifconfig. What it may be?
dmesg:


Code:

rtw890: <rtw89_8852ae> port 0xf000-0xf0ff mem 0xfcf00000-0xfcffffff at device 0.0 on pci1
rtw890: successfully loaded firmware image 'rtw89/rtw8852a_fw.bin'
rtw890: loaded firmware rtw89/rtw8852a_fw.bin
rtw890: Firmware version 0.13.36.0 (c33d3f88), cmd version 0, type 1
rtw890: Firmware version 0.13.36.0 (c33d3f88), cmd version 0, type 3
rtw890: MAC has already powered on
rtw890: chip rfe_type is 1
rtw890: attempting to allocate 1 MSI vectors (1 supported)
rtw890: using IRQ 70 for MSI
rtw890: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
rtw890: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
rtw890: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
 
is your wifi initialized?
ls -l /sys/class/net

That is for Linux, not FreeBSD.

look through dmesg after boot on the kernel that can find the wifi, and note which module produces WLAN-related messages.

ifconfig -a
ip link show

'ip' is for Linux, not FreeBSD.

Not connected is not the same as down. ifconfig is deprecated

This especially is for Linux, not for FreeBSD where it is untrue.

You can check the state of the network interface from /sys/class/net/$interface/carrier file. (1 = connected , 0 = disconnected)

That's on Linux, not FreeBSD.

Please make very clear when making statements applicable to Linux that they DO NOT APPLY to FreeBSD, lest people who are reading or searching these forums are misinformed.

In my opinion, of course.
 
SirDice, thanks, smithi, thanks.

in addition to the instructions from

is the wifi initialized? Check for wireless devices with ifconfig. Copy the name of the wireless device

ifconfig -a | grep -i 'wireless\|wlan\|wifi'

For instance, if your wireless device is called wlan0, display the status of network interface

ifconfig wlan0

Look for relevant information related to the interface, such as its status (UP/running), IP address, and associated details.

Next, check if the WiFi driver is loaded

sysctl net.wlan.devices

you can use sysctl to query system settings, including network-related settings.


As stated previously, you can use dmesg to display the system message buffer, including messages from the kernel. To check WiFi-related messages during boot or initialization,

dmesg | grep -i wlan

This will show any relevant information or errors related to the initialization of WiFi.


Check the status of network services

service netif status

....

replace wlan0 with your network name

ifconfig wlan0 up
ifconfig wlan0 scan
dhclient wlan0

sudo vi /etc/wpa_supplicant.conf

network={
ssid="YourWiFiNetworkName"
psk="YourWiFiPassword"
proto=RSN # For WPA2
key_mgmt=WPA-PSK
pairwise=CCMP # This is for AES encryption
group=CCMP # This is for AES encryption
}

wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
dhclient wlan0

If it is your own computer and not a home network or a business network, you may want to enable linux binary compatibility in freebsd. Seriously consider a security needs meeting with your friends to assess whether this poses new risks.

In this case, if you followed the instructions and it still doesn't work, it may enable your wifi card to function. You can also search the web for the most compatible wifi card with freebsd. That means, just get rid of your network card and start over by purchasing another one. When using FreeBSD on a new laptop you sometimes find out that the WiFi chip that it came with is not supported, or not yet supported.

"What wifi cards will work out of the box with freebsd?"

https://www.freebsd.org/releases/11.2R/hardware/#wlan

ALFA AWUS036NEH
ALFA AWUS036NH
Edimax EW-7811Un
Realtek RTL8188CUS

The Realtek company even got Taiwan Green Classics Award 2011. Like an old router, does it pose any security vulnerabilities? Are the drivers updated? Check with the vendor on their website, and send them an email.







 
Check for wireless devices with ifconfig. Copy the name of the wireless device

ifconfig -a | grep -i 'wireless\|wlan\|wifi'
Nothing is going to show up until you've actually configured it.
 
Hi,
I don't understand, there is no /usr/src/modules.
When i installed Freebsd, I choose "ports" and "src". There is /usr/src/sys/modules/rtw89 and /usr/src/sys/modules/rtw89fw.
# cd /usr/src/sys/modules/rtw89/ /usr/src/sys/modules/rtw89 # ls Makefile /usr/src/sys/modules/rtw89 # make install clean install -T release -o root -g wheel -m 555 if_rtw89.ko /boot/modules/ install: if_rtw89.ko: No such file or directory *** Error code 71 Stop. make: stopped in /usr/src/sys/modules/rtw89

With freshports /usr/ports/net/wifi-firmware-rtw89-kmod/ :
# cd wifi-firmware-rtw89-kmod/ /usr/ports/net/wifi-firmware-rtw89-kmod # make install clean # ls /boot/modules/ | grep "rtw89" rtw89_rtw8852a_fw_bin.ko rtw89_rtw8852b_fw_bin.ko rtw89_rtw8852c_fw_bin.ko # kldload rtw89_rtw8852a_fw_bin.ko # kldload rtw89_rtw8852b_fw_bin.ko # kldload rtw89_rtw8852c_fw_bin.ko # kldstat | grep "rtw89" 33 1 0xffffffff86fa6000 15d860 rtw89_rtw8852a_fw_bin.ko 34 1 0xffffffff87104000 124368 rtw89_rtw8852b_fw_bin.ko 35 1 0xffffffff87229000 1783d0 rtw89_rtw8852c_fw_bin.ko # sysctl net.wlan.devices net.wlan.devices:
 
There is no need to build the module. It's being detected, that's what sysctl net.wlan.devices tells you.
 
Thanks,

but sysctl net.wlan.devices: tells me nothing as i report it above.
# sysctl net.wlan.devices
net.wlan.devices:
#
Did you see my answer above? I’ll put it here

If sysctl net.wlan.devices doesn’t show anything you are out of luck nothing you do will work. I’ve tried with three different dongles till I found the right one. It may be a model that is supported but it has issues. I would try another dingle that is supported. Your gonna pull your hair out![/cmd]
 
Did you see my answer above? I’ll put it here


If sysctl net.wlan.devices doesn’t show anything you are out of luck nothing you do will work. I’ve tried with three different dongles till I found the right one. It may be a model that is supported but it has issues. I would try another dingle that is supported. Your gonna pull your hair out![/cmd]
If i read these posts, my NIC is a rtw8852ae, it seems supported by the driver rtw89. Under linux, it's ok. My question is how to obtain the rtw89's sources ? I have not the directory /usr/src/ modules. Just have /usr/src/sys/modules/rtw89/. But if i run make install in this directory, i have this error : install: if_rtw89.ko: No such file or directory *** Error code 71.
So where is if_rtw89.ko ?
It's seems to me that before use sysctl net.wlan.devices, i must load the module if_rtw89.ko, isn't it ? And i don't sure wifi-firmware-rtw89-kmod is the good module because only 8852a, 8852b and 8852c are supported. Not 8852ae.
And yes, i pull out my hair yet !😄
 
my NIC is a rtw8852ae, it seems supported by the driver rtw89.
Maybe on Linux, probably not on FreeBSD.
Q: Does this driver also support RTL8821AE?

A: No. This is part of a different generation of driver support in Linux (rtlwifi) which is GPL-only and a totally different can of worms. It would more fit rtwn in FreeBSD I think but no one was working on that from what I know.


My question is how to obtain the rtw89's sources ?
Again, you do not need to build the driver. It's already included in the kernel. So it either recognizes your card, or it doesn't. It looks like you have some variation of the chipset that's not supported by FreeBSD's driver.
 
Did you see my answer above? I’ll put it here


If sysctl net.wlan.devices doesn’t show anything you are out of luck nothing you do will work. I’ve tried with three different dongles till I found the right one. It may be a model that is supported but it has issues. I would try another dingle that is supported. Your gonna pull your hair out![/cmd]
If i read these posts, my NIC is a rtw8852ae, it seems supported by the driver rtw89. Under linux, it's ok. My question is how to obtain the rtw89's sources ? I have not the directory /usr/src/ modules. Just have /usr/src/sys/modules/rtw89/. But if i run make install in this directory, i have this error : install: if_rtw89.ko: No such file or directory. So where is if_rtw89 ?
It's seems to me that before use sysctl net.wlan.devices, i must load the module if_rtw89.ko, isn't it ? And i don't sure wifi-firmware-rtw89kmod is the good module because only 8852a, 8852b and 8852c are supported, not 8852ae. And yes, i pull out my fair yet !
 
Irrelevant because it's a different driver that just happens to be named the same.


It's included in the FreeBSD source tree.
Ok, I see that the rtw89 is in /usr/src/sys/modules/ in the src source tree but as I've said above, (https://forums.freebsd.org/threads/rtw890-not-showing-in-ifconfig.91144/post-635219), I have an error when I want to make install rtw89. Sorry but I am rather newbie with FreeBSD, even if I'm quite comfortable with the Linux system. In the fisrt post of лось, he said that there is a /usr/src/modules directory, but there is not in my system tree.
 
rtw89 is not built by default.
The code is in /usr/src/sys/contrib/dev/rtw89.
You can build.
make -C /usr/src/sys/modules/rtw89
Code:
$ ls -l /usr/obj/usr/src/amd64.amd64/sys/modules/rtw89/if_rtw89.ko
-rw-r--r--  1 root wheel 2906240 Dec 27 19:49 /usr/obj/usr/src/amd64.amd64/sys/modules/rtw89/if_rtw89.ko
But it may not work yet.
 
Maybe on Linux, probably not on FreeBSD.




Again, you do not need to build the driver. It's already included in the kernel. So it either recognizes your card, or it doesn't. It looks like you have some variation of the chipset that's not supported by FreeBSD's driver.
I've seen in ls /boot/kernel/ | grep -v kernel, there is no if_rtw89.ko, but there is if_rtw88.ko.
 
rtw89 is not built by default.
The code is in /usr/src/sys/contrib/dev/rtw89.
You can build.
make -C /usr/src/sys/modules/rtw89
Code:
$ ls -l /usr/obj/usr/src/amd64.amd64/sys/modules/rtw89/if_rtw89.ko
-rw-r--r--  1 root wheel 2906240 Dec 27 19:49 /usr/obj/usr/src/amd64.amd64/sys/modules/rtw89/if_rtw89.ko
But it may not work yet.
Ah ! Thanks a lot ! This is the answer I was expected. Perhaps I expressed myself poorly in my requests above.
 
rtw89 is not built by default.
The code is in /usr/src/sys/contrib/dev/rtw89.
You can build.
make -C /usr/src/sys/modules/rtw89
Code:
$ ls -l /usr/obj/usr/src/amd64.amd64/sys/modules/rtw89/if_rtw89.ko
-rw-r--r--  1 root wheel 2906240 Dec 27 19:49 /usr/obj/usr/src/amd64.amd64/sys/modules/rtw89/if_rtw89.ko
But it may not work yet.
Yes it not work yet with my chipset.
 

Attachments

  • dmesg_rtw890.txt
    4.2 KB · Views: 51
Back
Top