Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: USB webcam on at91sam9263
PostPosted: Tue Jul 08, 2008 12:39 pm 
Offline

Joined: Fri Mar 21, 2008 1:36 pm
Posts: 7
Since there's no ISI driverfor linux, I'm trying to enable USB webcam support on my ARM board. A part from kernel default supported cameras (that are old models), I would like to install any recent driver, such as Gspca.
How can I cross-compile Gspca (or other USB camera driver) and load module on my ARM linux?
Did anyone tryied something similar?

Thanks in advance

Matteo Pucci


Top
 Profile  
 
 Post subject: USB webcam on at91sam9263
PostPosted: Tue Jul 08, 2008 5:20 pm 
Offline

Joined: Fri Mar 21, 2008 1:36 pm
Posts: 7
I did it. Just use a cross-compiler such as arm-2008q1; first of all edit Makefile, substituting
KDIR := /lib/modules/$(shell uname -r)/build
with
KDIR := /9263kernel/linux-2.6.24/
or wherever you got ARM linux sources.
Then launch:
make CROSS_COMPILE=/arm-2008q1/bin/arm-none-linux-gnueabi- ARCH=arm KERNELSRC=/9263kernel/linux-2.6.24/ CC=/arm-2008q1/bin/arm-none-linux-gnueabi-gcc
Changing path /arm-2008q1/ with your cross-compiler one. Once compilation finished, copy *.ko on arm target (in /lib/modules/2.6.24/kernel/drivers/media/video/), run depmod and modprobe your module.
It worked for me, modules was loaded and device recognized.
Unfortunately when I try to read from it (cat /dev/video0) or open with an application (such as camsource), I get an error:

Unable to handle kernel NULL pointer dereference at virtual address 0000009d
pgd = c3fec000
[0000009d] *pgd=23e6d031, *pte=00000000, *ppte=00000000
Internal error: Oops: 1 [#1]
......

Does anyone knows the cause (and hopefully the solution)?


Top
 Profile  
 
 Post subject: AT91SAM9263 ISI
PostPosted: Tue Jul 08, 2008 6:06 pm 
Offline

Joined: Fri Mar 21, 2008 1:36 pm
Posts: 7
If anyone has tried, does it works correctly any USB camera directly supported by linux kernel drivers (such as Cpia, Cpia2, ov511, ...)? It would be useful to know that there's no segmentation fault in this case.


Top
 Profile  
 
 Post subject: i have use ov511 & spca5xx in arm linux
PostPosted: Wed Jul 09, 2008 7:18 am 
Offline

Joined: Thu May 29, 2008 1:46 pm
Posts: 2
Location: China
i have use ov511 & spca5xx (support ZC301 web cam), but i didn't meet the error u encountered. i think maybe ur kernel configuration about v4l and mutlimedia is not correct.and then cause the kernel haven't the v4l programming interface to user space.

_________________
Desktop:AMD 2800+/DDR400 1G/NF6100+15.4"WXGA/SATA 160G/
OS:Redhat 9 & Fedora 8 & Windows XP

Laptop(LG RD400):Intel T2130/DDRII 1G/GMA 950+14.1"WXGA/
/SATA 120G/wifi 802.11 b/g wireless/
OS:Fedora 8 & Windows XP


Top
 Profile  
 
 Post subject: USB webcam on at91sam9263
PostPosted: Wed Jul 09, 2008 3:58 pm 
Offline

Joined: Fri Mar 21, 2008 1:36 pm
Posts: 7
The problem was v4l API 1 (deprecated) that has to disabled.
Now it works great, especially with my cross-compiled ffmpeg
Thanks and hope this helps someone


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: