【问题标题】:network connection problem after installing arch linux安装arch linux后网络连接问题
【发布时间】:2020-04-05 05:53:21
【问题描述】:

在 acer c720 上安装 Arch 后,我重新启动并无法使用 wifi-menu 连接到互联网,而是得到了这些结果。

ping: www.google.com: Temporary failure in name resolution
lspci -k|tail -4
01:00.0 Network controller: Qualcomm Atheros AR9462 Wireless Network Adapter (rev 01)
    Subsystem: Foxconn International, Inc. AR9462 Wireless Network Adapter
    Kernel driver in use: ath9k
    Kernel modules: ath9k
ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wlp1s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
    link/ether c0:38:96:7b:4b:13 brd ff:ff:ff:ff:ff:ff
dmesg|grep firmware
[    5.276751] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
ip link set wlp1s0 up
ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wlp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
    link/ether c0:38:96:7b:4b:13 brd ff:ff:ff:ff:ff:ff
dmesg|grep firmware
[    5.276751] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
dmesg|grep firmware
[    5.623139] ath9k 0000:01:00.0 wlp1s0: renamed from wlan0
dmesg|grep wlp1s0
[  241.764977] wlp1s0: authenticate with ac:a3:1e:e4:a1:92
[  241.775194] wlp1s0: send auth to ac:a3:1e:e4:a1:92 (try 1/3)
[  241.776256] wlp1s0: authenticated
[  241.777644] wlp1s0: associate with ac:a3:1e:e4:a1:92 (try 1/3)
[  241.778999] wlp1s0: RX AssocResp from ac:a3:1e:e4:a1:92 (capab=0x1 status=0 aid=4)
[  241.779160] wlp1s0: associated
[  241.779745] IPv6: ADDRCONF(NETDEV_CHANGE): wlp1s0: link becomes ready
[  241.813454] audit: type=1130 audit(1576018783.420:29): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=netctl@wlp1s0\x2dCity\x20of\x20Eugene\x2dFree\x20Public\x20WiFi comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  241.818154] wlp1s0: deauthenticating from ac:a3:1e:e4:a1:92 by local choice (Reason: 3=DEAUTH_LEAVING)
[  242.032750] audit: type=1131 audit(1576018783.640:30): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=netctl@wlp1s0\x2dCity\x20of\x20Eugene\x2dFree\x20Public\x20WiFi comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'

如果我正确解释了这些结果和“无线配置”wiki,我现在需要做的就是在 pacstrap 安装 linux-firmware 时从存储在我系统上的任何位置手动安装 ath9k 驱动程序固件。

