该问题涉及驱动程序支持回归RTL8192CUSWLAN芯片下抗X 13.1,一个基于 Debian Wheezy(稳定)的发行版。该芯片实际上位于一个Edimax EW-7811Un 802.11n 无线适配器。
首先,这是一些常规系统信息。
$ inxi -F
System: Host: 4000cdt Kernel: 3.7.10-antix.3-486-smp i686 (32 bit)
Desktop: IceWM 1.3.7 Distro: antiX-13.1_386-full Luddite 19 June 2013
Machine: No /sys/class/dmi, using dmidecode: you must be root to run dmidecode
CPU: Single core Pentium II (Deschutes) (-UP-) cache: 512 KB flags: (pae) clocked at 233.275 MHz
Graphics: Card: Chips and F65555 HiQVPro X.Org: 1.12.4 drivers: chips (unloaded: fbdev,vesa) Resolution: [email protected]
GLX Renderer: Gallium 0.4 on softpipe GLX Version: 2.1 Mesa 8.0.5
Network: Card: Edimax EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
IF: N/A state: N/A mac: N/A
Drives: HDD Total Size: 40.0GB (8.7% used) 1: id: /dev/sda model: TOSHIBA_MK4032GA size: 40.0GB
Partition: ID: / size: 9.9G used: 3.0G (32%) fs: ext4 ID: /home size: 25G used: 284M (2%) fs: ext4
ID: swap-1 size: 2.15GB used: 0.00GB (0%) fs: swap
Sensors: System Temperatures: cpu: 71.0C mobo: N/A
Fan Speeds (in rpm): cpu: N/A
Info: Processes: 88 Uptime: 2:57 Memory: 72.4/151.4MB Client: Shell (bash) inxi: 1.9.9
启动过程中,执行脚本时屏幕上出现以下错误/etc/network/if-pre-up.d/linux-wlan-ng-pre-up
:
FATAL: Module p80211 not found.
/etc/network/if-pre-up.d/linux-wlan-ng-pre-up
Failed to load p80211.ko.
Listening on LPF/wlan0/00:1f:1f:bf:45:7a
Sending on LPF/wlan0/00:1f:1f:bf:45:7a
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
sudo modprobe p80211
可以通过分别发出和命令来重现错误消息sudo dhclient -v wlan0
。
加载以下模块:
$ lsmod
Module Size Used by
mperf 870 0
cpufreq_stats 2600 0
cpufreq_powersave 575 0
cpufreq_conservative 3562 0
ppdev 4124 0
lp 6127 0
uinput 5093 1
nfsd 156046 2
auth_rpcgss 19755 1 nfsd
nfs_acl 1576 1 nfsd
nfs 88586 0
lockd 42731 2 nfs,nfsd
fscache 21695 1 nfs
sunrpc 122417 6 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
af_packet 19031 6
dm_crypt 10846 0
arc4 1400 2
rtl8192cu 45534 0
rtlwifi 43564 1 rtl8192cu
rtl8192c_common 23999 1 rtl8192cu
mac80211 192647 3 rtlwifi,rtl8192c_common,rtl8192cu
cfg80211 123731 2 mac80211,rtlwifi
microcode 8484 0
evdev 6815 10
mac_hid 2214 0
psmouse 52159 0
pcspkr 1273 0
serio_raw 3177 0
i2c_piix4 6769 0
toshiba_acpi 10065 0
sparse_keymap 1937 1 toshiba_acpi
parport_pc 23969 1
rfkill 10599 3 cfg80211,toshiba_acpi
parport 21942 3 lp,ppdev,parport_pc
wmi 6240 1 toshiba_acpi
pcmcia 24870 0
battery 5391 0
yenta_socket 15802 0
ac 1753 0
pcmcia_rsrc 5995 1 yenta_socket
pcmcia_core 8446 3 pcmcia,pcmcia_rsrc,yenta_socket
processor 23837 1
button 3513 0
btrfs 555574 0
zlib_deflate 15207 1 btrfs
dm_mod 51354 1 dm_crypt
floppy 41663 0
fan 1818 0
thermal 6606 0
thermal_sys 10423 3 fan,thermal,processor
证明这不是身份验证问题:
$ sudo cat /var/log/dmesg |grep wlan0
[ 36.321107] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 38.921480] wlan0: authenticate with 00:xx:xx:xx:xx:xx
[ 38.971473] wlan0: send auth to 00:xx:xx:xx:xx:xx (try 1/3)
[ 38.996892] wlan0: authenticated
[ 39.000218] wlan0: associate with 00:xx:xx:xx:xx:xx (try 1/3)
[ 39.055578] wlan0: RX AssocResp from 00:xx:xx:xx:xx:xx (capab=0x411 status=0 aid=2)
[ 39.056549] wlan0: associated
[ 39.056781] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 49.062856] wlan0: disassociating from 00:xx:xx:xx:xx:xx by local choice (reason=3)
[ 49.086100] wlan0: deauthenticating from 00:xx:xx:xx:xx:xx by local choice (reason=3)
[ 50.431396] wlan0: authenticate with 00:xx:xx:xx:xx:xx
[ 50.481575] wlan0: send auth to 00:xx:xx:xx:xx:xx (try 1/3)
[ 50.684150] wlan0: send auth to 00:xx:xx:xx:xx:xx (try 2/3)
[ 50.888146] wlan0: send auth to 00:xx:xx:xx:xx:xx (try 3/3)
[ 51.092212] wlan0: authentication with 00:xx:xx:xx:xx:xx timed out
$ sudo iwconfig
wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry long limit:7 RTS thr=2347 B Fragment thr:off
Encryption key:off
Power Management:off
lo no wireless extensions.
我已经尝试过:
- 安装中来自 Realtek 站点的 Linux 驱动程序同时卸载
linux-wlan-ng
软件包并将内核rtl8192cu
模块列入黑名单(之前在 antiX 12M 中有效),以及 ipv6.disable=1
作为启动参数提供grub
给内核。
问题
为什么p80211
在应该基于 Debian Wheezy 的发行版中找不到该模块稳定的?如何让 DHCP 在此无线适配器上工作?
答案1
为什么在应该基于 Debian Wheezy stable 的发行版中找不到 p80211 模块?
因为 Anti 手工推出了内核,并且可能将该模块排除在外。我在之前的版本中在不同的装备上遇到了这个问题,并通知了团队。
http://antix.freeforums.org/post28122.html#p28122
我在这里回答你而不是在论坛上。该论坛存在发布代码读数的错误。如果在 AntiX 论坛发帖。在 /etc/issue 或 /ect 之间留一个空格,否则您会收到消息
您无权访问此服务器上的 /posting.php。
编辑:作为我过去使用过的快速修复解决方案。您可以在 X 中以 root 身份运行 smxi,并通过固定线路连接(如果可用)安装 Liqourix 或 Debian 内核,
答案2
FATAL: Module p80211 not found.
是通常表明提供的驱动程序已过时对于使用的内核。
此外,当前版本的 Realtek 驱动程序 3.4.4_4749.20121105 无法使用最新的 Linux 内核进行编译。解决方案包括安装降级内核,在其上编译Realtek的驱动程序,并将降级内核提供的驱动程序列入黑名单。
按 Ctrl+Alt+F1 可获取显示管理器之外的命令行。执行smxi.sh
Antix 附带的脚本。
sudo smxi
对于其他 GNU/Linux 发行版,请从以下位置下载脚本smxi.org。请按照说明进行操作。 Adist-upgrade
并不总是必要的。
选择:6) kernel-options > 1) alternate-kernel-install
内核3.6.0-11.dmz.1-liquorix-686
或更低版本工作,内核3.7.0-10.dmz.1-liquorix-686
和更高版本不工作。具有长期支持且有效的最新稳定内核是3.4.0-35.dmz.1-liquorix-686
.
在继续之前,请务必重新启动到新内核。该内核可以设置为默认启动;只需编辑...
sudo nano /boot/grub/menu.lst
从以下位置下载 RTL8192CUS Linux 驱动程序Realtek 的网站。
提取驱动程序。然后,将以下 bash 脚本保存setup.sh
在与 相同的目录中install.sh
。 (我从舍尔耶的索利德XK-发行版名气。)
#!/bin/bash
if [ $UID -ne 0 ]; then
echo "Please, type the root password..."
su -c "$0 $@"
exit
fi
apt-get install linux-headers-`uname -r`
apt-get install build-essential
rmmod rtl8192cu
chmod +x install.sh
./install.sh
echo "blacklist rtl8192cu" > /etc/modprobe.d/blacklist-rtl8192cu.conf
echo 8192cu >> /etc/modules
使脚本可执行并执行它。
chmod +x setup.sh
./setup.sh
成功完成脚本后,发出
sudo service network restart
您的 RTL8192CUS 无线适配器现在应该可以正常工作。
使用 Wicd 应用程序连接到无线网络。如果始终使用相同的 WLAN,还可以按如下方式对安全凭证进行硬编码:
sudo chmod 600 /etc/network/interfaces
sudo nano /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet dhcp
auto wlan0
iface wlan0 inet dhcp
wpa-ssid xxxxxxxxxxx
wpa-psk xxxxxxxxxxxx