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

Add rtw89, mt7921 and mt7922 WiFi and BT firmware #3003

Merged
merged 1 commit into from
Dec 20, 2023
Merged

Conversation

sairon
Copy link
Member

@sairon sairon commented Dec 19, 2023

Add new firmwares and enable them for all targets. Bloat in rootfs in my x86_64 test build was ~2.16 MiB.

Buildroot bump:

  • buildroot 8a75878da4...4c89661fd1 (2):

    package/linux-firmware: add WiFi and BT firmware for MT7921 and MT7922
    package/linux-firmware: add rtw89 firmware files

Add new firmwares and enable them for all targets.
Bloat in rootfs in my x86_64 test build was ~2.16 MiB.

Buildroot bump:

* buildroot 8a75878da4...4c89661fd1 (2):
  > package/linux-firmware: add WiFi and BT firmware for MT7921 and MT7922
  > package/linux-firmware: add rtw89 firmware files
@sairon sairon added board/raspberrypi Raspberry Pi Boards board/ova Open Virtual Appliance (Virtual Machine) board/odroid Hardkernel's ODROID Boards board/tinker ASUS' Tinker Boards linux Linux kernel related issue board/generic-x86-64 Generic x86-64 Boards (like Intel NUC) board/khadas Khadas VIM Boards board/yellow Home Assistant Yellow board/generic-aarch64 Generic aarch64 machine board/green Home Assistant Green labels Dec 19, 2023
@sairon sairon requested a review from agners December 19, 2023 17:58
@sairon sairon merged commit 2e7aa1d into dev Dec 20, 2023
2 checks passed
@sairon sairon deleted the add-more-firmwares branch December 20, 2023 16:39
@ikhimichenko
Copy link

Thank you guys for fixing Bluetooth for raspberry 4 on this release

@sairon
Copy link
Member Author

sairon commented Jan 5, 2024

@ikhimichenko It's a bit off-topic in this PR, yet I have to ask - what issues you've had, and has 11.3 resolved them for you?

@ikhimichenko
Copy link

Yes, that was fixed in this particular release.
Two or three releases (updates for HA) before Bluetooth for my RP4 was broken with the following message Failed setup, will retry.
So bluetooth integration constant state of initializing / retrying setup.
I’m a newbie in the HA so I’m sorry if my answer is not met you question.

@parisisal
Copy link

I installed the HAOS 11.3, and the wifi driver for RTL8852BE seems missing (no wifi card found by the system).
Should I wait for HAOS 11.4 ?

@sairon
Copy link
Member Author

sairon commented Jan 5, 2024

@parisisal Thanks for the feedback, it turns out that enabling of BR2_PACKAGE_LINUX_FIRMWARE_RTL_RTW89 option is missing in this PR 😬 The driver is there, just the FW is missing - so if you check dmesg there should be a message from the firmware loader the file couldn't be found. I'll create a PR to fix it, so it will indeed be available since 11.4. Sorry for the false hopes.

sairon added a commit that referenced this pull request Jan 5, 2024
In #3003 the rtw89 firmware was only added to the buildroot submodule,
config option for enabling it was missing.
agners pushed a commit that referenced this pull request Jan 6, 2024
In #3003 the rtw89 firmware was only added to the buildroot submodule,
config option for enabling it was missing.
@parisisal
Copy link

parisisal commented Jan 10, 2024

Hi,
I just installed the 11.4 SO, but i still not see the wlan adapter.
I rebooted the machine.
Here the dmesg dmesg.txt
Should I do somenthing in order to correctly load the driver?

@sairon
Copy link
Member Author

sairon commented Jan 10, 2024

@parisisal Sorry again - whole time I was checking for a wrong PCI identifier. It turns out that driver for 8852BE was only added to Linux 6.2+. 6.1.x only has 8852AE and 8852CE drivers. It's get lost easily in the jungle of all the device models 🤦
So far only BT works for that Realtek card (which is confirmed in the dmesg output you provided), WiFi will need a kernel update (which should be hopefully available Soon™).

@parisisal
Copy link

@parisisal Sorry again - whole time I was checking for a wrong PCI identifier. It turns out that driver for 8852BE was only added to Linux 6.2+. 6.1.x only has 8852AE and 8852CE drivers. It's get lost easily in the jungle of all the device models 🤦 So far only BT works for that Realtek card (which is confirmed in the dmesg output you provided), WiFi will need a kernel update (which should be hopefully available Soon™).

Don't worry, first of all thank you for you work. Nice to help.

@ikhimichenko
Copy link

Again, after core update for Raspberry pi 4b - bluetooth doesn't work
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
board/generic-aarch64 Generic aarch64 machine board/generic-x86-64 Generic x86-64 Boards (like Intel NUC) board/green Home Assistant Green board/khadas Khadas VIM Boards board/odroid Hardkernel's ODROID Boards board/ova Open Virtual Appliance (Virtual Machine) board/raspberrypi Raspberry Pi Boards board/tinker ASUS' Tinker Boards board/yellow Home Assistant Yellow cla-signed linux Linux kernel related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants