[Banana BPI-R4] Wifi7 status

I got the same confusing warning about Wayland while compiling the package gstreamer1-plugins-base on mainline OpenWrt. It didn't notice that it affected anything, though.

Are any specific changes to the .config file necessary for all those features to work (I see the already populated bananapi4-openwrt.config file in your repo)? I'd like to reuse diffconfig that I used to build mainline OpenWrt, which is a bare-bones configuration made to only include the extra packages and settings that I need.

there are a few things
I unselected the initramfs in order to have enough space to create the sdcard image, the wpad-openssl full package ...
regarding the netfilter packages - i noticed that dnetmap was not being built in kernel so I had to force the build using the kernel config ... in order for the iptables hw offload to work

rc.local i force the fan to go mid speed, ondemand governor and iptables enabling HW offload for the mt7988 (taken from the smp_mt76sh from the sdk)

echo 180 > /sys/devices/platform/pwm-fan/hwmon/hwmon2/pwm1

# IPTABLES HW OFFLOAD MT7988
#TCP Binding
 iptables -D FORWARD -p tcp -m conntrack --ctstate RELATED,ESTABLISHED -j FLOWOFFLOAD --hw
 iptables -I FORWARD -p tcp -m conntrack --ctstate RELATED,ESTABLISHED -j FLOWOFFLOAD --hw
 ip6tables -D FORWARD -p tcp -m conntrack --ctstate RELATED,ESTABLISHED -j FLOWOFFLOAD --hw
 ip6tables -I FORWARD -p tcp -m conntrack --ctstate RELATED,ESTABLISHED -j FLOWOFFLOAD --hw
#UDP Binding
 iptables -D FORWARD -p udp -j FLOWOFFLOAD --hw
 iptables -I FORWARD -p udp -j FLOWOFFLOAD --hw
 ip6tables -D FORWARD -p udp -j FLOWOFFLOAD --hw
 ip6tables -I FORWARD -p udp -j FLOWOFFLOAD --hw
#Multicast skip Binding
 iptables -D FORWARD -m pkttype --pkt-type multicast -j ACCEPT
 iptables -I FORWARD -m pkttype --pkt-type multicast -j ACCEPT
 ip6tables -D FORWARD -m pkttype --pkt-type multicast -j ACCEPT
 ip6tables -I FORWARD -m pkttype --pkt-type multicast -j ACCEPT

Thanks, I'll try building fresh with those settings.

1 Like

also noticed a sdk patch that is saying "The 1024 agg size for RX is supported but not for TX" which may relate to the issues we are seeing of getting different behaviors between RX/TX.

this patch was deleted, It still is on my build . currently trying to port the new patch to openwrt

1 Like

Good evening, here I leave you this version LuCI openwrt-24.10 branch (24.338.58761~e76155d) / OpenWrt 24.10-SNAPSHOT (r28163-c995dd97c7)

openwrt-mediatek-filogic-bananapi_bpi-r4-sdcard.img.gz

Version of the kernel 6.6.58, updated to the OpenWrt 24.10-SNAPSHOT (r28163-c995dd97c7), again it is used to install opkg as always.

The image is to record in sd, all the antennas are functional as they should work, 320 mhz -160 mhz in the countries that use wifi 7 in all the countries that use it and the speeds are what we all expect.

I also leave you a backup, so that in case you do a factory reset, you can reload the configuration so that the image is as if you had just recorded it again.

backup-OpenWrt-2024-12-06.tar.gz

192.168.1.1 has no password, put the one you use.

All antennas are active as OpenWrt-6g, OpenWrt-5g, OpenWrt-2g, password for all antennas 12345678.

6G band activated at 320 mhz, 5g band at 160 mhz, 2g band at 20 mhz, all work perfectly, default country Singapore, but put the one you want to use.

The speeds are what they should be, there is no problem. This image is not mine, I just adapted it so that we can enjoy WiFi 7, and enjoy the WiFi speeds that we all expect.

The Mlo function is not implemented

I hope you enjoy it.

1 Like

Hello @rmandrad quick question for you,

I actually run your build from 3 December morning and added 2 SFP ASF-10G2-T, but I can't get past 4.5 Gb/s with iperf3 testing between bpi-r4 and Aquantia AQC107 NIC on PC. Before buying different cables and trying other possibilities, I'd like to know if your build has hardware flow offloading included ? If yes could you please tell me if it is activated by default or do I need to config it somewhere ?

Edit: core0 is running at 100% during testing, so I guess it's not activated

Some research on google point me to the firewall general settings (Network>Firewall> General Settings>Routing/NAT Offsetting) but I don't see the option there on your build