find / -iname '*ath9k*.xz'
/proc/irq/16/ath9k
/sys/kernel/debug/ieee80211/phy0/ath9k
/sys/class/leds/ath9k-phy0
/sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/leds/ath9k-phy0
/sys/bus/platform/drivers/ath9k
/sys/bus/pci/drivers/ath9k
/sys/module/ath9k_common
/sys/module/ath9k_common/holders/ath9k
/sys/module/ath9k
/sys/module/ath9k/drivers/platform:ath9k
/sys/module/ath9k/drivers/pci:ath9k
/sys/module/ath/holders/ath9k_common
/sys/module/ath/holders/ath9k
/sys/module/ath/holders/ath9k_hw
/sys/module/mac80211/holders/ath9k
/sys/module/mac80211/holders/ath9k_hw
/sys/module/ath9k_hw
/sys/module/ath9k_hw/holders/ath9k_common
/sys/module/ath9k_hw/holders/ath9k
/sys/module/cfg80211/holders/ath9k_common
/sys/module/cfg80211/holders/ath9k
/usr/lib/modules/5.4.2-arch1-1/kernel/drivers/net/wireless/ath/ath9k
/usr/lib/modules/5.4.2-arch1-1/kernel/drivers/net/wireless/ath/ath9k/ath9k.ko.xz
/usr/lib/modules/5.4.2-arch1-1/kernel/drivers/net/wireless/ath/ath9k/ath9k_common.ko.xz
/usr/lib/modules/5.4.2-arch1-1/kernel/drivers/net/wireless/ath/ath9k/ath9k_pci_owl_loader.ko.xz
/usr/lib/modules/5.4.2-arch1-1/kernel/drivers/net/wireless/ath/ath9k/ath9k_htc.ko.xz
/usr/lib/modules/5.4.2-arch1-1/kernel/drivers/net/wireless/ath/ath9k/ath9k_hw.ko.xz
/usr/lib/firmware/ath9k_htc
/usr/share/licenses/linux-firmware/LICENCE.open-ath9k-htc-firmware
/run/udev/tags/seat/+leds:ath9k-phy0
/run/udev/data/+leds:ath9k-phy0
find: paths must precede expression: `2'

wiki 早期有一个标题为“安装固件”的部分,但没有明确说明应该如何完成,而且 pacman 似乎只关心 .tar.xz。

pacman -U /usr/lib/modules/5.4.2-arch1-1/kernel/drivers/net/wireless/ath/ath9k/ath9k.ko.xz
loading packages...
error: could not open file /usr/lib/modules/5.4.2-arch1-1/kernel/drivers/net/wireless/ath/ath9k/ath9k.ko.xz: Unrecognized archive format
error: '/usr/lib/modules/5.4.2-arch1-1/kernel/drivers/net/wireless/ath/ath9k/ath9k.ko.xz': cannot open package file

我应该从这里去哪里?

【问题讨论】:

    标签: wifi archlinux


    【解决方案1】:

    问题在于缺少 dhcpcd,而且我不喜欢使用 systemd。

    我需要从 Arch 下载包,安装它并使用 systemctl 启用和启动它,这样它在重启后仍然存在。

    【讨论】:

      【解决方案2】:

      我也有类似的??使用 netgear wifi dongle 安装的问题: (lsusb) NetGear, Inc. WNA1100 Wireless-N 150 [Atheros AR9271]

      由于以下文章,Wifi 在安装过程中在 iso 上运行良好: https://linuxcommand.blogspot.com/2013/10 让 Wi-Fi 正常工作。

      但在安装的系统上启动时不存在。

      在已安装的系统上,dmesg | grep ath:

      [11.960144] usb 1-3:ath9k_htc: 固件 ath9k_htc/htc_9271-1.4.0.fw 请求

      [11.966726] usbcore: 注册了新的接口驱动 ath9k_htc

      [12.308917] usb 1-3:ath9k_htc: 传输的 FW:ath9k_htc/htc_9271-1.4.0.fw, 大小: 51008 [12.559791]ath9k_htc 1-3:1.0:ath9k_htc: HTC 初始化为 33 个积分

      [12.790286] ath9k_htc 1-3:1.0:ath9k_htc:固件版本:1.4

      [12.790290] ath9k_htc 1-3:1.0:固件 RMW 支持:开启

      [12.790292] ath: EEPROM 注册域: 0x60

      [12.790294] ath: EEPROM 表明我们应该期待一个直接的 regpair 映射

      [12.790297] ath:正在使用的国家 alpha2:00

      [12.790298] ath:使用的注册对:0x60

      [12.835277] ath9k_htc 1-3:1.0 wlp0s2f1u3:从 wlan0 重命名

      尝试使用 wlp0s2f1u3 无济于事: (iw dev) 显示 wlp0s2f1u3 但是当其他命令用于使用 wlp0s2f1u3 设置链接时出现“设备未找到”等

      花了几天时间四处寻找防止 wlan0 被重命名为 wlp0s2f1u3 的方法,最终发现安装 iso 有一个额外的文件:

      /lib/systemd/network/80-iwd.link

      [Match] Type=wlan

      [Link] NamePolicy=keep kernel

      这个文件阻止了 wlp0s2f1u3 从 wlan0 重命名,我能够使用 wlan0 而不是 wlp0s2f1u3 让网络运行。

      感谢所有帮助我找到解决方案的人。

      【讨论】:

        猜你喜欢
        • 2012-03-03
        • 2020-09-27
        • 1970-01-01
        • 2017-08-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多