How verify that wifi eeprom work?

I have board, use MT7621 CPU and MT7603E Wi-Fi chip, and declare eeprom.bin in dts mediatek,eeprom-data, like:

&pcie {
        status = "okay";
};

&pcie0 {
        wifi@0,0 {
                compatible = "mediatek,mt76";
                reg = <0x0000 0 0 0 0>;
                ieee80211-freq-limit = <2400000 2500000>;

                mediatek,eeprom-data = <0x03760102 0x00111111 0x11110376 0xC314FFFF
                                        0xFFFF0376 0xC3140000 0x00000000 0x00000000
                                        0x0000B007 0x8000607F 0xFD9BFFFF 0xFFFFFFFF
                                        0xFFFFFFFF 0x22360E00 0xFFFF0001 0x00000000
                                        0x00002200 0x00000000 0x00000000 0x0000E001
                                        0x81000094 0x40B040C9 0x22000000 0x40C92200
                                        0x00000000 0x00000000 0x00000000 0x00000000
                                        0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
                                        0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
                                        0x00000000 0x00000000 0x00000000 0x00000000
                                        0xC6C6C4C4 0xC4C0C0C4 0xC4C4C4C0 0xC0C00000
                                        0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
                                        0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
                                        0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
                                        0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
                                        0x00000000 0xA9008088 0x00000000 0x00000000
                                        0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
                                        0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
                                        0x00000000 0x00000000 0x00000000 0x0000FF20
                                        0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
                                        0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
                                        0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
                                        0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
                                        0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
                                        0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
                                        0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
                                        0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
                                        0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
                                        0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
                                        0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
                                        0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
                                        0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF>;
        };
};

How can I use a command line tool to see if eeprom-data is loaded successfully?

I use iwpriv wlan0 e2p command to print eeprom data, but output no private ioctls.

Just like the old version of openwrt, which was expected to output eeprom-data data. Is wireless-tools bug?

# iwinfo
wlan0     ESSID: "1111"
          Access Point: 00:1e:15:40:cb:40
          Mode: Master  Channel: 1 (2.412 GHz)  HT Mode: HT20
          Center Channel 1: 1 2: unknown
          Tx-Power: 6 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: WPA2 PSK (CCMP)
          Type: nl80211  HW Mode(s): 802.11b/g/n
          Hardware: 14C3:7603 14C3:7603 [MediaTek MT7603E]
          TX power offset: none
          Frequency offset: none
          Supports VAPs: yes  PHY name: phy0

# iwpriv wlan0 e2p
wlan0     no private ioctls.

OpenWRT version: OpenWrt 22.03.4
Linux version: 5.10.176

wireless-tools is deprecated, modern drivers only have rudimentary compatibility support for it (and wifi7 drivers won't support it at all).

1 Like

Check the boot log. mt76 complains if the EEPROM isn't present and wireless won't work (correctly) without the EEPROM.

2 Likes

Thank you all.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.