Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mt76: move mt7921 firmware from mt7921e to mt7921-firmware #10381

Closed
wants to merge 1 commit into from

Conversation

coudu
Copy link
Contributor

@coudu coudu commented Aug 3, 2022

as others kmod-mt7921x need firmware files too, it is better to
package it with kmod-mt7921-common rather than only with kmod-mt7921e

As others kmod-mt7921x need firmware files too, it is better to
move it to its own package rather than in kmod-mt7921e package.
It could have been moved to mt7921-common but with mt7922 support
comming and needing another firmware it is better to package both
firmwares individually.

Signed-off-by: Pascal Coudurier coudu@gmx.com

@coudu
Copy link
Contributor Author

coudu commented Aug 3, 2022

@nbd168 can you have a look at this please.

Thanks.

@aparcar
Copy link
Member

aparcar commented Aug 7, 2022

Im confused, don't you have to rename dependencies, too?

@coudu
Copy link
Contributor Author

coudu commented Aug 7, 2022

kmod-mt7921e, kmod-mt7921u and kmod-mt7921s already all depend on kmod-mt7921-common, it's just that the firmware files are packaged only in the kmod-mt7921e package, thus if you install - for said - kmod-mt7921u package you have kmod-mt7921-common installed as a dependency but no firmware files installed. If firmware files are packaged with kmod-mt7921-common, you have them installed with any kmod-mt7921x package that depends on kmod-mt7921-common.

@DragonBluep
Copy link
Contributor

I believe the support for MT7922 is on the way and they use different firmware, so it's not a good idea to squash mt7921 firmware into kmod-mt7921-common.
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/mediatek

@coudu
Copy link
Contributor Author

coudu commented Aug 13, 2022

kmod-mt7921-common could provide firmware files for both chips and the driver would load the ones needed based on chip id.

@DragonBluep
Copy link
Contributor

This will significantly increase the size of the package, which is sensitive for embedded systems such as openwrt. It's better to add a new package like kmod-mt7921-firmware.

@coudu
Copy link
Contributor Author

coudu commented Aug 13, 2022

You're probably right regarding package size when both chips will be supported and firmware for 7922 added in openwrt's mt76 packages, so a new kmod-mt7921-firmware package for now and another kmod-mt7922-firmware package later might be a better solution.

@coudu coudu changed the title mt76: move mt7921 firmware from mt7921e to mt7921-common mt76: move mt7921 firmware from mt7921e to mt7921-firmware Aug 13, 2022
@coudu
Copy link
Contributor Author

coudu commented Aug 13, 2022

Modified as per @DragonBluep suggestion.

Let's wait for mt76 gurus' opinion on this matter.

@musashino205
Copy link
Contributor

in the commit message,

... but with mt7622 support comming ...

mt7922?

@coudu
Copy link
Contributor Author

coudu commented Aug 31, 2022

in the commit message,

... but with mt7622 support comming ...

mt7922?

well spotted, thanks.

corrected and rebased.

@hauke hauke requested a review from nbd168 September 10, 2022 18:15
As others kmod-mt7921x need firmware files too, it is better to
move it to its own package rather than in kmod-mt7921e package.
It could have been moved to mt7921-common but with mt7922 support
comming and needing another firmware it is better to package both
firmwares individually.

Signed-off-by: Pascal Coudurier <coudu@gmx.com>
@coudu
Copy link
Contributor Author

coudu commented Nov 12, 2022

@nbd168 can you have a look at this please.

Thanks.

@coudu
Copy link
Contributor Author

coudu commented Nov 13, 2022

Done in another commit here
closing.

@coudu coudu closed this Nov 13, 2022
@coudu coudu deleted the fix-mt7921-fw branch November 13, 2022 00:28
@dhewg
Copy link
Contributor

dhewg commented Nov 13, 2022

Sorry, I didn't search and wasn't aware of your PR before creating a new one :\

fengmushu pushed a commit to fengmushu/openwrt that referenced this pull request Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core packages pull request/issue for core (in-tree) packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants