WED and beamforming on BPI-R3

OK looks like it was because i set 1024MB for the root filesystem size…once i set it to 256MB it worked

@dangowrt i just compiled the firmware, i can boot.

Sun Aug 27 23:17:15 2023 kern.notice kernel: [ 0.000000] Linux version 6.1.48 (kiki@ubuntu) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r23839-4caa7d2f03) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP

unfortunately, when i insert my cable in lan1 port, nothing happen, it doesn’t work, no light, no connectivity

when i use other lan ports, i have the green lights, but i can’t access the device, still no activity…

root@OpenWrt:/# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq master br-lan state UP qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
    link/ether da:97:ce:d7:e2:9e brd ff:ff:ff:ff:ff:ff
4: wan@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
5: lan1@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
6: lan2@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
7: lan3@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
8: lan4@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
9: sfp2@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
10: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 00:0c:43:26:60:00 brd ff:ff:ff:ff:ff:ff
11: wlan1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 06:e1:1b:21:68:44 brd ff:ff:ff:ff:ff:ff
12: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc noqueue state UP qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
       valid_lft forever preferred_lft forever
    inet6 fd24:1e9d:ce07::1/60 scope global noprefixroute
       valid_lft forever preferred_lft forever
    inet6 fe80::4e1:1bff:fe21:6842/64 scope link
       valid_lft forever preferred_lft forever
root@OpenWrt:/#

Are ports logically up?

Show us output of “ip a” and try to set port manually ip with “ip link set lanX up”. Maybe mac (eth0) needs to be set to up too

root@OpenWrt:/# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq master br-lan state UP qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
    link/ether da:97:ce:d7:e2:9e brd ff:ff:ff:ff:ff:ff
4: wan@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
5: lan1@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
6: lan2@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
7: lan3@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
8: lan4@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
9: sfp2@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
10: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 00:0c:43:26:60:00 brd ff:ff:ff:ff:ff:ff
11: wlan1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 06:e1:1b:21:68:44 brd ff:ff:ff:ff:ff:ff
12: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc noqueue state UP qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
       valid_lft forever preferred_lft forever
    inet6 fd24:1e9d:ce07::1/60 scope global noprefixroute
       valid_lft forever preferred_lft forever
    inet6 fe80::4e1:1bff:fe21:6842/64 scope link
       valid_lft forever preferred_lft forever

Try to set lanX manually up

ok i did it

root@OpenWrt:/# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq master br-lan state UP qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
    link/ether da:97:ce:d7:e2:9e brd ff:ff:ff:ff:ff:ff
4: wan@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
5: lan1@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
6: lan2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::4e1:1bff:fe21:6842/64 scope link
       valid_lft forever preferred_lft forever
7: lan3@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
8: lan4@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
9: sfp2@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
10: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 00:0c:43:26:60:00 brd ff:ff:ff:ff:ff:ff
11: wlan1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 06:e1:1b:21:68:44 brd ff:ff:ff:ff:ff:ff
12: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc noqueue state UP qlen 1000
    link/ether 06:e1:1b:21:68:42 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
       valid_lft forever preferred_lft forever
    inet6 fd24:1e9d:ce07::1/60 scope global noprefixroute
       valid_lft forever preferred_lft forever
    inet6 fe80::4e1:1bff:fe21:6842/64 scope link
       valid_lft forever preferred_lft forever

but i still can’t access the router, i can’t ping it…

once i do a /etc/init.d/network restart everything goes down once again,

if someone can build a working image, please post it, i’m fed up with this, to fix problem1 i have to fix 20 other problems… :rofl: it’s always like that with linux. to make A working you need B, which needs C that only works if D is installed etc etc…

Probably network interface initial setup doesn’t work yet with Linux 6.1 which is still under development and not intended for end users. Try using a snapshot or release candidate build with Linux 5.15.

Edit: I had a bug in the default network config, it should be fixed in OpenWrt main branch now, together with all other additions fixing WED on Linux 6.1 among other things.

It did work before your latest commits, I also tried the main bran now and it still not working

I just tried latest main branch with 5.15 kernel, same problem. Can’t ping the router

same here, everything is broken… :sob: :face_with_head_bandage:

Can you share what exactly is broken? I have an R3 here on my desk and tried images built with both 5.15 and 6.1, and things generally seem to work fine. And are we talking about first boot from a clean disk or an existing configuration?

Problem of the old image seems to be eth0 is member of br-lan. Make sure the cable is plugged in correctly, port is up and your other end is in same subnet as the br-lan (192.168.1.1)

the same problem as i reported above. when a cable is plugged in LAN1 = no conectivity, no led blinking. when i use other lan ports, i have the green lights, but i can’t access the device i don’t have this problem with official snapshots or RC.

yes of course.

please share a new “ip a” to verify the issue from last screens is not present (eth0 in bridge and lanX admin down)

here is my bootlog, Kernel 5.15.128 : https://pastebin.com/sX9610K2

