openwrt icon indicating copy to clipboard operation
openwrt copied to clipboard

ramips/mt7621: SamKnows Whitebox 8: both phy0 and phy1 identified as 5Ghz

Open nunojpg opened this issue 9 months ago • 7 comments

Describe the bug

/etc/config/wireless have both radio0 and radio1 set to band "5g". iw phy phy0 info shows support for 5GHz . iw phy phy1 info shows support for 5GHz AND 2.4GHz. DTS at: target/linux/ramips/dts/mt7621_samknows_whitebox-v8.dts

phy1 does not support 5GHz in reality.

OpenWrt version

master (r26182-49a64c9541)

OpenWrt release

master (SNAPSHOT)

OpenWrt target/subtarget

ramips/mt7621

Device

SamKnows Whitebox 8

Image kind

Self-built image

Steps to reproduce

No response

Actual behaviour

No response

Expected behaviour

There should be a wireless radio configured by default to 2.4GHz.

Additional info

No response

Diffconfig

No response

Terms

  • [X] I am reporting an issue for OpenWrt, not an unsupported fork.

nunojpg avatar May 05 '24 17:05 nunojpg

Add to mt7621_samknows_whitebox-v8.dts line 132 (block &pcie1 mt76@0,0):

		ieee80211-freq-limit = <2400000 2500000>;

and recompile.

Does the problem also occur in version 23.05.3?

namiltd avatar May 05 '24 18:05 namiltd

Yes, same in 23.05.03.

nunojpg avatar May 05 '24 18:05 nunojpg

So if this line helps, a patch is needed for both branches: main and 23.05.

namiltd avatar May 05 '24 19:05 namiltd

Invalid Version reported. master (r26182-49a64c9541) Is this from a clean repository?

github-actions[bot] avatar May 05 '24 19:05 github-actions[bot]

Invalid Release reported. master (SNAPSHOT) Is this from a clean repository?

github-actions[bot] avatar May 05 '24 19:05 github-actions[bot]

All great. You want me to open the PR?

nunojpg avatar May 05 '24 21:05 nunojpg

PRs done (https://github.com/openwrt/openwrt/pull/15395 and https://github.com/openwrt/openwrt/pull/15396).

namiltd avatar May 05 '24 22:05 namiltd

Could someone with a SamKnows Whitebox 8 please post the dmesg and iwinfo output. This page says it uses MediaTek MT7612E and MediaTek MT7603E, see https://openwrt.org/toh/samknows/sk-wb8 The MT7603E is a 2.4 GHz only device and should not use 5GHz.

hauke avatar May 09 '24 22:05 hauke

@hauke

phy0-ap0  
          Hardware: 14C3:7612 14C3:7612 [MediaTek MT7612E]
         
phy1-ap0  
          Hardware: 14C3:7662 14C3:7662 [MediaTek MT76x2E]


root@OpenWrt:~# dmesg | grep -i mt
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.867788] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.879345] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.890811] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.902555] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    0.915829] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    0.933293] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0060000000
[    0.949503] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    1.326117] mt7621-pci 1e140000.pcie: pcie2 no card, disable it (RST & CLK)
[    1.339909] mt7621-pci 1e140000.pcie: PCIE0 enabled
[    1.349547] mt7621-pci 1e140000.pcie: PCIE1 enabled
[    1.373500] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[    2.171285] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[    2.193811] 4 fixed-partitions partitions found on MTD device spi0.0
[    2.236001] Creating 4 MTD partitions on "spi0.0":
[    2.307649] 2 uimage-fw partitions found on MTD device firmware
[    2.319682] Creating 2 MTD partitions on "firmware":
[    2.339511] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
[    2.367356] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
[    2.386961] mtd: setting mtd5 (rootfs) as root device
[    2.397184] 1 squashfs-split partitions found on MTD device rootfs
[    2.567879] mtk_soc_eth 1e100000.ethernet: generated random MAC address 77:61:6e:00:64:00
[    2.585994] mt7530-mdio mdio-bus:1f: MT7530 adapts as multi-chip module
[    2.605717] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 19
[    2.626005] mtk_soc_eth 1e100000.ethernet wan: mediatek frame engine at 0xbe100000, irq 19
[    2.735914] mt7530-mdio mdio-bus:1f: MT7530 adapts as multi-chip module
[    2.777276] mt7530-mdio mdio-bus:1f: configuring for fixed/rgmii link mode
[    2.792451] mt7530-mdio mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7530 PHY] (irq=21)
[    2.815582] mt7530-mdio mdio-bus:1f: Link is Up - 1Gbps/Full - flow control rx/tx
[    2.817042] mt7530-mdio mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7530 PHY] (irq=22)
[    2.853844] mt7530-mdio mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7530 PHY] (irq=23)
[    2.877619] mt7530-mdio mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7530 PHY] (irq=24)
[    2.900852] mtk_soc_eth 1e100000.ethernet eth0: entered promiscuous mode
[    5.501961] xhci-mtk 1e1c0000.xhci: supply vbus not found, using dummy regulator
[    5.517157] xhci-mtk 1e1c0000.xhci: supply vusb33 not found, using dummy regulator
[    5.532865] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    5.543571] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[    5.563577] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000280010
[    5.581904] xhci-mtk 1e1c0000.xhci: irq 27, io mem 0x1e1c0000
[    5.593665] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    5.604299] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[    5.619236] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0 SuperSpeed
[   10.407286] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[   10.427966] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   10.436481] mt7530-mdio mdio-bus:1f lan1: configuring for phy/gmii link mode
[   14.977902] mtk-eip93 1e004000.crypto: EIP93 Crypto Engine Initialized.
[   15.871231] mt76x2e 0000:01:00.0: enabling device (0000 -> 0002)
[   15.883573] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[   16.540728] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
[   16.559392] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[   16.570392] mt76x2e 0000:01:00.0: Build: 1
[   16.578560] mt76x2e 0000:01:00.0: Build Time: 201607111443____
[   16.613650] mt76x2e 0000:01:00.0: Firmware running!
[   16.623687] mt76x2e 0000:01:00.0: registering led 'mt76-phy0'
[   16.652490] mt76x2e 0000:02:00.0: ASIC revision: 76020044
[   17.309014] mt76x2e 0000:02:00.0: ROM patch already applied
[   17.321006] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00
[   17.332054] mt76x2e 0000:02:00.0: Build: 1
[   17.340213] mt76x2e 0000:02:00.0: Build Time: 201607111443____
[   17.355232] mt76x2e 0000:02:00.0: Firmware running!
[   17.365097] mt76x2e 0000:02:00.0: registering led 'mt76-phy1'
[   28.070956] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[   28.104336] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[   28.120680] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   28.126700] mt7530-mdio mdio-bus:1f lan1: configuring for phy/gmii link mode
[   28.175458] mt7530-mdio mdio-bus:1f lan1: entered allmulticast mode
[   28.188005] mtk_soc_eth 1e100000.ethernet eth0: entered allmulticast mode
[   28.204242] mt7530-mdio mdio-bus:1f lan1: entered promiscuous mode
[   28.236810] mt7530-mdio mdio-bus:1f lan2: configuring for phy/gmii link mode
[   28.273908] mt7530-mdio mdio-bus:1f lan2: entered allmulticast mode
[   28.289104] mt7530-mdio mdio-bus:1f lan2: entered promiscuous mode
[   28.311534] mt7530-mdio mdio-bus:1f lan3: configuring for phy/gmii link mode
[   28.348096] mt7530-mdio mdio-bus:1f lan3: entered allmulticast mode
[   28.363394] mt7530-mdio mdio-bus:1f lan3: entered promiscuous mode
[   28.386853] mt7530-mdio mdio-bus:1f lan4: configuring for phy/gmii link mode
[   28.423962] mt7530-mdio mdio-bus:1f lan4: entered allmulticast mode
[   28.438954] mt7530-mdio mdio-bus:1f lan4: entered promiscuous mode
[   28.471637] mtk_soc_eth 1e100000.ethernet wan: PHY [mt7530-0:04] driver [MediaTek MT7530 PHY] (irq=POLL)
[   28.490712] mtk_soc_eth 1e100000.ethernet wan: configuring for phy/rgmii link mode
[   30.027123] mt7530-mdio mdio-bus:1f lan4: Link is Up - 100Mbps/Full - flow control off
[   32.683568] mt76x2e 0000:02:00.0 phy1-ap0: entered allmulticast mode
[   32.696709] mt76x2e 0000:02:00.0 phy1-ap0: entered promiscuous mode
[   32.711374] mtk_soc_eth 1e100000.ethernet wan: Link is Up - 1Gbps/Full - flow control rx/tx
[   34.195926] mt76x2e 0000:01:00.0 phy0-ap0: entered allmulticast mode
[   34.209661] mt76x2e 0000:01:00.0 phy0-ap0: entered promiscuous mode

nunojpg avatar May 10 '24 09:05 nunojpg