[pxc] A couple issues.
Sun May 30 12:33:33 CEST 2004
I installed the PXC200 snapshot 040303 driver on RedHat 8.0 running Linux kernel 2.4.20-20.8 and gcc 3.2. I'm not going to claim not I understand the steps I took to get to the point I'm at.
I first encountered a compilation problem in the dma.c file:
dma.c:348: too few arguments to function `remap_page_range'
Searching around on google found a similar problem and patch at: http://www.cs.helsinki.fi/linux/linux-kernel/2002-03/1263.html.
I changed line 358 of dma.c from
if (remap_page_range(vma->vm_start, physical, vsize, vma->vm_page_prot))
if (remap_page_range(vma, vma->vm_start, physical, vsize, vma->vm_page_prot))
based on the aforementioned patch. The compilation then managed to finish. I also noticed that on another linux machine running Linux 2.4.7-10 and RedHat 7.3, remap_page_range in mm.h does indeed have one fewer argument:
2.4.7-10, mm.h.440: extern int remap_page_range(unsigned long from, unsigned long to, unsigned long size, pgprot_t prot);
2.4.20, mm.h:577: extern int remap_page_range(struct vm_area_struct *vma, unsigned long from, unsigned long to, unsigned long size, pgprot_t prot);
After configuring my kernel's memory usage to open 5MB of memory and loading the module, I tried to run pxc_xgrab. The produced video image is only horizontal lines of gibberish. The steps I took to try to fix this are:
1.) Verified IRQ correlation between /proc/pci and /proc/interrupts. Initially, the PXC200 was sharing an IRQ with the USB bus, and didn't show up in /proc/interrupts. I tried moving it to a different PCI slot and it then showed up on its own interrupt in /proc/interrupts. The PXC200 now shows up in /proc/interrupts, and has the same IRQ in each file.
2.) Tried a different PXC200.
3.) Tried using pxc_control to change the video format, and the mux.
4.) Tried it with and without the camera connected.
5.) Compiled, installed, and susequently uninstalled pacco.
None of these had any effect. Any further ideas?
Michael J. Belisle
Arizona State University
Flight Research Center
More information about the pxc