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++
12596 Discussions

USB2.0 IP core and uClinux driver

Altera_Forum
Honored Contributor II
2,264 Views

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif I want to use usb camera on altera 1c20 dev board, 

I will programme for grabbling images via video4liux API, 

I will display images in IE through boa web server, 

is USB2.0 IP core and uClinux driver necessary?if I use ISP1761 

 

could you give me some ideas? 

thank you! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif
0 Kudos
19 Replies
Altera_Forum
Honored Contributor II
967 Views

 

--- Quote Start ---  

originally posted by zhangyan_swpu@Nov 2 2006, 09:43 AM 

http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/smile.gif i want to use usb camera on altera 1c20 dev board, 

i will programme for grabbling images via video4liux api, 

i will display images in ie through boa web server, 

is usb2.0 ip core and uclinux driver necessary?if i use isp1761 

 

could you give me  some ideas? 

thank you! http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/smile.gif  

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

--- quote end ---  

 

--- Quote End ---  

 

You don&#39;t need the USB2.0 IP core. 

You can find link to ISP1761 driver in the UsbHost page on nios wiki. 

There is a patch for kernel 2.6.17 . 

The uClinux-dist-20060803 uses kernel 2.6.17 . 

You should be able to add the driver. 

 

I shall prepare a simple interface core to ISP1761 and add the patch, if I could find some spare time. 

But I have only very limited time.
0 Kudos
Altera_Forum
Honored Contributor II
967 Views

It&#39;s great! 

hippo! 

Thank you very much for your reply! 

 

Regards 

 

zhangyan
0 Kudos
Altera_Forum
Honored Contributor II
967 Views

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif  

Using usb camera on dev board involves hardware and software designs, 

I want to use USB driver in nios wiki, 

but in hardware, I am still confused , 

how to connect USB controller(isp1362 or isp1761) in SOPC Builder in quartus? 

does usb camera work without USB2.0 ip core? 

I don&#39;t kown how to acess usb camera without USB2.0 ip core. 

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif  

 

Regards 

zhangyan
0 Kudos
Altera_Forum
Honored Contributor II
967 Views

 

--- Quote Start ---  

originally posted by zhangyan_swpu@Nov 7 2006, 10:14 PM 

http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/smile.gif  

using usb camera on dev board involves hardware and software designs, 

i want to use usb driver in nios wiki, 

but in hardware, i am still confused , 

how to connect usb controller(isp1362 or isp1761) in sopc builder in quartus? 

does usb camera work without usb2.0 ip core? 

i don&#39;t kown how to acess usb camera without usb2.0 ip core. 

http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/huh.gif  

 

                              regards 

                              zhangyan 

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

--- quote end ---  

 

--- Quote End ---  

 

I will add and try out isp1761. It may take one or two weeks. 

I shall let you know the result.
0 Kudos
Altera_Forum
Honored Contributor II
967 Views

I want to use ps/2 for mouse and keyboard in the linux on the DE2,how i should do? 

thank you!!
0 Kudos
Altera_Forum
Honored Contributor II
967 Views

 

--- Quote Start ---  

originally posted by liuxiaoping@Dec 28 2006, 04:36 PM 

i want to use ps/2 for mouse and keyboard in the linux on the de2,how i should do? 

thank you!! 

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

--- quote end ---  

 

--- Quote End ---  

 

You can look at DE2 demo, or lancelot at 

http://www.fpga.nl/lancelot.html (http://www.fpga.nl/lancelot.html

There are the PS/2 interface. 

You still need to write the drivers. Look in linux-2.6.x/drivers/input dir.
0 Kudos
Altera_Forum
Honored Contributor II
967 Views

What is the DE2 demo? 

 

how i can find that? 

 

thank you!
0 Kudos
Altera_Forum
Honored Contributor II
967 Views

 

--- Quote Start ---  

originally posted by liuxiaoping@Dec 29 2006, 07:11 PM 

what is the de2 demo? 

 

how i can find that? 

 

thank you! 

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

--- quote end ---  

 

--- Quote End ---  

 

DE2 is a dev board, 

http://www.terasic.com/downloads/cd-rom/de2/ (http://www.terasic.com/downloads/cd-rom/de2/)
0 Kudos
Altera_Forum
Honored Contributor II
967 Views

I mean,where i can find the demo of ps/2 on DE2.

0 Kudos
Altera_Forum
Honored Contributor II
967 Views

 

--- Quote Start ---  

originally posted by feng8126@Dec 30 2006, 09:11 AM 

i mean,where i can find the demo of ps/2 on de2. 

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

--- quote end ---  

 

--- Quote End ---  

 

http://www.altera.com/education/univ/ip-co...v-ip-cores.html (http://www.altera.com/education/univ/ip-cores/unv-ip-cores.html)
0 Kudos
Altera_Forum
Honored Contributor II
967 Views

to hippo: 

 

The uClinux driver about usb host is a common driver,or not? 

 

Is this driver only support the USB2.0 IP core ? Can this driver driver the usb host on ARM? 

 

If i want to write the Registers of USB2.0 IP core,iit means that i can find such case"IOWR(base, REG, data)" on the driver. but i can&#39;t.  

 

Do you know how the ucliux solve this? 

 

Thank you!!
0 Kudos
Altera_Forum
Honored Contributor II
967 Views

 

--- Quote Start ---  

originally posted by feng8126@Jan 4 2007, 08:17 PM 

to hippo: 

         

        the  uclinux driver about usb host is a common driver,or not? 

 

  is  this driver only support the  usb2.0 ip core ? can this driver  driver the usb host on arm? 

 

if i want to write the registers of  usb2.0 ip core,iit means that i can find such case"iowr(base, reg, data)" on the driver. but i can&#39;t.  

 

do you know how the ucliux solve this? 

 

thank you!! 

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

--- quote end ---  

 

--- Quote End ---  

 

The ISP1761 dose not need USB 2.0 IP core. They are two different things. 

 

The USB has two functions, host and device. You need to know which one you want. 

 

The ISP1761 is a common part, which you can use on most embeded processors, including ARM, BF etc. There is a Linux host and device driver on sourceforge from the vendor , NPX. 

 

I don&#39;t know which USB 2.0 IP core you are refering, but it is not easy to write a USB driver. 

 

The port io functions are defined in linux-2.6.x/include/asm-nios2nommu/io.h .
0 Kudos
Altera_Forum
Honored Contributor II
967 Views

To hippo: 

 

Because the address of any devices on NIOS is not certain,so we need the .ptf file which come from the sopcbuilder for building the uclinux,I think i can find something about the .ptf file in the ucliux source. 

Could you understand me? 

Thank you very much!!
0 Kudos
Altera_Forum
Honored Contributor II
967 Views

 

--- Quote Start ---  

originally posted by liuxiaoping@Jan 5 2007, 09:59 AM 

to hippo: 

 

because the address of any devices on nios is not certain,so we need the .ptf file which come from the sopcbuilder for building the uclinux,i think i can find something about the .ptf file in the ucliux source. 

could you understand me? 

thank you very much!! 

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

--- quote end ---  

 

--- Quote End ---  

 

The io ports address is generated from ptf file, in the hwselect perl script. 

We run "make vendor_hwselect SYSPTF=your_ptf_path" in uClinux-dist, (or make hwselect in the kernel tree). 

The port definition will be created in linux-2.6.x/include/nios2_system.h .
0 Kudos
Altera_Forum
Honored Contributor II
967 Views

to hippo: 

 

Because of your help,now,i know of something,thank you! 

It means that the nios2_system.h is included in the device driver source. 

 

If i use two ps/2 ip for mouse and keyboard, in the nios2_system.h file ,there will be two defines.The problem is how i know whitch is for mouse and whitch is for keyboard in the uclinux.
0 Kudos
Altera_Forum
Honored Contributor II
967 Views

 

--- Quote Start ---  

originally posted by liuxiaoping@Jan 5 2007, 10:49 AM 

to hippo: 

             

          because of your help,now,i know of something,thank you! 

it means that the nios2_system.h is included in the device driver source. 

 

if i use two ps/2 ip for mouse and keyboard, in the nios2_system.h file ,there will be two defines.the problem is how i know whitch is for mouse and whitch is for keyboard in the uclinux. 

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

--- quote end ---  

 

--- Quote End ---  

 

It is off topic. 

You should start a new topic next time. 

 

In hardware, you can assign the ports usage, eg, ps2_0 for keyboard, ps2_1 for mouse. 

 

In software, you can query the devices to get device type. 

You will need to write serio driver for your PS/2 hardware. The kbd and mouse drivers will use it. 

linux-2.6.x/drivers/input/serio 

linux-2.6.x/Documents/input
0 Kudos
Altera_Forum
Honored Contributor II
967 Views

Hello mr. hippo! 

 

I need to rewrite isp1761_hcd linux driver under blackfin and uClinux. 

Is it enough to change two HAL files (hal_x86.c and hal_x86.h) ? 

Or I should rewrite pehci.c too, to get rid of PCI bus?
0 Kudos
Altera_Forum
Honored Contributor II
967 Views

 

--- Quote Start ---  

originally posted by konstantin@Jan 9 2007, 04:04 PM 

hello mr. hippo! 

 

i need to rewrite isp1761_hcd linux driver under blackfin and uclinux. 

is it enough to change two hal files (hal_x86.c and hal_x86.h) ? 

or i should rewrite pehci.c too, to get rid of pci bus? 

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

--- quote end ---  

 

--- Quote End ---  

 

Bernard ported the driver to a PXA255 running 2.6.17. It&#39;s at http://dagobah.ucc.asn.au/isp1761/ (http://dagobah.ucc.asn.au/isp1761/). See http://sourceforge.net/mailarchive/forum.p...&forum_id=38940 (http://sourceforge.net/mailarchive/forum.p...&forum_id=38940) for more info.
0 Kudos
Altera_Forum
Honored Contributor II
967 Views

hi hippo, 

 

I also want to use ISP1761 for altera startix3 DE3. The Bernard link is not active anymore. Do you happen to have the driver.  

 

Thank you.
0 Kudos
Reply