驱动程序有时加载,有时不加载

驱动程序有时加载,有时不加载

我被分配了一个 Ubuntu 桌面,上面已经有一些东西了。我没有重新格式化它,而是通过 PCI 到 mini-PCI 适配器连接了一个 mini-PCI 无线卡。我手动构建了madwifi驱动程序并安装了其 .ko 文件。

现在总是显示该卡,但有时将其显示为“无人认领”,有时会与(即)驱动程序lshw -C network一起显示。知道什么会导致这种效果吗?madwifiath_pci

编辑:来自 的片段/var/log/kern.log,加载失败。

Apr 19 11:47:21 manju-desktop kernel: [    9.935304] ath_hal: module license 'Proprietary' taints kernel.
Apr 19 11:47:21 manju-desktop kernel: [    9.936614] ath_hal: 0.9.18.0 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
Apr 19 11:47:21 manju-desktop kernel: [    9.958671] wlan: svn r4133 (branch madwifi-0.9.4)
Apr 19 11:47:21 manju-desktop kernel: [    9.975867] ath_pci: svn r4133 (branch madwifi-0.9.4)
Apr 19 11:47:21 manju-desktop kernel: [    9.975940] ath_pci 0000:02:04.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
Apr 19 11:47:21 manju-desktop kernel: [    9.976024] ath_pci: HAL doesn't support MAC revision 0xffffffff
Apr 19 11:47:21 manju-desktop kernel: [    9.976037] ath_pci 0000:02:04.0: PCI INT A disabled

输出lshw -C network

  *-network:1 UNCLAIMED
       description: Ethernet controller
       product: AR5413 802.11abg NIC
       vendor: Atheros Communications Inc.
       physical id: 4
       bus info: pci@0000:02:04.0
       version: 01
       width: 32 bits
       clock: 33MHz
       capabilities: pm cap_list
       configuration: latency=168 maxlatency=12 mingnt=10

答案1

尝试使用 udev 而不是 HAL。它与内核的集成度更高,因此与硬件识别更加一致。如果它与 udev 一起工作正常,但您仍然想使用 HAL,则可以将与您的硬件匹配的 udev 规则移植到 HAL,跳过 MAC 验证和其他可能导致其工作错误的内容。

相关内容