Hello everyone,
I am trying to compile a uvc driver for my Embedded ARM TS-7800 and I have a few questions. First of all I am trying to cross compile on my suse pc and the board runs Debian. I got the uvc driver here
http://linux-uvc.berlios.de/
and I am using the cross tool
ts7800-crosstool-linux-gnueabi-2005q3-2. I also have the kernel source
linux-2.6.21-ts-src-latest. I have extracted all of these in the same
directory. I do the command
ben@linux-pruk:/uvcvideo-553dfd853cba> make
CROSS_COMPILE=arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-
and I get this:
make -C /uvcvideo-553dfd853cba/v4l
make[1]: Entering directory `/uvcvideo-553dfd853cba/v4l'
Updating/Creating .config
Preparing to compile for kernel version 2.6.31
File not found: /lib/modules/2.6.31.12-0.2-default/build/.config at
./scripts/make_kconfig.pl line 32, <IN> line 4.
make[1]: *** No rule to make target `.myconfig', needed by `config-compat.h'.
Stop.
make[1]: Leaving directory `/uvcvideo-553dfd853cba/v4l'
make: *** [all] Error 2
It is trying to make it for 2.6.31 (kernel on suse box)and I am not sure how to get it to make for the TS-7800's kernl 2.6.21. Do I need to change something in the makefile to point to the kernel source? If so what would need to be changed?
In that uvc tar file there is a lot of documentation that I have read but it is still not really clear what I need to do. There is also v4l2-apps, v4l, media-specs, v4l_experimental, and linux in the uvc tar. The uvc source files are in the directory linux/drivers/media/video/uvc. Do I just need compile this or do I need to compile everything from the uvcvideo-553dfd853cba directory?
Does anyone know what I am doing wrong? Sorry if it is
something simple I am new to linux and I have never cross compiled anything before. I have been doing research on cross compiling but it is not very clear to me what I need to do. If anyone could help me out I would really appreciate
it.
Thanks,
Neil