I can't get be14 to work on my own build of openwrt 24

I collected the firmware from the danpawlik repository, wifi still doesn’t work

Which part does not work? Did you switch 12V świtch?

Yes, it is switched, and on the assembly from frank-w wifi works fine, I have a problem with my own assemblies. I was told that to support be14 I need to download patches from the frank-w repository, as I understand it, we are talking about these bin files, and where to put them and in what mount it should be done, and after adding it, you need to write something so that this patch appears in make menuconfig with a driver?

no… add those files in $OPENWRT/files and they will be added to your build.

oli@DESKTOP-RA0V02P:~/openwrt$ cat files/lib/firmware/mediatek/mt7996/mt7996_
mt7996_dsp.bin            mt7996_rom_patch_233.bin  mt7996_wm_233.bin
mt7996_eeprom_233.bin     mt7996_wa_233.bin

add the patch to support loading those files in

oli@DESKTOP-RA0V02P:~/openwrt$ ls package/kernel/mt76/patches/
0001-wifi-mt76-mt7996-support-mt7996-2-3-3-variant.patch

when you do a make now, it will apply that patch to your binary files that will end in the image. The files in $OPENWRT/files will be added to your image too on the rootfs.

Does this “make now” just need to be written and press Enter? Or do you need some kind of path to the patch?

Should I just put these bin files and the patch along the path that you wrote? But I don’t see the required folders

You need to make a “files” directory in that directory you have listed. After that his instructions should make sense.

1 Like

Should I put these files and the patch in the root of the “files” folder or exactly in the path that oli wrote?

I mean I need to put it in openwrt/files or openwrt/files/lib/firmware/mediatek/mt7996/ ?

And put the patch in package/kernel/mt76/patches/ or also in the root?

FW in files/lib/firmware/mediatek/mt7996/

Patch in package/kernel/mt76/patches/

2 Likes

How to download patch files? I found bin files (BPI-Router-Linux/utils/firmware/mediatek/mt7996 at 67a12d766c2ddecc3e3007f406a6e448b430c11d · frank-w/BPI-Router-Linux · GitHub), but I don’t understand how to download. And I also don’t understand where to find and download 0001-wifi-mt76-mt7996-support-mt7996-2-3-3-variant.patch

I’ll try to clone the entire repository. Do I need to apply the patch before running makeconfig? And how can I launch it after I have placed all the files?

The patch will be applied automatically you just have to have it in that location

1 Like

Where can I find this patch? Is it in the repository somewhere?

https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/66d5f99c541dfcdca5466eea16163a749871c719/autobuild/unified/filogic/mac80211/master/files/package/kernel/mt76/patches/0001-wifi-mt76-mt7996-support-mt7996-2-3-3-variant.patch

1 Like

maybe you should start with basics in building openwrt first before using a development board. also, openwrt has an #irc channel.

https://openwrt.org/docs/guide-developer/toolchain/use-buildsystem

https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem

https://openwrt.org/docs/guide-developer/helloworld/chapter7

I configured the system as in the first link

Hello. Were you able to build an image for bpi-r4 from sources? If so, what repository did you use? I am trying to build an image according to the image-builder instructions and using master branch, for wifi I use the 233patch file from git mediatek, I also put the firmware files for 7996 in the right directory and at the moment of processing the patch file the firmware build stops.

Applying /home/kuzevich1983/openwrt/target/linux/mediatek/patches-6.6/0001-wifi-mt76-mt7996-support-mt7996-2-3-3-variant.patch using plaintext: patch unexpectedly ends in middle of line patch: **** Only garbage was found in the patch input. Patch failed! Please fix /home/kuzevich1983/openwrt/target/linux/mediatek/patches-6.6/0001-wifi-mt76-mt7996-support-mt7996-2-3-3-variant.patch! make[4]: *** [Makefile:27: /home/kuzevich1983/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/linux-6.6.51/.prepared_695bd14f69f19eb5c349a0c3c6b03f87] Error 1 make[4]: Leaving directory '/home/kuzevich1983/openwrt/target/linux/mediatek' make[3]: *** [Makefile:11: compile] Error 2 make[3]: Leaving directory '/home/kuzevich1983/openwrt/target/linux' time: target/linux/compile#10.87#5.45#14.16 ERROR: target/linux failed to build. make[2]: *** [target/Makefile:32: target/linux/compile] Error 1 make[2]: Leaving directory '/home/kuzevich1983/openwrt' make[1]: *** [target/Makefile:25: /home/kuzevich1983/openwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.target_compile] Error 2 make[1]: Leaving directory '/home/kuzevich1983/openwrt' make: *** [/home/kuzevich1983/openwrt/include/toplevel.mk:248: world] Error 2 kuzevich1983@ubuntu:~/openwrt$

Maybe I missed something somewhere?

I’ll be honest, I started using Linux a couple of days ago, and only to assemble the firmware. Those. I have almost 0 experience. But I managed to build the firmware, I used the danpawlik repository with the be14-and-hostapd-janusz-v5 branch, it added support for be14 and there were patches for the cooler, without which the build would end in error. Here is a link to my build, despite the fact that danpawlik has support for be14, wifi 7 and wifi 6 160MHz do not work for me. https://drive.usercontent.google.com/download?id=1MdvcRUzxKVPAzzZn3ouLjjFbcGwiXbIv&export=download&authuser=0

Here are instructions on how to assemble the assembly as I did.