Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

USB host problem on DE2 board

Altera_Forum
Honored Contributor II
1,761 Views

Hello, 

 

I am trying to access the usb host on my DE2 board using ucLinux. I have followed the steps in the wiki at: 

 

http://nioswiki.jot.com/wikihome/operating...host?revision=4 (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/usbhost?revision=4

 

I can download the image file to the board, however, when I start the terminal to boot the kernel, it hangs while loading the usb driver. Here is the output I receive: 

 

 

[sopc builder]$ nios2-terminal.exe 

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 (brian@loafy ) (gcc version 3.4.6)# 16 preempt sun nov 2 

6 19:04:45 cst 2006 

 

 

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: 5564k/8192k ram, 0k/0k rom (1518k kernel code, 1020k 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 

dm9000 ethernet driver 

eth%d: invalid ethernet mac address. please set using ifconfig 

eth0: dm9000 at 80900090,80900094 irq 8 mac: 00:00:00:00:00:00 

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 

 

At this point it stops indefinitely. 

 

When I compare this with the output from the wiki, I notice that the following lines appear in my output and not on the wiki: 

 

isp1362_hc_reset: 

clock not ready after 20ms 

 

I'm thinking that I am missing some extra configuration for the FPGA. Currently, I download DE2_NET.sof to my DE2 board as specified in: 

 

http://nioswiki.jot.com/wikihome/operating...s/tryoutuclinux (http://nioswiki.jot.com/wikihome/operatingsystems/tryoutuclinux

 

Does anyone have any idea what could be causing this problem? Help is this matter would be greatly appreciated.
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
631 Views

 

--- Quote Start ---  

originally posted by kael@Nov 29 2006, 04:34 AM 

hello, 

 

i am trying to access the usb host on my de2 board using uclinux.  i have followed the steps in the wiki at: 

 

http://nioswiki.jot.com/wikihome/operating...host?revision=4 (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/usbhost?revision=4

 

i can download the image file to the board, however, when i start the terminal to boot the kernel, it hangs while loading the usb driver.  here is the output i receive: 

 

 

[SOPC Builder]$ nios2-terminal.exe 

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 (brian@loafy ) (gcc version 3.4.6)# 16 PREEMPT Sun Nov 2 

6 19:04:45 CST 2006 

 

 

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: 5564k/8192k RAM, 0k/0k ROM (1518k kernel code, 1020k 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 

dm9000 Ethernet Driver 

eth%d: Invalid ethernet MAC address.  Please set using ifconfig 

eth0: dm9000 at 80900090,80900094 IRQ 8 MAC: 00:00:00:00:00:00 

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[/b] 

 

At this point it stops indefinitely. 

 

When I compare this with the output from the wiki, I notice that the following lines appear in my output and not on the wiki: 

 

isp1362_hc_reset: 

clock not ready after 20ms 

 

I'm thinking that I am missing some extra configuration for the FPGA.  Currently, I download DE2_NET.sof to my DE2 board as specified in: 

 

http://nioswiki.jot.com/wikihome/operating...s/tryoutuclinux (http://nioswiki.jot.com/wikihome/operatingsystems/tryoutuclinux

 

Does anyone have any idea what could be causing this problem?  Help is this matter would be greatly appreciated. 

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

--- Quote End ---  

[/b] 

--- Quote End ---  

 

 

Hi , kael 

 

I met same problem. 

You need recomplied DE2_NET project again. 

 

Regards 

Faye
0 Kudos
Altera_Forum
Honored Contributor II
631 Views

The messages 

isp1362_hc_reset: 

clock not ready after 20ms 

appear since the 2.6.17 kernel driver, 

the reason is that the reset function is now called and was not with 2.6.11 kernel driver. 

It does not matter. 

Why there is a problem with the clock check on De2 Brd needs investigation.
0 Kudos
Altera_Forum
Honored Contributor II
631 Views

 

--- Quote Start ---  

originally posted by faye@Nov 29 2006, 06:46 AM 

hi , kael 

 

i met same problem. 

you need recomplied de2_net project again. 

 

regards 

faye 

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

--- quote end ---  

 

--- Quote End ---  

 

 

Do you mean simply recomple the DE2_NET project, or does something need to be reconfigured before recompiling? 

 

Thanks for the quick feedback.
0 Kudos
Altera_Forum
Honored Contributor II
631 Views

Hello everyone and thanks for your replies. 

 

Going off what Faye suggested, I found the CD that came with the board that has all of the demonstrations mentioned in:  

 

http://nioswiki.jot.com/wikihome/operating...s/tryoutuclinux (http://nioswiki.jot.com/wikihome/operating...s/tryoutuclinux

 

I used the DE2_NET.sof from the CD and it works just fine! It seems there is a problem with the file posted in the wiki. 

 

Thanks again.
0 Kudos
Altera_Forum
Honored Contributor II
631 Views

is there anyone who knows to do same thing on Windows?

0 Kudos
Reply