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

install-driver.sh fails when SecureBoot is enabled and DKMS is not used #148

Open
thonigmann opened this issue Oct 13, 2024 · 2 comments
Open

Comments

@thonigmann
Copy link

This is Ubuntu 24.04 running in a virtual machine, but I'm sure this will occur on real hardware as well.
Secure Boot is enabled and DKMS is not installed.
Calling sudo ./install-driver.sh fails with a message "make: sign: File not found"

Apparently, the problem is the definition of the target sign-install in Makefile, which orders make to call a program called sign that doesn't exist.

sign-install:
        sign install

Changing the definition to let the target sign-install forward to the targets sign and install fixes the issue.

sign-install: sign install

Here is the complete output of install-driver.sh:

thomas@smimas:~/src/8814au$ sudo ./install-driver.sh
: ---------------------------
: install-driver.sh v20230227
: x86_64 (architecture)
: 4/4 (in-use/total processing units)
: 3960492 (total system memory)
: 6.8.0-45-generic (kernel version)
: gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0
: SecureBoot enabled
: ---------------------------

Checking for previously installed drivers.
: ---------------------------

Starting installation.
Installing 8814au.conf to /etc/modprobe.d
The non-dkms installation routines are in use.
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.8.0-45-generic/build M=/home/thomas/src/8814au modules
make[1]: Verzeichnis „/usr/src/linux-headers-6.8.0-45-generic“ wird betreten
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0
You are using: gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0
CC [M] /home/thomas/src/8814au/core/rtw_cmd.o
CC [M] /home/thomas/src/8814au/core/rtw_security.o
CC [M] /home/thomas/src/8814au/core/rtw_debug.o
CC [M] /home/thomas/src/8814au/core/rtw_io.o
CC [M] /home/thomas/src/8814au/core/rtw_ioctl_query.o
CC [M] /home/thomas/src/8814au/core/rtw_ioctl_set.o
CC [M] /home/thomas/src/8814au/core/rtw_ieee80211.o
CC [M] /home/thomas/src/8814au/core/rtw_mlme.o
CC [M] /home/thomas/src/8814au/core/rtw_mlme_ext.o
CC [M] /home/thomas/src/8814au/core/rtw_mi.o
CC [M] /home/thomas/src/8814au/core/rtw_wlan_util.o
CC [M] /home/thomas/src/8814au/core/rtw_vht.o
CC [M] /home/thomas/src/8814au/core/rtw_pwrctrl.o
CC [M] /home/thomas/src/8814au/core/rtw_rf.o
CC [M] /home/thomas/src/8814au/core/rtw_chplan.o
CC [M] /home/thomas/src/8814au/core/rtw_recv.o
CC [M] /home/thomas/src/8814au/core/rtw_sta_mgt.o
CC [M] /home/thomas/src/8814au/core/rtw_ap.o
CC [M] /home/thomas/src/8814au/core/mesh/rtw_mesh.o
CC [M] /home/thomas/src/8814au/core/mesh/rtw_mesh_pathtbl.o
CC [M] /home/thomas/src/8814au/core/mesh/rtw_mesh_hwmp.o
CC [M] /home/thomas/src/8814au/core/rtw_xmit.o
CC [M] /home/thomas/src/8814au/core/rtw_p2p.o
CC [M] /home/thomas/src/8814au/core/rtw_rson.o
CC [M] /home/thomas/src/8814au/core/rtw_tdls.o
CC [M] /home/thomas/src/8814au/core/rtw_br_ext.o
CC [M] /home/thomas/src/8814au/core/rtw_iol.o
CC [M] /home/thomas/src/8814au/core/rtw_sreset.o
CC [M] /home/thomas/src/8814au/core/rtw_btcoex_wifionly.o
CC [M] /home/thomas/src/8814au/core/rtw_btcoex.o
CC [M] /home/thomas/src/8814au/core/rtw_beamforming.o
CC [M] /home/thomas/src/8814au/core/rtw_odm.o
CC [M] /home/thomas/src/8814au/core/rtw_rm.o
CC [M] /home/thomas/src/8814au/core/rtw_rm_fsm.o
CC [M] /home/thomas/src/8814au/core/rtw_rm_util.o
CC [M] /home/thomas/src/8814au/core/efuse/rtw_efuse.o
CC [M] /home/thomas/src/8814au/os_dep/osdep_service.o
CC [M] /home/thomas/src/8814au/os_dep/linux/os_intfs.o
CC [M] /home/thomas/src/8814au/os_dep/linux/usb_intf.o
CC [M] /home/thomas/src/8814au/os_dep/linux/usb_ops_linux.o
CC [M] /home/thomas/src/8814au/os_dep/linux/ioctl_linux.o
CC [M] /home/thomas/src/8814au/os_dep/linux/xmit_linux.o
CC [M] /home/thomas/src/8814au/os_dep/linux/mlme_linux.o
CC [M] /home/thomas/src/8814au/os_dep/linux/recv_linux.o
CC [M] /home/thomas/src/8814au/os_dep/linux/ioctl_cfg80211.o
CC [M] /home/thomas/src/8814au/os_dep/linux/rtw_cfgvendor.o
CC [M] /home/thomas/src/8814au/os_dep/linux/wifi_regd.o
CC [M] /home/thomas/src/8814au/os_dep/linux/rtw_android.o
CC [M] /home/thomas/src/8814au/os_dep/linux/rtw_proc.o
CC [M] /home/thomas/src/8814au/os_dep/linux/rtw_rhashtable.o
CC [M] /home/thomas/src/8814au/hal/hal_intf.o
CC [M] /home/thomas/src/8814au/hal/hal_com.o
CC [M] /home/thomas/src/8814au/hal/hal_com_phycfg.o
CC [M] /home/thomas/src/8814au/hal/hal_phy.o
CC [M] /home/thomas/src/8814au/hal/hal_dm.o
CC [M] /home/thomas/src/8814au/hal/hal_dm_acs.o
CC [M] /home/thomas/src/8814au/hal/hal_btcoex_wifionly.o
CC [M] /home/thomas/src/8814au/hal/hal_btcoex.o
CC [M] /home/thomas/src/8814au/hal/hal_mp.o
CC [M] /home/thomas/src/8814au/hal/hal_mcc.o
CC [M] /home/thomas/src/8814au/hal/hal_hci/hal_usb.o
CC [M] /home/thomas/src/8814au/hal/led/hal_led.o
CC [M] /home/thomas/src/8814au/hal/led/hal_usb_led.o
CC [M] /home/thomas/src/8814au/hal/HalPwrSeqCmd.o
CC [M] /home/thomas/src/8814au/hal/rtl8814a/Hal8814PwrSeq.o
CC [M] /home/thomas/src/8814au/hal/rtl8814a/rtl8814a_xmit.o
CC [M] /home/thomas/src/8814au/hal/rtl8814a/rtl8814a_sreset.o
CC [M] /home/thomas/src/8814au/hal/rtl8814a/rtl8814a_hal_init.o
CC [M] /home/thomas/src/8814au/hal/rtl8814a/rtl8814a_phycfg.o
CC [M] /home/thomas/src/8814au/hal/rtl8814a/rtl8814a_rf6052.o
CC [M] /home/thomas/src/8814au/hal/rtl8814a/rtl8814a_dm.o
CC [M] /home/thomas/src/8814au/hal/rtl8814a/rtl8814a_rxdesc.o
CC [M] /home/thomas/src/8814au/hal/rtl8814a/rtl8814a_cmd.o
CC [M] /home/thomas/src/8814au/hal/rtl8814a/hal8814a_fw.o
CC [M] /home/thomas/src/8814au/hal/rtl8814a/usb/usb_halinit.o
CC [M] /home/thomas/src/8814au/hal/rtl8814a/usb/rtl8814au_led.o
CC [M] /home/thomas/src/8814au/hal/rtl8814a/usb/rtl8814au_xmit.o
CC [M] /home/thomas/src/8814au/hal/rtl8814a/usb/rtl8814au_recv.o
CC [M] /home/thomas/src/8814au/hal/rtl8814a/usb/usb_ops_linux.o
CC [M] /home/thomas/src/8814au/hal/efuse/rtl8814a/HalEfuseMask8814A_USB.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_debug.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_antdiv.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_soml.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_smt_ant.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_antdect.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_interface.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_phystatus.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_hwconfig.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_dig.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_pathdiv.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_rainfo.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_dynamictxpower.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_adaptivity.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_cfotracking.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_noisemonitor.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_beamforming.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_direct_bf.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_dfs.o
CC [M] /home/thomas/src/8814au/hal/phydm/txbf/halcomtxbf.o
CC [M] /home/thomas/src/8814au/hal/phydm/txbf/haltxbfinterface.o
CC [M] /home/thomas/src/8814au/hal/phydm/txbf/phydm_hal_txbf_api.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_adc_sampling.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_ccx.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_psd.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_primary_cca.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_cck_pd.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_rssi_monitor.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_auto_dbg.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_math_lib.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_api.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_pow_train.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_lna_sat.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_pmac_tx_setting.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_mp.o
CC [M] /home/thomas/src/8814au/hal/phydm/phydm_cck_rx_pathdiv.o
CC [M] /home/thomas/src/8814au/hal/phydm/halrf/halrf.o
CC [M] /home/thomas/src/8814au/hal/phydm/halrf/halrf_debug.o
CC [M] /home/thomas/src/8814au/hal/phydm/halrf/halphyrf_ce.o
CC [M] /home/thomas/src/8814au/hal/phydm/halrf/halrf_powertracking_ce.o
CC [M] /home/thomas/src/8814au/hal/phydm/halrf/halrf_powertracking.o
CC [M] /home/thomas/src/8814au/hal/phydm/halrf/halrf_kfree.o
CC [M] /home/thomas/src/8814au/hal/phydm/halrf/halrf_psd.o
CC [M] /home/thomas/src/8814au/hal/phydm/rtl8814a/halhwimg8814a_bb.o
CC [M] /home/thomas/src/8814au/hal/phydm/rtl8814a/halhwimg8814a_mac.o
CC [M] /home/thomas/src/8814au/hal/phydm/halrf/rtl8814a/halhwimg8814a_rf.o
CC [M] /home/thomas/src/8814au/hal/phydm/halrf/rtl8814a/halrf_iqk_8814a.o
CC [M] /home/thomas/src/8814au/hal/phydm/rtl8814a/phydm_regconfig8814a.o
CC [M] /home/thomas/src/8814au/hal/phydm/halrf/rtl8814a/halrf_8814a_ce.o
CC [M] /home/thomas/src/8814au/hal/phydm/rtl8814a/phydm_rtl8814a.o
CC [M] /home/thomas/src/8814au/hal/phydm/txbf/haltxbf8814a.o
CC [M] /home/thomas/src/8814au/platform/platform_ops.o
LD [M] /home/thomas/src/8814au/8814au.o
MODPOST /home/thomas/src/8814au/Module.symvers
CC [M] /home/thomas/src/8814au/8814au.mod.o
LD [M] /home/thomas/src/8814au/8814au.ko
BTF [M] /home/thomas/src/8814au/8814au.ko
Skipping BTF generation for /home/thomas/src/8814au/8814au.ko due to unavailability of vmlinux
make[1]: Verzeichnis „/usr/src/linux-headers-6.8.0-45-generic“ wird verlassen
: SecureBoot enabled - read FAQ about SecureBoot
sign install
make: sign: Datei oder Verzeichnis nicht gefunden
make: *** [Makefile:2414: sign-install] Fehler 127
An error occurred: 2
Please report this error.
Please copy all screen output and paste it into the problem report.
You will need to run the following before reattempting installation.
$ sudo ./remove-driver.sh

@morrownr
Copy link
Owner

@thonigmann

Thanks. This error is in all the repos here. I am working on fixing this and another bug I found in that fork on the code.

It is a lot of work maintaining several out-of-kernel drivers but the good news is that 4 of the ones I maintain here should have drivers in the kernel that are of good enough quality that they are better than the out-of-kernel drivers here so I should be able to look at archiving some of the drivers here in 2025.

The drivers in the rtw88 kernel driver are 88x2bu, 8821cu and the quality has been improving greatly over this year. If you are using kernel 6.11 or later, you should not need these drivers anymore. Soon to be added are drivers for 8812au and 8821au. These will be very good drivers and should go into kernel 6.13. A rtl8814au driver is planned and can maybe happen sometime in 2025. This is all community work... the Realtek usb wifi team is not involved so please don't give them any credit. Buy Mediatek based adapters if you care about good Linux drivers in usb adapters.

@thonigmann
Copy link
Author

Thank you for the info and thank you for the work you do. It's not an urgent issue for me since I know how to fix it locally.

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

2 participants