Hello everybody , I use the DM6467 and I want to install a webcam in my board, I use this link for help : http://wiki.davincidsp.com/index.php/USB_Webcam. So when I plug the webcam to the board this message is displayed: usb 1-1: new full speed USB device using musb_hdrc and address 4 When I execute this command: root@10.1.1.104 lsusb | grep -i logitech The kernel answer is: Bus 001 Device 004: ID 046d:0870 Logitech, Inc. QuickCam Express After that I wanted to verify if the webcam is register with any driver or not. And I use this command: root@10.1.1.104:~# cat /proc/bus/usb/devices The answer is: T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=04d6 ProdID=0000 Rev= 0.00 C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=256ms T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 4 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=ff(vend.) Sub=ff Prot=ff MxPS= 8 #Cfgs= 1 P: Vendor=046d ProdID=0870 Rev= 1.00 S: Product=Camera C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 90mA I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none) E: Ad=81(I) Atr=01(Isoc) MxPS= 0 Ivl=1ms E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=16ms I: If#= 0 Alt= 1 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none) E: Ad=81(I) Atr=01(Isoc) MxPS=1023 Ivl=1ms E: Ad=82(I) Atr=03(Int.) MxPS= 1 Ivl=16ms That?s why I download spca5xx driver to corss-compile it. I modify the makefile : KERNEL_VERSION = 2.6.10_mvl401-davinci_evm KERNELDIR := /home/anis1/workdir/filesys/lib/modules/$(KERNEL_VERSION)/build PWD := $(shell pwd) MODULE_INSTALLDIR = /home/anis1/workdir/filesys/lib/modules/$(KERNEL_VERSION)/kernel/drivers/usb/media/ I execute this function: CC=arm_v5t_le-gcc make The answer is : [root@localhost spca5xx-v4l1goodbye]# CC=arm_v5t_le-gcc make Building SPCA5XX driver for 2.5/2.6 kernel. Remember: you must have read/write access to your kernel source tree. make -C /home/anis1/workdir/filesys/lib/modules/2.6.10_mvl401-davinci_evm/build SUBDIRS=/home/anis1/driver/spca5xx-v4l1goodbye CC=arm_v5t_le-gcc modules make: *** /home/anis1/workdir/filesys/lib/modules/2.6.10_mvl401-davinci_evm/build: the file or directory is not found. Stop. make: *** [default] Error 2 the build directory is not found and I have no idea how to change this line. I need your help if you have any proposition or any comments please tell me as well. Best regards Anis Monser _________________________________________________________________ Achetez un nouveau PC et b?n?ficiez de Windows 7 d?s sa sortie ! http://www.portable-windows.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://linux.omap.com/pipermail/davinci-linux-open-source/attachments/20091103/71955090/attachment-0001.htm |
Hello Anis,
please keep the list CCed, as somebody else might give advice or other persons are glad to find the solution in the archives. 2009/11/5 anis monser <[hidden email]>: > thank you for help i generate the spca5xx.ko? I try to install it the target > using this command: > > ?root@10.1.1.104:/opt# insmod ./spca5xx.ko > > usbcore: registered new driver spca5xx > > /home/sweta/temp/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: spca5xx driver > 00.60.00.1 dr > Is this output really garbled or is ist just a copy-and-paste error? According to http://wiki.davincidsp.com/index.php/USB_Webcam the output should look like: target# dmesg /mnt/hgfs/shared/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: USB SPCA5XX camera found.Logitech QuickCam chat(SPCA561A) /mnt/hgfs/shared/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: [spca5xx_probe:5485] Camera typeS561 /mnt/hgfs/shared/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: [spca5xx_getcapability:1767] maxw 352 maxh 288 minw 160 minh 120 usbcore: registered new driver spca5xx /mnt/hgfs/shared/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: spca5xx driver 00.60.00.1 registEred > After this step the modules will be installed and it will be added in this > directory: > > /lib/modules/2.6.10_mvl401-davinci_evm/kernel/drivers/usb/media > > > But the problem that this directory doesn?t exist when I put: > > root@10.1.1.104:/opt# ls > /lib/modules/2.6.10_mvl401-davinci_evm/kernel/drivers/usb/ > > ?? input storage > > /* media doesn?t exist*/ A driver that you build outside the kernel will not be copied automagically to /lib/modules/2.6.10_mvl401-davinci_evm. Even worse, if you copy it there by hand, next time you build your kernel and do a "make modules_install", it will be overwritten. I'm not sure, if there is a better way, but I keep kernel modules, that are built external, outside /lib/modules/2.6.10_mvl401-davinci_evm. I copy them for example to /usr/local/lib/modules. You have to adapt one of your init-scripts to do the insmod from there during your boot-up, i.e. it should contain a line like: /sbin/insmod /usr/local/lib/modules/spca5xx.ko > And the webcam can?t detect this driver also > > > > root@10.1.1.104:/proc/bus/usb# cat devices > > > > T:? Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=? 1 Spd=480 MxCh= 1 > > B:? Alloc=? 0/800 us ( 0%), #Int=? 0, #Iso=? 0 > > D:? Ver= 2.00 Cls=09(hub? ) Sub=00 Prot=01 MxPS=64 #Cfgs=? 1 > > P:? Vendor=04d6 ProdID=0000 Rev= 0.00 > > C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=? 0mA > > I:? If#= 0 Alt= 0 #EPs= 1 Cls=09(hub? ) Sub=00 Prot=00 Driver=hub > > E:? Ad=81(I) Atr=03(Int.) MxPS=?? 1 Ivl=256ms > > > > T:? Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=? 3 Spd=12? MxCh= 0 > > D:? Ver= 1.10 Cls=ff(vend.) Sub=ff Prot=ff MxPS= 8 #Cfgs=? 1 > > P:? Vendor=046d ProdID=0870 Rev= 1.00 > > S:? Product=Camera > > C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 90mA > > I:? If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none) > > E:? Ad=81(I) Atr=01(Isoc) MxPS=?? 0 Ivl=1ms > > E:? Ad=82(I) Atr=03(Int.) MxPS=?? 1 Ivl=16ms > > I:? If#= 0 Alt= 1 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none) > > E:? Ad=81(I) Atr=01(Isoc) MxPS=1023 Ivl=1ms > > E:? Ad=82(I) Atr=03(Int.) MxPS=?? 1 Ivl=16ms > > > > Do you think that the problem is related to the kernel which can be > incompatible with the driver or to the driver? > > Did you try to install this driver ? had you the same problem like me? No, I don't own any USB webcam, so for me this is a dry-run here. :-) Maybe someone else on the list went already the same way you do now and can give better advice than me. Did you use the driver "spac5xx-v4l1goodbye.tar.gz" as suggested in the wiki? When "insmod" succeeds, I don't believe in a kernel mismatch, but maybe the order of loading the kernel modules and plugging in the device is important. Best regards Siegbert |
Free forum by Nabble | Edit this page |