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

qca9377-firmware-aml: update to 5e4b712, now with BT firmware #3216

Closed
wants to merge 1 commit into from

Conversation

sky42src
Copy link
Contributor

@sky42src sky42src commented Jan 7, 2019

The service qca9377-firmware-aml.service was complaining about missing BT firmware on a Xoro HST 260 S905X and Xoro HST 260 DVB-T2/C S905D and i use my Harmony with BT on all my devices.

Patch tested on both devices.

before:
systemctl status qca9377-firmware-aml.service
? qca9377-firmware-aml.service - QCA Bluetooth firmware service
Loaded: loaded (/usr/lib/systemd/system/qca9377-firmware-aml.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2015-01-01 01:00:26 CET; 4 years 0 months ago
Process: 2970 ExecStart=/usr/bin/hciattach -n -s 115200 /dev/ttyS1 qca 2000000 (code=exited, status=1/FAILURE)
Main PID: 2970 (code=exited, status=1/FAILURE)

Jan 01 01:00:19 kodi07 systemd[1]: Started QCA Bluetooth firmware service.
Jan 01 01:00:19 kodi07 hciattach[2970]: qca_soc_init: Rome Version (0x03020023)
Jan 01 01:00:23 kodi07 hciattach[2970]: read_vs_hci_event: Not an HCI-VS-Event! buf[0]: 255/lib/firmware/qca/tfbtnv11.bin File Open Fail
Jan 01 01:00:26 kodi07 systemd[1]: qca9377-firmware-aml.service: Main process exited, code=exited, status=1/FAILURE
Jan 01 01:00:26 kodi07 systemd[1]: qca9377-firmware-aml.service: Failed with result 'exit-code'.

and after:
systemctl status qca9377-firmware-aml.service
● qca9377-firmware-aml.service - QCA Bluetooth firmware service
Loaded: loaded (/usr/lib/systemd/system/qca9377-firmware-aml.service; static; vendor preset: disabled)
Active: active (running) since Thu 2015-01-01 01:00:20 CET; 4 years 0 months ago
Main PID: 3076 (hciattach)
Memory: 444.0K
CGroup: /system.slice/qca9377-firmware-aml.service
└─3076 /usr/bin/hciattach -n -s 115200 /dev/ttyS1 qca 2000000

Jan 01 01:00:20 kodi07 systemd[1]: Started QCA Bluetooth firmware service.
Jan 01 01:00:20 kodi07 hciattach[3076]: qca_soc_init: Rome Version (0x03020023)
Jan 01 01:00:23 kodi07 hciattach[3076]: read_vs_hci_event: Not an HCI-VS-Event! buf[0]: 255Failed to open /etc/bluetooth/firmware.conf
Jan 01 01:00:23 kodi07 hciattach[3076]: Ignoring invalid deep sleep config value
Jan 01 01:00:23 kodi07 hciattach[3076]: Failed to open /etc/bluetooth/firmware.conf

@spycat88
Copy link
Contributor

spycat88 commented Jan 11, 2019

This has fixed 1 issue and introduced a new one.

We had users with Magicsee N5 confirm bluetooth now working with this change.

We also had another user with qca9377 chipset report that they can no longer poweroff with this new firmware, other users without the chipset are unaffected.

Possibly the driver needs to be bumped as well to match the firmware.

@sky42src
Copy link
Contributor Author

With latest git 311e249 for qca9377-aml the patch in the package does not apply.

UNPACK qca9377-aml
APPLY PATCH (common) packages/linux-drivers/amlogic/qca9377-aml/patches/qca9377-aml-001-Modify-SDIO-and-firmware-handling-to-support-chips-u.patch
patching file CORE/HDD/src/wlan_hdd_cfg.c
Hunk #2 FAILED at 4413.
1 out of 3 hunks FAILED -- saving rejects to file CORE/HDD/src/wlan_hdd_cfg.c.rej
patching file CORE/HDD/src/wlan_hdd_main.c
Hunk #2 succeeded at 7958 (offset 23 lines).
Hunk #3 succeeded at 7999 (offset 23 lines).
Hunk #4 succeeded at 13043 (offset 26 lines).
patching file CORE/SERVICES/BMI/ol_fw.c
patching file CORE/SERVICES/HIF/sdio/linux/if_ath_sdio.c
patching file CORE/SERVICES/HIF/sdio/linux/native_sdio/include/hif_internal.h
patching file CORE/SERVICES/HIF/sdio/linux/native_sdio/src/hif.c
Hunk #13 succeeded at 1562 (offset -2 lines).
Hunk #14 succeeded at 2054 (offset -2 lines).
Hunk #15 succeeded at 2277 (offset -2 lines).
Hunk #16 succeeded at 2290 (offset -2 lines).
Makefile:12: recipe for target 'image' failed
make: *** [image] Error 1

@CvH
Copy link
Member

CvH commented May 4, 2019

@sky42src closing because AML 3.14 is now gone at Master, tx for PR !
if you have something compatible with mainline pls reopen

@CvH CvH closed this May 4, 2019
@sky42src sky42src deleted the le90_aml_qca9377 branch October 4, 2019 13:25
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.

3 participants