USB error: couldn’t opendir(): No such file or directory

“USB error: couldn’t opendir(): No such file or directory”

This was a dirty little error that made my life miserable for a while. Read down for the solution.

When it happened?

While trying to use Reliance Netconnect USB 3G dongle on Froyo v2.2 of android.

How it happened?

While executing the following command to switch the USB device to modem mode using ‘usb_modeswitch’ tool.

$ usb_modeswitch -I -W -c /etc/usb_modeswitch.conf

What is the solution?

Pre-requisites
  1. Turn on USBFS on kernel (CONFIG_USB_DEVICEFS in .config)  and use that uImage for booting.
  2. Download the usb_modeswitch arm application from here.
  3. Find out the Vendor ID and Product ID by connecting the dongle to a PC
  4. Once you download ‘usb_modeswitch’, there will be a folder ‘usb_modeswitch.d’ inside which look for a file named vendorID:productID of your device. (relce vendorID and productID with the values you found out in step 3). Use this file as argument to ‘usb_modeswtich’
Execution
  1. Once the board is booted, execute ‘mount -t usbfs usbfs /proc/bus/usb‘ from the terminal.
  2. Now execute the command ‘/system/bin/usb_modeswitch -I -W -c /etc/usb_modeswitch.conf
    1. Note – replace ‘usb_modeswitch.conf‘ with the configuration file corresponding to your 3G dongle.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值