driver rtw88 wifi RTL8821CE

Hello friends,
I have a pci wireless card RTL8821CE and my freebsd 14.0 not detect it.

pciconf -lv
none3@pci0:2:0:0: class=0x028000 rev=0x00 hdr=0x00 vendor=0x10ec device=0xc821 subvendor=0x10ec subdevice=0xc821
vendor = 'Realtek Semiconductor Co., Ltd.'
device = 'RTL8821CE 802.11ac PCIe Wireless Network Adapter'
class = network

I have been looking for a solution and I have found rtw88 driver, but I cannot install or compile it, I am quite new to freebsd.
I have been able to install pkg (https://pkgs.org/download/wifi-firmware-rtw88-kmod) and a series of files have been created that I show you

/boot/modules
1713659013622.png


/usr/local/share/licenses/wifi-firmware-rtw88-kmod-20230310
1713658932856.png


Now I can't move forward, what is the next step?

thanks
 
I have a pci wireless card RTL8821CE and my freebsd 14.0 not detect it.

From Realtek RTW88 FreeBSD wiki "Currently known issue":
Does not work on machines with more than 4GB of physical memory. Likely busdma+LinuxKPI problem to be investigated. D34715 has a change to gather data (which is in freebsd/main by now).

You need to boot with compat.linuxkpi.skb.mem_limit=1 in loader.conf to limit DMA to 32bit (announcement on freebsd-wireless for more info).

and rtw88(4) manual:
Code:
LOADER TUNABLES
     compat.linuxkpi.skb.mem_limit
             If you are running a 64bit system with more than 4GB of main
             memory you need to set this tunable to 1 in loader.conf(5) and
             reboot once to make it effective.  This tunable will work around
             a problem with DMA and limit allocations for network buffer
             memory to the lower 32bit of physical memory and make the driver
             work.

If there are still issues with the driver see "Contact" in the wiki.
 
Driver doesn't need to be installed, it's included but not loaded. So all you need to do is enable it. You do need to install the firmware for the card though, as it cannot be included with the OS due to license issues.

It is possible you have some variant of the chipset that's not recognized by the rtw88(4) driver though.
 
FOXNbsd, please note that the rtw88 is functional, but still in development.

As SirDice said
Driver doesn't need to be installed, it's included ...

Though, the driver (/boot/kernel/if_rtw88.ko) should auto-load.

rtw88(4)
Code:
SYNOPSIS
     The driver will auto-load without any user interaction using devmatch(8)
     if enabled in rc.conf(5).

devmatch(8) is enabled by default:
/etc/defaults/rc.conf
Code:
devmatch_enable="YES"   # Demand load kernel modules based on device ids.

and the device ids match
none3@pci0:2:0:0: class=0x028000 rev=0x00 hdr=0x00 vendor=0x10ec device=0xc821 subvendor=0x10ec subdevice=0xc821
vendor = 'Realtek Semiconductor Co., Ltd.'

Support Matrix
Rich (BB code):
Which chipset was tested? 
Card        PCI IDs
RTL8821CE   0x10ec/0xc821/0x1a3b/0x3040

FOXNbsd, set in

/boot/loader.conf
Code:
compat.linuxkpi.skb.mem_limit=1
reboot system, see if the driver has attached to the device (check pciconf(8)), if not, try kldload if_rtw88.

Also, the firmware is included in the base system, no need to install a firmware package.
Rich (BB code):
/boot/kernel/rtw8822c_fw.bin.ko
/boot/kernel/rtw8822b_fw.bin.ko
/boot/kernel/if_rtw88.ko
/boot/kernel/rtw8821c_fw.bin.ko
/boot/kernel/rtw8822c_wow_fw.bin.ko

If the driver still doesn't attach to the device, contact the developer of the driver Björ A. Zeeb at bz@freebsd.org, or on freebsd-wireless@freebsd.org mailing list.
 
Thanks friends
But the driver (/boot/kernel/if_rtw88.ko) i havent driver "if_rtw88.ko", only i have files in images, where can i get "if_rtw88.ko"?

Reading some posts and Björ A. Zeeb mails,
My loader.conf
if_rtw88_load="YES"
sysctl compat.linuxkpi.skb.mem_limit=1
sysctl compat.linuxkpi.rtw88_pci_disable_aspm=1
sysctl compat.linuxkpi.rtw88_disable_lps_deep=1

My rc.conf
devmatch_enable="YES" # Demand load kernel modules based on device ids.
kld_list="${kld_list} if_rtw88"
wlans_rtw880="YES"
ifconfig_wlan0="WPA SYNCDHCP"

sry im noob :(
 
But the driver (/boot/kernel/if_rtw88.ko) i havent driver "if_rtw88.ko"
You installed FreeBSD 14.0-RELEASE, right? Then that file is already on disk:
Code:
dice@maelcum:~ % ls -al /boot/kernel/if_rtw88.ko
-r-xr-xr-x  2 root wheel 1185800 Nov 26 23:15 /boot/kernel/if_rtw88.ko
This is the driver. Are you saying you don't have that file?
only i have files in images
I'm really not sure what you mean?

sry im noob
We were all noobs at first, no need to apologize for it. You're here to learn.

My loader.conf
Code:
if_rtw88_load="YES"
sysctl compat.linuxkpi.skb.mem_limit=1
sysctl compat.linuxkpi.rtw88_pci_disable_aspm=1
sysctl compat.linuxkpi.rtw88_disable_lps_deep=1
Remove that if_rtw88_load line, it's not needed.
Remove the sysctl(8) command from the other lines. It's always a variable = value pair in loader.conf(5). Never put commands in here. Commands are entered on the Command Line Interface, or CLI. Usually in our case that CLI interface is a shell. Commands can also be put into scripts but that's an entire subject in and of itself.

My rc.conf
Code:
devmatch_enable="YES" # Demand load kernel modules based on device ids.
kld_list="${kld_list} if_rtw88"
wlans_rtw880="YES"
ifconfig_wlan0="WPA SYNCDHCP"
Remove the kld_list and devmatch_enable lines. They're not needed.
 
FOXNbsd, Wish you well in getting RTL8821CE WiFi device working on your computer running FreeBSD. SirDice gives the best help and support for FreeBSD. Did you confirm that you have the file
/boot/kernel/if_rtw88.ko? Did you edit the files as SirDice instructed you?
try the following 4 commands:

service netif restart
service routing restart
ifconfig rtw88
ifconfig rtw88 up scan list


First try all the suggestions above first. If your Realtek RTL8821CE wifi device is working stay with that setup you have running.



Another method to use with newer wifi cards is the
wifibox
project to use a working Linux Wifi driver in Alpine Linux inside BHyve on a running FreeBSD. Does support RTL8821CE Realtek hardware.
https://github.com/pgj/freebsd-wifibox-alpine
https://eldapper.wordpress.com/2023/01/15/wifibox-on-my-ghostbsd-laptop/ Article to read about setting up Wifibox.
https://www.freebsd.org/status/report-2022-01-2022-03/wifibox/
 
Thanks friends.

New Tests:

kldload if_rtw88.ko
KLD if_rtw88.ko: depends on kernel - not avaliable or version mismatch
linker_load_file: /boot/kernel/if_rtw88.ko - unsupported file type
kldload: an error ocurred while loading module if_rtw88.ko. Please check dmesg(8) for more details.


dmesg
ue0: promiscuous mode enabled
KLD if_rtw88.ko: depends on kernel - not avaliable or version mismatch
linker_load_file: /boot/kernel/if_rtw88.ko - unsupported file type


ls -al /boot/kernel/if_rtw88.ko
-rw-r--r-- 1 root wheel 1185800 Apr 25 23:12 /boot/kernel/if_rtw88.ko

Maybe root permissions?

thanks
 
Hi judd, i have seen this mail from Bjoern A. Zeeb

Hi FOXBbsd, very interesting what the developer of the driver describes, however, the failure is not only in the connection drop but I had problems with involuntary reboots and freezes when the connection dropped.

Conclusion, I removed everything I installed and modified to make the driver work (at least for a couple of minutes), otherwise it was impossible to operate my laptop.

So I have gone back to my USB card and am connected again without any hiccups.
 
Code:
KLD if_rtw88.ko: depends on kernel - not avaliable or version mismatch
linker_load_file: /boot/kernel/if_rtw88.ko - unsupported file type
The version of /boot/kernel/if_rtw88.ko is not correct for your version of the kernel. You probably messed it up when you tried to install a driver you downloaded from somewhere. If possible I would just do a reinstall, there's no way of telling what else may have been messed up.
 
Hi there,

I just wanted to install FreeBSD 14.1 amd 64 with the mini-menstick-image on an Lenovo IdeaPad S145, because the idea of using the mini-memstick is precisely to configure the WLAN right from the start during installation. But the connection could not be established, here is the output of dmesg:

Code:
---<<BOOT>>---
Copyright (c) 1992-2023 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
FreeBSD clang version 18.1.5 (https://github.com/llvm/llvm-project.git llvmorg-18.1.5-0-g617a15a9eac9)
VT(efifb): resolution 1920x1080
CPU: AMD A9-9425 RADEON R5, 5 COMPUTE CORES 2C+3G    (3094.30-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x670f00  Family=0x15  Model=0x70  Stepping=0
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x7ed8320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
  AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
  AMD Features2=0x2febbfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,XOP,SKINIT,WDT,LWP,FMA4,TCE,NodeId,TBM,Topology,PCXC,PNXC,<b25>,DBE,PTSC,MWAITX>
  Structured Extended Features=0x1a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2>
  XSAVE Features=0x1<XSAVEOPT>
  AMD Extended Feature Extensions ID EBX=0x1000<IBPB>
  SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=32768
  TSC: P-state invariant, performance statistics
real memory  = 8589934592 (8192 MB)
avail memory = 7131041792 (6800 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <LENOVO CB-01   >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
arc4random: WARNING: initial seeding bypassed the cryptographic random device because it was not yet seeded and the knob 'bypass_before_seeding' was enabled.
ioapic0: MADT APIC ID 4 != hw id 0
ioapic1: MADT APIC ID 5 != hw id 0
ioapic0 <Version 2.1> irqs 0-23
ioapic1 <Version 2.1> irqs 24-55
Launching APs: 1
random: entropy device external interface
kbd1 at kbdmux0
efirtc0: <EFI Realtime Clock>
efirtc0: registered as a time-of-day clock, resolution 1.000000s
smbios0: <System Management BIOS> at iomem 0xdbc92000-0xdbc9201e
smbios0: Version: 3.0, BCD Revision: 3.0
aesni0: <AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS>
acpi0: <LENOVO CB-01>
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71 on acpi0
atrtc0: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff irq 0,8 on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
acpi_ec0: <Embedded Controller: GPE 0x3> port 0x62,0x66 on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <base peripheral, IOMMU> at device 0.2 (no driver attached)
vgapci0: <VGA-compatible display> port 0x3000-0x30ff mem 0xe0000000-0xefffffff,0xf0000000-0xf07fffff,0xf0d00000-0xf0d3ffff at device 1.0 on pci0
vgapci0: Boot video device
hdac0: <ATI (0x15b3) HDA Controller> mem 0xf0d60000-0xf0d63fff at device 1.1 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 2.1 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> at device 2.2 on pci0
pci2: <ACPI PCI bus> on pcib2
nvme0: <Generic NVMe Device> mem 0xf0c00000-0xf0c03fff at device 0.0 on pci2
pcib3: <ACPI PCI-PCI bridge> at device 2.3 on pci0
pci3: <ACPI PCI bus> on pcib3
pci3: <network> at device 0.0 (no driver attached)
pci0: <encrypt/decrypt> at device 8.0 (no driver attached)
hdac1: <AMD Stoney HDA Controller> mem 0xf0d64000-0xf0d67fff at device 9.2 on pci0
xhci0: <AMD FCH USB 3.0 controller> mem 0xf0d68000-0xf0d69fff at device 16.0 on pci0
xhci0: 32 bytes context size, 64-bit DMA
usbus0 on xhci0
usbus0: 5.0Gbps Super Speed USB v3.0
ahci0: <AMD KERNCZ AHCI SATA controller> port 0x3118-0x311f,0x3124-0x3127,0x3110-0x3117,0x3120-0x3123,0x3100-0x310f mem 0xf0d6c000-0xf0d6c3ff at device 17.0 on pci0
ahci0: AHCI v1.30 with 1 6Gbps ports, Port Multiplier supported with FBS
ahcich0: <AHCI channel> at channel 0 on ahci0
ehci0: <AMD FCH USB 2.0 controller> mem 0xf0d6d000-0xf0d6d0ff at device 18.0 on pci0
usbus1: EHCI version 1.0
usbus1 on ehci0
usbus1: 480Mbps High Speed USB v2.0
isab0: <PCI-ISA bridge> at device 20.3 on pci0
isa0: <ISA bus> on isab0
acpi_acad0: <AC Adapter> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
battery0: <ACPI Control Method Battery> on acpi0
hwpstate0: <Cool`n'Quiet 2.0> on cpu0
Timecounters tick every 1.000 msec
hdacc0: <ATI R6xx HDA CODEC> at cad 0 on hdac0
hdaa0: <ATI R6xx Audio Function Group> at nid 1 on hdacc0
ugen1.1: <AMD EHCI root HUB> at usbus1
ugen0.1: <AMD XHCI root HUB> at usbus0
uhub0 on usbus1
uhub1 on usbus0
uhub0: <AMD EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
uhub1: <AMD XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
pcm0: <ATI R6xx (HDMI)> at nid 3 on hdaa0
hdacc1: <Realtek ALC230 HDA CODEC> at cad 0 on hdac1
hdaa1: <Realtek ALC230 Audio Function Group> at nid 1 on hdacc1
pcm1: <Realtek ALC230 (Analog)> at nid 33 and 18 on hdaa1
random: unblocking device.
pcm2: <Realtek ALC230 (Right Analog Mic)> at nid 25 on hdaa1
nda0 at nvme0 bus 0 scbus1 target 0 lun 1
nda0: <INTEL SSDPEKNW512G8L L02C BTNH94210MAE512A>
nda0: Serial Number BTNH94210MAE512A
nda0: nvme version 1.3
nda0: 488386MB (1000215216 512 byte sectors)
Trying to mount root from ufs:/dev/ufs/FreeBSD_Install [ro,noatime]...
uhub1: 8 ports with 8 removable, self powered
uhub0: 2 ports with 2 removable, self powered
Root mount waiting for: usbus1
ugen1.2: <vendor 0x0438 product 0x7900> at usbus1
uhub2 on uhub0
uhub2: <vendor 0x0438 product 0x7900, class 9/0, rev 2.00/0.18, addr 2> on usbus1
uhub2: 4 ports with 4 removable, self powered
ugen1.3: <Generic USB2.0-CRW> at usbus1
umass0 on uhub2
umass0: <Generic USB2.0-CRW, class 0/0, rev 2.01/77.11, addr 3> on usbus1
umass0:  SCSI over Bulk-Only; quirks = 0x4000
umass0:2:0: Attached to scbus2
Root mount waiting for: usbus1 CAM
ugen1.4: <Realtek Bluetooth Radio> at usbus1
da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
da0: <Generic- SD/MMC/MS PRO 1.00> Removable Direct Access SPC-2 SCSI device
da0: Serial Number 20121112761000000
da0: 40.000MB/s transfers
da0: 29664MB (60751872 512 byte sectors)
da0: quirks=0x2<NO_6_BYTE>
ugen1.5: <Sonix Technology Co., Ltd. Integrated Camera> at usbus1
Root mount waiting for: usbus1
usb_msc_auto_quirk: UQ_MSC_NO_GETMAXLUN set for USB mass storage device USBDISK USBDISK (0x1aa6:0x0201)
usb_msc_auto_quirk: UQ_MSC_NO_SYNC_CACHE set for USB mass storage device USBDISK USBDISK (0x1aa6:0x0201)
ugen1.6: <USBDISK USBDISK> at usbus1
umass1 on uhub2
umass1: <USBDISK USBDISK, class 0/0, rev 2.00/10.00, addr 6> on usbus1
umass1:  SCSI over Bulk-Only; quirks = 0x4100
umass1:3:1: Attached to scbus3
mountroot: waiting for device /dev/ufs/FreeBSD_Install...
da1 at umass-sim1 bus 1 scbus3 target 0 lun 0
da1: <USB_DISK USB_DISK 2.00> Removable Direct Access SCSI device
da1: Serial Number 0FBA
da1: 40.000MB/s transfers
da1: 994MB (2037248 512 byte sectors)
da1: quirks=0x2<NO_6_BYTE>
intsmb0: <AMD FCH SMBus Controller> at device 20.0 on pci0
smbus0: <System Management Bus> on intsmb0
rtw880: <rtw_8821ce> port 0x1000-0x10ff mem 0xf0b00000-0xf0b0ffff at device 0.0 on pci3
rtw880: successfully loaded firmware image 'rtw88/rtw8821c_fw.bin'
rtw880: Firmware version 24.8.0, H2C version 12
acpi_wmi0: <ACPI-WMI mapping> on acpi0
acpi_wmi0: Embedded MOF found
ACPI: \134_SB.WMI4.WQBD: 1 arguments were passed to a non-method ACPI object (Buffer) (20221020/nsarguments-361)
driver bug: Unable to set devclass (class: ppc devname: (unknown))
ig4iic0: <Designware I2C Controller> iomem 0xfedc2000-0xfedc2fff irq 3 on acpi0
iicbus0: <Philips I2C bus (ACPI-hinted)> on ig4iic0
iicbus0: <unknown card> at addr 0x15
driver bug: Unable to set devclass (class: ppc devname: (unknown))
lo0: link state changed to UP
ubt0 on uhub2
ubt0: <Realtek Bluetooth Radio, class 224/1, rev 1.10/1.10, addr 4> on usbus1
iichid0: <ELAN062B:00 04F3:0400 I2C HID device> at addr 0x15 on iicbus0
iichid0: Interrupt setup failed. Fallback to sampling
hidbus0: <HID bus> on iichid0
ietp0: <Elan Touchpad> on hidbus0
ietp0: [3209:2097], clickpad
rtw880: failed to write rsvd page data
rtw880: failed to write data to rsvd page
rtw880: failed to download rsvd page
rtw880: failed to download firmware
rtw880: lkpi_ic_vap_create: failed to start hw: -16
rtw880: failed to write rsvd page data
rtw880: failed to write data to rsvd page
rtw880: failed to download rsvd page
rtw880: failed to download firmware
rtw880: lkpi_ic_vap_create: failed to start hw: -16

Note that apparently the hardware is recognized and the firmware "successfully loaded",

Code:
rtw880: <rtw_8821ce> port 0x1000-0x10ff mem 0xf0b00000-0xf0b0ffff at device 0.0 on pci3
rtw880: successfully loaded firmware image 'rtw88/rtw8821c_fw.bin'
rtw880: Firmware version 24.8.0, H2C version 12

but still bsdinstall can't use the module. I guess that the here explained solution applies to an already installed system, but what am I supposed to do during installation? I am sure that there is a way using either the "live system" or "shell" option of bsdinstall to edit or load something that is needed first and the start bsdinstall again (without rebooting) to enable the configuration of the WLAN and the go through with the installation? Am I affected by the 4 GB RAM problem?
 
Hi there,

I just wanted to install FreeBSD 14.1 amd 64 with the mini-menstick-image on an Lenovo IdeaPad S145, because the idea of using the mini-memstick is precisely to configure the WLAN right from the start during installation. But the connection could not be established, here is the output of dmesg:

Code:
---<<BOOT>>---
Copyright (c) 1992-2023 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
FreeBSD clang version 18.1.5 (https://github.com/llvm/llvm-project.git llvmorg-18.1.5-0-g617a15a9eac9)
VT(efifb): resolution 1920x1080
CPU: AMD A9-9425 RADEON R5, 5 COMPUTE CORES 2C+3G    (3094.30-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x670f00  Family=0x15  Model=0x70  Stepping=0
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x7ed8320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
  AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
  AMD Features2=0x2febbfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,XOP,SKINIT,WDT,LWP,FMA4,TCE,NodeId,TBM,Topology,PCXC,PNXC,<b25>,DBE,PTSC,MWAITX>
  Structured Extended Features=0x1a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2>
  XSAVE Features=0x1<XSAVEOPT>
  AMD Extended Feature Extensions ID EBX=0x1000<IBPB>
  SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=32768
  TSC: P-state invariant, performance statistics
real memory  = 8589934592 (8192 MB)
avail memory = 7131041792 (6800 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <LENOVO CB-01   >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
arc4random: WARNING: initial seeding bypassed the cryptographic random device because it was not yet seeded and the knob 'bypass_before_seeding' was enabled.
ioapic0: MADT APIC ID 4 != hw id 0
ioapic1: MADT APIC ID 5 != hw id 0
ioapic0 <Version 2.1> irqs 0-23
ioapic1 <Version 2.1> irqs 24-55
Launching APs: 1
random: entropy device external interface
kbd1 at kbdmux0
efirtc0: <EFI Realtime Clock>
efirtc0: registered as a time-of-day clock, resolution 1.000000s
smbios0: <System Management BIOS> at iomem 0xdbc92000-0xdbc9201e
smbios0: Version: 3.0, BCD Revision: 3.0
aesni0: <AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS>
acpi0: <LENOVO CB-01>
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71 on acpi0
atrtc0: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff irq 0,8 on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
acpi_ec0: <Embedded Controller: GPE 0x3> port 0x62,0x66 on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <base peripheral, IOMMU> at device 0.2 (no driver attached)
vgapci0: <VGA-compatible display> port 0x3000-0x30ff mem 0xe0000000-0xefffffff,0xf0000000-0xf07fffff,0xf0d00000-0xf0d3ffff at device 1.0 on pci0
vgapci0: Boot video device
hdac0: <ATI (0x15b3) HDA Controller> mem 0xf0d60000-0xf0d63fff at device 1.1 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 2.1 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> at device 2.2 on pci0
pci2: <ACPI PCI bus> on pcib2
nvme0: <Generic NVMe Device> mem 0xf0c00000-0xf0c03fff at device 0.0 on pci2
pcib3: <ACPI PCI-PCI bridge> at device 2.3 on pci0
pci3: <ACPI PCI bus> on pcib3
pci3: <network> at device 0.0 (no driver attached)
pci0: <encrypt/decrypt> at device 8.0 (no driver attached)
hdac1: <AMD Stoney HDA Controller> mem 0xf0d64000-0xf0d67fff at device 9.2 on pci0
xhci0: <AMD FCH USB 3.0 controller> mem 0xf0d68000-0xf0d69fff at device 16.0 on pci0
xhci0: 32 bytes context size, 64-bit DMA
usbus0 on xhci0
usbus0: 5.0Gbps Super Speed USB v3.0
ahci0: <AMD KERNCZ AHCI SATA controller> port 0x3118-0x311f,0x3124-0x3127,0x3110-0x3117,0x3120-0x3123,0x3100-0x310f mem 0xf0d6c000-0xf0d6c3ff at device 17.0 on pci0
ahci0: AHCI v1.30 with 1 6Gbps ports, Port Multiplier supported with FBS
ahcich0: <AHCI channel> at channel 0 on ahci0
ehci0: <AMD FCH USB 2.0 controller> mem 0xf0d6d000-0xf0d6d0ff at device 18.0 on pci0
usbus1: EHCI version 1.0
usbus1 on ehci0
usbus1: 480Mbps High Speed USB v2.0
isab0: <PCI-ISA bridge> at device 20.3 on pci0
isa0: <ISA bus> on isab0
acpi_acad0: <AC Adapter> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
battery0: <ACPI Control Method Battery> on acpi0
hwpstate0: <Cool`n'Quiet 2.0> on cpu0
Timecounters tick every 1.000 msec
hdacc0: <ATI R6xx HDA CODEC> at cad 0 on hdac0
hdaa0: <ATI R6xx Audio Function Group> at nid 1 on hdacc0
ugen1.1: <AMD EHCI root HUB> at usbus1
ugen0.1: <AMD XHCI root HUB> at usbus0
uhub0 on usbus1
uhub1 on usbus0
uhub0: <AMD EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
uhub1: <AMD XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
pcm0: <ATI R6xx (HDMI)> at nid 3 on hdaa0
hdacc1: <Realtek ALC230 HDA CODEC> at cad 0 on hdac1
hdaa1: <Realtek ALC230 Audio Function Group> at nid 1 on hdacc1
pcm1: <Realtek ALC230 (Analog)> at nid 33 and 18 on hdaa1
random: unblocking device.
pcm2: <Realtek ALC230 (Right Analog Mic)> at nid 25 on hdaa1
nda0 at nvme0 bus 0 scbus1 target 0 lun 1
nda0: <INTEL SSDPEKNW512G8L L02C BTNH94210MAE512A>
nda0: Serial Number BTNH94210MAE512A
nda0: nvme version 1.3
nda0: 488386MB (1000215216 512 byte sectors)
Trying to mount root from ufs:/dev/ufs/FreeBSD_Install [ro,noatime]...
uhub1: 8 ports with 8 removable, self powered
uhub0: 2 ports with 2 removable, self powered
Root mount waiting for: usbus1
ugen1.2: <vendor 0x0438 product 0x7900> at usbus1
uhub2 on uhub0
uhub2: <vendor 0x0438 product 0x7900, class 9/0, rev 2.00/0.18, addr 2> on usbus1
uhub2: 4 ports with 4 removable, self powered
ugen1.3: <Generic USB2.0-CRW> at usbus1
umass0 on uhub2
umass0: <Generic USB2.0-CRW, class 0/0, rev 2.01/77.11, addr 3> on usbus1
umass0:  SCSI over Bulk-Only; quirks = 0x4000
umass0:2:0: Attached to scbus2
Root mount waiting for: usbus1 CAM
ugen1.4: <Realtek Bluetooth Radio> at usbus1
da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
da0: <Generic- SD/MMC/MS PRO 1.00> Removable Direct Access SPC-2 SCSI device
da0: Serial Number 20121112761000000
da0: 40.000MB/s transfers
da0: 29664MB (60751872 512 byte sectors)
da0: quirks=0x2<NO_6_BYTE>
ugen1.5: <Sonix Technology Co., Ltd. Integrated Camera> at usbus1
Root mount waiting for: usbus1
usb_msc_auto_quirk: UQ_MSC_NO_GETMAXLUN set for USB mass storage device USBDISK USBDISK (0x1aa6:0x0201)
usb_msc_auto_quirk: UQ_MSC_NO_SYNC_CACHE set for USB mass storage device USBDISK USBDISK (0x1aa6:0x0201)
ugen1.6: <USBDISK USBDISK> at usbus1
umass1 on uhub2
umass1: <USBDISK USBDISK, class 0/0, rev 2.00/10.00, addr 6> on usbus1
umass1:  SCSI over Bulk-Only; quirks = 0x4100
umass1:3:1: Attached to scbus3
mountroot: waiting for device /dev/ufs/FreeBSD_Install...
da1 at umass-sim1 bus 1 scbus3 target 0 lun 0
da1: <USB_DISK USB_DISK 2.00> Removable Direct Access SCSI device
da1: Serial Number 0FBA
da1: 40.000MB/s transfers
da1: 994MB (2037248 512 byte sectors)
da1: quirks=0x2<NO_6_BYTE>
intsmb0: <AMD FCH SMBus Controller> at device 20.0 on pci0
smbus0: <System Management Bus> on intsmb0
rtw880: <rtw_8821ce> port 0x1000-0x10ff mem 0xf0b00000-0xf0b0ffff at device 0.0 on pci3
rtw880: successfully loaded firmware image 'rtw88/rtw8821c_fw.bin'
rtw880: Firmware version 24.8.0, H2C version 12
acpi_wmi0: <ACPI-WMI mapping> on acpi0
acpi_wmi0: Embedded MOF found
ACPI: \134_SB.WMI4.WQBD: 1 arguments were passed to a non-method ACPI object (Buffer) (20221020/nsarguments-361)
driver bug: Unable to set devclass (class: ppc devname: (unknown))
ig4iic0: <Designware I2C Controller> iomem 0xfedc2000-0xfedc2fff irq 3 on acpi0
iicbus0: <Philips I2C bus (ACPI-hinted)> on ig4iic0
iicbus0: <unknown card> at addr 0x15
driver bug: Unable to set devclass (class: ppc devname: (unknown))
lo0: link state changed to UP
ubt0 on uhub2
ubt0: <Realtek Bluetooth Radio, class 224/1, rev 1.10/1.10, addr 4> on usbus1
iichid0: <ELAN062B:00 04F3:0400 I2C HID device> at addr 0x15 on iicbus0
iichid0: Interrupt setup failed. Fallback to sampling
hidbus0: <HID bus> on iichid0
ietp0: <Elan Touchpad> on hidbus0
ietp0: [3209:2097], clickpad
rtw880: failed to write rsvd page data
rtw880: failed to write data to rsvd page
rtw880: failed to download rsvd page
rtw880: failed to download firmware
rtw880: lkpi_ic_vap_create: failed to start hw: -16
rtw880: failed to write rsvd page data
rtw880: failed to write data to rsvd page
rtw880: failed to download rsvd page
rtw880: failed to download firmware
rtw880: lkpi_ic_vap_create: failed to start hw: -16

Note that apparently the hardware is recognized and the firmware "successfully loaded",

Code:
rtw880: <rtw_8821ce> port 0x1000-0x10ff mem 0xf0b00000-0xf0b0ffff at device 0.0 on pci3
rtw880: successfully loaded firmware image 'rtw88/rtw8821c_fw.bin'
rtw880: Firmware version 24.8.0, H2C version 12

but still bsdinstall can't use the module. I guess that the here explained solution applies to an already installed system, but what am I supposed to do during installation? I am sure that there is a way using either the "live system" or "shell" option of bsdinstall to edit or load something that is needed first and the start bsdinstall again (without rebooting) to enable the configuration of the WLAN and the go through with the installation? Am I affected by the 4 GB RAM problem?

cabriofahrer,

I too am undergoing very near identical difficulties. Perhaps the only notable difference being I have rtw8822 rather than rtw8821.

I am confident in my attempt to follow with due diligence every sentence and instruction provided by the handbook. As well as reading thrice over with two goodnight sleeps in-between. All suggestions, to the best of my ability, of what’s been thoroughly offered here.

Aware my system exceeds the 4gb of memory. I have installed from the full memstick.img. Sans use of internet (the base system on the USB). Once installed, and believing I properly applied the linux limit thing, among trying, admittedly a majority overwhelming, at my novice level of experience and comprehension. Several other configuration modifications.

After each failed attempt. I wipe my drive and begin all over again.

The FreeBSD Installer, after I select (the only option) rtw880 on the Network Configuration screen. The next page returns:

Error: wpa_supplicant
Successfully initialized wpa_supplicant
wlan0: Failed to initialize driver interfaces wlan0: CTRL-EVENT-DSCP-POLICY clear_all
 
I have found the method to install using the mini-memstick image:

In bsdinstall, when reaching the screen "Install" "Live System" "Shell", choose " "Live System". Then do

# kenv compat.linuxkpi.skb.mem_limit=1

and reboot or shutdown and turn on your machine again. Then run "Install" normally and the configuration of WLAN should work. I don't know why exactly, but kenv seems to modify something on the installation medium (provided it is a USB-Stick). The you can go through with the installation and after a reboot your WLAN is configured. Anyway, the connection is not stable, I guess see here, last comment ("maybe not well enough"):


I will report my experience there shortly.
 
I have found the method to install using the mini-memstick image:

In bsdinstall, when reaching the screen "Install" "Live System" "Shell", choose " "Live System". Then do

# kenv compat.linuxkpi.skb.mem_limit=1

and reboot or shutdown and turn on your machine again. Then run "Install" normally and the configuration of WLAN should work. I don't know why exactly, but kenv seems to modify something on the installation medium (provided it is a USB-Stick). The you can go through with the installation and after a reboot your WLAN is configured. Anyway, the connection is not stable, I guess see here, last comment ("maybe not well enough"):


I will report my experience there shortly.
Excellent! Thank you for sharing. I am hopeful, I will begin again and keep you (all) informed if it works.
 
However, I have just found out that the setting compat.linuxkpi.skb.mem_limit=1is not present in the /boot/loader.conf on the later installed system. So you have to put it there again manually or your connection will be unstable.
 
Hi FOXBbsd, very interesting what the developer of the driver describes, however, the failure is not only in the connection drop but I had problems with involuntary reboots and freezes when the connection dropped.

Conclusion, I removed everything I installed and modified to make the driver work (at least for a couple of minutes), otherwise it was impossible to operate my laptop.

So I have gone back to my USB card and am connected again without any hiccups.
judd,

Would you be willing to describe in further detail:

"I removed everything,.."

"...installed and modified..."

"...make the driver work..."

"...operate..."

?

I have a newcomer's curiosity. These things appeal to me.


Thank you.
 
usr.xx

Of course I would like to run RTW88 but at the moment, except for a few minutes, it is not possible.


When I install FreeBSD I just install it with a wifi dongle and after the installation I start trying to get the network working with rtw88, installing:

compat.linuxkpi.skb.mem_limit=1 in /boot/loader.conf

and when I closed the file with ee the computer rebooted by itself.

I do the same steps again and it doesn't reboot anymore, but I don't have a connection either.

That's all, I couldn't do more on my side without the necessary knowledge for this.


Translated with DeepL.com (free version)
 
Back
Top