Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Support] Installation does not appear to have worked (Secure Boot) #4

Open
cory171185 opened this issue Jan 4, 2025 · 11 comments
Open

Comments

@cory171185
Copy link

I attempted to follow the instructions for installation, but it appears to not be working. The Ubuntu Wi-Fi settings page says "No Wi-Fi Adapter Found" and there is no wireless icon in the top right of the screen near the power button of my GNOME desktop.

I may have made a mistake while attempting to install or completely overlooked something. Also, if this is not the right place to ask for support I completely understand, just let me know.

Install log:

user@user-pc:~/src/rtl8852bu-20240418$ sudo ./install-driver.sh 
: ---------------------------
: Please copy and post all below lines when reporting an issue!
: ---------------------------
: install-driver.sh v20241208
: x86_64 (kernel architecture)
: x86_64 (architecture to send to gcc)
: 6/6 (in-use/total processing units)
: 16278180 (total system memory)
: 6.8.0-51-generic (kernel version)
: gcc-13 (version of gcc used to compile the kernel)
: gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
: dkms-3.0.11
: SecureBoot enabled
: Linux Wireless Regulatory Settings:
global
country 00: DFS-UNSET
: Info: https://docs.kernel.org/networking/regulatory.html
: Info: https://www.marcusfolkesson.se/blog/linux-wireless-regulatory/
: ---------------------------

Checking for previously installed drivers...
Finished checking for and uninstalling previously installed drivers.
: ---------------------------

Starting installation.
Copying 8852bu.conf to /etc/modprobe.d
The dkms installation routines are in use.
Copying source files to /usr/src/rtl8852bu-1.19.14-127
Creating symlink /var/lib/dkms/rtl8852bu/1.19.14-127/source -> /usr/src/rtl8852bu-1.19.14-127
The driver was added to dkms successfully.
: ---------------------------

Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
kernelver=6.8.0-51-generic ./dkms-make.sh...................................................
Signing module /var/lib/dkms/rtl8852bu/1.19.14-127/build/8852bu.ko
Cleaning build area...
Compile time: 737.38 seconds
The driver was built by dkms successfully.
: ---------------------------

8852bu.ko.zst:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-51-generic/updates/dkms/
depmod....
The driver was installed by dkms successfully.
: ---------------------------

Info: Update this driver with the following commands as needed:

$ git pull
$ sudo sh install-driver.sh

Note: Updates to this driver SHOULD be performed before distro
      upgrades such as Ubuntu 23.10 to 24.04.
Note: Updates to this driver SHOULD be performed before major
      upgrades such as kernel 6.5 to 6.6.
Note: Updates can be performed as often as you like. It is
      recommended to update at least every 3 months.
Note: Work on this driver, like the Linux kernel, is continuous.

Enjoy!

Do you want to edit the driver options file now? (recommended) [Y/n]

