作者:手机用户2502930273 | 来源:互联网 | 2023-08-24 18:27
在acer c720上安装Arch之后,我重新启动并无法通过wifi菜单连接到Internet,而是获得了这些结果。
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: 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: 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: 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: 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'
如果我正确解释了这些结果和“无线配置”维基,那么现在我需要做的是,在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
我应该从这里去哪里?
问题是缺少dhcpcd,而且我不喜欢使用systemd。
我需要从Arch下载该软件包,安装该软件包,并同时使用systemctl启用和启动它,以便它在重启后仍然存在。
,
我有一个类似的??使用netgear wifi加密狗进行安装的问题:
(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:传输的固件: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:FW RMW支持:开
[12.790292] ath:EEPROM regdomain:0x60
[12.790294] ath:EEPROM表示我们应该期待直接的regpair图
[12.790297] ath:使用的国家/地区alpha2:00
[12.790298] ath:使用的Regpair: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来使网络正常运行。
我感谢所有为我找到解决方案的人。