Netconsole 无法启动,提示“wlan0 不存在,正在中止”

Netconsole 无法启动,提示“wlan0 不存在,正在中止”

我正在尝试设置 netconsole 来调试硬锁,但遇到了问题。我的 netconsole 配置如下:

options netconsole [email protected]/wlan0,[email protected]/00:1e:d2:c4:72:54

在启动过程中我得到以下信息:

[    5.256569] netconsole: local port 6666
[    5.256570] netconsole: local IP 192.168.1.114
[    5.256571] netconsole: interface wlan0
[    5.256572] netconsole: remote port 6666
[    5.256572] netconsole: remote IP 192.168.1.105
[    5.256573] netconsole: remote ethernet address 00:1e:d2:c4:72:54
[    5.256574] netconsole: wlan0 doesn't exist, aborting.
[    5.256575] netconsole: cleaning up

不太确定接下来该做什么,欢迎提出任何建议。

编辑maco 的 ip l 输出:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
link/ether 00:1f:bc:09:45:b5 brd ff:ff:ff:ff:ff:ff
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
link/ether 00:1f:bc:09:45:b6 brd ff:ff:ff:ff:ff:ff
4: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:14:6c:85:ad:fa brd ff:ff:ff:ff:ff:ff

编辑kees 发生 modprobe 错误后 dmesg 的输出:

[ 4557.261569] netconsole: local port 6666 
[ 4557.261573] netconsole: local IP 192.168.1.114
[ 4557.261576] netconsole: interface wlan0
[ 4557.261577] netconsole: remote port 6666
[ 4557.261580] netconsole: remote IP 192.168.1.105
[ 4557.261582] netconsole: remote ethernet address 00:1e:d2:c4:72:54
[ 4557.261585] netconsole: wlan0 doesn't support polling, aborting.
[ 4557.261587] netconsole: cleaning up

答案1

这是你的问题:

[ 4557.261585] netconsole: wlan0 doesn't support polling, aborting.

Netconsole 需要支持轮询的驱动程序,而您的无线网卡不支持轮询。您能用您的一张以太网卡试试吗?

答案2

如果netconsole模块在无线网络驱动程序之前加载,则无法找到wlan0,因为它不存在。如果您的硬锁在启动过程的后面,您可以先加载无线驱动程序,然后手动modprobe加载netconsole

例如,正常启动,验证是否wlan0可用(就像您对 所做的那样ip l),然后:

sudo modprobe netconsole [email protected]/wlan0,[email protected]/00:1e:d2:c4:72:54

相关内容