Saturday, November 11, 2006

Cross-compiling the QuickCam web cam module

Here are the steps needed to build the QuickCam web cam module for the TS-7260. Cross-compilation occurred on a stock 32-bit Fedora Core 4 system. These steps are also useful for those wanting to compile a kernel for the TS-7260.

1) Download the ARM crosstools hosted at technologics. Links are available here:

http://www.embeddedarm.com/linux/ARM.htm

Documentation I used to build the kernel, excellent I might add, was found here:

http://www.embeddedarm.com/Manuals/linuxarm-guide-rev2.0.pdf

Section 6 of the above manual describes how to build the kernel.

I downloaded ftp://ftp.embeddedarm.com/ts-arm-linux-cd/cross-toolchains/crosstool-linux-gcc-3.3.4-glibc-2.3.2-0.28rc39.tar.bz2

2) Unpack the thing, and copy it, as root, to /

3) Grab the Linux kernel sources, also from technologics. I grabbed ts11, because running uname on the board indicated the kernel version is 2.4.26-ts11. Here is the link:

A UI will display, this can be used to set configuration parameters needed to build the videodev.o kernel module.

In this UI, traverse down to the Multimedia devices section, open it up by hitting return, and then configure Video For Linux as shown in the figures (make sure a M is displayed). See the figures for details.

Exit, and save menuconfig

9) Type make dep

10) Type make vmlinux

11) Type make modules

12) If all goes well, you can then do a "find . -name videodev.o -print" and locate the videodev.o module. FTP it over to the 7260, and then run insmod:

$ insmod videodev.o

If successful, the videodev module, needed by QuickCam, will be installed.

Next step is to get the sources for the quickcam module, and compile them:

2 Comments:

root@ts7000:linux24# make ts7200_configmake: Warning: File `Rules.make' has modification time 1.1e+09 s in the future*** Default configuration for ts7200 installed*** Next, you may run 'make oldconfig'make: warning: Clock skew detected. Your build may be incomplete.root@ts7000:linux24#