Bug 1957828

Summary: Add Realtek 8821 Drivers to Fedora/Silverblue ISO
Product: [Fedora] Fedora Modules Reporter: Craig S <stoneythegoomba>
Component: rpmAssignee: Orphan Owner <extras-orphan>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: roshankumarpaudel, russ+bugzilla-redhat
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Craig S 2021-05-06 14:48:06 UTC
Description of problem:
I notice that driver support for RTL8188 and RTL8189 radios is included with the ISO as my older edimax usb dongles were picked up right away during the F34 Silverblue install. Those are older 802.11 bgn radios. the RTL8821 radios provide 802.11AC wifi which offer wifi much better bandwidth solutions. Brektrou over at GitHub has been maintaining a kernel patch project for a couple years now but it would be nice to see the ko module added in to the iso rather than having to patch the kernel every time there is an OS update.

Thanks

relevant lsusb output (these dongles aren't picked up by by Fedora install) -

0bda:b812 Realtek Semiconductor Corp. RTL88x2bu [AC1200 Techkey]

0bda:c811 Realtek Semiconductor Corp. 802.11ac NIC

Version-Release number of selected component (if applicable):


How reproducible: run Fedora Installation with usb wifi dongles inserted


Steps to Reproduce:
1. Insert USB wifi dongle
2. Run Fedora or Silverblue Install
3. Dongle not picked up by Installation

Actual results: Drivers need to be patched manually to kernel using DKMS or insmod


Expected results: Please integrated Realtek 8821CE and 8821CU drivers in to ISO (I believe there are some other 8821 drivers listed as well on github)


Additional info:

Comment 1 Roshan 2021-05-27 18:09:33 UTC
please help me to install usb wifi driver for 

0bda:f179 Realtek Semiconductor Corp. RTL8188FTV 802.11b/g/n 1T1R 2.4G WLAN Adapter

Comment 2 Craig S 2021-05-28 19:05:47 UTC
obda:b812 works with rtl88x2bu driver for WPA2 (not WPA3 though). The problem is that with silverblue I can't install the driver because root is read only.

nebula@~$ dkms status
8192cu, 1.11: added
rtl88x2bu, 5.6.1, 5.11.0-7614-generic, x86_64: installed

The latest 8192CU driver needed for the Edimax EW-7811 UN v2 has a broken makefile so the module can be added but not installed. Looking for version that will work. Kernel recognizes that dongle as needing the r8188eu driver which is incorrect. The 7392:b811 chip needs the 8192CU driver from edimax.

Comment 3 Craig S 2021-05-28 19:15:11 UTC
(In reply to Roshan from comment #1)
> please help me to install usb wifi driver for 
> 
> 0bda:f179 Realtek Semiconductor Corp. RTL8188FTV 802.11b/g/n 1T1R 2.4G WLAN
> Adapter


** If using silverblue I don't know how to get drivers to work with kernel since root is read only but this should work for fedora***

the RTL8188fu driver should work with that dongle

these instructions should work (just modify for fedora so instead of sudo apt use sudo dnf)

https://easylinuxtipsproject.blogspot.com/p/realtek.html

 Driver for the Realtek RTL8188FU WiFi chipset with ID 0bda:f179 (draft, untested!)
3. Proceed as follows:

a. Establish temporary internet connection by means of your cell phone.

b. Execute this terminal command (use copy/paste to transfer it to the terminal):

sudo apt-get install mokutil && mokutil --sb-state

Press Enter.

If it reports that Secure Boot is enabled: reboot and disable Secure Boot in the BIOS. In order to do this, you might need to set an administrator password in the BIOS first.

Disabling Secure Boot is no loss: it adds no meaningful security anyway. It's primarily a means for Microsoft to enforce its vendor lock-in on your computer...

c. Then execute the following terminal commands, one by one:

sudo add-apt-repository ppa:kelebek333/kablosuz

sudo apt-get update

sudo apt-get install rtl8188fu-dkms

d. Reboot and test.

Comment 4 Craig S 2021-05-28 20:17:50 UTC
I removed "fixed" 8188eu drivers and reinstalled the 8188eu kernel module that comes with system.

Dropped WPA3 to WPA2 and got wifi connection

nebula@:~$ lsmod
Module                  Size  Used by
r8188eu               430080  0

nebula@:~$ ifconfig
eno1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether b4:b5:2f:c0:d1:2c  txqueuelen 1000  (Ethernet)
        RX packets 18835  bytes 27068083 (27.0 MB)
        RX errors 0  dropped 1  overruns 0  frame 0
        TX packets 8769  bytes 700285 (700.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xf7f00000-f7f20000  


silverblue still needs the rtl88x2bu driver added

Comment 5 Craig S 2021-05-28 20:58:28 UTC
working rtl88x2bu driver with Fedora (needs to be added to silverblue)

**installed with dkms**

$ lsusb
Bus 001 Device 003: ID 0bda:b812 Realtek Semiconductor Corp. RTL88x2bu [AC1200 Techkey]

$ ifconfig
eno1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether b4:b5:2f:c0:d1:2c  txqueuelen 1000  (Ethernet)
        RX packets 615  bytes 179322 (179.3 KB)
        RX errors 0  dropped 1  overruns 0  frame 0
        TX packets 683  bytes 109637 (109.6 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xf7f00000-f7f20000  

$ lsmod | grep 88x2
88x2bu               2424832  0
cfg80211              892928  1 88x2bu

to get driver working:

git clone https://github.com/cilynx/rtl88x2bu

cd rtl88x2bu
VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)
sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
sudo dkms add -m rtl88x2bu -v ${VER}
sudo dkms build -m rtl88x2bu -v ${VER}
sudo dkms install -m rtl88x2bu -v ${VER}
sudo modprobe 88x2bu
sudo reboot

Comment 6 Craig S 2021-06-01 17:40:17 UTC
to install rtl8821cu drivers with dkms for fedora (need to be built in iso for silverblue)

git clone https://github.com/morrownr/8821cu.git
cd 8821cu
sudo ./install-driver.sh
sudo reboot

Comment 7 Craig S 2021-06-01 17:46:21 UTC
$ lsmod | grep 8821
8821cu               2506752  0
cfg80211             1003520  1 8821cu


$ lsusb
Bus 003 Device 003: ID 0bda:c811 Realtek Semiconductor Corp. 802.11ac NIC


$ ifconfig
eno1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether b4:b5:2f:c0:d1:2c  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xf7f00000-f7f20000  


I have pop os image running in a container. Some git repos I need to install driver in pop os. Get make errors with fedora but not with pop os. Trying to figure out why. Would be nice to get these drivers into the iso so that silverblue stations can use 802.11 AC usb dongles.

Comment 8 Roshan 2021-06-02 11:08:43 UTC
Can you add complete command to install usb driver in fedora 34? for
0bda:f179 Realtek Semiconductor Corp. RTL8188FTV 802.11b/g/n 1T1R 2.4G WLAN Adapter

Comment 9 Fedora Admin user for bugzilla script actions 2022-08-31 01:52:20 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.