minor updates

This commit is contained in:
morrownr 2022-01-16 11:46:39 -06:00
parent 37e99dacf6
commit 02c9b7d8c5
4 changed files with 49 additions and 7 deletions

View File

@ -11,9 +11,11 @@ EXTRA_CFLAGS += -Wno-unused-variable
#EXTRA_CFLAGS += -Wno-unused-value #EXTRA_CFLAGS += -Wno-unused-value
#EXTRA_CFLAGS += -Wno-unused-label #EXTRA_CFLAGS += -Wno-unused-label
#EXTRA_CFLAGS += -Wno-unused-parameter #EXTRA_CFLAGS += -Wno-unused-parameter
#EXTRA_CFLAGS += -Wno-unused-function EXTRA_CFLAGS += -Wno-unused-function
#EXTRA_CFLAGS += -Wno-unused #EXTRA_CFLAGS += -Wno-unused
#EXTRA_CFLAGS += -Wno-uninitialized #EXTRA_CFLAGS += -Wno-uninitialized
EXTRA_CFLAGS += -Wno-misleading-indentation
EXTRA_CFLAGS += -Wno-implicit-fallthrough
GCC_VER_49 := $(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc ) GCC_VER_49 := $(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc )
ifeq ($(GCC_VER_49),1) ifeq ($(GCC_VER_49),1)

View File

@ -21,7 +21,7 @@ sudo uname -a; mokutil --sb-state; lsusb; rfkill list all; dkms status; iw dev
### Linux Driver for USB WiFi Adapters that are based on the RTL8812BU and RTL8822BU Chipsets ### Linux Driver for USB WiFi Adapters that are based on the RTL8812BU and RTL8822BU Chipsets
- v5.13.1 (Realtek) (20210702) plus updates from the Linux community - v5.13.1 (Realtek) (20210702) plus updates from the Linux community
- 1,132 clones over the 2 weeks ended on 20211218 - 1,179 downloads over the 2 weeks ended on 20211231
### Features ### Features
@ -128,6 +128,8 @@ the Installation Steps can be improved.
- RHEL 8.4 (kernel 4.18.0) - RHEL 8.4 (kernel 4.18.0)
- Solus
- Ubuntu 20.xx (kernels 5.4 and 5.8) and 21.xx (kernels 5.11 and 5.13) - Ubuntu 20.xx (kernels 5.4 and 5.8) and 21.xx (kernels 5.11 and 5.13)
### Download Locations for Tested Linux Distributions ### Download Locations for Tested Linux Distributions
@ -141,6 +143,7 @@ the Installation Steps can be improved.
- [openSUSE](https://www.opensuse.org/) - [openSUSE](https://www.opensuse.org/)
- [Raspberry Pi OS](https://www.raspberrypi.org) - [Raspberry Pi OS](https://www.raspberrypi.org)
- [RHEL](https://www.redhat.com) - [RHEL](https://www.redhat.com)
- [Solus](https://getsol.us/home/)
- [Ubuntu](https://www.ubuntu.com) - [Ubuntu](https://www.ubuntu.com)
### Tested Hardware ### Tested Hardware
@ -184,7 +187,7 @@ good idea as to whether you need to remove a previously installed
driver by running the following command: driver by running the following command:
``` ```
dkms status sudo dkms status
``` ```
The installation instructions are for the novice user. Experienced users are welcome to alter the installation to meet their needs. The installation instructions are for the novice user. Experienced users are welcome to alter the installation to meet their needs.
@ -211,6 +214,10 @@ There is no need to disable Secure Mode to install this driver. If Secure Mode i
- Option for Debian based distributions such as Ubuntu, Linux Mint, Kali and Raspberry Pi OS - Option for Debian based distributions such as Ubuntu, Linux Mint, Kali and Raspberry Pi OS
Note: If your Linux distro does not fall into one of options listed
below, you will need to research how to update your system package
information.
``` ```
sudo apt update sudo apt update
``` ```
@ -236,7 +243,7 @@ sudo zypper update
Note: If you do not regularly maintain your system by installing updated Note: If you do not regularly maintain your system by installing updated
packages, please do so now and then reboot. The rest of the installation packages, please do so now and then reboot. The rest of the installation
will appreciate having a fully up to date system to work with. The will appreciate having a fully up to date system to work with. The
installation can then be continued with the next step. installation can then be continued with Step 3.
#### Step 3: Install the required packages (select the option for the OS you are using) #### Step 3: Install the required packages (select the option for the OS you are using)
@ -270,6 +277,12 @@ sudo dnf -y install git dkms kernel-devel kernel-debug-devel
sudo zypper install -t pattern devel_kernel dkms sudo zypper install -t pattern devel_kernel dkms
``` ```
- Option for Solus
```
sudo eopkg install gcc linux-current-headers make git
```
- Options for Arch and Manjaro - Options for Arch and Manjaro
If using pacman If using pacman
@ -357,10 +370,27 @@ to be included here.
Note: For automated builds, use _NoPrompt_ as an option. Note: For automated builds, use _NoPrompt_ as an option.
Note: Solus Linux does not support dkms and will require a manual build.
See `Manual build instructions` below.
``` ```
sudo ./install-driver.sh sudo ./install-driver.sh
``` ```
Manual build instructions: The script `install-driver.sh` automates the
installation process, however, it may be necessary to build and install
the driver manually with some Linux distros:
```
make clean
make
sudo make install
sudo reboot
```
Note: If you use the manual build instructions, you will need to repeat
the process each time a new kernel is installed in your distro.
Note: If you elect to skip the reboot at the end of the installation Note: If you elect to skip the reboot at the end of the installation
script, the driver may not load immediately and the driver options will script, the driver may not load immediately and the driver options will
not be applied. Rebooting is strongly recommended. not be applied. Rebooting is strongly recommended.

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
SCRIPT_NAME="install-driver.sh" SCRIPT_NAME="install-driver.sh"
SCRIPT_VERSION="20211212" SCRIPT_VERSION="20220108"
DRV_NAME="rtl88x2bu" DRV_NAME="rtl88x2bu"
DRV_VERSION="5.13.1" DRV_VERSION="5.13.1"
@ -11,7 +11,6 @@ DRV_DIR="$(pwd)"
KRNL_VERSION="$(uname -r)" KRNL_VERSION="$(uname -r)"
clear clear
echo "Running ${SCRIPT_NAME} version ${SCRIPT_VERSION}"
# support for NoPrompt allows non-interactive use of this script # support for NoPrompt allows non-interactive use of this script
NO_PROMPT=0 NO_PROMPT=0
@ -49,6 +48,16 @@ then
exit 1 exit 1
fi fi
# information that helps with bug reports
# displays script name and version
echo "Running ${SCRIPT_NAME} version ${SCRIPT_VERSION}"
# distro
hostnamectl | grep 'Operating System' | sed 's/ Operating System: //'
# kernel
uname -r
# architecture - for ARM: aarch64 = 64 bit, armv7l = 32 bit
uname -m
echo "Starting installation..." echo "Starting installation..."
# the add command requires source in /usr/src/${DRV_NAME}-${DRV_VERSION} # the add command requires source in /usr/src/${DRV_NAME}-${DRV_VERSION}
echo "Copying source files to: /usr/src/${DRV_NAME}-${DRV_VERSION}" echo "Copying source files to: /usr/src/${DRV_NAME}-${DRV_VERSION}"
@ -87,6 +96,7 @@ if [[ "$RESULT" != "0" ]]
then then
echo "An error occurred. dkms install error = ${RESULT}" echo "An error occurred. dkms install error = ${RESULT}"
echo "Please report this error." echo "Please report this error."
echo "Please copy all screen output and paste it into the report."
echo "You will need to run the following before reattempting installation." echo "You will need to run the following before reattempting installation."
echo "$ sudo ./remove-driver.sh" echo "$ sudo ./remove-driver.sh"
exit $RESULT exit $RESULT

View File

@ -250,7 +250,7 @@ int rtw_bw_mode = CONFIG_RTW_CUSTOMIZE_BWMODE;
int rtw_bw_mode = 0x21; int rtw_bw_mode = 0x21;
#endif #endif
int rtw_ampdu_enable = 1;/* for enable tx_ampdu , */ /* 0: disable, 0x1:enable */ int rtw_ampdu_enable = 1;/* for enable tx_ampdu , */ /* 0: disable, 0x1:enable */
int rtw_rx_stbc = 3;/* 0: disable, bit(0):enable 2.4g, bit(1):enable 5g, default is set to enable 2.4GHZ for IOT issue with bufflao's AP at 5GHZ */ int rtw_rx_stbc = 1;/* 0: disable, bit(0):enable 2.4g, bit(1):enable 5g, default is set to enable 2.4GHZ for IOT issue with bufflao's AP at 5GHZ */
#if (defined(CONFIG_RTL8814A) || defined(CONFIG_RTL8814B) || defined(CONFIG_RTL8822B) || defined(CONFIG_RTL8822C)) && defined(CONFIG_PCI_HCI) #if (defined(CONFIG_RTL8814A) || defined(CONFIG_RTL8814B) || defined(CONFIG_RTL8822B) || defined(CONFIG_RTL8822C)) && defined(CONFIG_PCI_HCI)
int rtw_rx_ampdu_amsdu = 2;/* 0: disabled, 1:enabled, 2:auto . There is an IOT issu with DLINK DIR-629 when the flag turn on */ int rtw_rx_ampdu_amsdu = 2;/* 0: disabled, 1:enabled, 2:auto . There is an IOT issu with DLINK DIR-629 when the flag turn on */
#elif ((defined(CONFIG_RTL8822B) || defined(CONFIG_RTL8822C)) && defined(CONFIG_SDIO_HCI)) #elif ((defined(CONFIG_RTL8822B) || defined(CONFIG_RTL8822C)) && defined(CONFIG_SDIO_HCI))