openwrt / openwrt/mt76

Issue with Setting Up 5GHz WiFi on Mediatek MT7628AN Device

Open
#895 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
888
Forks
436
PR merge metrics
No merged PRs in 30d

Description

Hi everyone,

I am encountering an issue while setting up the 5GHz WiFi on my Mediatek MT7628AN device running OpenWrt 23.05.2. Here are the relevant details:

Configuration Details:
My /etc/config/wireless configuration looks like this:

config wifi-device 'radio0'
        option type 'mac80211'
        option channel 'auto'
        option band '5g'
        option path 'pci0000:00/0000:00:00.0/0000:01:00.0'
        option htmode 'VHT80'
        option country 'CA'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'Openwrt Setup 5G'
        option encryption 'none'
        option disabled '0'

System Information:
Below is the output from the ubus call system board command:

{
    "kernel": "5.15.137",
    "hostname": "Mango_1B83",
    "system": "MediaTek MT7628AN ver:1 eco:2",
    "model": "Mediatek MT7628AN evaluation board",
    "board_name": "mediatek,mt7628an-eval-board",
    "rootfs_type": "squashfs",
    "release": {
        "distribution": "OpenWrt",
        "version": "23.05.2",
        "revision": "r23630-842932a63d",
        "target": "ramips/mt76x8",
        "description": "OpenWrt 23.05.2 r23630-842932a63d"
    }
}

Problem Description:
When I restart the network service using /etc/init.d/network restart, I repeatedly encounter the following error messages in the system log:

[ 3578.882493] mt76x2e 0000:01:00.0: Firmware failed to start
[ 3578.894103] ieee80211 phy1: Hardware restart was requested
[ 3579.922514] mt76x2e 0000:01:00.0: MCU message 02 (seq 10) timed out
[ 3585.053286] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[ 3585.064255] mt76x2e 0000:01:00.0: Build: 1
[ 3585.072364] mt76x2e 0000:01:00.0: Build Time: 201607111443____
[ 3585.502510] mt76x2e 0000:01:00.0: Firmware failed to start
[ 3585.514162] ieee80211 phy1: Hardware restart was requested

The persistent message "Firmware failed to start" suggests that the issue may be related to the EEPROM content or the mt76 driver module itself.

Request for Assistance:
I need guidance on how to further debug this issue within the kernel, especially around the mt76 module. My experience is primarily with troubleshooting user-space applications and generating .ipk packages with additional debug info for devices. However, kernel module debugging seems to require a different approach.

Best regards,
Steven

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported /etc/config/wireless configuration and the mt76x2e firmware-startup messages in the system log, using the ubus system board output to reproduce the environment. Trace the mt76 kernel module's firmware startup path and determine whether the failure is caused by the EEPROM or driver behavior; done means identifying a reproducible root cause and a specific fix or diagnostic conclusion.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
embedded-iot, networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.