jurobystricky / Netgear-A6210

AC1200 High Gain WiFi USB Adapter Linux kernel driver
290 stars 155 forks source link

Ubuntu 16.04.1 Crash on Configuration Load - A6210 #61

Open FreelancerJ opened 7 years ago

FreelancerJ commented 7 years ago

Howdy! First up, props on this whole project, from what I do understand code-wise, its a stellar job!

I've just installed a Ubuntu system on my Desktop, and sadly am unable to get this driver to load for my Netgear A6210.

uname output: Linux Ubuntu-PC 4.8.0-39-generic #42~16.04.1-Ubuntu SMP Mon Feb 20 15:06:07 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Basically when the system tries to load the driver (either me inserting the USB connector or restarting network-manager) everything goes swimmingly until it tries to load the file "/etc/Wireless/RT2870STA/RT2870STA.dat", which failed with error -14.

From what I can figure out, its not that it doesn't read the file, but that it seems to try and put it somewhere invalid in memory.

Here's the dmesg | less output:

[ 7724.009412] -->RTUSBVendorReset
[ 7724.029746] <--RTUSBVendorReset
[ 7724.035230] ...........andes_usb_chk_crc
[ 7724.151419] andes_usb_reset_wmt
[ 7724.173159] -->RTUSBVendorReset
[ 7724.193496] <--RTUSBVendorReset
[ 7724.194657] fw version:0.0.00 build:1
[ 7724.194660] build time:201406241830____
[ 7724.194667] fw for E3 IC
[ 7724.194668] ilm length = 59312(bytes)
[ 7724.194669] dlm length = 32068(bytes)
[ 7724.198371] loading fw........
[ 7724.279894] Read file "/etc/Wireless/RT2870STA/RT2870STA.dat" failed(errCode=
-14)!
[ 7724.279896] ERROR mt766u_sta:RTMPReadParametersHook failed, Status[=0xfffffff2]
[ 7724.286143] RTMP_TimerListRelease: release timer obj ffffba0b84bf0440!
[ 7724.286144] RTMP_TimerListRelease: release timer obj ffffba0b84bf04b0!
[ 7724.286145] RTMP_TimerListRelease: release timer obj ffffba0b84bf0520!
[ 7724.286145] RTMP_TimerListRelease: release timer obj ffffba0b84bf03d0!
[ 7724.286145] RTMP_TimerListRelease: release timer obj ffffba0b84bf0280!
[ 7724.286146] RTMP_TimerListRelease: release timer obj ffffba0b84bf02f0!
[ 7724.286146] RTMP_TimerListRelease: release timer obj ffffba0b84b81f70!
[ 7724.286147] RTMP_TimerListRelease: release timer obj ffffba0b84b70d78!
[ 7724.286147] RTMP_TimerListRelease: release timer obj ffffba0b84b70df0!
[ 7724.286148] RTMP_TimerListRelease: release timer obj ffffba0b84b820e0!
[ 7724.286148] RTMP_TimerListRelease: release timer obj ffffba0b84b81e90!
[ 7724.286148] RTMP_TimerListRelease: release timer obj ffffba0b84b82070!
[ 7724.335891] receive cmd msg fail(-2)
[ 7724.335904] tx_kickout_fail_count = 0
[ 7724.335904] tx_timeout_fail_count = 0
[ 7724.335905] rx_receive_fail_count = 0
[ 7724.335905] alloc_cmd_msg = 1
[ 7724.335905] free_cmd_msg = 1
[ 7724.335914] ------------[ cut here ]------------
[ 7724.335928] WARNING: CPU: 4 PID: 1219 at /media/tony/U/Netgear-A6210-master/os/linux/../../common/rtmp_init_inf.c:491 rt28xx_init+0x50/0x600 [mt7662u_sta]
[ 7724.335935] Modules linked in: mt7601u mac80211 isofs nls_iso8859_1 mt7662u_sta(OE) cfg80211 intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_hda_codec_via aesni_intel snd_hda_codec_generic aes_x86_64 snd_hda_codec_hdmi lrw glue_helper ablk_helper cryptd snd_hda_intel snd_usb_audio snd_hda_codec intel_cstate intel_rapl_perf snd_usbmidi_lib serio_raw snd_hda_core input_leds snd_hwdep snd_seq_midi snd_seq_midi_event snd_rawmidi joydev snd_seq snd_pcm snd_seq_device snd_timer snd soundcore mei_me shpchp mei lpc_ich tpm_infineon mac_hid parport_pc ppdev lp parport autofs4 hid_logitech_hidpp hid_logitech_dj hid_generic usbhid hid uas usb_storage amdkfd amd_iommu_v2 radeon i2c_algo_bit ttm drm_kms_helper syscopyarea
[ 7724.335976]  sysfillrect sysimgblt fb_sys_fops psmouse mvsas ahci drm libsas libahci atl1c scsi_transport_sas fjes video
[ 7724.335983] CPU: 4 PID: 1219 Comm: wpa_supplicant Tainted: G        W  OE   4.8.0-39-generic #42~16.04.1-Ubuntu
[ 7724.335984] Hardware name: Gigabyte Technology Co., Ltd. To be filled by O.E.M./Z77-D3H, BIOS F8 02/21/2012
[ 7724.335985]  0000000000000286 000000008519de27 ffff9d16759cfba0 ffffffffa782e043
[ 7724.335987]  0000000000000000 0000000000000000 ffff9d16759cfbe0 ffffffffa748313b
[ 7724.335989]  000001eb759cfbf0 ffffba0b84b6e000 0000000000000001 ffffffffc0a73b24
[ 7724.335991] Call Trace:
[ 7724.335993]  [<ffffffffa782e043>] dump_stack+0x63/0x90
[ 7724.335995]  [<ffffffffa748313b>] __warn+0xcb/0xf0
[ 7724.335997]  [<ffffffffa748326d>] warn_slowpath_null+0x1d/0x20
[ 7724.336009]  [<ffffffffc0a02190>] rt28xx_init+0x50/0x600 [mt7662u_sta]
[ 7724.336022]  [<ffffffffc0a3ac07>] rt28xx_open+0xc7/0x150 [mt7662u_sta]
[ 7724.336043]  [<ffffffffc0a124a7>] RTMP_COM_IoctlHandle+0x6d7/0x790 [mt7662u_sta]
[ 7724.336055]  [<ffffffffc0a3ae81>] MainVirtualIF_open+0x51/0xe0 [mt7662u_sta]
[ 7724.336069]  [<ffffffffc0a3ab40>] ? RT28xx_get_ether_stats+0x140/0x140 [mt7662u_sta]
[ 7724.336080]  [<ffffffffc0a3adb0>] ? rt28xx_ioctl+0x80/0x80 [mt7662u_sta]
[ 7724.336082]  [<ffffffffa7b834c8>] __dev_open+0xc8/0x140
[ 7724.336084]  [<ffffffffa7b837dd>] __dev_change_flags+0x9d/0x160
[ 7724.336086]  [<ffffffffa7b838c9>] dev_change_flags+0x29/0x70
[ 7724.336087]  [<ffffffffa7bfc43d>] devinet_ioctl+0x5fd/0x6d0
[ 7724.336088]  [<ffffffffa7bfe060>] inet_ioctl+0x50/0x70
[ 7724.336090]  [<ffffffffa7b5f495>] sock_do_ioctl+0x25/0x50
[ 7724.336091]  [<ffffffffa7b5f9b2>] sock_ioctl+0x1d2/0x290
[ 7724.336092]  [<ffffffffa76478c1>] do_vfs_ioctl+0xa1/0x5f0
[ 7724.336095]  [<ffffffffa76325d8>] ? __vfs_read+0x18/0x40
[ 7724.336097]  [<ffffffffa7632d35>] ? vfs_read+0x95/0x140
[ 7724.336098]  [<ffffffffa7647e89>] SyS_ioctl+0x79/0x90
[ 7724.336101]  [<ffffffffa7c9b7f6>] entry_SYSCALL_64_fastpath+0x1e/0xa8
[ 7724.336102] ---[ end trace 4298a0068151d5c0 ]---
[ 7724.336103] !!! rt28xx init fail !!!

Unfortunately when I go digging into the source to find where it is all going wrong, it starts going above my head. I find where it loads the dat file, and the error message that is in dmesg doesn't match anything in there, so it looks like it loads up the file in the first place, but I'm not sure where it goes wrong from there.

Any pointers on where I should be looking, or any extra info I can provide? It's a clean new Ubuntu system. Aside from some brief software updates while I had the computer beside the router, I haven't been online to download anything. Of course, this also means I can reinstall if needed :)

Thanks ahead of time!