Skip to content

Conversation

@razvanphp
Copy link
Contributor

@razvanphp razvanphp commented Feb 7, 2025

I know this might sound crazy, but hear me out:

There is a big community of developers using Nvidia Jetson platform / boards and they are stuck with kernel 5.15 LTS as of today, so they can't use Mediatek MT7921u WiFi 6E, specifically Alfa Networks AWUS036AXML.

If you think we should rewrite the git history to remove those commits instead, fine with me.

Not sure why/how this branch still compiles openwrt 22.03, since it has kernel 5.10.138 + cfg80211/mac80211 from kernel 5.15.58, so theoretically it should fail.

I've tested this by successfully compiling all those modules out-of-kernel on my jetson using this command:

$ make -C /lib/modules/$(uname -r)/build M=$(pwd) CONFIG_MT76_CONNAC_LIB=m CONFIG_MT7921_COMMON=m CONFIG_MT76_USB=m CONFIG_MT7921U=m CONFIG_MT76x0U=m CONFIG_MT76x0_COMMON=m  CONFIG_MT7663U=m CONFIG_MT76x0E=m CONFIG_MT76x0_COMMON=m CONFIG_MT76x02_USB=m CONFIG_MT76x02_USB=m CONFIG_MT7603E=m CONFIG_MT76x02_LIB=m CONFIG_MT7915E=m modules

... but for MT7921, just the first two reverts are needed.

Would love to keep this in your repo and reference to it instead of maintaining a separate fork.

Thank you in advance!
R

This reverts commit 65042bf.

This feature landed in kernel 5.18, so not compiling in 5.10/5.15, see here: torvalds/linux@6b7f9af
This reverts commit f27ff9a.

This change landed in kernel 6.4, so not compiling in 5.10/5.15, see here: torvalds/linux@2c9abe6
This reverts commit 22094b2.

This feature landed in kernel 5.17, so not compiling in 5.10/5.15, see here: torvalds/linux@a95bfb8
This reverts commit 78770f7.

This feature was added in kernel 5.17, so it will not compile in 5.10/5.15, see here: torvalds/linux@bc2dfc0
This reverts commit 5b94045.

This feature was added in kernel 5.17, so it will not compile in 5.10/5.15, see here: torvalds/linux@bc2dfc0
This reverts commit 93c0377.

This feature was added in kernel 5.17, so it will not compile in 5.10/5.15, see here: torvalds/linux@bc2dfc0
This reverts commit 4c76a6c.

This feature was added in kernel 5.17, so it will not compile in 5.10/5.15, see here: torvalds/linux@bc2dfc0
@Djfe
Copy link

Djfe commented Apr 1, 2025

What/Where is your "separate fork"?
The PRs in this repo aren't usually looked at by the devs. So if you submit anything here, nothing is going to happen.

openwrt 22.03 has lots of backported patches for the necessary kernel features that's why it also compiles on older kernels.
I'm also fairly certain that 22.03 has and never had support for 6GHz wifi, I could be wrong though.

as examples look at:
https://github.com/openwrt/openwrt/tree/openwrt-22.03/target/linux/generic/backport-5.10
https://github.com/openwrt/openwrt/tree/openwrt-22.03/package/kernel/mac80211/patches

Would love to keep this in your repo

openwrt-22.03 is a branch for OpenWrt 22.03 not for any Linux using Kernel 5.10
Why are you using this branch anyways if you are looking for Kernel 5.15? ^^ (what OpenWrt 23.05 is)
How about: https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/net/wireless/mediatek/mt76?h=linux-5.15.y

github.com/openwrt/mt76/ is just a fork of drivers/net/wireless/mediatek/mt76 in the linux kernel after all

currently up-to-date is v5.15.179
while OpenWrt 23.05 uses v5.15.173 still

mt76 for that tag is then found at https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/log/drivers/net/wireless/mediatek/mt76?h=v5.15.173
or at https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/log/drivers/net/wireless/mediatek/mt76?h=v5.10.221 for Kernel 5.10

Of course I don't know whether either Kernels support mt7921 sufficiently, yet. (possibly they don't)
You can still manage your own fork of a fork if you want, but I don't think it makes sense to modify the branch openwrt-22.03 here

Using upstream linux might safe yourself quite a bit of headache, unless you want to deal with backporting Features from newer kernels.

PS:

they are stuck with kernel 5.15 LTS as of today

Maybe post a link that tells us why :)
We are not following that plattform here. And people finding this thread via google surely don't want to compare dates to find the correct news articles.

@Djfe
Copy link

Djfe commented Apr 1, 2025

What prevents you from running Kernel 6.12 for example?
Several Nvidia Jetson boards were merged into linux in the past
https://github.com/search?q=repo%3Atorvalds%2Flinux%20nvidia%20jetson&type=code

Or is the OS restricting? (doesn't work with newer Kernels due to requiring closed source blobs in the Kernel)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants