WiFi 驱动程序安装失败 - SSL 错误:02001002:系统库:fopen:没有此文件或目录:bss_file.c:175

WiFi 驱动程序安装失败 - SSL 错误:02001002:系统库:fopen:没有此文件或目录:bss_file.c:175

我刚刚在我的 Aspire E 15 (E5-573-35Q3) 上安装了 16.04

我有一台 Qualcom Atheros,显示内容如下:

$ lspci -vvnn
03:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0042] (rev 30)
    Subsystem: Lite-On Communications Inc Device [11ad:0806]
    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0, Cache Line Size: 64 bytes
    Interrupt: pin A routed to IRQ 50
    Region 0: Memory at b0400000 (64-bit, non-prefetchable) [size=2M]
    Capabilities: <access denied>
    Kernel driver in use: ath10k_pci
    Kernel modules: ath10k_pci

要安装驱动程序,我按照以下步骤操作,就像我对以前的发行版所做的那样:

sudo apt-get install build-essential linux-headers-$(uname -r) git
echo "options ath10k_core skip_otp=y" | sudo tee /etc/modprobe.d/ath10k_core.conf
wget https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v4.4.2/backports-4.4.2-1.tar.gz
tar -zxvf backports-4.4.2-1.tar.gz
cd backports-4.4.2-1
make defconfig-wifi
make
sudo make install

除了“make install”之外,其他一切都运行良好。我收到了无数条消息,如下所示:

INSTALL /home/cecil/backports-4.4.2-1/compat/compat.ko
At main.c:222:
- SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or directory

对于每个想要安装的 .ko 文件都会重复此操作(共 123 个)

然后它说:

sign-file: certs/signing_key.pem: No such file or directory
  DEPMOD  4.4.0-21-generic
depmod will prefer updates/ over kernel/ -- OK!
Note:
You may or may not need to update your initramfs, you should if
any of the modules installed are part of your initramfs. To add
support for your distribution to do this automatically send a
patch against "update-initramfs.sh". If your distribution does not
require this send a patch with the '/usr/bin/lsb_release -i -s'
("Ubuntu") tag for your distribution to avoid this warning.

Your backported driver modules should be installed now.
Reboot.

然后我使用以下命令获取固件:

git clone https://github.com/kvalo/ath10k-firmware.git
sudo cp -r ath10k-firmware/QCA9377 /lib/firmware/ath10k/
sudo cp /lib/firmware/ath10k/QCA9377/hw1.0/firmware-5.bin_WLAN.TF.1.0-00267-1 /lib/firmware/ath10k/QCA9377/hw1.0/firmware-5.bin

它似乎运行良好,但是当我重新启动时 - 仍然没有检测到 wifi。

这是新发行版中的一个错误吗?还是我必须做其他事情?

谢谢

塞西尔

我跑了dmesg |grep ath——什么也没找到

我跑了lsmod |grep ath——什么也没找到

我尝试加载sudo modprobe ath10k_pci

收到消息:

modprobe: ERROR: could not insert 'ath10k_pci': Required key not available

我尝试了modprobe -r ath10k_pci以防万一,但没有找到并删除它。


好的 - 我消除了尝试安装 ath10k_pci 驱动程序所造成的混乱:

sudo make uninstall (in the backports.... directory)

然后我重新启动 - lsmod 发现驱动程序现已安装:

ath10k_pci             45056  0
ath10k_core           311296  1 ath10k_pci
ath                    32768  1 ath10k_core
mac80211              737280  1 ath10k_core
cfg80211              565248  3 ath,mac80211,ath10k_core

dmesg|grep ath找到了很多我需要的固件信息。你能翻译一下吗 :-)

[   13.180269] ath10k_pci 0000:03:00.0: pci irq msi interrupts 1 irq_mode 0 reset_mode 0
[   13.433624] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2
[   13.433643] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA9377/hw1.0/firmware-5.bin failed with error -2
[   13.433646] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA9377/hw1.0/firmware-5.bin': -2
[   13.433657] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA9377/hw1.0/firmware-4.bin failed with error -2
[   13.433660] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA9377/hw1.0/firmware-4.bin': -2
[   13.433668] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA9377/hw1.0/firmware-3.bin failed with error -2
[   13.433670] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA9377/hw1.0/firmware-3.bin': -2
[   13.433680] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA9377/hw1.0/firmware-2.bin failed with error -2
[   13.433682] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA9377/hw1.0/firmware-2.bin': -2
[   13.433690] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA9377/hw1.0/firmware.bin failed with error -2
[   13.433692] ath10k_pci 0000:03:00.0: could not fetch firmware (-2)
[   13.433695] ath10k_pci 0000:03:00.0: could not fetch firmware files (-2)
[   13.433699] ath10k_pci 0000:03:00.0: could not probe fw (-2)

谢谢

啊哈-我认为它已经修复了。

我发现该发行版没有 QCA9377 驱动程序。

然后我尝试编译自己的程序,结果把事情搞得一团糟。一旦解决了这个问题,然后通过将 QCA9377 驱动程序复制到 /lib/firmware... 系统现在找到了正确的驱动程序,哇!

感谢 chilli555 - 问题解决了!

答案1

加载驱动程序时出现此错误,表明出现故障,make并且sudo make install

sudo modprobe ath10k_pci modprobe: ERROR: could not insert 'ath10k_pci': Required key not available 

让我们卸载您从反向移植中构建的驱动程序。它不再需要,因为它已存在于 Ubuntu 16.04 中:

cd ~/backports-4.4.2-1
sudo make uninstall

重新启动并检查默认驱动程序是否已加载:

lsmod | grep ath

如果是,则消息日志应向我们显示所需的固件(如果不是您已安装的固件)。检查:

dmesg | grep ath

如果确实缺少固件,我会编辑这个答案来解释如何安装它。

相关内容