Forum Discussion

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

USbHost have some problem!

Hi,everybody

I used uClinux-dist-2006-08-03 dist and DE2 board.

I following "Wiki home's UsbHost" steps and enabled "fdisk" and "mount" on busybox.

desplay following message:

uClinux/Nios II

Altera Nios II support © 2004 Microtronix Datacom Ltd.

Built 1 zonelists

Kernel command line:

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

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

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

Memory available: 5760k/8192k RAM, 0k/0k ROM (1524k kernel code, 817k data)

Mount-cache hash table entries: 512

NET: Registered protocol family 16

SCSI subsystem initialized

usbcore: registered new driver usbfs

usbcore: registered new driver hub

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

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

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

TCP: Hash tables configured (established 1024 bind 1024)

TCP reno registered

io scheduler noop registered

io scheduler deadline registered (default)

Serial: JTAG UART driver $Revision: 1.1 $

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

usbmon: debugfs is not available

driver isp1362-hcd, 2005-04-04

isp1362-hcd isp1362-hcd: ISP1362 Host Controller

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

isp1362_hc_reset:

Clock not ready after 20ms

isp1362-hcd isp1362-hcd: irq 4, io mem 0x80900080

isp1362_hc_start:

isp1362-hcd isp1362-hcd: ISP1362 Memory usage:

isp1362-hcd isp1362-hcd: ISTL: 2 * 256: 512 @ $0000:$0100

isp1362-hcd isp1362-hcd: INTL: 16 * ( 64+8): 1152 @ $0200

isp1362-hcd isp1362-hcd: ATL : 32 * ( 64+8): 2304 @ $0680

isp1362-hcd isp1362-hcd: USED/FREE: 3968 128

usb usb1: Product: ISP1362 Host Controller

usb usb1: Manufacturer: uClinux 2.6.17-uc1 isp1362-hcd

usb usb1: SerialNumber: isp1362-hcd

usb usb1: configuration# 1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 2 ports detected

ISP1362 Host Controller, irq 4

Initializing USB Mass Storage driver...

usbcore: registered new driver usb-storage

USB Mass Storage support registered.

TCP bic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

Freeing unused kernel memory: 592k freed (0x1a8000 - 0x23b000)

Shell invoked to run file: /etc/rc

Command: hostname uClinux

Command: mount -t proc proc /proc

Command: mount -t sysfs sysfs /sys

Command: mount -t usbfs none /proc/bus/usb

Command: mkdir /var/tmpusb 1-2: new full speed USB device using isp1362-hcd and

address 2

Command: mkdir /var/log

Command: mkdir /var/run

Command: mkdir /var/lock

Command: mkdir /var/empty

Command: ifconfig lo 127.0.0.1

Command: route add -net 127.0.0.0 netmask 255.0.0.0 lo

Command: cat /etc/motd

Welcome to

____ _ _

/ __| ||_|

_ _| | | | _ ____ _ _ _ _

| | | | | | || | _ \| | | |\ \/ /

| |_| | |__| || | | | | |_| |/

| ___\____|_||_|_| |_|\____|\_/\_/

| |

|_|

For further information check:

http://www.uclinux.org/ (http://www.uclinux.org/)

Execution Finished, Exiting

Sash command shell (version 1.1.1)

/> usb 1-2: device not accepting address 2, error -110

usb 1-2: new full speed USB device using isp1362-hcd and address 3

usb 1-2: device descriptor read/64, error -71

usb 1-2: device descriptor read/64, error 8

usb 1-2: new full speed USB device using isp1362-hcd and address 4

usb 1-2: device not accepting address 4, error -110

usb 1-2: new full speed USB device using isp1362-hcd and address 5

usb 1-2: Product: TS128MJFLASHA

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

scsi0 : SCSI emulation for USB Mass Storage devices

Vendor: Model: TS128MJFLASHA Rev: 1.00

Type: Direct-Access ANSI SCSI revision: 02

/> inetd &

[22]

/> netstat -a

Active Internet connections (servers and established)

Proto Recv-Q Send-Q Local Address Foreign Address State

tcp 0 0 *:ftp *:* LISTEN

tcp 0 0 *:telnet *:* LISTEN

Active UNIX domain sockets (servers and established)

Proto RefCnt Flags Type State I-Node Path

/> fdisk -l /dev/sda

