[BPI-R4] BE14 mainline openwrt configuration

Oh finally, we can finally get openwrt mainline running properly

1 Like

Will this patch be applied in the latest snapshot? Can you briefly describe or direct how to apply this patch in the latest snapshot build? Thanks in advance.

these patches are already included on the mediatek feeds

this is what I got after getting the files from the github repo you shared … they have the same date as the ones I was using before

no immediate improvements namely throughput but this may be related with mt76… we are using @dangowrt patch to support 233 and as I said no changes

2 Likes

So this is of no use ig, it’s just re release of what already exists

let’s see what others report … I am reapplying the patches although I already have the background radar check and as I said the 233 variant also

btw - i reviewed in more detail the patches and there a few things missing on the current mt76 code. I am applying manually the patches and will test later.

1 Like

actually it has just been applied on the master openwrt/mt76

Good afternoon, so the latest snapshot includes the changes from the latest patch from MediaTek?

I tried latest OpenWRT Snapshot … still is not working

Daniel said something about state of development:

Feedback is needed:

1 Like

Did anyone manage to get wed working? I added the firmware and dts but I think mt76 needs some changes too.

Edit: I got it to load the firmware eventually with some dts changes but still getting some errors during test.

[   12.869548] mt7996e 0000:01:00.0: assign IRQ: got 118
[   12.874689] mt7996e 0000:01:00.0: enabling device (0000 -> 0002)
[   12.880758] mt7996e 0000:01:00.0: enabling bus mastering
[   12.960499] mt7996e 0000:01:00.0: attaching wed device 0 version 3
[   13.016342] platform 15010000.wed: MTK WED WO Firmware Version: ____000000, Build Time: 20230218204509
[   13.025669] platform 15010000.wed: MTK WED WO Chip ID 00 Region 2
[   13.085715] mt7996e_hif 0001:01:00.0: attaching wed device 1 version 3
[   13.490991] mt7996e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20240809122254a
[   13.490991] 
[   13.600378] mt7996e 0000:01:00.0: WM Firmware Version: ____000000, Build Time: 20240809122249
[   13.645007] mt7996e 0000:01:00.0: DSP Firmware Version: ____000000, Build Time: 20240809121650
[   13.666810] mt7996e 0000:01:00.0: WA Firmware Version: ____000000, Build Time: 20240809122214

Errors:

Sat Oct  5 23:11:35 2024 kern.warn kernel: [  907.485153] platform 15012000.wed: swiotlb buffer is full (sz: 66 bytes), total 32768 (slots), used 32768 (slots)
Sat Oct  5 23:11:35 2024 kern.warn kernel: [  907.487429] platform 15012000.wed: swiotlb buffer is full (sz: 4096 bytes), total 32768 (slots), used 32768 (slots)
Sat Oct  5 23:11:35 2024 kern.warn kernel: [  907.495451] platform 15012000.wed: swiotlb buffer is full (sz: 66 bytes), total 32768 (slots), used 32768 (slots)
Sat Oct  5 23:11:35 2024 kern.warn kernel: [  907.505848] platform 15012000.wed: swiotlb buffer is full (sz: 4096 bytes), total 32768 (slots), used 32768 (slots)
Sat Oct  5 23:11:35 2024 kern.warn kernel: [  907.505855] platform 15012000.wed: swiotlb buffer is full (sz: 4096 bytes), total 32768 (slots), used 32768 (slots)
Sat Oct  5 23:11:35 2024 kern.warn kernel: [  907.537549] platform 15012000.wed: swiotlb buffer is full (sz: 4096 bytes), total 32768 (slots), used 32628 (slots)
Sat Oct  5 23:11:35 2024 kern.warn kernel: [  907.548074] platform 15012000.wed: swiotlb buffer is full (sz: 4096 bytes), total 32768 (slots), used 32628 (slots)
Sat Oct  5 23:11:35 2024 kern.warn kernel: [  907.558589] platform 15012000.wed: swiotlb buffer is full (sz: 4096 bytes), total 32768 (slots), used 32628 (slots)
Sat Oct  5 23:11:35 2024 kern.warn kernel: [  907.569100] platform 15012000.wed: swiotlb buffer is full (sz: 4096 bytes), total 32768 (slots), used 32628 (slots)
Sat Oct  5 23:11:35 2024 kern.warn kernel: [  907.579611] platform 15012000.wed: swiotlb buffer is full (sz: 4096 bytes), total 32768 (slots), used 32628 (slots)
Sat Oct  5 23:11:40 2024 kern.warn kernel: [  912.490510] swiotlb_tbl_map_single: 21553 callbacks suppressed

try Releases · danpawlik/openwrt-builder · GitHub - it’s openwrt snapshot with mediatek BE14 firmware/drivers

From what I quickly check it only includes the basic stuff, not WED. I tried to add WED support in this commit but there are some warnings/errors when running some speed tests.

Are you sure you have the right firmware for be14 (from sdk)? Can you make an extra topic for wed support for easier tracking with the errors/warnings you see?

you can refer to below patch to enable WED support.

https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/a372af8c6c72fd8d264d51027e0d18ed96aca714

Can MediaTek release those firmware files under the usual redistributable license and push them to linux-firmware repo?

1 Like

Ok, we’ll send fw files to linux-firmware repo. After upstreaming is complete, Could you help add it as formal package in Openwrt trunk?

2 Likes

Sure, I’ll do that as soon as the files have arrived in linux-firmware.

1 Like

The Fw bin files were merged. mtk_wed: add firmware for mt7988 Wireless Ethernet Dispatcher

3 Likes

Last I heard @rmandrad was already working on WED