MT6000 custom build with LuCi and some optimization - kernel 6.6.x

Dear. I would like to share with you my custom build with kernel 6.6.x

Difference with standard openWRT version:

iBF settings & QAM-256 VHT on 2g activable in Luci
immagine

WED setting is on LuCi

Background radar setting can be activable in LuCi

TWT setting activable in LuCi (it is on advanced tab of wifi settings)

immagine

Setting of chanlist in LuCi in case you enable the background radar feature.
if you don't use auto channel it is mandatory to insert a chanlist

iBF settings are for 2g ang 5g network

  • script to set irqaffinity ( no need to enable irqbalance - disabled by default but installed)

  • WiFi is not enabled

  • LuCi is installed

  • Automount of usb drive with ksmbd just plug your usb flashdisk or hard drive

Do you need different package or... Please let me know.

Latest release here:

How to add my custom repo for kmod or other packages?

Software - Configure opkg

On /etc/opkg/distfeeds.conf section use my repo for openwrt_core
Use the link of your build, in the example here we will check for kmod of r26661 (please get the raw link)

src/gz openwrt_core https://raw.githubusercontent.com/pesa1234/MT6000_cust_build/refs/heads/main/2024.10.11_r27835_6.6.56_next-r4.3.3.mtk/targets/mediatek/filogic/packages

How to compile directly from my source?

Prerequisites:
I suggest Ubuntu 22.04

sudo apt update
sudo apt install build-essential clang flex bison g++ gawk \
gcc-multilib g++-multilib gettext git libncurses-dev libssl-dev \
python3-distutils rsync swig unzip zlib1g-dev file wget llvm

This procedure is useful if you want to compile your own image with your preferred packages.

Download and update the sources

git clone https://github.com/pesa1234/openwrt.git
cd openwrt
git pull

Select a specific code revision (main is like standard openwrt version)

git branch -a
git checkout next-r2.4.mtk

Update the feeds

./scripts/feeds update -a
./scripts/feeds install -a

Import my latest config

wget https://raw.githubusercontent.com/pesa1234/MT6000_cust_build/main/2024.06.12_r26661_6.6.32_next-r2.4.mtk.rc2/targets/mediatek/filogic/config.buildinfo -O .config

USE RAW LINK
immagine

Modify packages installed (y) or present as module (M) or add your preferred

make menuconfig

Download all
make download

Compile
make -j$(nproc)

10 Likes

I may have to give this a spin.. how is the 6.1 kernel treating you on this hardware? Any noticeable benefit?

I didn't try a lot 5.15.

6.1 will be next stable this is why I switch to 6.1. If somebody would like to test it and compare with 5.15 I'm curious

@pesa1234 can you help me understand this statement: “Compiled to optimize speed”

Is that in reference to the last few lines in the diffconfig?

Does your build include the changes in https://github.com/openwrt/openwrt/pull/14140 ?

Here the two lines
Openssl compiled with

CONFIG_OPENSSL_OPTIMIZE_SPEED=y

-O2 as -Os

CONFIG_TARGET_OPTIMIZATION="-O2 -pipe -mcpu=cortex-a53"
1 Like

No, it isn't still merged on main

I know it's a different platform, but I see what I think are security references and compile options to use hardware encryption?? Can any of the work that was done here help?

https://divested.dev/unofficial-openwrt-builds/mvebu-linksys/patches/

About hardening I leave as standard, is better to analyze cost-benefit of these option on this device.
Regarding hardware encryption it is enabled by default.

updated r24991_6.1.75

1 Like

how is 2.4ghz wifi with this snapshot?

If you are referring to the
0003-kernel-generic-6.1-config-hardening.patch, you could use it. It’s a generic patch that negates some known bad bits. diff the `0002 and 0003’ patch to see what changed.

0001, 0005, 0009, and 0010 are also generic patches that could be applied to most builds.

I’m just responding to your question, I am not advocating that anyone just add anything from this patch set without understanding exactly how it will affect your build. Read and understand any patch before you apply it.

2 Likes

In my opinion is good, better than my old wrt1900acs... But my environment is different from your. Only a fast test can give you a good idea

looks like there's and mt76 updated driver. can you compile a new image with kernel 6.1 based on the latest snapshot, please?

Yes, I'll do it tomorrow.

thanks. respect!

@DariukaB I may have missed the mt76 driver update in master. Where do you see it? https://git.openwrt.org/?p=openwrt/openwrt.git;a=shortlog;h=refs/heads/master

There have been a couple so far this year:
https://git.openwrt.org/?p=openwrt%2Fopenwrt.git&a=search&h=refs%2Fheads%2Fmaster&st=commit&s=mt76%3A

Mostly small bug fixes and WiFi 7 chip added (good news for future mediatek devices).

uploaded

2 Likes

Uploaded https://github.com/pesa1234/MT6000_cust_build/tree/main/20240218_r25239_6.1.78
Changed title, now our device is with 6.1 as stable, enjoy

2 Likes