BE14 does not work on its own assembly

I’m new to openwrt builds, so I’m mostly just trying to blindly follow the instructions. I followed (d7d5c7502b6c24795309e259d44158e99feccb9a - openwrt/feeds/mtk-openwrt-feeds - Gitiles). I compiled the master branch (I need kernel 6.6.50), added feeds mediatek, everything was according to the instructions, but I didn’t understand how to make firmware for an sd card or emmc, you could just specify BPI R4 there. In general, the image turned out, I recorded it on the SD card and as a result the router works, but the wifi does not work, there are only two sources in the wireless section and the router starts to slow down very much when trying to display information about them. I removed these sources and the router started working fine. How to add be14 support? And I still can’t install opkg packages

It happens because you are using a snapshot image and the kernel mods are rebuilt daily and are only compatible with the latest kernel / snapshot image or you need to change some things as listed here.

https://openwrt.org/faq/cannot_satisfy_dependencies

1 Like

Okay, I’ll include all the necessary packages right away during assembly, but what can you say about the non-working be14?

Mark required packages in . config with =y and then run: make defconfig. Instead of checking what kmods is required, you can mark package in the .config and the defconf will set required kmods.

Kmods needs to be included into the image.

Those. If I check iptables-mod-extra, then after running make defconfig all dependent packages will be loaded by themselves?

And then do I need to go into menuconfig again to save the added kmods to the .config file?

Those. If I check iptables-mod-extra, then after running make defconfig all dependent packages will be loaded by themselves? - yes

And then do I need to go into menuconfig again to save the added kmods to the .config file? => make defconfig is doing same as menuconfig, but without prompt.

Should I do kernel_menuconfig? I don’t know if anything needs to be changed in it, so I keep it unchanged

What is the difference between Main router: curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/common/main-router >> ~/openwrt-builder/openwrt/.config from Basic config curl -SL https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/configs/common/basic >> ~/openwrt-builder/openwrt/.config ?

I was told that your repository already has a patch to support be14, is this the same repository? GitHub - danpawlik/openwrt-builder: Build openWRT system image

Everything what steps needs to be done you will find here. Just change the branch to be14

This is some kind of code, what to do with it?

I tried to compile, as a result of a long compilation

Configuring urngd.

Configuring ppp-mod-pppoe.

Collected errors:

  • pkg_hash_check_unresolved: cannot find dependency kmod-thermal for kmod-hwmon-pwmfan

  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-hwmon-pwmfan found, but incompatible with the architectures configured

  • opkg_install_cmd: Cannot install package kmod-hwmon-pwmfan.

make[2]: *** [package/Makefile:99: package/install] Error 255

make[2]: Leaving directory ‘/home/goty/openwrt-builder/openwrt’

make[1]: *** [package/Makefile:172: /home/goty/openwrt-builder/openwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_install] Error 2

make[1]: Leaving directory ‘/home/goty/openwrt-builder/openwrt’

make: *** [/home/goty/openwrt-builder/openwrt/include/toplevel.mk:248: world] Error 2

goty@goty-VirtualBox:~/openwrt-builder/openwrt$

Add this patch or disable building all modules, for example by executing command. I don’t know why nbd or dango did not add that (the mtk feed is also adding that kmod but in other place). I will make a PR soon.

How do I use this patch? Do I need to download it or what do I need to do with it to use it?

For example, by executing commands:

          curl -LO https://raw.githubusercontent.com/danpawlik/openwrt-builder/master/patches/0001-Add-kmod-thermal-for-BPI-R4.patch
          git apply --check 0001-Add-kmod-thermal-for-BPI-R4.patch
          git am --keep-cr --signoff < 0001-Add-kmod-thermal-for-BPI-R4.patch

EDIT: Created a PR: mediatek: add kmod-thermal for BPI-R4 device by danpawlik · Pull Request #16400 · openwrt/openwrt · GitHub

2 Likes

Okay, what should I do now to enable this change?

Has a patch for be14 support been added to your repository? Do I need to apply a patch?

I added the patch as you wrote, but when compiling I get an error:

Applying /home/goty/openwrt-builder/openwrt/package/kernel/mt76/patches/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/goty/openwrt-builder/openwrt/package/kernel/mt76/patches/0001-wifi-mt76-mt7996-support-mt7996-2-3-3-variant.patch!

make[3]: *** [Makefile:661: /home/goty/openwrt-builder/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/mt76-2024.09.05~65cc3daf/.prepared_3a2d9ca44d752bc678f7a1981aee26d1_6664517399ebbbc92a37c5bb081b5c53] Error 1

make[3]: Leaving directory ‘/home/goty/openwrt-builder/openwrt/package/kernel/mt76’

time: package/kernel/mt76/compile#0.40#0.09#0.41

ERROR: package/kernel/mt76 failed to build.

make[2]: *** [package/Makefile:177: package/kernel/mt76/compile] Error 1

make[2]: Leaving directory ‘/home/goty/openwrt-builder/openwrt’

make[1]: *** [package/Makefile:171: /home/goty/openwrt-builder/openwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2

make[1]: Leaving directory ‘/home/goty/openwrt-builder/openwrt’

make: *** [/home/goty/openwrt-builder/openwrt/include/toplevel.mk:248: world] Error 2

It is time to learn git, quilt and diff. Why don’t you use already working branch that include 11be patch and updated hostapd - be14-and-hostapd-janusz-v5? It will be soo much easier for you if you don’t understand those tools.

2 Likes