update gspca driver in linux source tree
Hi,
I have a 2.6.29 kernel for my embedded ARM system. I need an newer gspca driver, so I downloaded the gspca driver from http://linuxtv.org/hg/~hgoede/gspca/ an copied the content of the linux folder to my 2.6.29 source tree and tried to cross compile it. But I get the error "drivers/media/IR/irfunctions.c:27:20: error: compat.h: No such file or directory". Where can I find the missing file and where I have to put it in my linux tree?
Do you have some other ideas to cross compile the gspca driver?
Regards, Joern
Hi,
Quoted 10 lines · rath
Hi,
I have a 2.6.29 kernel for my embedded ARM system. I need an newer gspca driver, so I downloaded the gspca driver from
http://linuxtv.org/hg/~hgoede/gspca/ an copied the content of the linux folder to my 2.6.29 source tree and tried to cross compile it. But I get the error "drivers/media/IR/irfunctions.c:27:20: error:compat.h: No such file or directory". Where can I find the missing file and where I have to put it in my linux tree?
Quoted 2 lines
Do you have some other ideas to cross compile the gspca driver?
The hg v4l-dvb trees are meant for out of tree compilation (this means your v4l subsystem must be compiled modular).
You will want to not use my tree, but use the latest generic tree:
hg clone http://linuxtv.org/hg/v4l-dvb/
Then simply compile that tree (this will need the headers of your 2.6.29 kernel in the usual place):
cd v4l-dvb
make menuconfig
make
sudo make install
And then reboot, now you will be using your 2.9.29 kernel with a fully up2date v4l-dvb subsystem.
Regards,
Hans
The problem with all the trees (http://linuxtv.org/hg/v4l-dvb/ and http://linuxtv.org/hg/v4l-dvb/) are the used perl scripts to build the makefile. They use "uname -r" to get the kernel version and they use directories like "/lib/modules" as default. Now, I try to cross compile the tree on my ubuntu machine for an ARM embedded system. The arm kernel tree is under a different path than "/lib/modules/xxxx/build" and "uname -r" returns the kernel version of my local machine. So the drivers don't get properly compiled.
After some changes in the perl scripts I was able to cross compile the drivers for my ARM linux system. I have already tried it some weeks before, but at that time I had no succes. For this reason I tried it by copying the driver sources into my ARM kernel tree. Now it works for me.
I have still one question: Where can I find the ".config" file in the linux tree after "make menuconfig"?
Regards, Joern
Quoted 20 lines
You will want to not use my tree, but use the latest generic tree:
hg clone http://linuxtv.org/hg/v4l-dvb/
Then simply compile that tree (this will need the headers of your 2.6.29 kernel in the usual place):
cd v4l-dvb
make menuconfig
make
sudo make installAnd then reboot, now you will be using your 2.9.29 kernel with a fully up2date v4l-dvb subsystem.
Regards,
Hans
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html