root@OpenWrt:/# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq master br-lan state UP qlen 1000
    link/ether 76:90:d8:d0:b4:82 brd ff:ff:ff:ff:ff:ff
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
    link/ether 46:83:fa:1a:38:97 brd ff:ff:ff:ff:ff:ff
4: wan@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 76:90:d8:d0:b4:82 brd ff:ff:ff:ff:ff:ff
5: lan1@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN qlen 1000
    link/ether 76:90:d8:d0:b4:82 brd ff:ff:ff:ff:ff:ff
6: lan2@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 76:90:d8:d0:b4:82 brd ff:ff:ff:ff:ff:ff
7: lan3@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 76:90:d8:d0:b4:82 brd ff:ff:ff:ff:ff:ff
8: lan4@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 76:90:d8:d0:b4:82 brd ff:ff:ff:ff:ff:ff
9: sfp2@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 76:90:d8:d0:b4:82 brd ff:ff:ff:ff:ff:ff
10: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 00:0c:43:26:60:00 brd ff:ff:ff:ff:ff:ff
11: wlan1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 76:90:d8:d0:b4:84 brd ff:ff:ff:ff:ff:ff
12: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc noqueue state UP qlen 1000
    link/ether 76:90:d8:d0:b4:82 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
       valid_lft forever preferred_lft forever
    inet6 fdf4:d812:2fd0::1/60 scope global noprefixroute
       valid_lft forever preferred_lft forever
    inet6 fe80::7490:d8ff:fed0:b482/64 scope link
       valid_lft forever preferred_lft forever
root@OpenWrt:/#

i have one Tp-link TL-SM410U 2.5g SFP to RJ45 in SFP2

one SFP ONT G-010S-P in SFP1

Plugging a cable in LAN or WAN, doesn’t trigger anything in the shell. That’s not normal. I shouldn’t have to run commands to enable ports. maybe it’s just the tree that hides the forest, there are certainly other things that don’t work.

Here is the firmware generated : https://www.upload.ee/files/15633789/openwrt-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz.html take it, check it…

eth0 is still in bridge br-lan, this is wrong as eth0 is the mac where dsa-ports (wan,lanX) are connected.

ip link set dev lan1 nomaster

then try connecting your cable and look with dmesg for messages about link. you can also call ethtool to look for interface information

it doesn’t do or change anything.

From my bootlog, is this normal ?

mtk-pcie-gen3: probe of 11280000.pcie failed with error -110

Sun Aug 27 23:17:14 2023 kern.debug kernel: [    1.359221] FIT: selecting configured loadable "rootfs-1" to be root filesystem
Sun Aug 27 23:17:14 2023 kern.info kernel: [    1.366515]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p65(rootfs-1) p66(rootfs_data)
Sun Aug 27 23:17:14 2023 kern.err kernel: [    1.440005] mtk-pcie-gen3 11280000.pcie: PCIe link down, ltssm reg val: 0x1000001
Sun Aug 27 23:17:14 2023 kern.warn kernel: [    1.447504] mtk-pcie-gen3: probe of 11280000.pcie failed with error -110
Sun Aug 27 23:17:14 2023 kern.info kernel: [    1.476215] mt7530-mdio mdio-bus:1f: configuring for fixed/2500base-x link mode
Sun Aug 27 23:17:14 2023 kern.info kernel: [    1.485355] mt7530-mdio mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control rx/tx
Sun Aug 27 23:17:14 2023 kern.info kernel: [    1.494046] mt7530-mdio mdio-bus:1f wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7531 PHY] (irq=144)
Sun Aug 27 23:17:14 2023 kern.info kernel: [    1.514246] mt7530-mdio mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7531 PHY] (irq=145)
Sun Aug 27 23:17:14 2023 kern.info kernel: [    1.534252] mt7530-mdio mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7531 PHY] (irq=146)
Sun Aug 27 23:17:14 2023 kern.info kernel: [    1.554250] mt7530-mdio mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7531 PHY] (irq=147)
Sun Aug 27 23:17:14 2023 kern.info kernel: [    1.574230] mt7530-mdio mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7531 PHY] (irq=148)

yes, if you have no card in pcie/m.2 slot this is normal…pcie probe aborts if it founds no device…

also the mdio uninitialized messages are ok, they will be configured later

found nothing strange in full bootlog, but i still wonder why eth0 is in br-lan and none of the lan-ports…i guess there is the problem…

what happens when you execute the command with eth0 (sorry wrote lan1 above)?

root@OpenWrt:/# ip link set dev eth0 nomaster
[ 1898.399684] device eth0 left promiscuous mode
[ 1898.404133] br-lan: port 1(eth0) entered disabled state
root@OpenWrt:/#

Once i plug the cable, once again, no message in the shell, no led blinking.

“ip link show eth0” should no more display “master br-lan” (till next reboot)

then you can try to enable the lan-port you want…afaik openwrt has this order: wan lan1 lan2 lan3 lan4

so you insert cable into second rj45 port an try to bring port up (ip link set lan1 up)

output of “ethtool lan1” and “ethtool eth0” are maybe useful too