OpenWrt Forum Archive

Topic: MT7620N WIFI do not work

The content of this topic has been archived on 16 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have got the trunk from github .
And build it by myself.

But when I flash the image to the board, everything works well except wifi.

seems that the wifi driver do not support the mt7620n.

I have tried to put the wifi driver rt2860v2 to it, it can work.

I want to know that if the trunk support it, or just some configuration I need to enable.

Anyone can help for this issue.

You are aware, that wifi is disabled by default, right?

Thank for your answer, nozombian

Unfortunately, through the dmesg ,I found some error msg. eg:Invalid RF chipset

Since I'm outside now and,I can't show you my log,

(Last edited by edwardzard on 22 Sep 2016, 04:05)

[   80.503747] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5390, rev 0500 detected
[   80.511769] ieee80211 phy0: rt2800_init_eeprom: Error - Invalid RF chipset 0xffff detected
[   80.520227] ieee80211 phy0: rt2x00lib_probe_dev: Error - Failed to allocate device
[   80.527980] ------------[ cut here ]------------
[   80.532715] WARNING: CPU: 0 PID: 526 at mm/vmalloc.c:1460 release_firmware+0x64/0x144()
[   80.540887] Trying to vfree() bad address (83165600)
[   80.545959] Modules linked in: rt2800soc(+) rt2800pci rt2800mmio rt2800lib pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc rt2x00soc rt2x00pci rt2x00mmio rt2x00lib nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables crc_itu_t crc_ccitt mt7603e mt76x2e mt76 mac80211 cfg80211 compat ledtrig_usbdev ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables eeprom_93cx6 leds_gpio ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[   80.622461] CPU: 0 PID: 526 Comm: kmodloader Not tainted 4.4.7 #1
[   80.628684] Stack : 8033ed54 00000000 00000001 80380000 83909180 80382d03 8032079c 0000020e
[   80.628684]    803d342c 00000009 00000016 024000c0 80064fa4 80049fb8 80325c74 80380000
[   80.628684]    00000003 00000009 80324078 8303daec 80064fa4 80047f70 00000002 00000000
[   80.628684]    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   80.628684]    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   80.628684]    ...
[   80.665051] Call Trace:
[   80.667550] [<800144ec>] show_stack+0x50/0x84
[   80.672002] [<80024d7c>] warn_slowpath_common+0xa0/0xd0
[   80.677349] [<80024dd8>] warn_slowpath_fmt+0x2c/0x38
[   80.682421] [<801a9d9c>] release_firmware+0x64/0x144
[   80.687544] [<83126688>] rt2x00lib_free_eeprom_file+0x18/0x30 [rt2x00lib]
[   80.694507] [<831218fc>] rt2x00lib_probe_dev+0x794/0x834 [rt2x00lib]
[   80.701010] [<831ce1c4>] rt2x00soc_probe+0x140/0x19c [rt2x00soc]
[   80.707172] [<801a5900>] platform_drv_probe+0x2c/0x68
[   80.712333] [<801a3f74>] driver_probe_device+0x120/0x28c
[   80.717771] [<801a415c>] __driver_attach+0x7c/0xb4
[   80.722664] [<801a2460>] bus_for_each_dev+0x94/0xa4
[   80.727659] [<801a3670>] bus_add_driver+0xf0/0x208
[   80.732554] [<801a485c>] driver_register+0xb0/0x104
[   80.737560] [<8000d56c>] do_one_initcall+0x1f0/0x218
[   80.742650] [<80066198>] do_init_module+0x74/0x1d0
[   80.747559] [<800679dc>] load_module+0x1674/0x1b18
[   80.752456] [<80067f94>] SyS_init_module+0x114/0x158
[   80.757546] [<8000655c>] syscall_common+0x30/0x54
[   80.762342]
[   80.763862] ---[ end trace 6c41d6d1111d15db ]---
[   80.768588] Kernel bug detected[#1]:
[   80.772241] CPU: 0 PID: 526 Comm: kmodloader Tainted: G        W       4.4.7 #1
[   80.779697] task: 83908f00 ti: 8303c000 task.ti: 8303c000
[   80.785202] $ 0   : 00000000 00000000 810624e0 00000001
[   80.790546] $ 4   : 00000000 000000ff 00000141 83127940
[   80.795887] $ 8   : 0000002d 31313164 35316431 5d206264
[   80.801228] $12   : 00000000 03bf0000 00000000 bc000000
[   80.806569] $16   : 83bd1400 ffffffed 83bd0b40 8317c524
[   80.811911] $20   : 83bd16d4 00000009 00000016 024000c0
[   80.817252] $24   : 00000003 80199984                 
[   80.822594] $28   : 8303c000 8303dbb8 80064fa4 83126688
[   80.827938] Hi    : 00000000
[   80.830873] Lo    : ec4e4000
[   80.833827] epc   : 800a2e54 kfree+0x68/0x138
[   80.838294] ra    : 83126688 rt2x00lib_free_eeprom_file+0x18/0x30 [rt2x00lib]
[   80.845568] Status: 1100a403 KERNEL EXL IE
[   80.849850] Cause : 50800034 (ExcCode 0d)
[   80.853938] PrId  : 00019650 (MIPS 24KEc)
[   80.858023] Modules linked in: rt2800soc(+) rt2800pci rt2800mmio rt2800lib pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc rt2x00soc rt2x00pci rt2x00mmio rt2x00lib nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables crc_itu_t crc_ccitt mt7603e mt76x2e mt76 mac80211 cfg80211 compat ledtrig_usbdev ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables eeprom_93cx6 leds_gpio ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[   80.934422] Process kmodloader (pid: 526, threadinfo=8303c000, task=83908f00, tls=77122e48)
[   80.942935] Stack : 83bd1400 8303dbd8 83126bb4 83bd1400 83bd1400 831218fc 838907d0 8323d550
[   80.942935]    83126844 00000000 00000000 8326f900 83bd0160 83bd1400 83bd1400 02400000
[   80.942935]    83bd0b40 8317c524 80400000 00000009 00000016 024000c0 80064fa4 831ce1c4
[   80.942935]    80400000 8003c138 8317c7d4 801a73e0 83876c10 83876c10 8317c7d4 8317c7d4
[   80.942935]    80400000 801a5900 fffffffe 00000001 8317c7d4 8317c7d4 83876c10 83876c10
[   80.942935]    ...
[   80.979269] Call Trace:
[   80.981770] [<800a2e54>] kfree+0x68/0x138
[   80.985879] [<83126688>] rt2x00lib_free_eeprom_file+0x18/0x30 [rt2x00lib]
[   80.992831] [<831218fc>] rt2x00lib_probe_dev+0x794/0x834 [rt2x00lib]
[   80.999331] [<831ce1c4>] rt2x00soc_probe+0x140/0x19c [rt2x00soc]
[   81.005472] [<801a5900>] platform_drv_probe+0x2c/0x68
[   81.010630] [<801a3f74>] driver_probe_device+0x120/0x28c
[   81.016052] [<801a415c>] __driver_attach+0x7c/0xb4
[   81.020942] [<801a2460>] bus_for_each_dev+0x94/0xa4
[   81.025922] [<801a3670>] bus_add_driver+0xf0/0x208
[   81.030814] [<801a485c>] driver_register+0xb0/0x104
[   81.035802] [<8000d56c>] do_one_initcall+0x1f0/0x218
[   81.040880] [<80066198>] do_init_module+0x74/0x1d0
[   81.045774] [<800679dc>] load_module+0x1674/0x1b18
[   81.050667] [<80067f94>] SyS_init_module+0x114/0x158
[   81.055742] [<8000655c>] syscall_common+0x30/0x54
[   81.060536]
[   81.062052]
[   81.062052] Code: 8c430014  30630001  38630001 <00030336> 8c430000  7c630380  10600002  00002821  9445003a
[   81.072247] ---[ end trace 6c41d6d1111d15dc ]---
[   89.603559] 8021q: adding VLAN 0 to HW filter on device eth0


attach is the dmesg of my board ,and below is my wifi driver configuration,
  | |                                         < > kmod-libipw............................... libipw for ipw2100 and ipw2200                                   | |
  | |                                         -*- kmod-mac80211..................... Linux 802.11 Wireless Networking Stack  --->                             | |
  | |                                         < > kmod-mac80211-hwsim........................ mac80211 HW simulation device                                   | |
  | |                                         <*> kmod-mt76......................... MediaTek MT76x2/MT7603 wireless driver                                   | |
  | |                                         < > kmod-mt7601u................... MT7601U-based USB dongles Wireless Driver                                   | |
  | |                                         < > kmod-mwifiex-pcie                                                                                           | |
  | |                                         < > kmod-mwl8k............... Driver for Marvell TOPDOG 802.11 Wireless cards                                   | |
  | |                                         < > kmod-net-prism54................................ Intersil Prism54 support                                   | |
  | |                                         < > kmod-net-rtl8192su........................... RTL8192SU support (staging)                                   | |
  | |                                         < > kmod-p54-common................................. Prism54 Drivers (COMMON)                                   | |
  | |                                         < > kmod-p54-pci....................................... Prism54 Drivers (PCI)                                   | |
  | |                                         < > kmod-p54-usb....................................... Prism54 Drivers (USB)                                   | |
  | |                                         < > kmod-rt2400-pci............. Ralink Drivers for RT2x00 cards (RT2400 PCI)                                   | |
  | |                                         < > kmod-rt2500-pci............. Ralink Drivers for RT2x00 cards (RT2500 PCI)                                   | |
  | |                                         < > kmod-rt2500-usb............. Ralink Drivers for RT2x00 cards (RT2500 USB)                                   | |
  | |                                         <*> kmod-rt2800-pci............. Ralink Drivers for RT2x00 cards (RT2860 PCI)                                   | |
  | |                                         <*> kmod-rt2800-soc...... Ralink Drivers for RT2x00 cards (RT28xx/RT3xxx SoC)                                   | |
  | |                                         < > kmod-rt2800-usb............. Ralink Drivers for RT2x00 cards (RT2870 USB)                                   | |
  | |                                         -*- kmod-rt2x00-lib.................... Ralink Drivers for RT2x00 cards (LIB)  --->                             | |
  | |                                         < > kmod-rt61-pci............... Ralink Drivers for RT2x00 cards (RT2x61 PCI)                                   | |
  | |                                         < > kmod-rt73-usb................. Ralink Drivers for RT2x00 cards (RT73 USB)



am I miss any option, now I even can not see the wlan interface

(Last edited by edwardzard on 22 Sep 2016, 03:34)

The discussion might have continued from here.