SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have upgraded my wireless router from ac1200 to ac1900 and bought myself an Archer T9UHv2 (https://wikidevi.wi-cat.ru/TP-LINK_Archer_T9UH), but I cant seem to find the correct driver module for it.
AAA@ab-desktop:~/rtl8814au> make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.12.14-lp151.28.75-default/build M=/home/AAA/rtl8814au modules
make[1]: Entering directory '/usr/src/linux-4.12.14-lp151.28.75-obj/x86_64/default'
CC [M] /home/AAA/rtl8814au/core/rtw_cmd.o
CC [M] /home/AAA/rtl8814au/core/rtw_security.o
CC [M] /home/AAA/rtl8814au/core/rtw_debug.o
CC [M] /home/AAA/rtl8814au/core/rtw_io.o
CC [M] /home/AAA/rtl8814au/core/rtw_ioctl_query.o
CC [M] /home/AAA/rtl8814au/core/rtw_ioctl_set.o
CC [M] /home/AAA/rtl8814au/core/rtw_ieee80211.o
CC [M] /home/AAA/rtl8814au/core/rtw_mlme.o
CC [M] /home/AAA/rtl8814au/core/rtw_mlme_ext.o
CC [M] /home/AAA/rtl8814au/core/rtw_mi.o
CC [M] /home/AAA/rtl8814au/core/rtw_wlan_util.o
CC [M] /home/AAA/rtl8814au/core/rtw_vht.o
CC [M] /home/AAA/rtl8814au/core/rtw_pwrctrl.o
CC [M] /home/AAA/rtl8814au/core/rtw_rf.o
CC [M] /home/AAA/rtl8814au/core/rtw_chplan.o
CC [M] /home/AAA/rtl8814au/core/rtw_recv.o
CC [M] /home/AAA/rtl8814au/core/rtw_sta_mgt.o
CC [M] /home/AAA/rtl8814au/core/rtw_ap.o
CC [M] /home/AAA/rtl8814au/core/mesh/rtw_mesh.o
CC [M] /home/AAA/rtl8814au/core/mesh/rtw_mesh_pathtbl.o
CC [M] /home/AAA/rtl8814au/core/mesh/rtw_mesh_hwmp.o
CC [M] /home/AAA/rtl8814au/core/rtw_xmit.o
CC [M] /home/AAA/rtl8814au/core/rtw_p2p.o
CC [M] /home/AAA/rtl8814au/core/rtw_rson.o
CC [M] /home/AAA/rtl8814au/core/rtw_tdls.o
CC [M] /home/AAA/rtl8814au/core/rtw_br_ext.o
CC [M] /home/AAA/rtl8814au/core/rtw_iol.o
CC [M] /home/AAA/rtl8814au/core/rtw_sreset.o
CC [M] /home/AAA/rtl8814au/core/rtw_btcoex_wifionly.o
CC [M] /home/AAA/rtl8814au/core/rtw_btcoex.o
CC [M] /home/AAA/rtl8814au/core/rtw_beamforming.o
CC [M] /home/AAA/rtl8814au/core/rtw_odm.o
CC [M] /home/AAA/rtl8814au/core/rtw_rm.o
CC [M] /home/AAA/rtl8814au/core/rtw_rm_fsm.o
CC [M] /home/AAA/rtl8814au/core/rtw_rm_util.o
CC [M] /home/AAA/rtl8814au/core/efuse/rtw_efuse.o
CC [M] /home/AAA/rtl8814au/os_dep/osdep_service.o
CC [M] /home/AAA/rtl8814au/os_dep/linux/os_intfs.o
/home/AAA/rtl8814au/os_dep/linux/os_intfs.c:1709:22: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,
^~~~~~~~~~~~~~~~
/home/AAA/rtl8814au/os_dep/linux/os_intfs.c:1709:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-4.12.14-lp151.28.75/scripts/Makefile.build:325: /home/AAA/rtl8814au/os_dep/linux/os_intfs.o] Error 1
make[3]: *** [/usr/src/linux-4.12.14-lp151.28.75/Makefile:1573: _module_/home/AAA/rtl8814au] Error 2
make[2]: *** [Makefile:152: sub-make] Error 2
make[1]: *** [Makefile:24: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-4.12.14-lp151.28.75-obj/x86_64/default'
make: *** [Makefile:2328: modules] Error 2
AAA@ab-desktop:~/rtl8814au>
I also came across this [https://forums.opensuse.org/showthre...-driver/page2] and added Sauerland's() repo , but I could not find the rtl8814au driver with zypper/manually visiting the repository in a web browser.
Questions:
1. Does anyone know of a working driver that I can use ? [I would prefer a package, rather than compiling. Makes kernel upgrades easier..]
2. Is it anyway possible to keep both 8812 and 8814 drivers or should I blacklist the currently working 8812 driver ?
It looks to me as if this is really a warning, not an error, but it has been treated as an error because of the way the build is configured. In a normal cmmi build, you'd rebuild it with the configuration option --disable-werror. There must be a kernel configuration option that does something similar.
Thanks @hazel. I am not issuing a "gcc" command here, so not sure where to use this option, perhaps a configuration file ?
Here's my attempt with 'make -k' -
Code:
AAA@ab-desktop:~/rtl8814au> make -k
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.12.14-lp151.28.75-default/build M=/home/AAA/rtl8814au modules
make[1]: Entering directory '/usr/src/linux-4.12.14-lp151.28.75-obj/x86_64/default'
CC [M] /home/AAA/rtl8814au/os_dep/linux/os_intfs.o
/home/AAA/rtl8814au/os_dep/linux/os_intfs.c:1709:22: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,
^~~~~~~~~~~~~~~~
/home/AAA/rtl8814au/os_dep/linux/os_intfs.c:1709:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-4.12.14-lp151.28.75/scripts/Makefile.build:325: /home/AAA/rtl8814au/os_dep/linux/os_intfs.o] Error 1
CC [M] /home/AAA/rtl8814au/os_dep/linux/usb_intf.o
CC [M] /home/AAA/rtl8814au/os_dep/linux/usb_ops_linux.o
CC [M] /home/AAA/rtl8814au/os_dep/linux/ioctl_linux.o
CC [M] /home/AAA/rtl8814au/os_dep/linux/xmit_linux.o
CC [M] /home/AAA/rtl8814au/os_dep/linux/mlme_linux.o
CC [M] /home/AAA/rtl8814au/os_dep/linux/recv_linux.o
CC [M] /home/AAA/rtl8814au/os_dep/linux/ioctl_cfg80211.o
/home/AAA/rtl8814au/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/home/AAA/rtl8814au/os_dep/linux/ioctl_cfg80211.c:468:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (!rtw_cfg80211_allow_ch_switch_notify(adapter))
^~
/home/AAA/rtl8814au/os_dep/linux/ioctl_cfg80211.c:470:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
^~~~~~~~~~~~~~~~~~~~~~~~~
CC [M] /home/AAA/rtl8814au/os_dep/linux/rtw_cfgvendor.o
CC [M] /home/AAA/rtl8814au/os_dep/linux/wifi_regd.o
CC [M] /home/AAA/rtl8814au/os_dep/linux/rtw_android.o
CC [M] /home/AAA/rtl8814au/os_dep/linux/rtw_proc.o
CC [M] /home/AAA/rtl8814au/os_dep/linux/rtw_rhashtable.o
CC [M] /home/AAA/rtl8814au/os_dep/linux/ioctl_mp.o
CC [M] /home/AAA/rtl8814au/hal/hal_intf.o
CC [M] /home/AAA/rtl8814au/hal/hal_com.o
CC [M] /home/AAA/rtl8814au/hal/hal_com_phycfg.o
CC [M] /home/AAA/rtl8814au/hal/hal_phy.o
CC [M] /home/AAA/rtl8814au/hal/hal_dm.o
CC [M] /home/AAA/rtl8814au/hal/hal_dm_acs.o
CC [M] /home/AAA/rtl8814au/hal/hal_btcoex_wifionly.o
CC [M] /home/AAA/rtl8814au/hal/hal_btcoex.o
CC [M] /home/AAA/rtl8814au/hal/hal_mp.o
CC [M] /home/AAA/rtl8814au/hal/hal_mcc.o
CC [M] /home/AAA/rtl8814au/hal/hal_hci/hal_usb.o
CC [M] /home/AAA/rtl8814au/hal/led/hal_led.o
CC [M] /home/AAA/rtl8814au/hal/led/hal_usb_led.o
CC [M] /home/AAA/rtl8814au/hal/HalPwrSeqCmd.o
CC [M] /home/AAA/rtl8814au/hal/rtl8814a/Hal8814PwrSeq.o
CC [M] /home/AAA/rtl8814au/hal/rtl8814a/rtl8814a_xmit.o
CC [M] /home/AAA/rtl8814au/hal/rtl8814a/rtl8814a_sreset.o
CC [M] /home/AAA/rtl8814au/hal/rtl8814a/rtl8814a_hal_init.o
CC [M] /home/AAA/rtl8814au/hal/rtl8814a/rtl8814a_phycfg.o
CC [M] /home/AAA/rtl8814au/hal/rtl8814a/rtl8814a_rf6052.o
CC [M] /home/AAA/rtl8814au/hal/rtl8814a/rtl8814a_dm.o
CC [M] /home/AAA/rtl8814au/hal/rtl8814a/rtl8814a_rxdesc.o
CC [M] /home/AAA/rtl8814au/hal/rtl8814a/rtl8814a_cmd.o
CC [M] /home/AAA/rtl8814au/hal/rtl8814a/hal8814a_fw.o
CC [M] /home/AAA/rtl8814au/hal/rtl8814a/usb/usb_halinit.o
CC [M] /home/AAA/rtl8814au/hal/rtl8814a/usb/rtl8814au_led.o
CC [M] /home/AAA/rtl8814au/hal/rtl8814a/usb/rtl8814au_xmit.o
CC [M] /home/AAA/rtl8814au/hal/rtl8814a/usb/rtl8814au_recv.o
CC [M] /home/AAA/rtl8814au/hal/rtl8814a/usb/usb_ops_linux.o
CC [M] /home/AAA/rtl8814au/hal/efuse/rtl8814a/HalEfuseMask8814A_USB.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_debug.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_antdiv.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_soml.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_smt_ant.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_antdect.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_interface.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_phystatus.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_hwconfig.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_dig.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_pathdiv.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_rainfo.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_dynamictxpower.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_adaptivity.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_cfotracking.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_noisemonitor.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_beamforming.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_direct_bf.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_dfs.o
CC [M] /home/AAA/rtl8814au/hal/phydm/txbf/halcomtxbf.o
CC [M] /home/AAA/rtl8814au/hal/phydm/txbf/haltxbfinterface.o
CC [M] /home/AAA/rtl8814au/hal/phydm/txbf/phydm_hal_txbf_api.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_adc_sampling.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_ccx.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_psd.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_primary_cca.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_cck_pd.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_rssi_monitor.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_auto_dbg.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_math_lib.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_api.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_pow_train.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_lna_sat.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_pmac_tx_setting.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_mp.o
CC [M] /home/AAA/rtl8814au/hal/phydm/phydm_cck_rx_pathdiv.o
CC [M] /home/AAA/rtl8814au/hal/phydm/halrf/halrf.o
CC [M] /home/AAA/rtl8814au/hal/phydm/halrf/halrf_debug.o
CC [M] /home/AAA/rtl8814au/hal/phydm/halrf/halphyrf_ce.o
CC [M] /home/AAA/rtl8814au/hal/phydm/halrf/halrf_powertracking_ce.o
CC [M] /home/AAA/rtl8814au/hal/phydm/halrf/halrf_powertracking.o
CC [M] /home/AAA/rtl8814au/hal/phydm/halrf/halrf_kfree.o
CC [M] /home/AAA/rtl8814au/hal/phydm/halrf/halrf_psd.o
CC [M] /home/AAA/rtl8814au/hal/phydm/rtl8814a/halhwimg8814a_bb.o
CC [M] /home/AAA/rtl8814au/hal/phydm/rtl8814a/halhwimg8814a_mac.o
CC [M] /home/AAA/rtl8814au/hal/phydm/halrf/rtl8814a/halhwimg8814a_rf.o
CC [M] /home/AAA/rtl8814au/hal/phydm/halrf/rtl8814a/halrf_iqk_8814a.o
CC [M] /home/AAA/rtl8814au/hal/phydm/rtl8814a/phydm_regconfig8814a.o
CC [M] /home/AAA/rtl8814au/hal/phydm/halrf/rtl8814a/halrf_8814a_ce.o
CC [M] /home/AAA/rtl8814au/hal/phydm/rtl8814a/phydm_rtl8814a.o
CC [M] /home/AAA/rtl8814au/hal/phydm/txbf/haltxbf8814a.o
CC [M] /home/AAA/rtl8814au/platform/platform_ops.o
CC [M] /home/AAA/rtl8814au/core/rtw_mp.o
make[4]: Target '__build' not remade because of errors.
make[3]: *** [/usr/src/linux-4.12.14-lp151.28.75/Makefile:1573: _module_/home/AAA/rtl8814au] Error 2
make[3]: Target 'modules' not remade because of errors.
make[2]: *** [Makefile:152: sub-make] Error 2
make[2]: Target 'modules' not remade because of errors.
make[1]: *** [Makefile:24: __sub-make] Error 2
make[1]: Target 'modules' not remade because of errors.
make[1]: Leaving directory '/usr/src/linux-4.12.14-lp151.28.75-obj/x86_64/default'
make: *** [Makefile:2328: modules] Error 2
make: Target 'all' not remade because of errors.
I'll read up about that '--disable-werror' and general compiling.
We need the ID of the chip, so we can see, which driver is working.
Sometimes there are different Chips inside the same named Stick and you have to use different kernel modules.
@Sauerland, I just checked the driver package of rtl8812au. It was picked from the hardware repo..
Code:
# zypper info rtl8812au-kmp-default
Retrieving repository 'openSUSE:Leap:15.1:Update' metadata ...............................................................................................................................[done]
Building repository 'openSUSE:Leap:15.1:Update' cache ....................................................................................................................................[done]
Loading repository data...
Reading installed packages...
Information for package rtl8812au-kmp-default:
----------------------------------------------
Repository : hardware
Name : rtl8812au-kmp-default
Version : 5.6.4.2+git20200702.3110ad6_k4.12.14_lp151.27-lp151.24.1
Arch : x86_64
Vendor : obs://build.opensuse.org/hardware
Installed Size : 3.2 MiB
Installed : Yes
Status : out-of-date (version 5.6.4.2+git20200702.3110ad6_k4.12.14_lp151.27-lp151.23.1 installed)
Source package : rtl8812au-5.6.4.2+git20200702.3110ad6-lp151.24.1.src
Summary : Kernel driver for Realtek 802.11ac rtl8812au wifi cards
Description :
Kernel driver for Realtek 802.11ac 8812au wifi cards
The sources were obtained from https://github.com/gordboy/rtl8812au, which adaptes the official driver
released by Realtek to build on recent kernels.
The previous sources were obtained from https://github.com/diederikdehaas/rtl8812AU and
https://github.com/maurossi/rtl8812au/ .
# zypper info rtl8812au
Loading repository data...
Reading installed packages...
Information for package rtl8812au:
----------------------------------
Repository : hardware
Name : rtl8812au
Version : 5.6.4.2+git20200702.3110ad6-lp151.24.1
Arch : x86_64
Vendor : obs://build.opensuse.org/hardware
Installed Size : 17.6 KiB
Installed : Yes
Status : out-of-date (version 5.6.4.2+git20200702.3110ad6-lp151.23.1 installed)
Source package : rtl8812au-5.6.4.2+git20200702.3110ad6-lp151.24.1.src
Summary : Kernel driver for Realtek 802.11ac 8812au wifi cards
Description :
Kernel driver for Realtek 802.11ac 8812au wifi cards
The sources were obtained from https://github.com/gordboy/rtl8812au, which adaptes the official driver
released by Realtek to build on recent kernels.
The previous sources were obtained from https://github.com/diederikdehaas/rtl8812AU and
https://github.com/maurossi/rtl8812au/ .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.