Forum Discussion

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

Isp1362

Hello everybody !

Does anybody manage to make the isp1362 run under uCLinux with the OTG port configure as un host port? I'm working on Cyclone3 board FPGA ALTERA DEV board.

I have took the DE2 board schematic and created a small SantaCruz board.I have change some pins connexions :

-> OTGMODE connect to a pullup 3.3V through a 4.7kOhm

-> ID to pulldown through a 4.7kOhm

I have commented (as I found in the forum) every line of the function isp1362_hc_reset in isp1362-hcd.c.

Plus, I have commented those following line in the isp1362_hc_start function :


    if ((chipid & HCCHIPID_MASK) != HCCHIPID_MAGIC) {
        pr_err("%s: Invalid chip ID %04x\n", __func__, chipid);
        return -ENODEV;
    }
When I boot the board I have those lines :


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-hcd isp1362-hcd: irq 10, io mem 0x00000050
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: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: ISP1362 Host Controller
usb usb1: Manufacturer: uClinux 2.6.30 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 10
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
Freeing unused kernel memory: 1672k freed (0xc26c000 - 0xc40d000)
Shell invoked to run file: /etc/rc
Command: hostname uClinux
Command: mount -t proc proc /proc -o noexec,nosuid,nodev
Command: mount -t sysfs sysfs /sys -o noexec,nosuid,nodev
hub 1-0:1.0: unable to enumerate USB device on port 1
And then, I can't have access to my USB memory device.

Does anyone can help me.

Thanks in advance

7 Replies

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

    Does anybody manage to access to a USB stick through an ISP 1362/1761 ? Did you do it on your own board, on a DE2 Board ?

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

    Here is my schematic.

    All the OTG signal are connected to the isp1362 interface execpt OTG_DREQ0 and OTG_DREQ1.

    CLKIN is connected to a PLL output wich generate an 12MHz signal.

    Question : How the Nios manage the data transfert to the isp ? they are not on the same clock domain : the isp is 12 MHz and my Nios is 120MHz ?

    Thanks is advance.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Question : How the Nios manage the data transfert to the isp ? they are not on the same clock domain : the isp is 12 MHz and my Nios is 120MHz ?

    --- Quote End ---

    The NIOS example design uses several clock domains on the Avalon bus. This is said to speed up the design greatly.

    You can use an Avalon bus bridge to cross a clock domain. The avalon bus at the other site of the bridge will be connected to the I/O pins with a standard appropriate bus I/O or with your own Avalon slave design.

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

    That's mean that the isp1362 ic and his interface (sopc component) must have the same clock ?

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

    I don't need to add an delay (phase) between the 12MHz isp1362 and 12MHz FPGA ?

    Does anybody who manage to make usb master work on the DE2 could answer me ?

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

    Hi all,

    Now I get this message after boot :

    hub 1-0:1.0: connect-debounce failed, port 1 disabled

    Does anybody got ideas ?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    After re-reading the ISP1362 documentation I've understood that the FPGA-ISP bus is an asynchronous bus. That the reason why the ISP can run at 12MHz (external clock, internal : 48MHz) and the FPGA on other clock domain (100 MHz for my design).

    I've try to make the USB Host up and running on the DE2, however, I didn't manage does anybody got an idea ?

    The DMESG is

    
    uClinux/Nios II
    Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 16256
    Kernel command line: 
    NR_IRQS:32
    PID hash table entries: 256 (order: 8, 1024 bytes)
    Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
    Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
    Memory available: 60788k/4170k RAM, 0k/0k ROM (2088k kernel code, 2082k data)
    Calibrating delay loop... 41.88 BogoMIPS (lpj=209408)
    Mount-cache hash table entries: 512
    net_namespace: 264 bytes
    NET: Registered protocol family 16
    init_BSP(): registering device resources
    bio: create slab <bio-0> at 0
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 2048 (order: 2, 16384 bytes)
    TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    TCP: Hash tables configured (established 2048 bind 2048)
    TCP reno registered
    NET: Registered protocol family 1
    io scheduler noop registered
    io scheduler deadline registered (default)
    ttyJ0 at MMIO 0x10022c98 (irq = 2) is a Altera JTAG UART
    console  enabled
    ttyS0 at MMIO 0x10000000 (irq = 6) is a Altera UART
    ttyS1 at MMIO 0x10000020 (irq = 7) is a Altera UART
    usbcore: registered new interface driver ub
    Driver 'sd' needs updating - please use bus_type methods
    0 : New Bus ID
    Altera TSE MII Bus: probed
    Found phy with ID=0x1410cc2 at address=0x12
    Altera TSE MII Bus: MDIO Bus Registered
    Altera Triple Speed MAC IP Driver(v8.0) developed by SLS,August-2008,--Linux 2.6.27-rc3
    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-hcd isp1362-hcd: irq 10, io mem 0x10000050
    isp1362_hc_start:
    isp1362_hc_start: Invalid chip ID 0027
    isp1362-hcd isp1362-hcd: startup error -19
    isp1362-hcd isp1362-hcd: USB bus 1 deregistered
    isp1362_probe: init error, -19
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    TCP cubic registered
    NET: Registered protocol family 17
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    Freeing unused kernel memory: 1672k freed (0xc270000 - 0xc411000)
    Shell invoked to run file: /etc/rc