Installing kmod-usb-printer (3.18.20-1) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ramips/mt7620/packages/base/kmod-usb-printer_3.18.20-1_ramips_24kec.ipk.
Multiple packages (kmod-usb-core and kmod-usb-core) providing same name marked HOLD or PREFER. Using latest.

Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-printer:
* kernel (= 3.18.20-1-e09c71ad1d28ff0d0cde064da5349910) *
* opkg_install_cmd: Cannot install package kmod-usb-printer.


用ssh登入,用强制安装的参数 --force-depends来安装
opkg install --force-depends kmod-usb-printer
你的openwrt系统是官方的,还是其他人或者自己编译的
系统内核kernel的版本和 插件所需要的kernel版本不同



openwrt 驱动 RTL8187大功率网卡做客户端模式
DB120WG刷db120-backfire-10.03.166-mini-0620.bin固件

安装软件
方法一
1. 登录WEB
2. 进入系统--》软件包
3. 点击编辑软件包列表和安装对象,
4. 修改为如下:
#src/gz packages http://downloads.openwrt.org/backfire/10.03/brcm63xx/packages
src/gz packages http://www.openwrt.org.cn/downloads/backfire/10.03/brcm63xx/packages
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
然后点击提交。同时回到系统--》软件包,点击 “更新软件包清单”, 安装 kmod-rtl8187
opkg update
opkg install kmod-8187
方法二
opkg update
opkg install http://www.openwrt.org.cn/downloads/backfire/10.03/
                brcm63xx/packages/kmod-eeprom-93cx6_2.6.32.10-1_brcm63xx.ipk
opkg install http://www.openwrt.org.cn/downloads/backfire/10.03/
                  brcm63xx/packages/kmod-rtl8187_2.6.32.10+2010-05-24-1_brcm63xx.ipk
注意上面的网址要写全,看链接属性 ....   要补全,kmod-rtl8187 、kmod-eeprom-93cx6 是openwrt中文论坛提供的,用官方的会死机

安装驱动后要重启路由器然后设置网络
vi /etc/config/network
wan1设置
config 'interface' 'wan1'
option 'ifname' 'wlan1'
option 'defaultroute' '0'
option 'peerdns' '0'
option 'proto' 'static'
option 'ipaddr' '192.168.1.112'
option 'netmask' '255.255.255.0'
option 'gateway' '192.168.1.1'
option 'dns' '192.168.1.1'



vi /etc/config/wireless
config 'wifi-device' 'radio1'
option 'type' 'mac80211'
option 'macaddr' '00:15:AF:50:86:95'  //这里是网卡的mac地址
option 'hwmode' '11g'
option 'disabled' '0'
option 'txpower' '20'
option 'channel' '8'

config 'wifi-iface'
option 'device' 'radio1'
option 'network' 'wan1'
option 'mode' 'sta'
option 'encryption' 'none'
option 'ssid' 'sutuo-ap'
下面是瑞银 5061S GW3887芯片驱动
opkg install http://www.openwrt.org.cn/downloads/backfire/
10.03/brcm63xx/packages/kmod-p54-common_2.6.32.10+2010-05-24-1_brcm63xx.ipk
opkg install http://www.openwrt.org.cn/downloads/backfire/10.03/
brcm63xx/packages/kmod-p54-common_2.6.32.10+2010-05-24-1_brcm63xx.ipk
英文版挂USB无线网卡
 我刷的是10.03.1-rc4固件
安装软件
opkg update
opkg install kmod-usb-core
opkg install kmod-usb-ohci     #安装usb ohci控制器驱动
#opkg install kmod-usb-uhci      #UHCI USB控制器
opkg install kmod-usb2            #安装usb2.0

#安装 卡皇RTL8187等 USB无线网卡驱动
opkg install kmod-eeprom-93cx6
opkg install kmod-rtl8187
#安装 瑞银 5061S GW3887芯片无线网卡驱动
opkg install kmod-p54-common
opkg install kmod-p54-usb
#安装 zd1211 芯片无线网卡驱动 sagem 760A
opkg install  kmod-zd1211rw
给网卡分配固定的设备节点,使设备编号不变
opkg install udev
vi /etc/init.d/udev
_________________________________
#!/bin/sh /etc/rc.common
# Copyright (C) 2009 OpenWrt.org

START=19
start() {
        killall udevd > /dev/null 2> /dev/null
        udevd --daemon
        udevadm trigger
        udevadm settle
        sleep 5                                 
}

stop() {
        killall udevd
}
__________________________
设置可执行权限
chmod +x /etc/init.d/udev
#插入USB无线网卡
ifconfig wlan1 up

#生成默认无线设置  也就是将USB无线网卡在web界面里出现radio1
wifi detect > /etc/config/wireless
然后进web 设置无线网卡
#Linux Openwrt
opkg update && opkg kmod-usb-core kmod-usb-uhci kmod-usb-ohci kmod-usb2