raspberry-pi - NetGear N150 无线 USB 内存棒无法在我的 PI 上与 Raspbian Wheezy 配合使用

标签 raspberry-pi raspbian

我正在运行带有 raspbian-wheezy 的 RaspberryPi:

uname -a
Linux raspberrypi 3.18.5+ #744 PREEMPT Fri Jan 30 18:19:07 GMT 2015 armv6l GNU/Linux

我想如何使用 NetGear N150 无线 USB 内存棒作为 wlan 接口(interface):
dmesg
[    3.401856] usb 1-1.2: new high-speed USB device number 4 using  dwc_otg
[    3.523552] usb 1-1.2: New USB device found, idVendor=0846, idProduct=9043
[    3.532493] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.541771] usb 1-1.2: Product: WNA1000Mv2
[    3.547744] usb 1-1.2: Manufacturer: Realtek
[    3.553858] usb 1-1.2: SerialNumber: 00e04c000001

不会自动检测到设备。将棒插入Windows机器后,似乎棒使用了Realtek rtl8192cu芯片。加载8192cu内核模块好像不行,还是没有wlan0设备。

有任何想法吗?

最佳答案

没关系,我找到了解决方案:

8192cu 内核模块未将 usb id 检测为受支持的设备。稍作调整并将以下代码添加到 rc.local 文件后,一切都按预期工作:

modprobe 8192cu
echo "0846 9043" > /sys/bus/usb/drivers/rtl8192cu/new_id
ifdown wlan0
ifup wlan0

要在插入模块时自动处理此问题,请将以下行放入 /etc/modprobe.d/netgear_n150.conf :
install 8192cu /sbin/modprobe --ignore-install 8192cu; echo "0846 9043" > /sys/bus/usb/drivers/rtl8192cu/new_id

加倍努力:让它自动加载更多的是系统特定的,但在 Arch Linux 上,在 /etc/modules.load.d 中添加一个文件包含模块名称就足够了。

关于raspberry-pi - NetGear N150 无线 USB 内存棒无法在我的 PI 上与 Raspbian Wheezy 配合使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28705042/

相关文章:

python - Raspberry Pi 电子邮件通知程序出现意外结果

linux - 客户端 <unknown> 上的 MQTT 套接字错误

python - TCP 客户端无法连接到 TCP 服务器

node.js - 在树莓派 2 上安装 node.js

php - 通过简单的html访问Raspberry Pi mySQL数据库

linux - 如果出现错误或执行中断,请在树莓派上重启 python 脚本

raspberry-pi - 如何在 Raspbian Raspberry 上安装 GNU flex 或 lex

c++ - 在 .cpp 中调用 .c 文件

.net - .NET Core 准备好在 Raspberry PI 3 上运行了吗?

raspberry-pi - 使用 Raspbian Buster 在新的 RaspberryPi 4 上构建 Redis 失败