【LEDE】树莓派上玩LEDE终极指南-90-挂卡

这里先吐槽一下kmod-rtl8xxxx这个驱动。安装了这个驱动之后,插入8xxx网卡的时候,会去加载这个驱动而不加载设备对应的驱动,导致我三张8188的卡全部连接上不稳定,秒掉线。关键是自己的操作也是蠢萌= =


一、遇到这样的问题

[34216.950000] wlan0-1: associated
[34217.020000] wlan0-1: AP 94:0c:6d:d4:b1:be changed bandwidth, new config is 2452 MHz, width 1 (2452/0 MHz)
[34217.030000] wlan0-1: AP 94:0c:6d:d4:b1:be changed bandwidth in a way we can't support - disconnect
[34217.340000] br-lan: port 2(wlan0) entered forwarding state
[34217.340000] br-lan: port 2(wlan0) entered forwarding state
[34217.920000] br-lan: port 2(wlan0) entered disabled state
[34218.140000] wlan0-1: authenticate with 94:0c:6d:d4:b1:be
[34218.180000] wlan0-1: send auth to 94:0c:6d:d4:b1:be (try 1/3)
[34218.180000] wlan0-1: authenticated
[34218.200000] wlan0-1: associate with 94:0c:6d:d4:b1:be (try 1/3)
[34218.200000] wlan0-1: RX AssocResp from 94:0c:6d:d4:b1:be (capab=0x431 status=0 aid=7)
[34218.210000] wlan0-1: associated
[34218.250000] wlan0-1: AP 94:0c:6d:d4:b1:be changed bandwidth, new config is 2452 MHz, width 1 (2452/0 MHz)
[34218.260000] wlan0-1: AP 94:0c:6d:d4:b1:be changed bandwidth in a way we can't support - disconnect
[34218.600000] br-lan: port 2(wlan0) entered forwarding state
[34218.610000] br-lan: port 2(wlan0) entered forwarding state
[34218.920000] br-lan: port 2(wlan0) entered disabled state

基本就是你要连接的AP的width是20/40MHz这个选项,改成40就行了。


二、最气的是这个错误

 IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   18.071038] random: crng init done
[   42.251387] brcmfmac: brcmf_cfg80211_get_station: GET STA INFO failed, -512
[  116.374658] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1
[  116.394890] br-wan: port 1(eth0) entered blocking state
[  116.402743] br-wan: port 1(eth0) entered forwarding state
[  116.410834] IPv6: ADDRCONF(NETDEV_CHANGE): br-wan: link becomes ready
[  117.282467] br-wan: hw csum failure
[  117.288466] CPU: 0 PID: 2873 Comm: modprobe Not tainted 4.9.44 #0
[  117.297065] Hardware name: BCM2835
[  117.302975] [<80016c20>] (unwind_backtrace) from [<80012860>] (show_stack+0x10/0x14)
[  117.315902] [<80012860>] (show_stack) from [<801afe90>] (dump_stack+0x8c/0xb8)
[  117.326053] [<801afe90>] (dump_stack) from [<802fde80>] (__skb_checksum_complete+0x6c/0xac)
[  117.340100] [<802fde80>] (__skb_checksum_complete) from [<8036c1fc>] (icmp_rcv+0x168/0x2f8)
[  117.354574] [<8036c1fc>] (icmp_rcv) from [<8033e1f8>] (ip_local_deliver_finish+0x11c/0x1f4)
[  117.369246] [<8033e1f8>] (ip_local_deliver_finish) from [<8033e770>] (ip_local_deliver+0xb8/0xc8)
[  117.384865] [<8033e770>] (ip_local_deliver) from [<8033e9d8>] (ip_rcv+0x258/0x2b8)
[  117.399207] [<8033e9d8>] (ip_rcv) from [<803068dc>] (__netif_receive_skb_core+0x6d4/0x90c)
[  117.414332] [<803068dc>] (__netif_receive_skb_core) from [<80309264>] (process_backlog+0x7c/0x11c)
[  117.430496] [<80309264>] (process_backlog) from [<803089fc>] (net_rx_action+0xe8/0x2ac)
[  117.445844] [<803089fc>] (net_rx_action) from [<80022b9c>] (__do_softirq+0xd0/0x204)
[  117.461099] [<80022b9c>] (__do_softirq) from [<80022f64>] (irq_exit+0x94/0x104)
[  117.472325] [<80022f64>] (irq_exit) from [<8005a4bc>] (__handle_domain_irq+0x90/0xb4)
[  117.487696] [<8005a4bc>] (__handle_domain_irq) from [<8001334c>] (__irq_svc+0x6c/0x90)
[  117.503237] [<8001334c>] (__irq_svc) from [<8009c290>] (mark_page_accessed+0x124/0x160)
[  117.518869] [<8009c290>] (mark_page_accessed) from [<800afe34>] (unmap_page_range+0x338/0x5e8)
[  117.535135] [<800afe34>] (unmap_page_range) from [<800b0434>] (unmap_vmas+0x44/0x54)
[  117.550499] [<800b0434>] (unmap_vmas) from [<800b3814>] (unmap_region+0xc0/0x180)
[  117.565588] [<800b3814>] (unmap_region) from [<800b57a4>] (do_munmap+0x214/0x298)
[  117.580671] [<800b57a4>] (do_munmap) from [<800b586c>] (SyS_munmap+0x44/0x60)
[  117.591748] [<800b586c>] (SyS_munmap) from [<8000ecc0>] (ret_fast_syscall+0x0/0x3c)
[  118.426156] br-wan: hw csum failure
[  118.433346] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 4.9.44 #0
[  118.441685] br-wan: hw csum failure


该类错误是由于WAN接口采用桥接的方式组了网,在挂卡中级无线的时候,不小心把wwan写成了wan,基本就费了。

该现象会导致你能上去某一些网站,当然是少数,大多数的网站压根打不开。


解决方案:删了接口,重新添加。。。


三、总结

实测采用4.9.44内核的LEDE基本可以通吃市面上绝大部分的网卡,但是由于大多采用的是开源驱动,速度往往是无法令自己满意,我挂8188eu速度也就在1.5M/s附近,而且下载东西的时候,ping 2000+ms

平常用来上个网无所谓,嗖嗖的。

推荐的网卡,淘宝包邮系列。。。


四、参考链接

http://see.sl088.com/wiki/Openwrt_wifi/%E6%94%B6%E5%88%B0%E6%94%B9%E5%8F%98%E5%B8%A6%E5%AE%BD%E4%BF%A1%E6%81%AF


五、挂mt7601u

opkg update
opkg install kmod-mt7601u
opkg install kmod-usb-core
opkg install kmod-usb-ohci
opkg install kmod-usb-uhci
opkg install kmod-usb2
opkg install mt7601u-firmware
reboot

你可能感兴趣的:(OpenWrt)