Comments (8)
Hi @EDLLT
Is it possible to install the driver on a phone?
Doing so would be a big challenge.
If you would outline what you are trying to do, I might be able to offer some advice.
Regards
from 88x2bu-20210702.
Hi @EDLLT
Is it possible to install the driver on a phone?
Doing so would be a big challenge.
If you would outline what you are trying to do, I might be able to offer some advice.
Regards
Alright so, I have an S20 FE 5G and I installed this custom kernel on my phone, along with a full chroot installation
https://forum.xda-developers.com/t/kernel-nethunter-for-galaxy-s20-fe-5g-r8q-snapdragon.4205881/
The wireless adapter is an Archer T4U Plus V3, it has the 8822bu chipset
running uname -m
on the phone gives me
aarch64
then ./install-driver.sh
`Running install-driver.sh version 20220108
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
4.19.113-Nethunter_WirusMOD_r8q_v2.3
aarch64
Starting installation...
Copying source files to: /usr/src/rtl88x2bu-5.13.1
Copying 88x2bu.conf to: /etc/modprobe.d
Creating symlink /var/lib/dkms/rtl88x2bu/5.13.1/source -> /usr/src/rtl88x2bu-5.13.1
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
'make' -j6 KVER=4.19.113-Nethunter_WirusMOD_r8q_v2.3 KSRC=/lib/modules/4.19.113-Nethunter_WirusMOD_r8q_v2.3/build....................
cleaning build area...
88x2bu.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.19.113-Nethunter_WirusMOD_r8q_v2.3/kernel/drivers/net/wireless/
depmod...
The driver was installed successfully.
Do you want to edit the driver options file now? [y/N] y
Do you want to reboot now? (recommended) [y/N] N`
But the driver didn't install correctly and the wifi adapter won't work
so I tried the manual build instructions
Running make clean
#make -C /lib/modules/4.19.113-Nethunter_WirusMOD_r8q_v2.3/build M=/root/src/88x2bu-20210702 clean
cd hal ; rm -fr */*/*/*.mod.c */*/*/*.mod */*/*/*.o */*/*/.*.cmd */*/*/*.ko
cd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko
cd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd platform ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
Running make
make
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.19.113-Nethunter_WirusMOD_r8q_v2.3/build M=/root/src/88x2bu-20210702 modules
make[1]: Entering directory '/usr/src/linux-headers-5.16.0-kali7-arm64'
/bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found
/bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found
/bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found
CC [M] /root/src/88x2bu-20210702/core/rtw_cmd.o
CC [M] /root/src/88x2bu-20210702/core/rtw_security.o
CC [M] /root/src/88x2bu-20210702/core/rtw_debug.o
CC [M] /root/src/88x2bu-20210702/core/rtw_io.o
CC [M] /root/src/88x2bu-20210702/core/rtw_ioctl_query.o
CC [M] /root/src/88x2bu-20210702/core/rtw_ioctl_set.o
CC [M] /root/src/88x2bu-20210702/core/rtw_ieee80211.o
CC [M] /root/src/88x2bu-20210702/core/rtw_mlme.o
CC [M] /root/src/88x2bu-20210702/core/rtw_mlme_ext.o
CC [M] /root/src/88x2bu-20210702/core/rtw_mi.o
CC [M] /root/src/88x2bu-20210702/core/rtw_wlan_util.o
CC [M] /root/src/88x2bu-20210702/core/rtw_vht.o
CC [M] /root/src/88x2bu-20210702/core/rtw_pwrctrl.o
CC [M] /root/src/88x2bu-20210702/core/rtw_rf.o
CC [M] /root/src/88x2bu-20210702/core/rtw_chplan.o
CC [M] /root/src/88x2bu-20210702/core/monitor/rtw_radiotap.o
CC [M] /root/src/88x2bu-20210702/core/rtw_recv.o
CC [M] /root/src/88x2bu-20210702/core/rtw_sta_mgt.o
CC [M] /root/src/88x2bu-20210702/core/rtw_ap.o
CC [M] /root/src/88x2bu-20210702/core/wds/rtw_wds.o
CC [M] /root/src/88x2bu-20210702/core/mesh/rtw_mesh.o
CC [M] /root/src/88x2bu-20210702/core/mesh/rtw_mesh_pathtbl.o
CC [M] /root/src/88x2bu-20210702/core/mesh/rtw_mesh_hwmp.o
CC [M] /root/src/88x2bu-20210702/core/rtw_xmit.o
CC [M] /root/src/88x2bu-20210702/core/rtw_p2p.o
CC [M] /root/src/88x2bu-20210702/core/rtw_rson.o
CC [M] /root/src/88x2bu-20210702/core/rtw_tdls.o
CC [M] /root/src/88x2bu-20210702/core/rtw_br_ext.o
CC [M] /root/src/88x2bu-20210702/core/rtw_iol.o
CC [M] /root/src/88x2bu-20210702/core/rtw_sreset.o
CC [M] /root/src/88x2bu-20210702/core/rtw_btcoex_wifionly.o
CC [M] /root/src/88x2bu-20210702/core/rtw_btcoex.o
CC [M] /root/src/88x2bu-20210702/core/rtw_beamforming.o
CC [M] /root/src/88x2bu-20210702/core/rtw_odm.o
CC [M] /root/src/88x2bu-20210702/core/rtw_rm.o
CC [M] /root/src/88x2bu-20210702/core/rtw_rm_fsm.o
CC [M] /root/src/88x2bu-20210702/core/rtw_ft.o
CC [M] /root/src/88x2bu-20210702/core/rtw_wnm.o
CC [M] /root/src/88x2bu-20210702/core/rtw_mbo.o
CC [M] /root/src/88x2bu-20210702/core/rtw_rm_util.o
CC [M] /root/src/88x2bu-20210702/core/efuse/rtw_efuse.o
CC [M] /root/src/88x2bu-20210702/core/rtw_roch.o
CC [M] /root/src/88x2bu-20210702/core/crypto/aes-internal.o
CC [M] /root/src/88x2bu-20210702/core/crypto/aes-internal-enc.o
CC [M] /root/src/88x2bu-20210702/core/crypto/aes-gcm.o
CC [M] /root/src/88x2bu-20210702/core/crypto/aes-ccm.o
CC [M] /root/src/88x2bu-20210702/core/crypto/aes-omac1.o
CC [M] /root/src/88x2bu-20210702/core/crypto/ccmp.o
CC [M] /root/src/88x2bu-20210702/core/crypto/gcmp.o
CC [M] /root/src/88x2bu-20210702/core/crypto/aes-siv.o
CC [M] /root/src/88x2bu-20210702/core/crypto/aes-ctr.o
CC [M] /root/src/88x2bu-20210702/core/crypto/sha256-internal.o
CC [M] /root/src/88x2bu-20210702/core/crypto/sha256.o
CC [M] /root/src/88x2bu-20210702/core/crypto/sha256-prf.o
CC [M] /root/src/88x2bu-20210702/core/crypto/rtw_crypto_wrap.o
CC [M] /root/src/88x2bu-20210702/core/rtw_swcrypto.o
CC [M] /root/src/88x2bu-20210702/os_dep/osdep_service.o
CC [M] /root/src/88x2bu-20210702/os_dep/linux/os_intfs.o
CC [M] /root/src/88x2bu-20210702/os_dep/linux/usb_intf.o
CC [M] /root/src/88x2bu-20210702/os_dep/linux/usb_ops_linux.o
CC [M] /root/src/88x2bu-20210702/os_dep/linux/ioctl_linux.o
CC [M] /root/src/88x2bu-20210702/os_dep/linux/xmit_linux.o
CC [M] /root/src/88x2bu-20210702/os_dep/linux/mlme_linux.o
CC [M] /root/src/88x2bu-20210702/os_dep/linux/recv_linux.o
CC [M] /root/src/88x2bu-20210702/os_dep/linux/ioctl_cfg80211.o
CC [M] /root/src/88x2bu-20210702/os_dep/linux/rtw_cfgvendor.o
CC [M] /root/src/88x2bu-20210702/os_dep/linux/wifi_regd.o
CC [M] /root/src/88x2bu-20210702/os_dep/linux/rtw_android.o
CC [M] /root/src/88x2bu-20210702/os_dep/linux/rtw_proc.o
CC [M] /root/src/88x2bu-20210702/os_dep/linux/nlrtw.o
CC [M] /root/src/88x2bu-20210702/os_dep/linux/rtw_rhashtable.o
CC [M] /root/src/88x2bu-20210702/hal/hal_intf.o
CC [M] /root/src/88x2bu-20210702/hal/hal_com.o
CC [M] /root/src/88x2bu-20210702/hal/hal_com_phycfg.o
CC [M] /root/src/88x2bu-20210702/hal/hal_phy.o
CC [M] /root/src/88x2bu-20210702/hal/hal_dm.o
CC [M] /root/src/88x2bu-20210702/hal/hal_dm_acs.o
CC [M] /root/src/88x2bu-20210702/hal/hal_btcoex_wifionly.o
CC [M] /root/src/88x2bu-20210702/hal/hal_btcoex.o
CC [M] /root/src/88x2bu-20210702/hal/hal_mp.o
CC [M] /root/src/88x2bu-20210702/hal/hal_mcc.o
CC [M] /root/src/88x2bu-20210702/hal/hal_hci/hal_usb.o
CC [M] /root/src/88x2bu-20210702/hal/led/hal_led.o
CC [M] /root/src/88x2bu-20210702/hal/led/hal_usb_led.o
CC [M] /root/src/88x2bu-20210702/hal/rtl8822b/rtl8822b_halinit.o
CC [M] /root/src/88x2bu-20210702/hal/rtl8822b/rtl8822b_mac.o
CC [M] /root/src/88x2bu-20210702/hal/rtl8822b/rtl8822b_cmd.o
CC [M] /root/src/88x2bu-20210702/hal/rtl8822b/rtl8822b_phy.o
CC [M] /root/src/88x2bu-20210702/hal/rtl8822b/rtl8822b_ops.o
CC [M] /root/src/88x2bu-20210702/hal/rtl8822b/hal8822b_fw.o
CC [M] /root/src/88x2bu-20210702/hal/rtl8822b/usb/rtl8822bu_halinit.o
CC [M] /root/src/88x2bu-20210702/hal/rtl8822b/usb/rtl8822bu_halmac.o
CC [M] /root/src/88x2bu-20210702/hal/rtl8822b/usb/rtl8822bu_io.o
CC [M] /root/src/88x2bu-20210702/hal/rtl8822b/usb/rtl8822bu_xmit.o
CC [M] /root/src/88x2bu-20210702/hal/rtl8822b/usb/rtl8822bu_recv.o
CC [M] /root/src/88x2bu-20210702/hal/rtl8822b/usb/rtl8822bu_led.o
CC [M] /root/src/88x2bu-20210702/hal/rtl8822b/usb/rtl8822bu_ops.o
CC [M] /root/src/88x2bu-20210702/hal/efuse/rtl8822b/HalEfuseMask8822B_USB.o
CC [M] /root/src/88x2bu-20210702/hal/hal_halmac.o
CC [M] /root/src/88x2bu-20210702/hal/halmac/halmac_api.o
CC [M] /root/src/88x2bu-20210702/hal/halmac/halmac_dbg.o
CC [M] /root/src/88x2bu-20210702/hal/halmac/halmac_88xx/halmac_bb_rf_88xx.o
CC [M] /root/src/88x2bu-20210702/hal/halmac/halmac_88xx/halmac_cfg_wmac_88xx.o
CC [M] /root/src/88x2bu-20210702/hal/halmac/halmac_88xx/halmac_common_88xx.o
CC [M] /root/src/88x2bu-20210702/hal/halmac/halmac_88xx/halmac_efuse_88xx.o
CC [M] /root/src/88x2bu-20210702/hal/halmac/halmac_88xx/halmac_flash_88xx.o
CC [M] /root/src/88x2bu-20210702/hal/halmac/halmac_88xx/halmac_fw_88xx.o
CC [M] /root/src/88x2bu-20210702/hal/halmac/halmac_88xx/halmac_gpio_88xx.o
CC [M] /root/src/88x2bu-20210702/hal/halmac/halmac_88xx/halmac_init_88xx.o
CC [M] /root/src/88x2bu-20210702/hal/halmac/halmac_88xx/halmac_mimo_88xx.o
CC [M] /root/src/88x2bu-20210702/hal/halmac/halmac_88xx/halmac_usb_88xx.o
CC [M] /root/src/88x2bu-20210702/hal/halmac/halmac_88xx/halmac_8822b/halmac_cfg_wmac_8822b.o
CC [M] /root/src/88x2bu-20210702/hal/halmac/halmac_88xx/halmac_8822b/halmac_common_8822b.o
CC [M] /root/src/88x2bu-20210702/hal/halmac/halmac_88xx/halmac_8822b/halmac_gpio_8822b.o
CC [M] /root/src/88x2bu-20210702/hal/halmac/halmac_88xx/halmac_8822b/halmac_init_8822b.o
CC [M] /root/src/88x2bu-20210702/hal/halmac/halmac_88xx/halmac_8822b/halmac_phy_8822b.o
CC [M] /root/src/88x2bu-20210702/hal/halmac/halmac_88xx/halmac_8822b/halmac_pwr_seq_8822b.o
CC [M] /root/src/88x2bu-20210702/hal/halmac/halmac_88xx/halmac_8822b/halmac_usb_8822b.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_debug.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_antdiv.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_soml.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_smt_ant.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_antdect.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_interface.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_phystatus.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_hwconfig.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_dig.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_pathdiv.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_rainfo.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_dynamictxpower.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_adaptivity.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_cfotracking.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_noisemonitor.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_beamforming.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_direct_bf.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_dfs.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/txbf/halcomtxbf.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/txbf/haltxbfinterface.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/txbf/phydm_hal_txbf_api.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_adc_sampling.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_ccx.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_psd.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_primary_cca.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_cck_pd.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_rssi_monitor.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_auto_dbg.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_math_lib.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_api.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_pow_train.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_lna_sat.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_pmac_tx_setting.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_mp.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/phydm_cck_rx_pathdiv.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/halrf/halrf.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/halrf/halrf_debug.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/halrf/halphyrf_ce.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/halrf/halrf_powertracking_ce.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/halrf/halrf_powertracking.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/halrf/halrf_kfree.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/halrf/halrf_psd.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/rtl8822b/halhwimg8822b_bb.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/rtl8822b/halhwimg8822b_mac.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/halrf/rtl8822b/halrf_8822b.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/rtl8822b/phydm_hal_api8822b.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/halrf/rtl8822b/halhwimg8822b_rf.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/halrf/rtl8822b/halrf_iqk_8822b.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/halrf/rtl8822b/halrf_rfk_init_8822b.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/rtl8822b/phydm_regconfig8822b.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/rtl8822b/phydm_rtl8822b.o
CC [M] /root/src/88x2bu-20210702/hal/phydm/txbf/haltxbf8822b.o
CC [M] /root/src/88x2bu-20210702/hal/btc/halbtc8822bwifionly.o
CC [M] /root/src/88x2bu-20210702/hal/btc/halbtc8822b1ant.o
CC [M] /root/src/88x2bu-20210702/hal/btc/halbtc8822b2ant.o
CC [M] /root/src/88x2bu-20210702/platform/platform_ops.o
LD [M] /root/src/88x2bu-20210702/88x2bu.o
/bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found
/bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found
MODPOST /root/src/88x2bu-20210702/Module.symvers
CC [M] /root/src/88x2bu-20210702/88x2bu.mod.o
LD [M] /root/src/88x2bu-20210702/88x2bu.ko
BTF [M] /root/src/88x2bu-20210702/88x2bu.ko
Skipping BTF generation for /root/src/88x2bu-20210702/88x2bu.ko due to unavailability of vmlinux
make[1]: Leaving directory '/usr/src/linux-headers-5.16.0-kali7-arm64'
Running make install
install -p -m 644 88x2bu.ko /lib/modules/4.19.113-Nethunter_WirusMOD_r8q_v2.3/kernel/drivers/net/wireless/
install: target '/lib/modules/4.19.113-Nethunter_WirusMOD_r8q_v2.3/kernel/drivers/net/wireless/' is not a directory: No such file or directory
make: *** [Makefile:2503: install] Error 1
from 88x2bu-20210702.
Running this command sudo uname -a; mokutil --sb-state; lsusb; rfkill list all; dkms status; iw dev
gives me
(I covered some info that I thought were sensitive like mac addresses or SSIDs
Linux kali 4.19.113-Nethunter_WirusMOD_r8q_v2.3 #1 SMP PREEMPT Mon May 24 10:10:48 CEST 2021 aarch64 GNU/Linux
EFI variables are not supported on this system
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2357:0115 TP-Link Archer T4U ver.3
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
0: bt_power: Bluetooth
Soft blocked: yes
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: phy1: Wireless LAN
Soft blocked: no
Hard blocked: no
realtek-rtl8814au/5.8.5.1~git20210730.824d1d2, 4.19.113-Nethunter_WirusMOD_r8q_v2.3, aarch64: installed
rtl88x2bu/git, 4.19.113-Nethunter_WirusMOD_r8q_v2.3, aarch64: built
phy#1
Interface wlan1
ifindex 37
wdev 0x100000001
addr 00:e0:4c:8b:29:b8
type managed
txpower 20.00 dBm
phy#0
Interface wifi-aware0
ifindex 33
wdev 0x4
addr ##:##:##:##:##:##
type NAN
Interface p2p0
ifindex 32
wdev 0x3
addr ##:##:##:##:##:##
type managed
Interface swlan0
ifindex 31
wdev 0x2
addr ##:##:##:##:##:##
ssid ############
type AP
txpower 40.00 dBm
Interface wlan0
ifindex 30
wdev 0x1
addr ##:##:##:##:##:##
ssid ##########
type managed
txpower 0.00 dBm
from 88x2bu-20210702.
Hi @EDLLT
There is a lot to unpack here. I will say that you are closer than I expected.
Let me spell out what I think the details are at this point: (And you correct what is wrong)
You have a Samsung phone with an ARM64 (aarch64) processor.
You are installing what looks to be a version of Kali Linux that has been modified to work on this phone. Further explanation of what Nethunter is would be helpful.
A look at the details:
4.19.113-Nethunter_WirusMOD_r8q_v2.3
My script is identifying the above as the kernel in use.
make[1]: Entering directory '/usr/src/linux-headers-5.16.0-kali7-arm64'
/bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found
/bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found
/bin/sh: 1: /usr/src/linux-headers-5.16.0-kali7-common/scripts/pahole-flags.sh: not found
However, make is using the above kernel headers. Kernel headers need to match the kernel so where are the kernel headers for kernel 4.19?
install: target '/lib/modules/4.19.113-Nethunter_WirusMOD_r8q_v2.3/kernel/drivers/net/wireless/' is not a directory: No such file or directory
Well, we are trying to install a module to a directory that does not exist. This means you have a non-standard setup. We need to find where the directory for wireless modules is located. You are going to have to search.
You might be able to create the missing directory but there is still the issue of having the wrong headers installed. You might want to ask the makers of the os you installed about that.
One other point if you address these issues to the makers, if they would just compile the usb drivers in mt76
, then folks wanting to do what you are doing could just grab an adapter with mt7612u or mt7610u chipsets and all would be plug and play. For more information on said chipsets and links to adapters:
https://github.com/morrownr/USB-WiFi
Almost forgot: To clean things up, you need to run the below scripts:
remove-driver.sh
remove-driver-no-dkms.sh
Regards
from 88x2bu-20210702.
As for this 4.19.113-Nethunter_WirusMOD_r8q_v2.3
, it's a symlink pointing to the headers /usr/src/linux-headers-5.16.0-kali7-arm64
, im the one who made the symlink as I figured that the script was probably looking for it
I believe that these are the correct headers for my system as they were automatically provided once I installed the kernel
As for the directories, each directory it couldn't find, I made them then restarted the installation process
Finally I tried to run make install
, however it still didn't work(The wifi adapter isn't using the 88x2bu driver)
install -p -m 644 88x2bu.ko /lib/modules/4.19.113-Nethunter_WirusMOD_r8q_v2.3/kernel/drivers/net/wireless/
/sbin/depmod -a 4.19.113-Nethunter_WirusMOD_r8q_v2.3
I found a directory on my phone in /vendor/firmware_mnt/image
and it had a bunch of files which I think are chipset names, most of them ended with .bin
At this point I tried to contact the OS maker, hopefully they will respond. Other than that I don't know what to do as everything that I tried failed
from 88x2bu-20210702.
Hi again @EDLLT
As for this
4.19.113-Nethunter_WirusMOD_r8q_v2.3
, it's a symlink pointing to the headers/usr/src/linux-headers-5.16.0-kali7-arm64
, im the one who made the symlink
Okay, that explains a lot. I was wondering how the results I looked at came about.
as I figured that the script was probably looking for it I believe that these are the correct headers for my system as they were automatically provided once I installed the kernel
The headers have to match the kernel. If you are running the 4.19 kernel, the headers have to be v4.19. This is an issue you will have to sort out with the folks that wrote the os you are using.
I found a directory on my phone in
/vendor/firmware_mnt/image
and it had a bunch of files which I think are chipset names, most of them ended with .bin
Yes, these are firmware files for the in-kernel drivers. Out-of-kernel drivers do not work the same way. Those firmware files are not in their normal locations. If you have an amd64 installation of Debian or Kali, I can point out to you where the normal location of the firmware files is and also the location of the in-kernel drivers.
At this point I tried to contact the OS maker, hopefully they will respond. Other than that I don't know what to do as
everything that I tried failed
I looked up Nethunter. It is interesting. A little pen testing I see. Based on everything I have seen in this thread and what I know from previous exeperience, I know what direction I would go with Nethunter:
I would use the rtl8812bu based adapter for something else and get an adapter with an in-kernel driver as the compatibility for monitor mode projects is far better. The specific adapter I would use in this case is the ALFA AWUS036ACHM as it has fantastic range and uses less power that many of the alternatives. Here is a link:
If you go to the following site and go down to the chipset - Mediatek mt7610u
section you can see additional links and other mt7610u based adapters:
https://github.com/morrownr/USB-WiFi
For some reason, the mt7610u firmware was not included in Debian and Kali until about 1.5 years ago while the driver was included. That meant users had to download and install the firmware until that point. I suspect the mt7610u driver is included in your Nethunter but things seem to be in different places than the standard amd64 Debian and Kali distros. I'm willing to go on a hunt with you if you want. First I will explain where the driver and firmware should be and then you can search for where they really are.
Regards
from 88x2bu-20210702.
Thank you very much for the help
Thanks to sVirusX[the nethunter kernel dev] I was able to get it working on my phone, he added support to your driver in the kernel
also, apparently from what I understood there is a chroot environment and the actual kernel environment
I was trying to install it in the chroot which is one of the reasons it had been failing
So, thank you once again for the driver, I really appreciate it!
from 88x2bu-20210702.
Glad it worked out for you.
Regards
from 88x2bu-20210702.
Related Issues (20)
- Does not compile on 6.2.0-37-generic on Ubuntu 22.04 - running OK on 6.2.0-34-generic HOT 21
- (requires fix in Linux kernel) Not working with Slackware-current and kernel 6.1.66 HOT 8
- Does not compile on 6.6.6-2-MANJARO
- AP mode on OpenWrt latest snapshot master only worked a few mins then died HOT 3
- (solved) More than one arch is specified on the command line.... Kernel 6.1.0-17-amd64 HOT 15
- Failure during installation on Debian 12 Kernel 6.1.0-15-amd64 - 88x2bu HOT 7
- How to install it. Step 8 ? HOT 3
- T3U Archer Nano Speed issue HOT 4
- MT7601U weired Active monitor mode behavour on Rasperbry Pi HOT 2
- 8812BU/8822BU driver canno capture PMKID
- Difficulties in connecting NEXT-1305AC-AT to a PC installed with Linux where the internet does not work
- (solved) Unable to locate package raspberrypi-kernel-headers, 6.1.77-v8+, Raspberry Pi5 (Kali for RasPi) HOT 3
- Use ordering instead of blacklisting?
- Compilation error on AlmaLinux 9.4 HOT 5
- rtl8821cu driver installing error
- Installation failed on raspi 2 HOT 1
- Driver build error for Tp-Link Archer T3UPlus AC 1300 on Arch Linux Zen Kernel 6.9.1 (build log included) HOT 7
- Successfully installed, but not showing as wlan1... HOT 6
- Can't show interface in RP4 with AC1200 Techkey HOT 1
- Dual TP-LINK AC1300 adapter setup not working HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 88x2bu-20210702.