You are not logged in.

#1 2011-03-11 11:50:22

craagmeister
Member
Registered: 2011-03-11
Posts: 3

Compiling Modified Kernel Module

Hi,

I want to recompile the cx231xx USB tv capture card driver to include a small modification to the driver code. This driver can be found in src/drivers/media/video/cx231xx

Is there any way I can grab the current v4l source tree for arch and compile it?

I have tried compiling a custom kernel with the source code modified after the download/patching but it aborts the compile halfway through. This is time-consuming as my laptop takes 3 hours to get to the abort...

I previously built and installed my own v4l-tree on Ubuntu to use this modification (enables output instead of blue screen with no sync signal). However the source tree I used does not compile with the newer kernel in arch.

Thanks,
Phil

Offline

#2 2011-03-11 13:12:30

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Compiling Modified Kernel Module

Isn't V4L part of the kernel already?

And did you try this?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2011-03-11 14:19:20

craagmeister
Member
Registered: 2011-03-11
Posts: 3

Re: Compiling Modified Kernel Module

It is part of the kernel already, but I need to modify the driver to enable the output. (I use it with Amateur Television Receivers.)

I have tried several of methods, but none seem to work:

I installed the kernel26-headers, so have a tree at /usr/src/linux-2.6.37-ARCH/

I put a Makefile in /usr/src/linux-2.6.37-ARCH/drivers/media/video/cx231xx/Makefile:

--EDIT: There are no code files in the module directory, where do I get these??

obj-m = cx231xx.o
KVERSION = $(shell uname -r)
all:
        make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
clean:
        make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean

and now I try:

[root@#blanked# linux-2.6.37-ARCH]# make M=drivers/media/video/cx231xx/
make[1]: *** No rule to make target `drivers/media/video/cx231xx/cx231xx.c', needed by `drivers/media/video/cx231xx/cx231xx.o'.  Stop.
make: *** [_module_drivers/media/video/cx231xx] Error 2

Last edited by craagmeister (2011-03-11 14:21:58)

Offline

Board footer

Powered by FluxBB