Clone this repo:

Branches

  1. d89fda2 [Prpl][feed-mediatek][Update the correct public link for prpl_feed_mediatek] by developer · Thu Mar 27 20:43:34 2025 +0800 master
  2. 60627bf [Prpl][feed-mediatek][Update feed_mtk layout and mt76 critical patch] by developer · Thu Mar 27 17:16:41 2025 +0800
  3. 819398f [Prpl][feed-mediatek][Update README for 2025.3.E Beta Release] by developer · Thu Mar 27 16:15:32 2025 +0800
  4. bbccc96 [Prpl][feed-mediatek][Update the README for reference] by developer · Tue Mar 11 15:24:49 2025 +0800
  5. 4e8d026 [Prpl][feed-mediatek][Update the correct public link for prpl_feed_mediatek] by developer · Mon Mar 10 21:51:00 2025 +0800

feed-mediatek

This prplOS feed is for MediaTek Kernel6.6 targets platform.

Description

This repository can support filogic880 series chipset, however you shall know the feature sets would be limited by the Prpl Feed Package readiness. (Ex: Wi-Fi7 MLO and Secure Boot..)

Getting Started with feed-mediatek

Based on 2025.01 PrplOS repository status, the latest branch of mainline is mainline-23.05. So we take this branch as an example. Please be noted this prpl mediatek feed shall fit with PrplWare3.2/4.0/4.1 versions.

PrplWare Example Build

Taking mainlin-23.05 as an example, since prplos hasn't been upgraded to the OpenWrt 24.10 based version, additional patches need to be applied to support Kernel 6.6.

1. Clone prplOS

git clone https://gitlab.com/prpl-foundation/prplos/prplos.git -b mainline-23.05
cd prplos

2. prplOS MTK Changes (Extra Patches)

Additional patches need to be applied to support Kernel 6.6:

0001-prplos3.2_support_mozart_kernel6.6.patch

  • Apply the necessary prplos patch to support Kernel 6.6.
  • Forcibly use the kernel target in feed_mediatek.
  • Fix package dependency issues (WiFi scripts).
  • Add the mtk_filogic profile.

0002-disable_tr181_mcastd.patch

  • The tr181 prpl feed package would lead to a kernel crash on Kernel 6.6.

0004-add-netfilter-netlink-ftnl-package.patch

  • For manually deleting flow rule entries.
git clone https://git01.mediatek.com/filogic/prolos/prplos-feed-mediatek
for patch in prplos-feed-mediatek/autobuild/prplos/patches/*.patch; do patch -p1 < "$patch"; done

3. Update the mtk_filogic.yml File

Select the fixed revision or just to follow the latest revision, execute the following command:

sed -i "s/revision: .*/revision: $(git ls-remote https://git01.mediatek.com/filogic/prolos/prplos-feed-mediatek refs/heads/master | awk '{print $1}')/" ./profiles/mtk_filogic.yml

This command retrieves the latest commit hash from the master branch of the specified remote repository and updates the revision field in the mtk_filogic.yml file accordingly.

Verify the Update To confirm that the revision has been successfully updated, run the following command:

cat profiles/mtk_filogic.yml | grep -B 4 "revision"

You should see an output similar to the following, indicating the new revision:

feeds:
  - name: feed_mediatek
    uri: https://git01.mediatek.com/filogic/prolos/prplos-feed-mediatek
    tracking_branch: master
    revision: 60627bf7903f82dff7c0ae88d705a1166da22bde

4. Configure prplOS with common prplMesh

./scripts/gen_config.py prpl mtk_filogic

Note: to include extra developer tools in the final image (tcpdump, strace, gdb), you can add "debug" as an extra profile while invoking the gen_config.py script.

5. Build prplOS image.

make -j32

You can add the flag V=s to this command for more verbose output in case of problems.

5. Check the Final Image

As a result, you will get a full prplOS image with prplMesh for your platform These can be used to upgrade the image on your target using uboot or sysupgrade.

Path: bin/targets/mediatek/filogic

Layout of feed_mediatek

feed_mediatek

Feed-Mediatek Prpl Release History

DateOpenWrt Source
2025.03.27Sync from OpenWrt WiFi7 Beta Release

pWHM Version status

pWHM versionStatus
6.34.xSupport Single hostapd process but NOT support MLO config
7.6.xsupport AP MLD, STA MLD, but NOT support WPS onboarding through MLD

Please note that the latest pWHM v7.6.14 still has issues detecting the MLD capability of wiphy. You need to apply this patch manually to set up AP MLD

 src/nl80211/wld_nl80211_parser.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/nl80211/wld_nl80211_parser.c b/src/nl80211/wld_nl80211_parser.c
index 44e586a..2efd7b6 100644
--- a/src/nl80211/wld_nl80211_parser.c
+++ b/src/nl80211/wld_nl80211_parser.c
@@ -1026,7 +1026,9 @@ swl_rc_ne wld_nl80211_parseWiphyInfo(struct nlattr* tb[], wld_nl80211_wiphyInfo_
     }
     NLA_GET_VAL(pWiphy->nStaMax, nla_get_u32, tb[NL80211_ATTR_MAX_AP_ASSOC_STA]);
     /* check MLO support */
-    pWiphy->suppMlo = (tb[NL80211_ATTR_MLO_SUPPORT] != NULL);
+    if(tb[NL80211_ATTR_MLO_SUPPORT])
+        pWiphy->suppMlo = true;
+
     s_parseIfTypes(tb, pWiphy);
     s_parseIfCombi(tb, pWiphy);
     s_parseWiphyBands(tb, pWiphy);

Disclaimer

All modifications related to pWHM or PrplOS are MTK preliminary patches. These patches do not guarantee quality and have only been verified to pass basic tests. For a complete pWHM integration that meets commercial quality standards, please ensure it is performed by a third-party software integration vendor.

Roadmap

Next Revision Release: around 2025/5/M