/> mount -t vfat /dev/sda1 /mnt

mount: Mounting /dev/sda1 on /mnt failed: No such device or address

/>

It can not mount USB device.

I had been tryed every times.

Please, help me.

Regards

faye

7 Replies

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

    --- Quote Start ---

    originally posted by hippo@Nov 9 2006, 03:47 AM

    did you enable scsi disk support in kernel config?

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=19324)

    --- quote end ---

    --- Quote End ---

    Hi, hippo

    I enabled scsi disk support in kernel config.

    It&#39;s work without problem.http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif

    Thank you very much.

    (1)I used thumb USB testing the "UsbHost" (USB ISP1362 driver) it is can be able to access,so it is ok.

    (2)I used Linux PC testing the "USB Wireless Dongle" (GW-US54GZL driver) it is ok.

    next, I try out again porting "Wireless Dongle".

    Regards

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

    --- Quote Start ---

    originally posted by hippo@Nov 9 2006, 10:27 AM

    please disable dm9000, and check again.

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=19343)

    --- quote end ---

    --- Quote End ---

    Hi, hippo

    I disabled DM9000 and try out again, but it is the some problem.

    "GW-US54GZL_linux_v2.15.0.0_CE.diff.gz" have support zd1211b ?

    ------------------------------------------------

    Welcome To Altera SOPC Builder

    Version 6.0, Built Mon Apr 24 15:26:45 PDT 2006

    ------------------------------------------------

    ------------------------------------------------

    Welcome to the Nios II Embedded Design Suite

    Version 6.0, Built Fri Apr 21 04:12:54 PDT 2006

    Example designs can be found in

    /cygdrive/c/altera/kits/nios2_60/examples

    ------------------------------------------------

    (You may add a startup script: c:/altera/kits/nios2_60/user.bashrc)

    /cygdrive/c/altera/kits/nios2_60/examples

    [SOPC Builder]$ cd c:

    /cygdrive/c

    [SOPC Builder]$ nios2-download -g zImage

    Using cable "USB-Blaster [USB-0]", device 1, instance 0x00

    Pausing target processor: OK

    Initializing CPU cache (if present)

    OK

    Downloaded 1775KB in 22.7s (78.1KB/s)

    Verified OK

    Starting processor at address 0x00500000

    /cygdrive/c

    [SOPC Builder]$ nios2-terminal

    nios2-terminal: connected to hardware target using JTAG UART on cable

    nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0

    nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate)

    Uncompressing Linux... Ok, booting the kernel.

    Linux version 2.6.17-uc1 (faye@localhost) (gcc version 3.4.6)# 17 PREEMPT Fri No

    v 10 03:26:56 Local time zone must be set--see

    uClinux/Nios II

    Altera Nios II support © 2004 Microtronix Datacom Ltd.

    Built 1 zonelists

    Kernel command line:

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

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

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

    Memory available: 5300k/8192k RAM, 0k/0k ROM (1523k kernel code, 1277k data)

    Mount-cache hash table entries: 512

    NET: Registered protocol family 16

    SCSI subsystem initialized

    usbcore: registered new driver usbfs

    usbcore: registered new driver hub

    NET: Registered protocol family 2

    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

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

    TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

    TCP: Hash tables configured (established 1024 bind 1024)

    TCP reno registered

    io scheduler noop registered

    io scheduler deadline registered (default)

    Serial: JTAG UART driver $Revision: 1.1 $

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

    usbmon: debugfs is not available

    driver isp1362-hcd, 2005-04-04

    isp1362-hcd isp1362-hcd: ISP1362 Host Controller

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

    isp1362_hc_reset:

    Clock not ready after 20ms

    isp1362-hcd isp1362-hcd: irq 4, io mem 0x80900080

    isp1362_hc_start:

    isp1362-hcd isp1362-hcd: ISP1362 Memory usage:

    isp1362-hcd isp1362-hcd: ISTL: 2 * 256: 512 @ $0000:$0100

    isp1362-hcd isp1362-hcd: INTL: 16 * ( 64+8): 1152 @ $0200

    isp1362-hcd isp1362-hcd: ATL : 32 * ( 64+8): 2304 @ $0680

    isp1362-hcd isp1362-hcd: USED/FREE: 3968 128

    usb usb1: Product: ISP1362 Host Controller

    usb usb1: Manufacturer: uClinux 2.6.17-uc1 isp1362-hcd

    usb usb1: SerialNumber: isp1362-hcd

    usb usb1: configuration# 1 chosen from 1 choice

    hub 1-0:1.0: USB hub found

    hub 1-0:1.0: 2 ports detected

    ISP1362 Host Controller, irq 4

    Initializing USB Mass Storage driver...

    usbcore: registered new driver usb-storage

    USB Mass Storage support registered.

    TCP bic registered

    NET: Registered protocol family 1

    NET: Registered protocol family 17

    Freeing unused kernel memory: 1052k freed (0x1a8000 - 0x2ae000)

    Shell invoked to run file: /etc/rc

    Command: hostname uClinux

    Command: mount -t proc proc /proc

    Command: mount -t sysfs sysfs /sys

    Command: mount -t usbfs none /proc/bus/usb

    Command: mkdir /var/tmp

    Command: mkdir /var/log

    usb 1-2: new full speed USB device using isp1362-hcd and address 2

    Command: mkdir /var/run

    Command: mkdir /var/lock

    Command: mkdir /var/empty

    Command: ifconfig lo 127.0.0.1

    Command: route add -net 127.0.0.0 netmask 255.0.0.0 lousb 1-2: Product: GW-US54G

    ZL(TW)

    usb 1-2: Manufacturer: PCI

    Command: cat /etc/motd

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

    Welcome to

    ____ _ _

    / __| ||_|

    _ _| | | | _ ____ _ _ _ _

    | | | | | | || | _ \| | | |\ \/ /

    | |_| | |__| || | | | | |_| |/

    | ___\____|_||_|_| |_|\____|\_/\_/

    | |

    |_|

    For further information check:

    http://www.uclinux.org/ (http://www.uclinux.org/)

    Execution Finished, Exiting

    Sash command shell (version 1.1.1)

    /> inetd &

    [19]

    /> netstat -a

    Active Internet connections (servers and established)

    Proto Recv-Q Send-Q Local Address Foreign Address State

    tcp 0 0 *:ftp *:* LISTEN

    tcp 0 0 *:telnet *:* LISTEN

    Active UNIX domain sockets (servers and established)

    Proto RefCnt Flags Type State I-Node Path

    /> modprobe zd1211b

    _____ ____ _ ____

    |__ / _| _ \ / \ / ___|

    / / | | | | | |/ _ \ \___

    / /| |_| | |_| / ___ \ ___) |

    /____\__, |____/_/ \_\____/

    |___/

    ZD1211B - version 2.15.0.0

    vendor_id = 0053

    product_id = 5301

    USB 1.1 Host

    Release Ver = 4810

    EEPORM Ver = 4810

    Finsih download Firmware. Ready to reboot

    PA type: 0

    PHYNEWLayout = 1

    Airoha AL2230S_RF

    AllowedChannel = 000107ff

    Region:16

    usbcore: registered new driver zd1211b

    /> ifconfig eth0 up

    /> iwconfig

    lo no wireless extensions.

    Warning: Driver for device eth0 has been compiled with version 20

    of Wireless Extension, while this program is using version 17.

    Some things may be broken...

    eth0 802.11b/g NIC ESSID:""

    Mode:Managed Frequency:2.462GHz Access Point: 00:00:00:00:00:00

    Bit Rate:1Mb/s

    Retry:off RTS thr=9999 B Fragment thr:off

    Encryption key:off

    Power Management:off

    /> iwlist eth0 scan

    eth0 No scan results

    Regards

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

    The zd1211/b drivers should be OK. I had tested them on PC and my nios2 board with a EHCI usb host.

    Maybe it is the isp1362-hcd&#39;s problem. I will test them with isp1761.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by hippo@Nov 10 2006, 11:30 AM

    the zd1211/b drivers should be ok. i had tested them on pc and my nios2 board with a ehci usb host.

    maybe it is the isp1362-hcd&#39;s problem. i will test them with isp1761.

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=19364)

    --- quote end ---

    --- Quote End ---

    Hi , hippo

    I used DE2 board to creating a project , it USB device is ISP1362. @@

    Can you help me solve this problem? ~"~

    I am new hand for Nios. I don&#39;t know how to solve it. Orz

    Please, help me.

    Regards

    faye