Thanks for your help :pray:

make sure this is set
firewall.@defaults[0].flow_offloading='1'
firewall.@defaults[0].flow_offloading_hw='1'

don't enable packet steering

I've installed irqbalance - it only works for the ethernet irq's

have the following on modules.conf

options mt7996e wed_enable=Y sr_scene_detect=Y

finally have the following on rc.local

# IPTABLES HW OFFLOAD MT7988
#TCP Binding
 iptables -D FORWARD -p tcp -m conntrack --ctstate RELATED,ESTABLISHED -j FLOWOFFLOAD --hw
 iptables -I FORWARD -p tcp -m conntrack --ctstate RELATED,ESTABLISHED -j FLOWOFFLOAD --hw
 ip6tables -D FORWARD -p tcp -m conntrack --ctstate RELATED,ESTABLISHED -j FLOWOFFLOAD --hw
 ip6tables -I FORWARD -p tcp -m conntrack --ctstate RELATED,ESTABLISHED -j FLOWOFFLOAD --hw
#UDP Binding
 iptables -D FORWARD -p udp -j FLOWOFFLOAD --hw
 iptables -I FORWARD -p udp -j FLOWOFFLOAD --hw
 ip6tables -D FORWARD -p udp -j FLOWOFFLOAD --hw
 ip6tables -I FORWARD -p udp -j FLOWOFFLOAD --hw
#Multicast skip Binding
 iptables -D FORWARD -m pkttype --pkt-type multicast -j ACCEPT
 iptables -I FORWARD -m pkttype --pkt-type multicast -j ACCEPT
 ip6tables -D FORWARD -m pkttype --pkt-type multicast -j ACCEPT
 ip6tables -I FORWARD -m pkttype --pkt-type multicast -j ACCEPT

2 Likes

Blockquote
Some research on google point me to the firewall general settings (Network>Firewall> General Settings>Routing/NAT Offsetting) but I don't see the option there on your build

I am also use rmandrad firmware and this option was in LUCI interface about 3-4 weeks ago
And dissapears in recent versions


Hi, I'm new to the forum, but a long time user of openwrt. First of all I wanted to thank you for your input. Just today I bought Banani Pi BPI-R4 with the wifi 7 module and I noticed your post. I have a few weeks to train myself before I start configuring it for the first time. Can I ask you what packages you added to the original image? I would like to do the whole process myself. I noticed that your SD image is twice the size of the original image: https://firmware-selector.openwrt.org/?version=SNAPSHOT&target=mediatek%2Ffilogic&id=bananapi_bpi-r4

I'd like to add the same packages as you did, I see you're pretty experienced with this thing. I may also add the 10G SFP+ Copper Module or 10G SFP+ Fibre Module in the future. Can you add the firmware in advance? Thanks for your time and sorry for my bad english

Will this router be supported in the next stable release, i.e. 24.x

I been following this thread and using images from @danpawlik but i have to add the packages i need in the config file. I currently have some issues with one of the radios (5g) and im planning to try the @rmandrad images, can i download the packages from opkg or luci normally or do i have to add them somewhere and compile the image manually?

yes you can add packages but you will need to use apk instead of opkg

1 Like

Your image can't turn on wifi. Also I couldn't install iperf3 packages, for tests. If I write down your configuration, the router just hangs. It is impossible to install any other packages.

I can't find the kmod-fs-exfat package in your image. Could you add it?

1 Like

If you go to the OpenWRT Firmware Selector and search for Banana pi R4 you will not find it under 23.05.05, but you can find it under Snapshot.
24.10.0 has been added to the selector (rc2 at the moment) and you will find the Banana pi R4 in that section - so I am saying yes :slight_smile:

Hello, what image are you talking about, please which one do you mean?

Here are some images of Good evening, here I leave you this version LuCI openwrt-24.10 branch (24.338.58761~e76155d) / OpenWrt 24.10-SNAPSHOT (r28163-c995dd97c7).

I'll leave you your name in 6g and 5g, I don't know what problems you have.

and the installation of the packages.

6g and 5g speeds








Good morning, here is the LuCI Master image (24.337.27339~b1968d9) / mda-bananapi4-main-openwrt 6.6.63-12 (r28268-d4d161b8f3).

I have changed your name in the antennas and channels, I also leave you the packet download, I don't know what problem you have.







1 Like

From this post.
Check if you have uploaded the right image. Try downloading your uploaded image yourself and then writing it to SD from scratch.

@bruda No links :frowning: Why don't you start a github or similar for your images like @rmandrad?