OpenWrt Forum Archive

Topic: Dir-320 - cant mount USB flash stick

The content of this topic has been archived on 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

The third day passed, but still I can't make my USB stick work with dir-320. I used OpenWRT WIKI documentation and read a lot of topics in forums, but the same problem - when I plug my USB, I cant see it /dev/. There is no sda subfolder. dmesg doen't show memory of USB too. I dont know what is the problem, Wiki says, that when I plug my USB flash stick, it immideatly must appear like /dev/sda - but it doesn't. I formated flash like ext3, NTFS, FAT - nothing helped. May be I missed something, what isn't written on OpenWrt Wiki?

My dmesg:

hub.c: USB hub found
hub.c: 2 ports detected
ip_conntrack version 2.1 (5953 buckets, 5953 max) - 352 bytes per conntrack
SB USB20H init
SB COREREV: 2
USB20H fcr: 0x64
USB20H shim cr: 0x8f7
PCI: Setting latency timer of device 00:03.0 to 64
usb-ohci.c: USB OHCI at membase 0xb8003000, IRQ 6
usb-ohci.c: usb-00:03.0, PCI device 14e4:471a
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
uhci.c: USB Universal Host Controller Interface driver v1.1
uhci.c: USB Universal Host Controller Interface driver v1.1

(Last edited by igore6ka on 15 Jul 2013, 21:59)

whats the output of lsusb? which kernel modules do you have got installed?

Installed packages:

root@OpenWrt:~# opkg list_installed
base-files - 43.32-r29592
block-mount - 0.1.0-2.2
busybox - 1.15.3-3.4
dnsmasq - 2.55-6.1
dropbear - 0.53.1-5
firewall - 2-34.8
iptables - 1.4.6-3.1
iptables-mod-conntrack - 1.4.6-3.1
iptables-mod-nat - 1.4.6-3.1
kernel - 2.4.37.9-1
kmod-brcm-wl - 2.4.37.9+4.150.10.5.3-9
kmod-diag - 2.4.37.9-7.1
kmod-fs-ext3 - 2.4.37.9-1
kmod-ipt-conntrack - 2.4.37.9-1
kmod-ipt-core - 2.4.37.9-1
kmod-ipt-nat - 2.4.37.9-1
kmod-ipt-nathelper - 2.4.37.9-1
kmod-ppp - 2.4.37.9-1
kmod-pppoe - 2.4.37.9-1
kmod-scsi-core - 2.4.37.9-1
kmod-scsi-generic - 2.4.37.9-1
kmod-switch - 2.4.37.9-4
kmod-usb-core - 2.4.37.9-1
kmod-usb-ohci - 2.4.37.9-1
kmod-usb-storage - 2.4.37.9-1
kmod-usb-uhci - 2.4.37.9-1
kmod-usb2 - 2.4.37.9-1
kmod-wlcompat - 2.4.37.9+4.150.10.5.3-9
libc - 0.9.30.1-43.32
libgcc - 3.4.6-43.32
libip4tc - 1.4.6-3.1
libiwinfo - 18
libiwinfo-lua - 18
liblua - 5.1.4-7
libpthread - 0.9.30.1-43.32
librt - 0.9.30.1-43.32
libuci - 12012009.7-4
libuci-lua - 12012009.7-4
libusb - 0.1.12-2
libusb-1.0 - 1.0.8-1
libxtables - 1.4.6-3.1
lua - 5.1.4-7
luci - 0.10.0-1
luci-app-firewall - 0.10.0-1
luci-i18n-english - 0.10.0-1
luci-lib-core - 0.10.0-1
luci-lib-ipkg - 0.10.0-1
luci-lib-lmo - 0.10.0-1
luci-lib-nixio - 0.10.0-1
luci-lib-sys - 0.10.0-1
luci-lib-web - 0.10.0-1
luci-mod-admin-core - 0.10.0-1
luci-mod-admin-full - 0.10.0-1
luci-proto-core - 0.10.0-1
luci-proto-ppp - 0.10.0-1
luci-sgi-cgi - 0.10.0-1
luci-theme-base - 0.10.0-1
luci-theme-openwrt - 0.10.0-1
mtd - 13
nas - 4.150.10.5.3-9
nvram - 7
opkg - 576-2
ppp - 2.4.4-16.1
ppp-mod-pppoe - 2.4.4-16.1
uci - 12012009.7-4
uhttpd - 28
usbutils - 003-1
wireless-tools - 29-4
wlc - 4.150.10.5.3-9
zlib - 1.2.3-5
root@OpenWrt:~#


