can we build external module with generic header?

vichy vichy.kuo at gmail.com
Fri Feb 19 07:48:31 UTC 2010


Dear all:
I use Ubuntu 9.10 with kernel 2.6.31.19 and I try to build
drivers/media/video in 2.6.31.12 with kernel header 2.6.31.19 that I
apt-get intall from web.
( I successfully build  drivers/media/video in 2.6.31.12 source code.
But I find the insmod told me the version is wrong.
So I rebuild it with kernel header 2.6.31.19)
My questions are:
1. I got the error message below when compiling:
 CC [M]  /media/sdb1/software/linux/linux-2.6.31.12/drivers/media/video/tuner-core.o
/media/sdb1/software/linux/linux-2.6.31.12/drivers/media/video/tuner-core.c:24:20:
error: mt20xx.h: No such file or directory

the problem comes from in 2.6.31.19/drivers/media/common, there is
header files as mt20xx.h that tuner-core.c need.
But these header files really exist under source code.

Does that mean all the generic headers I apt-get from web will not
include these headers I need?
if so, what I should do next?
(get complete source code of 2.6.31.19 from kernel.org? But I cannot
see this version there.
Could I use git to get this specific version?)
thanks your help in advance,
vichy




More information about the ubuntu-users mailing list