URL: https://linuxfr.org/forums/linux-noyau/posts/kernel-driver-firmware-ath10k Title: kernel / driver / firmware ath10k Authors: doudootiana Date: 2021年06月17日T20:44:00+02:00 License: CC By-SA Tags: Score: 3 Hello à toutes et à tous :) Voici un problème qui me prend la tête depuis plus d'une semaine ^^ Pour un projet, j'utilise comme support un clearfog base ( marque : solidrun). L'os est fait maison gràce à Buildroot. Le kernel est custom également. Je débute et me fais les dents ainsi :) Rie de mieux que la pratique pour apprendre :) J'ai installé une carte wifi pcie ( utilisant les drivers ath10k et le firmware : QCA988X). Le problème : lorsque j'allume mon Clearfog, la carte ne remonte pas : ```sh # dmesg | grep 'ath' [ 1.745947] ath10k_pci .&checktime(0000,01,00,':').0: enabling device (0140 -> 0142) [ 1.752432] ath10k_pci .&checktime(0000,01,00,':').0: pci irq msi oper_irq_mode 2 irq_mode 0 r eset_mode 0 [ 1.989357] ath10k_pci .&checktime(0000,01,00,':').0: Failed to find firmware-N.bin (N between 2 and 6) from ath10k/QCA988X/hw2.0: -2 [ 1.999921] ath10k_pci .&checktime(0000,01,00,':').0: could not fetch firmware files (-2) [ 2.006653] ath10k_pci .&checktime(0000,01,00,':').0: could not probe fw (-2) # QCA988X ``` Le firmware est dans le bon dossier, à savoir : /lib/firmware/ath10k/QCA988X/hw2.0/ Cependant, lorsque je fais un chmod 777 du firmware, et que je lance un soft reboot, le firmware est reconnu et la carte wifi remonte. ```sh # dmesg | grep 'ath' [ 1.749532] ath10k_pci .&checktime(0000,01,00,':').0: enabling device (0140 -> 0142) [ 1.755996] ath10k_pci .&checktime(0000,01,00,':').0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0 [ 2.018995] ath10k_pci .&checktime(0000,01,00,':').0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000 [ 2.028257] ath10k_pci .&checktime(0000,01,00,':').0: kconfig debug 1 debugfs 1 tracing 1 dfs 0 testmode 1 [ 2.037036] ath10k_pci .&checktime(0000,01,00,':').0: firmware ver 10.2.4-1.0-00047 api 5 features no-p2p,raw-mode,mfp,allows-mesh-bcast crc32 35bd9258 [ 2.083049] ath10k_pci .&checktime(0000,01,00,':').0: board_file api 1 bmi_id N/A crc32 bebc7c08 [ 3.246972] ath10k_pci .&checktime(0000,01,00,':').0: unsupported HTC service id: 1536 [ 3.273389] ath10k_pci .&checktime(0000,01,00,':').0: htt-ver 2.1 wmi-op 5 htt-op 2 cal otp max-sta 128 raw 0 hwcrypto 1 [ 3.395395] ath: EEPROM regdomain: 0x0 [ 3.395398] ath: EEPROM indicates default country code should be used [ 3.395399] ath: doing EEPROM country->regdmn map search [ 3.395403] ath: country maps to regdmn code: 0x3a [ 3.395405] ath: Country alpha2 being used: US [ 3.395407] ath: Regpair used: 0x3a [ 20.128472] ath10k_pci .&checktime(0000,01,00,':').0: unsupported HTC service id: 1536 [ 20.154994] ath10k_pci .&checktime(0000,01,00,':').0: pdev param 0 not supported by firmware [ 27.578837] ath10k_pci .&checktime(0000,01,00,':').0: unsupported HTC service id: 1536 [ 27.605438] ath10k_pci .&checktime(0000,01,00,':').0: pdev param 0 not supported by firmware ``` Lorsque j'éteins électriquement le Clearfog et le rallume, la carte wifi ne remonte pas et je suis obligé de refaire un chmod 777 et de lancer un soft reboot :( J'ai créé un script dans /etc/init.d pour qu'il automatise le chmod 777 sur le firmware, en vain :( quelqu'un aurait une idée? Merci d'avance