-
Notifications
You must be signed in to change notification settings - Fork 220
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
Module Troubleshooting with x86_64 Kali Linux #2
Comments
What is the result of |
Doing just With that said, if doing |
Please check the latest commit, I just added your device descriptor. |
Thank you much for the help. Removed the old driver, re-downloaded the repo, recompiled and reinstalled with make and make install. Restarted, made sure the 8822bu driver was loaded with modprobe and confirmed that it was with "cat /proc/modules/ | grep 8822". Plugged in the Nano and... nothing. :-( I'm downloading a fresh copy of the OS and will try to install the kernel module on that to verify whether some personal configuration is to blame or not. I'll post the results after that's complete. |
After doing as mentioned in my previous post, I can confirm that there is no change with the fresh OS. Compilation is fine, the module does not load on it's own at OS start but can be invoked with |
What usb wireless device are you using? From the device id you described it appears to be ASUS USB-AC68 Dual-Band AC1900, and should not be using this driver. |
I'm using the "ASUS AC-53 NANO". The exact device is this one: https://www.asus.com/Networking/USB-AC53-Nano/ I believe this is the same device as the one listed on the README page of your Git repo? |
Looks like Brandon fixed it so you should be able to go into the rtl8822bu directory in terminal and do a |
Assuming below is the correct VID:PID for the ASUS adapter.
And if the adapter is indeed using RTL8822BU chipset, shouldn't the descriptor be under However, I'm just guessing here... |
@jeremyb31 This was already tried as per my responses. I even went so far as to try the changes made on a fresh OS. This did not work. @lkw16 I hadn't noticed that. Good catch. I can try recompilation after making that edit and post back if there is any change. Thanks for the post. |
@lkw16 You sir, are a gentleman and a scholar! Your suggestion works! @brandon-bailey and @jeremyb31 the following two sections of 'usb_intf.c' were edited as per the advice of @lkw16 Thanks again to everyone who helped me solve this. I really appreciate it. Driver is working great! Thank you! Original Section 1: Updated Section 1: Original Section 2: Updated Section 2: |
First, I want to say thanks for making this driver. Although I may be struggling to get it to work, I appreciate your efforts to provide a working Linux module for the community.
With that, the issue I seem to be having is with the kernel module. Compilation goes fine with no errors, but the module doesn't load when using the nano device. I've ran modinfo on the 8822bu module and will output the information below. You'll notice that the "parms" for the module appear incorrect. At present, I'm not sure how to fix this and was hoping you may have some inclination as where to look.
Output of "uname -a":
Linux IT 4.9.0-kali4-amd64 #1 SMP Debian 4.9.25-1kali1 (2017-05-04) x86_64 GNU/Linux
Output of "modinfo 8822bu":
filename: /lib/modules/4.9.0-kali4-amd64/kernel/drivers/net/wireless/8822bu.ko
version: v5.1.0-5_17968.20160601_BTCOEX20160411-1400_beta
author: Brandon Bailey <[email protected]>
description: Realtek Wireless Lan Driver
license: GPL
srcversion: D781967881506A8D57ADDAB
alias: usb:v0BDApB82Cd*dc*dsc*dp*icFFiscFFipFFin*
alias: usb:v7392pB822d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0B05p1812d*dc*dsc*dp*ic*isc*ip*in*
depends: usbcore,cfg80211
vermagic: 4.9.0-kali4-amd64 SMP mod_unload modversions
parm: rtw_ips_mode:The default IPS mode (int)
parm: rtw_usb_rxagg_mode:int
parm: rtw_drv_log_level:set log level when insert driver module, default log level is _DRV_INFO_ = 4 (uint)
parm: rtw_country_code:The default country code (in alpha2) (charp)
parm: rtw_channel_plan:The default chplan ID when rtw_alpha2 is not specified or valid (int)
parm: rtw_excl_chs:exclusive channel array (array of uint)
parm: rtw_btcoex_enable:BT co-existence on/off, 0:off, 1:on, 2:by efuse (int)
parm: rtw_ant_num:Antenna number setting, 0:by efuse (int)
parm: rtw_force_igi_lb:force IGI low-bound, 0:no specified (int)
parm: rtw_qos_opt_enable:int
parm: ifname:The default name to allocate for first interface (charp)
parm: if2name:The default name to allocate for second interface (charp)
parm: rtw_pwrtrim_enable:int
parm: rtw_initmac:charp
parm: rtw_special_rf_path:int
parm: rtw_chip_version:int
parm: rtw_rfintfs:int
parm: rtw_lbkmode:int
parm: rtw_network_mode:int
parm: rtw_channel:int
parm: rtw_mp_mode:int
parm: rtw_wmm_enable:int
parm: rtw_vrtl_carrier_sense:int
parm: rtw_vcs_type:int
parm: rtw_busy_thresh:int
parm: rtw_ht_enable:int
parm: rtw_bw_mode:int
parm: rtw_ampdu_enable:int
parm: rtw_rx_stbc:int
parm: rtw_ampdu_amsdu:int
parm: rtw_vht_enable:int
parm: rtw_lowrate_two_xmit:int
parm: rtw_rf_config:int
parm: rtw_power_mgnt:int
parm: rtw_smart_ps:int
parm: rtw_low_power:int
parm: rtw_wifi_spec:int
parm: rtw_full_ch_in_p2p_handshake:int
parm: rtw_antdiv_cfg:int
parm: rtw_antdiv_type:int
parm: rtw_drv_ant_band_switch:int
parm: rtw_switch_usb_mode:int
parm: rtw_enusbss:int
parm: rtw_hwpdn_mode:int
parm: rtw_hwpwrp_detect:int
parm: rtw_hw_wps_pbc:int
parm: rtw_max_roaming_times:The max roaming times to try (uint)
parm: rtw_mc2u_disable:int
parm: rtw_80211d:Enable 802.11d mechanism (int)
parm: rtw_notch_filter:0:Disable, 1:Enable, 2:Enable only for P2P (uint)
parm: rtw_hiq_filter:0:allow all, 1:allow special, 2:deny all (uint)
parm: rtw_adaptivity_en:0:disable, 1:enable (uint)
parm: rtw_adaptivity_mode:0:normal, 1:carrier sense (uint)
parm: rtw_adaptivity_dml:0:disable, 1:enable (uint)
parm: rtw_adaptivity_dc_backoff:DC backoff for Adaptivity (uint)
parm: rtw_adaptivity_th_l2h_ini:TH_L2H_ini for Adaptivity (int)
parm: rtw_adaptivity_th_edcca_hl_diff:TH_EDCCA_HL_diff for Adaptivity (int)
parm: rtw_amplifier_type_2g:BIT3:2G ext-PA, BIT4:2G ext-LNA (uint)
parm: rtw_amplifier_type_5g:BIT6:5G ext-PA, BIT7:5G ext-LNA (uint)
parm: rtw_RFE_type:default init value:64 (uint)
parm: rtw_powertracking_type:default init value:64 (uint)
parm: rtw_GLNA_type:default init value:0 (uint)
parm: rtw_TxBBSwing_2G:default init value:0xFF (uint)
parm: rtw_TxBBSwing_5G:default init value:0xFF (uint)
parm: rtw_OffEfuseMask:default open Efuse Mask value:0 (uint)
parm: rtw_FileMaskEfuse:default drv Mask Efuse value:0 (uint)
parm: rtw_rxgain_offset_2g:default RF Gain 2G Offset value:0 (uint)
parm: rtw_rxgain_offset_5gl:default RF Gain 5GL Offset value:0 (uint)
parm: rtw_rxgain_offset_5gh:uint
parm: rtw_rxgain_offset_5gm:default RF Gain 5GM Offset value:0 (uint)
parm: rtw_pll_ref_clk_sel:force pll_ref_clk_sel, 0xF:use autoload value (uint)
parm: rtw_tx_pwr_lmt_enable:0:Disable, 1:Enable, 2: Depend on efuse (int)
parm: rtw_tx_pwr_by_rate:0:Disable, 1:Enable, 2: Depend on efuse (int)
parm: rtw_target_tx_pwr_2g_a:2.4G target tx power (unit:dBm) of RF path A for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm: rtw_target_tx_pwr_2g_b:2.4G target tx power (unit:dBm) of RF path B for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm: rtw_target_tx_pwr_2g_c:2.4G target tx power (unit:dBm) of RF path C for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm: rtw_target_tx_pwr_2g_d:2.4G target tx power (unit:dBm) of RF path D for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm: rtw_target_tx_pwr_5g_a:5G target tx power (unit:dBm) of RF path A for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm: rtw_target_tx_pwr_5g_b:5G target tx power (unit:dBm) of RF path B for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm: rtw_target_tx_pwr_5g_c:5G target tx power (unit:dBm) of RF path C for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm: rtw_target_tx_pwr_5g_d:5G target tx power (unit:dBm) of RF path D for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm: rtw_phy_file_path:The path of phy parameter (charp)
parm: rtw_load_phy_file:PHY File Bit Map (int)
parm: rtw_decrypt_phy_file:Enable Decrypt PHY File (int)
The text was updated successfully, but these errors were encountered: