Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

USB device!

I have a usb flash disk, I want to using it on my board, I choose USB Mass storage and SCSI disk and ISA116X driver support in menuconfig. Start uClinux on NIOS II SDK shell, using dmesg, I got these message:

# dmesg

Linux version 2.6.11-uc0 (root@localhost.localdomain) (gcc version 3.4.6)# 11 Sa

t Apr 15 17:52:30 CST 2006

uClinux/Nios II

Altera Nios II support © 2004 Microtronix Datacom Ltd.

setup_arch: No persistant network settings signature at 008F0000

On node 0 totalpages: 2048

DMA zone: 2048 pages, LIFO batch:1

Normal zone: 0 pages, LIFO batch:1

HighMem zone: 0 pages, LIFO batch:1

Built 1 zonelists

Kernel command line:

PID hash table entries: 64 (order: 6, 1024 bytes)

Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)

Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)

Memory available: 6188k/8192k RAM, 0k/0k ROM (1334k kernel code, 551k data)

Calibrating delay loop... 24.72 BogoMIPS (lpj=123648)

Mount-cache hash table entries: 512 (order: 0, 4096 bytes)

NET: Registered protocol family 16

SCSI subsystem initialized

usbcore: registered new driver usbfs

usbcore: registered new driver hub

Serial: JTAG UART driver $Revision: 1.4 $

ttyJ0 at MMIO 0x81004000 (irq = 1) is a jtag_uart

io scheduler noop registered

io scheduler deadline registered

dmfe_probe:eth0, 50000 Khz Nios

<DM9000> eth0 I/O: 80900090, VID: 90000a46

ADDR: 00:07:ed:00:00:00

dmfe_probe:eth1, 50000 Khz Nios

Linux video capture interface: v1.00

116x: driver isp116x-hcd, 08 Apr 2005

116x: ISP116x Host Controller, irq 4

isp116x-hcd isp116x-hcd: new USB bus registered, assigned bus number 1

116x: Invalid chip ID 3630

isp116x-hcd isp116x-hcd: USB bus 1 deregistered

116x: init error, -19

Initializing USB Mass Storage driver...

usbcore: registered new driver usb-storage

USB Mass Storage support registered.

NET: Registered protocol family 2

IP: routing cache hash table of 512 buckets, 4Kbytes

TCP established hash table entries: 512 (order: 0, 4096 bytes)

TCP bind hash table entries: 512 (order: -1, 2048 bytes)

TCP: Hash tables configured (established 512 bind 512)

NET: Registered protocol family 1

NET: Registered protocol family 17

Freeing unused kernel memory: 436k freed (0x15e000 - 0x1ca000)#

I plug my usb flash disk in my board usb host port, there is no message appear!

How could I to find the usb disk?

43 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello...

    Please Help as I think you people can..

    I am curently working on IP08 board made by Rowetel and it has BF532 and ISP1362 controller for USB. The Problem I am facing is that I am able to use normal USB Mass storage devices they are detected by the system (uClinux 2009 dist).

    i.e. it prints a message saying usb 1-2: new full speed USB device using isp1362-hcd and address 2

    usb 1-2: configuration# 1 chosen from 1 choice

    scsi0 : SCSI emulation for USB Mass Storage devices

    usb 1-2: New USB device found, idVendor=0951, idProduct=160b

    usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3

    usb 1-2: Product: DataTraveler2.0

    usb 1-2: Manufacturer: Kingston

    usb 1-2: SerialNumber: 0802101904166

    uncorrectable error : <3>uncorrectable error : <3>uncorrectable error : <3>unco2

    sd 0:0:0:0: [sda] 7806847 512-byte hardware sectors: (3.99 GB/3.72 GiB)

    sd 0:0:0:0: [sda] Write Protect is off

    sd 0:0:0:0: [sda] Assuming drive cache: write through

    sd 0:0:0:0: [sda] 7806847 512-byte hardware sectors: (3.99 GB/3.72 GiB)

    sd 0:0:0:0: [sda] Write Protect is off

    sd 0:0:0:0: [sda] Assuming drive cache: write through

    sda: sda1

    sd 0:0:0:0: [sda] Attached SCSI removable disk

    and at this point

    root:/proc/bus/usb> cat devices

    T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2

    B: Alloc= 0/900 us ( 0%),# Int= 0,# Iso= 0

    D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64# Cfgs= 1

    P: Vendor=1d6b ProdID=0001 Rev= 2.06

    S: Manufacturer=Linux 2.6.28.10-ADI-2009R1.1 isp1362-hcd

    S: Product=ISP1362 Host Controller

    S: SerialNumber=isp1362-hcd.0

    C:*# Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA

    I:* If#= 0 Alt= 0# EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub

    E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

    T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 4 Spd=12 MxCh= 0

    D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64# Cfgs= 1

    P: Vendor=0951 ProdID=160b Rev= 1.00

    S: Manufacturer=Kingston

    S: Product=DataTraveler2.0

    S: SerialNumber=0802101904166

    C:*# Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA

    I:* If#= 0 Alt= 0# EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage

    E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms

    E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms

    But when I try to attach MP3 Player or Nokia Phone it does not even show symptoms of being attached to usb port. Although I have compiled ISP1362-HCD and enabled the cdc-acm support as well. Kindly guide me whether it is feasible or not, If yes then where the problem is.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi.I have a DE3 board.I want to use the USB interface in the DE3 board,How can I do it.I add ISP1760 to my design and compile successed.Is there anything should be modified?Can you give me some instructions?Thank you very much.