* update gspca driver in linux source tree
@ 2010-04-04 18:47 rath
2010-04-05 8:44 ` Hans de Goede
0 siblings, 1 reply; 3+ messages in thread
From: rath @ 2010-04-04 18:47 UTC (permalink / raw)
To: linux-media
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: update gspca driver in linux source tree
2010-04-04 18:47 update gspca driver in linux source tree rath
@ 2010-04-05 8:44 ` Hans de Goede
2010-04-05 10:02 ` rath
0 siblings, 1 reply; 3+ messages in thread
From: Hans de Goede @ 2010-04-05 8:44 UTC (permalink / raw)
To: rath; +Cc: linux-media
Hi,
On 04/04/2010 08:47 PM, rath wrote:
> 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?
>
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: update gspca driver in linux source tree
2010-04-05 8:44 ` Hans de Goede
@ 2010-04-05 10:02 ` rath
0 siblings, 0 replies; 3+ messages in thread
From: rath @ 2010-04-05 10:02 UTC (permalink / raw)
To: Hans de Goede; +Cc: linux-media
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
> 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
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-04-05 10:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-04 18:47 update gspca driver in linux source tree rath
2010-04-05 8:44 ` Hans de Goede
2010-04-05 10:02 ` rath
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox