Skip to content
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

Issue with Setting Up 5GHz WiFi on Mediatek MT7628AN Device #895

Open
swam-inc opened this issue Jul 8, 2024 · 1 comment
Open

Issue with Setting Up 5GHz WiFi on Mediatek MT7628AN Device #895

swam-inc opened this issue Jul 8, 2024 · 1 comment

Comments

@swam-inc
Copy link

swam-inc commented Jul 8, 2024

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

@zekica
Copy link

zekica commented Jul 25, 2024

I might be wrong, but you probably have a MT7612E device with no device tree definition for where the firmware is located on the flash.

mt7628an-eval-board.dts doesn't have the pcie0/wifi section that looks like this (this is just an example of another device, don't use it on yours):

&pcie0 {
	wifi@0,0 {
		reg = <0x0000 0 0 0 0>;
		mediatek,mtd-eeprom = <&radio 0x8000>;
		ieee80211-freq-limit = <5000000 6000000>;
	};
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants