ctzhw 发表于 2010-5-20 08:55

强帖留名

zmd99 发表于 2010-5-23 19:15

淘宝买的RG100A到手了,今天无意发现原先淘宝收藏的几家都没货,估计因为LZ的这片文章RG100A要涨价了。

BCG 发表于 2010-5-23 23:44

我感觉我买错了,应该买rg100e的。rg100a似乎无法达到我的要求,中继。

西安 发表于 2010-5-24 01:01

root@OpenWrt:~# usb_modeswitch -W
Reading config file: /etc/usb_modeswitch.setup

* usb-modeswitch: handle USB devices with multiple modes
* Version 1.1.2alpha (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=0x12d1
DefaultProduct= 0x1da1
TargetVendor=   not set
TargetProduct=not set
TargetClass=    not set

DetachStorageOnly=0
HuaweiMode=1
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent= not set
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice enabled (default)
Success check disabled
System integration mode disabled

usb_set_debug: Setting debugging level to 15 (on)
USB error: couldn't opendir(): No such file or directory

Looking for default devices ...
No devices in default mode or class found. Nothing to do. Bye.
我还是这个样子

zmd99 发表于 2010-5-24 07:42

请问LZ,软件包里都能驱动什么型号的网卡?

sas99 发表于 2010-5-24 08:26

技术贴要支持

antclan 发表于 2010-5-24 10:25

回复 #124 西安 的帖子

兄弟,你的还没搞定?不知道是不是你的rg100a有问题,感觉怪怪的。


另外关于上网卡的驱动,我的理解是实际上没有所谓的“驱动”,原理上是用usb-modeswitch把上网卡转换成串口modem,理论上所有上网卡都可以转换成串口modem。
usb-modeswitch需要知道两个参数:Vendor/Product和MessageContent。

Vendor/Product很容易得到,插上路由或PC,用相关工具就能查到。
有的上网卡有两个Vendor/Product,一个是DefaultVendor/DefaultProduct,还有一个是TargetVendorTarget/TargetVendor这个也就是真正的目标设备。

而MessageContent是转换成串口modem的控制命令串,这个值就需要抓包了。

sxyeah 发表于 2010-5-24 11:14

戴眼镜的秃头鼠

beareyes 发表于 2010-5-24 20:38

留名备用

西安 发表于 2010-5-24 22:09

我郁闷   死了    到现在还挂不上   谢谢antclan

hebaiyan 发表于 2010-5-27 01:56

中兴AC560,在dmesg | grep usb时,出现
/etc$ dmesg | grep usb
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
usb usb1: configuration #1 chosen from 1 choice
usbcore: registered new interface driver cdc_acm
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
usb 1-1: new full speed USB device using bcm63xx_ohci and address 2
usb 1-1: configuration #1 chosen from 1 choice
请问该怎么办?

kabala56 发表于 2010-5-27 23:16

提供个 中兴 MF633 的配置文件,我是实验可以用了。

########################################################
# ZTE MF628+ (tested version from Telia / Sweden)
# ZTE MF626
# ZTE MF636 (aka "Telstra / BigPond 7.2 Mobile Card")
#
# Contributor: Joakim Wennergren

DefaultVendor=0x19d2
DefaultProduct= 0x2000

TargetVendor=   0x19d2
TargetProduct=0x0016

# only for reference
# MessageEndpoint=0x01

MessageContent="55534243123456782000000080000c85010101180101010101000000000000"

# if that command doesn't work, try the other ("eject")

还要装两个包 。
kmod-usb-serial - 2.6.32.10-1
kmod-usb-serial-option - 2.6.32.10-1
只有 option 这个包才能驱动 MF633的 。
用的是联通 的 WCDMA

wenlh 发表于 2010-6-1 23:39

我用DB120刷了db120-openwrt.org.cn-bt-0312 .telnet怎么都是失败?目前卡在这一步上。:'(

betbo 发表于 2010-6-2 00:31

学习啦谢谢楼主

xiefh 发表于 2010-6-2 08:19

Posted by wenlh on 2010-6-1 23:39 http://www.ibmnb.com/images/common/back.gif
我用DB120刷了db120-openwrt.org.cn-bt-0312 .telnet怎么都是失败?目前卡在这一步上。:'(
中午版好像关闭了telnet 只能用ssh

wenlh 发表于 2010-6-2 09:33

Posted by xiefh on 2010-6-2 08:19 http://www.ibmnb.com/images/common/back.gif

中午版好像关闭了telnet 只能用ssh
:'( 能打开吗?或者给个英文版的版本给我,谢谢

wenlh 发表于 2010-6-2 12:51

db120


root@OpenWrt:~# opkg update
root@OpenWrt:~# opkg install kmod-usb-core kmod-usb-ohci kmod-usb-serial libusb
kmod-usb-acm chat comgt usb-modeswitch
Package kmod-usb-core (2.6.32.9-1) installed in root is up to date.
Package kmod-usb-ohci (2.6.32.9-1) installed in root is up to date.
Collected errors:
* opkg_install_cmd: Cannot install package kmod-usb-serial.
* opkg_install_cmd: Cannot install package libusb.
* opkg_install_cmd: Cannot install package kmod-usb-acm.
* opkg_install_cmd: Cannot install package chat.
* opkg_install_cmd: Cannot install package comgt.
* opkg_install_cmd: Cannot install package usb-modeswitch.
root@OpenWrt:~# opkg update
root@OpenWrt:~# opkg install kmod-usb-core kmod-usb-ohci kmod-usb-serial libusb
kmod-usb-acm chat comgt usb-modeswitch
Package kmod-usb-core (2.6.32.9-1) installed in root is up to date.
Package kmod-usb-ohci (2.6.32.9-1) installed in root is up to date.
Collected errors:
* opkg_install_cmd: Cannot install package kmod-usb-serial.
* opkg_install_cmd: Cannot install package libusb.
* opkg_install_cmd: Cannot install package kmod-usb-acm.
* opkg_install_cmd: Cannot install package chat.
* opkg_install_cmd: Cannot install package comgt.
* opkg_install_cmd: Cannot install package usb-modeswitch.

为什么装不上呢?

wenlh 发表于 2010-6-2 13:49

和lz说的设置一样啊,为什么路由共享不了?我用3g网卡的。。

antclan 发表于 2010-6-2 14:47

电脑上3G上网卡连上后,启用共享
电脑上那个和路由器连接的网卡,ip改为192.168.0.1,即作为路由器的网关和dns
就可以了啊

wenlh 发表于 2010-6-2 15:38

ok,谢谢
编辑/etc/modules.d/60-usb-serial 把MU350的信息加进去,不管是否已经关闭了上网卡的存储模式或者其他3G卡都需要加入这个信息。
每个网卡不一样,请根据实际情况改成你的,其实就是usb-modeswitch里的了

[ - ]
CODE:
usbserial vendor=0x19d2 product=0x0003 # ZTE MU350

重启路由,插上MU350,WinSCP连接到路由,打开终端输入命令查看是否MU350已被识别。
你这个是mu350的,我的是901,这段代码怎么获取?^^?

antclan 发表于 2010-6-2 17:14

回复 #140 wenlh 的帖子

901可以参考hshwalk的帖子:http://www.ibmnb.com/viewthread.php?tid=948344&page=3#pid14017776
应该是可以更简单点的:
/etc/modules.d/60-usb-serial
usbserial vendor=0x1ab7 product=0x2000

usb_modeswitch.conf文件如下:
DefaultVendor=0x1ab7
DefaultProduct=0x5700
TargetVendor=0x1ab7
TargetProduct=0x2000
MessageContent="5553424312345678000000000000061b000000030000000000000000000000"

你试试看

[ Edited byantclan on 2010-6-2 17:55 ]

antclan 发表于 2010-6-2 17:18

回复 #133 wenlh 的帖子

不一定非要用telnet呀,WinSCP、PuTTY、SecureCRT通过SSH连接后和telnet一样啊

antclan 发表于 2010-6-2 17:20

回复 #123 BCG 的帖子

但是rg100e和h618b一样,估计3G速度只能到40-60k,请验证下。

wenlh 发表于 2010-6-2 17:57

/$ usb_modeswitch -W -I -R -c /etc/a.conf
usb_set_debug: Setting debugging level to 15 (on)
USB error: couldn't opendir(): No such file or directory
Reading config file: /etc/a.conf

* usb-modeswitch: handle USB devices with multiple modes
* Version 1.1.2alpha (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=0x1ab7
DefaultProduct= 0x5700
TargetVendor=   not set
TargetProduct=not set
TargetClass=    not set

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent= not set
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice disabled
Success check disabled
System integration mode disabled


Looking for default devices ...
No devices in default mode or class found. Nothing to do. Bye.

/$ usb_modeswitch -W -I-c /etc/b.conf
Reading config file: /etc/b.conf

* usb-modeswitch: handle USB devices with multiple modes
* Version 1.1.2alpha (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=0x1ab7
DefaultProduct= 0x5700
TargetVendor=   not set
TargetProduct=not set
TargetClass=    not set

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent="5553424312345678000000000000061b000000030000000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice disabled
Success check disabled
System integration mode disabled


Looking for default devices ...
No devices in default mode or class found. Nothing to do. Bye.

没用啊:'(

antclan 发表于 2010-6-2 18:00

回复 #131 hebaiyan 的帖子

usb-modeswitch这步做过了吗?
或者dmesg | grep ACM、dmesg | grep tty看看,说不定设备是/dev/ttyACM这样的。。。或者直接去日志里看看设备是什么

[ Edited byantclan on 2010-6-2 18:16 ]

wenlh 发表于 2010-6-2 18:04

/etc$ usb_modeswitch -W
Error: Could not find file /etc/usb_modeswitch.setup

Reading config file: /etc/usb_modeswitch.setup:( :(

antclan 发表于 2010-6-2 18:05

回复 #144 wenlh 的帖子

没设备,测试不了。你分两步做的?
照我的试试:
/etc/modules.d/60-usb-serial
usbserial vendor=0x1ab7 product=0x2000

usb_modeswitch.conf文件如下:
DefaultVendor=0x1ab7
DefaultProduct=0x5700
TargetVendor=0x1ab7
TargetProduct=0x2000
MessageContent="5553424312345678000000000000061b000000030000000000000000000000"

如果vendor/product/MessageContent这几个值是正确的,应该可以的。

antclan 发表于 2010-6-2 18:11

回复 #146 wenlh 的帖子

那就把usb_modeswitch.conf改成usb_modeswitch.setup
貌似有个人也出现这样的情况,改了还不行的话,就把usb-modeswitch卸了再装,或重刷固件。

最好把网卡插上去后,把日志贴上来(好像是system -> system log),看看有没有检测到usb设备,然后再usb-modeswitch

[ Edited byantclan on 2010-6-2 18:14 ]

wenlh 发表于 2010-6-2 18:18

/etc$ usb_modeswitch -W
usb_set_debug: Setting debugging level to 15 (on)
USB error: couldn't opendir(): No such file or directory
Reading config file: /etc/usb_modeswitch.setup

* usb-modeswitch: handle USB devices with multiple modes
* Version 1.1.2alpha (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=0x1ab7
DefaultProduct= 0x5700
TargetVendor=   0x1ab7
TargetProduct=0x2000
TargetClass=    not set

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
MessageEndpoint= not set
MessageContent="5553424312345678000000000000061b000000030000000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice enabled (default)
Success check disabled
System integration mode disabled


Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
No devices in default mode or class found. Nothing to do. Bye.

/etc$ dmesg | grep usb
ehci_hcd: Unknown symbol usb_hcd_platform_shutdown
ehci_hcd: Unknown symbol usb_hcd_pci_probe
ehci_hcd: Unknown symbol usb_hcd_unlink_urb_from_ep
ehci_hcd: Unknown symbol usb_disabled
ehci_hcd: Unknown symbol usb_hcd_check_unlink_urb
ehci_hcd: Unknown symbol usb_hcds_loaded
ehci_hcd: Unknown symbol usb_calc_bus_time
ehci_hcd: Unknown symbol usb_hcd_pci_shutdown
ehci_hcd: Unknown symbol usb_hcd_link_urb_to_ep
ehci_hcd: Unknown symbol usb_put_hcd
ehci_hcd: Unknown symbol usb_hub_clear_tt_buffer
ehci_hcd: Unknown symbol usb_hcd_giveback_urb
ehci_hcd: Unknown symbol usb_hcd_poll_rh_status
ehci_hcd: Unknown symbol usb_create_hcd
ehci_hcd: Unknown symbol usb_hcd_pci_remove
ehci_hcd: Unknown symbol usb_remove_hcd
ehci_hcd: Unknown symbol usb_add_hcd
uhci_hcd: Unknown symbol usb_hcd_pci_probe
uhci_hcd: Unknown symbol usb_hcd_unlink_urb_from_ep
uhci_hcd: Unknown symbol usb_disabled
uhci_hcd: Unknown symbol usb_hcd_check_unlink_urb
uhci_hcd: Unknown symbol usb_hcds_loaded
uhci_hcd: Unknown symbol usb_calc_bus_time
uhci_hcd: Unknown symbol usb_hcd_link_urb_to_ep
uhci_hcd: Unknown symbol usb_hcd_giveback_urb
uhci_hcd: Unknown symbol usb_hcd_poll_rh_status
uhci_hcd: Unknown symbol usb_hcd_pci_remove
usblp: Unknown symbol usb_alloc_urb
usblp: Unknown symbol usb_anchor_urb
usblp: Unknown symbol usb_free_urb
usblp: Unknown symbol usb_register_driver
usblp: Unknown symbol usb_find_interface
usblp: Unknown symbol usb_kill_anchored_urbs
usblp: Unknown symbol usb_submit_urb
usblp: Unknown symbol usb_control_msg
usblp: Unknown symbol usb_register_dev
usblp: Unknown symbol usb_set_interface
usblp: Unknown symbol usb_deregister
usblp: Unknown symbol usb_unanchor_urb
usblp: Unknown symbol usb_deregister_dev
usb_storage: Unknown symbol usb_alloc_urb
usb_storage: Unknown symbol usb_free_urb
usb_storage: Unknown symbol usb_register_driver
usb_storage: Unknown symbol usb_sg_init
usb_storage: Unknown symbol usb_sg_cancel
usb_storage: Unknown symbol usb_reset_device
usb_storage: Unknown symbol usb_submit_urb
usb_storage: Unknown symbol usb_control_msg
usb_storage: Unknown symbol usb_deregister
usb_storage: Unknown symbol usb_lock_device_for_reset
usb_storage: Unknown symbol usb_unlink_urb
usb_storage: Unknown symbol usb_kill_urb
usb_storage: Unknown symbol usb_buffer_free
usb_storage: Unknown symbol usb_reset_endpoint
usb_storage: Unknown symbol usb_sg_wait
usb_storage: Unknown symbol usb_buffer_alloc
:-| 拔插了10+次了

antclan 发表于 2010-6-2 18:21

回复 #149 wenlh 的帖子

见过,usb驱动不了,还原出厂设置,再重刷固件试试。再把kmod-usb-uhci这个包也装上看看

[ Edited byantclan on 2010-6-2 18:25 ]
页: 1 2 3 4 [5] 6 7 8 9 10 11
查看完整版本: 【原创】H618b、rg100a刷OpenWrt固件及使用3G上网卡+宽带合并[2011/4/21更新]