root@OpenWrt:~# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

sorry, i am newbie in it. But 3 days... and no reuslt


Also:
root@OpenWrt:~# lsmod | grep usb
usb-storage            70144  0
scsi_mod               67152  2 sg usb-storage sd_mod
usb-ohci               19252  0
usbcore                71296  0 ehci-hcd usb-storage usb-ohci


root@OpenWrt:~# opkg list-installed | grep usb
kmod-usb-core - 2.4.37.9-1
kmod-usb-ohci - 2.4.37.9-1
kmod-usb-storage - 2.4.37.9-1
kmod-usb-uhci - 2.4.37.9-1
kmod-usb2 - 2.4.37.9-1
libusb - 0.1.12-2
libusb-1.0 - 1.0.8-1
usbutils - 003-1



Router ModelD-Link DIR-320
Firmware VersionOpenWrt Backfire 10.03.1 / LuCI 0.10.0
Release (0.10.0) Kernel Version2.4.37.9

(Last edited by igore6ka on 15 Jul 2013, 23:50)

Please help, noone knows whats the matter?

igore6ka wrote:

root@OpenWrt:~# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

This does not look good. Even if the proper driver would not be installed, the vendor- and product-id should be read properly. check "lsusb -v" for more verbose output, and even a "dmesg | tail" right after inserting your usb-device.

check USB power

I have cheked USB port - shows 5.0-5.1V.

lsusb -v result:

root@OpenWrt:~# lsusb -v

Bus 002 Device 001: ID 0000:0000
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0         8
  idVendor           0x0000
  idProduct          0x0000
  bcdDevice            0.00
  iManufacturer           0
  iProduct                2 USB OHCI Root Hub
  iSerial                 1 b8003000
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x40
      (Missing must-be-set bit!)
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0002  1x 2 bytes
        bInterval             255
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             2
  wHubCharacteristic 0x0010
    Ganged power switching
    No overcurrent protection
  bPwrOn2PwrGood        2 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
Hub Port Status:
   Port 1: 0000.0100 power
   Port 2: 0000.0100 power
Device Status:     0x0001
  Self Powered

Bus 001 Device 001: ID 0000:0000
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         1 Single TT
  bMaxPacketSize0         8
  idVendor           0x0000
  idProduct          0x0000
  bcdDevice            2.04
  iManufacturer           3 Linux 2.4.37.9 ehci_hcd
  iProduct                2 PCI device 14e4:471a
  iSerial                 1 00:03.1
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x40
      (Missing must-be-set bit!)
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0002  1x 2 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             2
  wHubCharacteristic 0x0009
    Per-port power switching
    Per-port overcurrent protection
    TT think time 8 FS bits
  bPwrOn2PwrGood       10 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
Hub Port Status:
   Port 1: 0000.0100 power
   Port 2: 0000.0100 power
Device Status:     0x0001
  Self Powered

dmesg | tail result:

uhci.c: USB Universal Host Controller Interface driver v1.1
usb.c: registered new driver acm
acm.c: v0.21:USB Abstract Control Model driver for USB modems and ISDN adapters
usb.c: registered new driver serial
usbserial.c: USB Serial support registered for Generic
usbserial.c: USB Serial Driver core v1.4
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
Warning: DQ5 raised while program operation was in progress, however operation completed OK


Thank you very much that you try to help!

(Last edited by igore6ka on 18 Jul 2013, 13:00)

Pretty weird. lsusb -v seems to detect a hub, but you don't have a hub connected, right?
Now, it could be either a hardware or software problem. What does lsusb detect when connecting some other usb device?
Or have you tried a different firmware?

The discussion might have continued from here.