From http://linuxtv.org/downloads/drivers/
Download the source code, which is divided into versions by time. Generally, the latest version is selected. I chose 2012-7-25 and the address is
Http://linuxtv.org/downloads/drivers/linux-media-2012-07-25.tar.bz2
Put it in the/home/musictom/downloads/driver directory
Tar-xvf/home/musictom/downloads/driver/Linux-media-2012-07-25.tar.bz2
Open terminal, CD/home/musictom
Make-C/lib/modules/3.2.0-23-generic/build M =/home/musictom/downloads/driver/Drivers/Media/Video/tm6000/modules
The source code of the driver of my TV card is put in the tm6000 directory,
-C =/lib/modules/3.2.0-23-generic/build indicates that the directory of the system driver is entered during compilation,
M = indicates the source code directory of the compiled driver
During compilation, an error is reported because the header file cannot be found. Open the/home/musictom/downloads/driver/Drivers/Media/Video/tm6000/MAKEFILE file and modify the file.
Ccflags-Y: =-idriver/Drivers/Media/Video:
Ccflags-Y: =-I/home/musictom/driver/Drivers/Media/video
Because the original relative path is used, now it is changed to absolute path,
As follows:
Ccflags-Y: =-I/home/musictom/driver/Drivers/Media/video
Ccflags-y + =-I/home/musictom/driver/Drivers/Media/common/tuners
Ccflags-y + =-I/home/musictom/driver/Drivers/Media/DVB-core
Ccflags-y + =-I/home/musictom/driver/Drivers/Media/DVB/frontends
Ccflags-y + =-I/home/musictom/downloads/driver/Drivers/Media/DVB-core/
Ccflags-y + =-I/home/musictom/downloads/driver/Drivers/Media/common/tuners
Ccflags-y + =-I/home/musictom/downloads/driver/Drivers/include/
Ccflags-y + =-I/home/musictom/downloads/driver/include/Media/
Ccflags-y + =-I/home/musictom/downloads/driver/Drivers/Media/DVB/frontends/
Tm6000-video.c
# Include
Make again to load the driver.
Insmod hello. Ko
Uninstall driver
Rmmod hello