This is more or less a clean install of Ubuntu 24.04 Desktop. The only thing I did is update packages, configure Firefox, and attempt to get this wireless adapter working (Asus USB-AX55 Nano). I had previously attempted to use the instructions and driver from a different repo (https://github.com/lwfinger/rtl8852bu), but did not get it working. I'm also using nvidia graphics (proprietary) if that is relevant.

This is my whole bash history in case it helps (<200 lines):

sudo apt update
sudo apt upgrade
sudo reboot now
sudo apt update
sudo apt upgrade
sudo reboot now
sudo apt update
sudo apt upgrade
sudo apt install make gcc linux-headers-$(uname -r) build-essential git
lsusb
ls
git clone https://github.com/lwfinger/rtl8852
git clone https://github.com/lwfinger/rtl8852bu.git
cd rtl8852bu/
make
sudo make install
sudo dkms add .
sudo apt install dkms
sudo dkms add .
man dkms
dkms add .
sudo dkms add .
sudo reboot now
ping 1.1.1.1
modprode 8852bu
sudo modprobe 8852bu
sudo nano /usr/lib/udev/rules.d/40-usb_modeswitch.rules 
sudo reboot now
cd rtl8852bu/
make
sudo make install
sudo reboot now
sudo dkms status
ls
ls Downloads
ls rtl8852bu/
sudo apt find build-essentials
man sudo apt search build-essentials
sudo apt search build-essentials
gcc
sudo apt install build-essentials
sudo apt list build-essentials
which gcc
which make
which bc
which kernel-headers
sudo apt list kernel-headers
sudo apt list gcc
sudo apt install build-essentials
sudo apt get update
sudo apt update
sudo apt upgrade
sudo reboot now
sudo apt update
sudo apt upgrade
sudo apt autoremove
du
du -h
sudoa pt install build-essential dkms git iw
sudo apt install build-essential dkms git iw
apt search build-essential
apt search --local
which build-essential
apt list | grep build-essential
apt list | grep linux-headers
apt list --installed | grep linux-headers
sudo apt autoremove
sudo reboot now
apt list --installed | grep linux-headers
apt list -a linux-headers
sudo apt list -a linux-headers
ls
mkdir ~/src
ls
mkdir -p
mkdir --help
mkdir -p ~/src
ls
cd src
git clone https://github.com/morrownr/rtl8852bu-20240418.git
ls
cd ..
ls
cd src
ls
mv rtl8852bu-20240418/
cd rtl8852bu-20240418/
cat /proc/version
gcc --version
sudo ./install-driver.sh 
sudo dkms status
ls
cd src
ls
cd rtl8852bu-20240418/
ls
sudo ./install-driver.sh 
sudo mokutil --sb-state 
sudo mokutil --list-enrolled
cd src/rtl8852bu-20240418/
s
ls
sudo ./uninstall-driver.sh 
cd src/rtl8852bu-20240418/
ls
sudo ./install-driver.sh
cd src/rtl8852bu-20240418/
sudo ./edit-options.sh 
cd src/rtl8852bu-20240418/
ls
sudo ./edit-options.sh 
cd src/rtl8852bu-20240418/
sudo ./edit-options.sh 
cd src/rtl8852bu-20240418/
sudo ./uninstall-driver.sh 
sudo mokutil --list-enrolled
sudo dkms status
sudo mokutil --sb-state
sudo apt list --installed | grep openssl
sudo apt list --installed | grep sign-file
sudo apt list --installed | grep mokutil
sudo apt install sign-file
which sign-file
sign-file
sudo ./src/rtl8852bu-20240418/install-driver.sh 
ls
cd src/rtl8852bu-20240418/
sudo ./install-driver.sh 
sudo shutdown now
sudo mokutil --list-new
sudo reboot now
cd src/rtl8852bu-20240418/
sudo ./uninstall-driver.sh
cd src/rtl8852bu-20240418/
sudo make sign-install
cd src/rtl8852bu-20240418/
ls
sudo ./edit-options.sh 
cd src/rtl8852bu-20240418/
sudo make uninstall
ls
sudo reboot now
cd src/rtl8852bu-20240418/
sudo ./install-driver.sh 
sudo modprobe 8852bu
lspci -v
cd src/rtl8852bu-20240418/
sudo ./uninstall-driver.sh 
cd src/
ls
cd rtl8852bu-20240418/
ls
mv MOK.der MOK.der.old
mv MOK.priv MOK.priv.old
sudo ./install-driver.sh 
cd src/rtl8852bu-20240418/
ls
mv MOK.der.old MOK.der
mv MOK.priv.old MOK.priv
ls
ls -sh
cd ..
exit
cd src\ 1/rtl8852bu-20240418/
ls
sudo ./uninstall-driver.sh 
ls
cd src\ 1/
ls
cd rtl8852bu-20240418/
ls
cd ../..
mv src\ 1/ src
ls
cd src/rtl8852bu-20240418/
sudo ./uninstall-driver.sh 
mv src/ 'src 1'
ls
sudo dkms status
mkdir -p ~/src
ls
cd ~/src
git clone https://github.com/morrownr/rtl8852bu-20240418.git
cd rtl8852bu-20240418/
ls
sudo ./install-driver.sh
cd src/rtl8852bu-20240418/
sudo ./uninstall-driver.sh

The first time I attempted to follow the instructions in this repo with the automatic install script, when the mok configuration screen appeared after boot, I selected 'Continue boot', and the computer booted normally but the Wi-Fi did not work. I then tried uninstalling and reinstalling several times. Since that first time, the screen has not appeared, except for when I followed the instructions for manual install. That time, I selected 'Enroll MOK' and followed the steps specified in the instructions for the manual install, but that resulted in the same outcome of normal boot with no Wi-Fi.

I tried uninstalling and reinstalling with different settings for the configuration prompt before rebooting. I tried all 3 options for the USB settings (0, 1, 2). I tried putting the adapter in different ports on my computer, both USB 3 and USB 2, front and back of the case.

After reading the FAQ, I also attempted to disable Secure Boot to see if that would allow the Wi-Fi to work, but I could not find a way to do it on my ASUS motherboard with UEFI, as the option was grayed-out.

This is what it looks like when I uninstall:

user@ruser-pc:~/src/rtl8852bu-20240418$ sudo ./uninstall-driver.sh 
[sudo] password for user: 
: ---------------------------
: uninstall-driver.sh v20241208
: x86_64 (kernel architecture)
: 6.8.0-51-generic (kernel version)
: ---------------------------

Uninstalling a driver that was installed by dkms.
Module rtl8852bu-1.19.14-127 for kernel 6.8.0-51-generic (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

8852bu.ko.zst:
 - Uninstallation
   - Deleting from: /lib/modules/6.8.0-51-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.
depmod....
Deleting module rtl8852bu-1.19.14-127 completely from the DKMS tree.
Removing 8852bu.conf from /etc/modprobe.d
Removing source files from /usr/src/rtl8852bu-1.19.14-127
The driver was uninstalled successfully.
You may now delete the driver directory if desired.
: ---------------------------

Do you want to reboot now? (recommended) [Y/n] 

I am willing to troubleshoot. I am not a super advanced user but I have been using linux and I know the basics. Any help would be very appreciated! And if this is not the right place or you don't want to provide support I totally understand. Thank you!

@morrownr
Copy link
Owner

morrownr commented Jan 4, 2025

Hi @cory171185

Let's see what we can do. Run the following command and post the results:

$ lsusb

@cory171185
Copy link
Author

cory171185 commented Jan 4, 2025

user@user-pc:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0b05:1a62 ASUSTek Computer, Inc. 802.11ax WLAN Adapter
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
user@user-pc:~$ 

This is in the uninstalled state, as the last thing I did was run the automatic uninstall script.

@morrownr
Copy link
Owner

morrownr commented Jan 4, 2025

Bus 001 Device 002: ID 0b05:1a62 ASUSTek Computer, Inc. 802.11ax WLAN Adapter

I was just looking to make sure the device ID is in the driver and it is so that is not the problem.

I also attempted to disable Secure Boot to see if that would allow the Wi-Fi to work, but I could not find a way to do it on my ASUS motherboard with UEFI, as the option was grayed-out.

You may have to set a password to enter UEFI for the ability to disable Secure Boot to work.

I had previously attempted to use the instructions and driver from a different repo (https://github.com/lwfinger/rtl8852bu)

Did you uninstall that driver?

$ sudo make uninstall

@cory171185
Copy link
Author

You may have to set a password to enter UEFI for the ability to disable Secure Boot to work.

I did try to set a password and the UEFI page for secure boot looked the same. I can try to pursue this more.

Did you uninstall that driver?

I'm not sure if I did before, but I just ran that command. I'll try to run the install script again and see if anything changes.

@cory171185
Copy link
Author

I'll try to run the install script again and see if anything changes.

I ran sudo make uninstall in the other driver directory and then tried the auto install script again. There was no change.

@morrownr
Copy link
Owner

morrownr commented Jan 4, 2025

Here is something to try:

$ sudo mokutil --reset

Restart your computer.

$ sudo reboot

A MOK management screen should appear. In the MOK management screen, select reset MOK list, then reboot

$ sudo reboot

then reattempt installation:

$ sudo install-driver.sh

You should see a MOK screen on reboot again but this time DO NOT press continue. You need to enroll the key:

Shim UEFI Key Management

Press any key...

Select "Enroll key"

Select "Continue"

Select "Yes"

When promted, enter the password you entered earlier.

Hopefully that corrects the problem.

It appears that I need to work on the docs to ensure users know to select "Enroll key".

Extra info:

Using a USB WiFi adapter in Linux does not have to be this painful. See the Main Menu for this site:

https://github.com/morrownr/USB-WiFi

Reading menu items 1 and 2 should provide information that could be of benefit.

@mrc99
Copy link
Collaborator

mrc99 commented Jan 4, 2025

Just a suggestion but perhaps try running rfkill to check if the device is hard or soft blocked?

Eg on an enabled and working device
$ sudo rfkill --output-all
ID TYPE DEVICE TYPE-DESC SOFT HARD
0 wlan phy0 Wireless LAN unblocked unblocked
$

@cory171185
Copy link
Author

Just a suggestion but perhaps try running rfkill to check if the device is hard or soft blocked?

I ran this, no output

@cory171185
Copy link
Author

@morrownr I tried the steps you listed, in a bit of a scrambled way, and there was no change. I went through the steps to reset the mok list, while still being in an installed state from having run the auto install script. I saw the mok management screen and selected to reset the list. Then when the computer booted, I ran the uninstall script, then rebooted. I then went through the steps to reset the mok list again, in case it was important to do those in an uninstalled state, and at the mok configuration screen it gave me an error saying there was nothing to erase. Then I ran the install script, but there was nothing during the install about mok configuration, and the mok management screen did not appear during boot.

I don't have any more time to continue troubleshooting today, but I will return to try more. I will read through all the linked info in the repo. Sorry if I missed or overlooked something, I realize I probably should have selected to enroll the mok key the first time around.

I did see your great repo with the list of plug-and-play adapters. Unfortunately, I had already bought this adapter with the realtek chipset a few months ago, and want to give it another try to get working before I give up on it 😅. If I can't I will just go with one of the mediatek ones that are supported in kernel

@morrownr
Copy link
Owner

morrownr commented Jan 4, 2025

@mrc99

but perhaps try running rfkill

FYI: the install-driver.sh script runs rfkill in an effort to try to make sure this is not a problem.

@cory171185

want to give it another try to get working before I give up on it...

I understand. It just so happens that Realtek does a bad job with their Linux support. I will continue trying to help you as we both have time. Here is a link to a pinned issue in USB-WiFi:

morrownr/USB-WiFi#449

I do my best to help Linux users with information about usb adapters that work wonderfully with Linux.

@morrownr
Copy link
Owner

morrownr commented Jan 6, 2025

@cory171185

I rewrote the Secure Boot instructions today. You can pull the changes with:

$ git pull

I needed to update a test system so I installed Ubuntu 24.04.1 clean and then followed the instructions. The system had Secure Boot on. I rewrote the docs as I was using them. It worked. I did not have any problems. However, I realize my docs probably contributed to your problem so you probably need to do a reset as I outlined above and then follow the installation stels again exactly like they are written.

@morrownr morrownr changed the title [Support] Installation does not appear to have worked [Support] Installation does not appear to have worked (Secure Boot) Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants