Jump to content

Recommended Posts

Posted
Armbianmonitor:

Hello.

I have an orange pi zero and awus1900 with chipset rtl8814au. ( Armbian 20.11.6 Focal with Linux 5.10.4-sunxi )

I try install driver for rtl8814au as this.

But I am faced with the following problems:

 

Цитата

root@orangepizero:~/rtl8814au# make ARCH=arm
make ARCH=arm CROSS_COMPILE= -C /lib/modules/5.10.4-sunxi/build M=/root/rtl8814au  modules
make[1]: Entering directory '/usr/src/linux-headers-5.10.4-sunxi'
  CC [M]  /root/rtl8814au/core/rtw_cmd.o
  CC [M]  /root/rtl8814au/core/rtw_security.o
  CC [M]  /root/rtl8814au/core/rtw_debug.o
  CC [M]  /root/rtl8814au/core/rtw_io.o
  CC [M]  /root/rtl8814au/core/rtw_ioctl_query.o
  CC [M]  /root/rtl8814au/core/rtw_ioctl_set.o
  CC [M]  /root/rtl8814au/core/rtw_ieee80211.o
  CC [M]  /root/rtl8814au/core/rtw_mlme.o
  CC [M]  /root/rtl8814au/core/rtw_mlme_ext.o
  CC [M]  /root/rtl8814au/core/rtw_mi.o
  CC [M]  /root/rtl8814au/core/rtw_wlan_util.o
  CC [M]  /root/rtl8814au/core/rtw_vht.o
  CC [M]  /root/rtl8814au/core/rtw_pwrctrl.o
  CC [M]  /root/rtl8814au/core/rtw_rf.o
  CC [M]  /root/rtl8814au/core/rtw_chplan.o
  CC [M]  /root/rtl8814au/core/rtw_recv.o
  CC [M]  /root/rtl8814au/core/rtw_sta_mgt.o
  CC [M]  /root/rtl8814au/core/rtw_ap.o
  CC [M]  /root/rtl8814au/core/mesh/rtw_mesh.o
  CC [M]  /root/rtl8814au/core/mesh/rtw_mesh_pathtbl.o
  CC [M]  /root/rtl8814au/core/mesh/rtw_mesh_hwmp.o
  CC [M]  /root/rtl8814au/core/rtw_xmit.o
  CC [M]  /root/rtl8814au/core/rtw_p2p.o
  CC [M]  /root/rtl8814au/core/rtw_rson.o
  CC [M]  /root/rtl8814au/core/rtw_tdls.o
  CC [M]  /root/rtl8814au/core/rtw_br_ext.o
  CC [M]  /root/rtl8814au/core/rtw_iol.o
  CC [M]  /root/rtl8814au/core/rtw_sreset.o
  CC [M]  /root/rtl8814au/core/rtw_btcoex_wifionly.o
  CC [M]  /root/rtl8814au/core/rtw_btcoex.o
  CC [M]  /root/rtl8814au/core/rtw_beamforming.o
  CC [M]  /root/rtl8814au/core/rtw_odm.o
  CC [M]  /root/rtl8814au/core/rtw_rm.o
  CC [M]  /root/rtl8814au/core/rtw_rm_fsm.o
  CC [M]  /root/rtl8814au/core/rtw_rm_util.o
  CC [M]  /root/rtl8814au/core/efuse/rtw_efuse.o
  CC [M]  /root/rtl8814au/os_dep/osdep_service.o
  CC [M]  /root/rtl8814au/os_dep/linux/os_intfs.o
  CC [M]  /root/rtl8814au/os_dep/linux/usb_intf.o
  CC [M]  /root/rtl8814au/os_dep/linux/usb_ops_linux.o
  CC [M]  /root/rtl8814au/os_dep/linux/ioctl_linux.o
  CC [M]  /root/rtl8814au/os_dep/linux/xmit_linux.o
  CC [M]  /root/rtl8814au/os_dep/linux/mlme_linux.o
  CC [M]  /root/rtl8814au/os_dep/linux/recv_linux.o
  CC [M]  /root/rtl8814au/os_dep/linux/ioctl_cfg80211.o
/root/rtl8814au/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/root/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))
     ^~
/root/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]  /root/rtl8814au/os_dep/linux/rtw_cfgvendor.o
  CC [M]  /root/rtl8814au/os_dep/linux/wifi_regd.o
  CC [M]  /root/rtl8814au/os_dep/linux/rtw_android.o
  CC [M]  /root/rtl8814au/os_dep/linux/rtw_proc.o
  CC [M]  /root/rtl8814au/os_dep/linux/rtw_rhashtable.o
  CC [M]  /root/rtl8814au/os_dep/linux/ioctl_mp.o
  CC [M]  /root/rtl8814au/hal/hal_intf.o
  CC [M]  /root/rtl8814au/hal/hal_com.o
  CC [M]  /root/rtl8814au/hal/hal_com_phycfg.o
  CC [M]  /root/rtl8814au/hal/hal_phy.o
  CC [M]  /root/rtl8814au/hal/hal_dm.o
  CC [M]  /root/rtl8814au/hal/hal_dm_acs.o
  CC [M]  /root/rtl8814au/hal/hal_btcoex_wifionly.o
  CC [M]  /root/rtl8814au/hal/hal_btcoex.o
  CC [M]  /root/rtl8814au/hal/hal_mp.o
  CC [M]  /root/rtl8814au/hal/hal_mcc.o
  CC [M]  /root/rtl8814au/hal/hal_hci/hal_usb.o
  CC [M]  /root/rtl8814au/hal/led/hal_led.o
  CC [M]  /root/rtl8814au/hal/led/hal_usb_led.o
  CC [M]  /root/rtl8814au/hal/HalPwrSeqCmd.o
  CC [M]  /root/rtl8814au/hal/rtl8814a/Hal8814PwrSeq.o
  CC [M]  /root/rtl8814au/hal/rtl8814a/rtl8814a_xmit.o
  CC [M]  /root/rtl8814au/hal/rtl8814a/rtl8814a_sreset.o
  CC [M]  /root/rtl8814au/hal/rtl8814a/rtl8814a_hal_init.o
  CC [M]  /root/rtl8814au/hal/rtl8814a/rtl8814a_phycfg.o
  CC [M]  /root/rtl8814au/hal/rtl8814a/rtl8814a_rf6052.o

CC [M]  /root/rtl8814au/hal/rtl8814a/rtl8814a_dm.o
  CC [M]  /root/rtl8814au/hal/rtl8814a/rtl8814a_rxdesc.o
  CC [M]  /root/rtl8814au/hal/rtl8814a/rtl8814a_cmd.o
  CC [M]  /root/rtl8814au/hal/rtl8814a/hal8814a_fw.o
  CC [M]  /root/rtl8814au/hal/rtl8814a/usb/usb_halinit.o
  CC [M]  /root/rtl8814au/hal/rtl8814a/usb/rtl8814au_led.o
  CC [M]  /root/rtl8814au/hal/rtl8814a/usb/rtl8814au_xmit.o
  CC [M]  /root/rtl8814au/hal/rtl8814a/usb/rtl8814au_recv.o
  CC [M]  /root/rtl8814au/hal/rtl8814a/usb/usb_ops_linux.o
  CC [M]  /root/rtl8814au/hal/efuse/rtl8814a/HalEfuseMask8814A_USB.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_debug.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_antdiv.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_soml.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_smt_ant.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_antdect.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_interface.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_phystatus.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_hwconfig.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_dig.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_pathdiv.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_rainfo.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_dynamictxpower.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_adaptivity.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_cfotracking.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_noisemonitor.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_beamforming.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_direct_bf.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_dfs.o
  CC [M]  /root/rtl8814au/hal/phydm/txbf/halcomtxbf.o
  CC [M]  /root/rtl8814au/hal/phydm/txbf/haltxbfinterface.o
  CC [M]  /root/rtl8814au/hal/phydm/txbf/phydm_hal_txbf_api.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_adc_sampling.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_ccx.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_psd.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_primary_cca.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_cck_pd.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_rssi_monitor.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_auto_dbg.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_math_lib.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_api.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_pow_train.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_lna_sat.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_pmac_tx_setting.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_mp.o
  CC [M]  /root/rtl8814au/hal/phydm/phydm_cck_rx_pathdiv.o
  CC [M]  /root/rtl8814au/hal/phydm/halrf/halrf.o
  CC [M]  /root/rtl8814au/hal/phydm/halrf/halrf_debug.o
  CC [M]  /root/rtl8814au/hal/phydm/halrf/halphyrf_ce.o
  CC [M]  /root/rtl8814au/hal/phydm/halrf/halrf_powertracking_ce.o
  CC [M]  /root/rtl8814au/hal/phydm/halrf/halrf_powertracking.o
  CC [M]  /root/rtl8814au/hal/phydm/halrf/halrf_kfree.o
  CC [M]  /root/rtl8814au/hal/phydm/halrf/halrf_psd.o
  CC [M]  /root/rtl8814au/hal/phydm/rtl8814a/halhwimg8814a_bb.o
  CC [M]  /root/rtl8814au/hal/phydm/rtl8814a/halhwimg8814a_mac.o
  CC [M]  /root/rtl8814au/hal/phydm/halrf/rtl8814a/halhwimg8814a_rf.o
  CC [M]  /root/rtl8814au/hal/phydm/halrf/rtl8814a/halrf_iqk_8814a.o
  CC [M]  /root/rtl8814au/hal/phydm/rtl8814a/phydm_regconfig8814a.o
  CC [M]  /root/rtl8814au/hal/phydm/halrf/rtl8814a/halrf_8814a_ce.o
  CC [M]  /root/rtl8814au/hal/phydm/rtl8814a/phydm_rtl8814a.o
  CC [M]  /root/rtl8814au/hal/phydm/txbf/haltxbf8814a.o
  CC [M]  /root/rtl8814au/platform/platform_ops.o
  CC [M]  /root/rtl8814au/core/rtw_mp.o
  LD [M]  /root/rtl8814au/8814au.o
  MODPOST /root/rtl8814au/Module.symvers
  CC [M]  /root/rtl8814au/8814au.mod.o
make[3]: *** No rule to make target 'scripts/module.lds', needed by '/root/rtl8814au/8814au.ko'.  Stop.
scripts/Makefile.modpost:117: recipe for target '__modpost' failed
make[2]: *** [__modpost] Error 2
Makefile:1711: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.10.4-sunxi'
Makefile:2353: recipe for target 'modules' failed
make: *** [modules] Error 2

 

Then i did:

 

cp /usr/src/linux-headers-5.10.4-sunxi/scripts/module.lds.S /usr/src/linux-headers-5.10.4-sunxi/scripts/module.lds
sudo sed -i '$ d' /usr/src/linux-headers-5.10.4-sunxi/scripts/module.lds

 

And make with ARCH option with "arm".

 

But i have now next problem:

 

Цитата

root@orangepizero:~# modprobe 8814au
modprobe: ERROR: could not insert '8814au': Exec format error

 

Posted
6 hours ago, Linavan said:

Exec format error

I've seen this a couple of times now and is not related to any specific driver but a general problem in kernel packaging. Seen it myself but forgot how I solved it besides manually grabbing this lds file...

Posted
43 minutes ago, Werner said:

but a general problem in kernel packaging.


Why then some drivers build, some don't?

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines