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

Problems about usb camera driver on NiosII uclinux

Altera_Forum
Honored Contributor II
1,032 Views

Hello everyone: 

I've got some problems about usb camera driver on Nios II uclinux recently.I'm using nios2linux-1.4,and the hardware environment is DE2 board. This is some of the uclinux boot information:Linux version 2.6.11-uc0 (aladdin@xjtu-04b3c1ca06) (gcc version 3.4.1 (Altera Nios II 5.1 b73))# 7 Sun Aug 13 22:23:12 2006. 

I believe that the usb driver for isp1362 has no problem,because someone has successfully used it on Nios II uclinux(DE2),and he says it works well.The camera driver I use works well on arm.When uclinux boot,the usb device and camera can be recognized: 

driver isp1362-hcd, 2006-04-28 

datastart=80900080,dataend=80900083,adrstart=80900084,adrend=80900087,irq=4 

ISP1362 Host Controller, irq 4 

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

chipID=3630 

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 

hub 1-0:1.0: USB hub found 

hub 1-0:1.0: 2 ports detected 

Initializing USB Mass Storage driver... 

usbcore: registered new driver usb-storage 

USB Mass Storage support registered. 

usbcore: registered new driver hiddev 

usbcore: registered new driver usbhid 

 

/cygdrive/c/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux. 

kernel_1.4.0/linux-2.6.x/drivers/usb/input/hid-core.c: v2.0:USB HID core driver 

usbcore: registered new driver spca5xx 

/cygdrive/c/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux. 

kernel_1.4.0/linux-2.6.x/drivers/usb/media/spca5xx/spca_core.c: spca5xx driver 0 

0.57.06LE registered 

 

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

/cygdrive/c/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux. 

kernel_1.4.0/linux-2.6.x/drivers/usb/media/spca5xx/spca_core.c: USB SPCA5XX camera found. Type Vimicro Zc301P 0x301b 

 

The file system is read-only, so I can't create /dev/video0 by mknod. What I do is creating a file named @video0,c,81,0 in /linuxf/target/dev/v4l/(linuxf is the directory of linux filesystem project). I wrote some simple drivers before,and it shown that this method works. The application program for camera works well on arm,so I think there is no problem,but when I execute it,some problems occurs: 

/etc/issue www.microtronix.com June 2005 

 

 

Welcome to Linux on the Nios II 

 

Nios2 login: root 

Password: 

# cd /bin# server 

Isochronous transfers not supported 

/cygdrive/c/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux. 

kernel_1.4.0/linux-2.6.x/drivers/usb/media/spca5xx/spca_core.c: init isoc: usb_s 

ubmit_urb(0) ret -28 

ERROR opening V4L interface 

 

 

Is there anyone knows how I can solve the problem? Thanks!!!!
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
328 Views

hi,xjtualex! 

im now doing the same work.can you send me the usb driver for isp1362.i need it .thanks!
0 Kudos
Reply