10 moons ut340linux driver compilation and Installation Method

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.