0

I have upgraded to Kubuntu 14.04 from 13.10 today. I found that my third party webcam packages were deleted during upgrade. I was using linuxtv drivers, so I followed the instructions given on this page.

I executed following commands in terminal

git clone git://linuxtv.org/media_build.git 
cd media_build
./build

The following is the output of executing ./build:

Checking if the needed tools for Ubuntu 14.04 LTS are available
Needed package dependencies are met.

************************************************************
* This script will download the latest tarball and build it*
* Assuming that your kernel is compatible with the latest  *
* drivers. If not, you'll need to add some extra backports,*
* ./backports/<kernel> directory.                          *
* It will also update this tree to be sure that all compat *
* bits are there, to avoid compilation failures            *
************************************************************

* All drivers and build system are under GPLv2 License     *
* Firmware files are under the license terms found at:     *
* http://www.linuxtv.org/downloads/firmware/               *
* Please abort in the next 5 secs if you don't agree with  *
* the license                                              *
************************************************************

Not aborted. It means that the licence was agreed. Proceeding...

****************************
Updating the building system
****************************
From git://linuxtv.org/media_build
* branch            master     -> FETCH_HEAD
Already up-to-date.
make: Entering directory `/tmp/media_build/linux'
wget http://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5 -O linux-media.tar.bz2.md5.tmp
--2014-04-18 07:10:34--  http://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5
Resolving linuxtv.org (linuxtv.org)... 130.149.80.248
Connecting to linuxtv.org (linuxtv.org)|130.149.80.248|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 101 [application/x-bzip2]
Saving to: ‘linux-media.tar.bz2.md5.tmp’

100%[====================================================>] 101         --.-K/s   in 0s      

2014-04-18 07:10:34 (5.67 MB/s) - ‘linux-media.tar.bz2.md5.tmp’ saved [101/101]

make: Leaving directory `/tmp/media_build/linux'
make: Entering directory `/tmp/media_build/linux'
tar xfj linux-media.tar.bz2
rm -f .patches_applied .linked_dir .git_log.md5
make: Leaving directory `/tmp/media_build/linux'
**********************************************************
* Downloading firmwares from linuxtv.org.                *
**********************************************************
dvb-fe-bcm3510-01.fw
dvb-fe-or51132-qam.fw
dvb-fe-or51132-vsb.fw
dvb-fe-or51211.fw
dvb-fe-xc5000-1.6.114.fw
dvb-ttpci-01.fw-261a
dvb-ttpci-01.fw-261b
dvb-ttpci-01.fw-261c
dvb-ttpci-01.fw-261d
dvb-ttpci-01.fw-261f
dvb-ttpci-01.fw-2622
dvb-usb-avertv-a800-02.fw
dvb-usb-bluebird-01.fw
dvb-usb-dib0700-1.20.fw
dvb-usb-dibusb-5.0.0.11.fw
dvb-usb-dibusb-6.0.0.8.fw
dvb-usb-dtt200u-01.fw
dvb-usb-terratec-h5-drxk.fw
dvb-usb-terratec-h7-az6007.fw
dvb-usb-terratec-h7-drxk.fw
dvb-usb-umt-010-02.fw
dvb-usb-vp702x-01.fw
dvb-usb-vp7045-01.fw
dvb-usb-wt220u-01.fw
dvb-usb-wt220u-02.fw
v4l-cx231xx-avcore-01.fw
v4l-cx23418-apu.fw
v4l-cx23418-cpu.fw
v4l-cx23418-dig.fw
v4l-cx23885-avcore-01.fw
v4l-cx23885-enc.fw
v4l-cx25840.fw
******************
* Start building *
******************
make -C /tmp/media_build/v4l allyesconfig
make[1]: Entering directory `/tmp/media_build/v4l'
make[2]: Entering directory `/tmp/media_build/linux'
Applying patches for kernel 3.13.0-24-generic
patch -s -f -N -p1 -i ../backports/api_version.patch
patch -s -f -N -p1 -i ../backports/pr_fmt.patch
The text leading up to this was:
--------------------------
|diff --git a/drivers/media/usb/gspca/dtcs033.c b/drivers/media/usb/gspca/dtcs033.c
|index 5e42c71..ba01a3e 100644
|--- a/drivers/media/usb/gspca/dtcs033.c
|+++ b/drivers/media/usb/gspca/dtcs033.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
make[2]: *** [apply_patches] Error 1
make[2]: Leaving directory `/tmp/media_build/linux'
make[1]: *** [allyesconfig] Error 2
make[1]: Leaving directory `/tmp/media_build/v4l'
make: *** [allyesconfig] Error 2
can't select all drivers at ./build line 490.

I don't really know how to proceed from this point. If someone have solution to this problem kindly let me know.

1
1

I managed to convince the build to go forward. It seems to compile fine so far... fingers crossed...

Here's what I did: I opened backports/pr_fmt.patch, remove everything following diff --git a/drivers/media/usb/gspca/dtcs033.c, then ran build again.

patch -p1 <<EOF
diff --git a/backports/pr_fmt.patch b/backports/pr_fmt.patch
index d13d516..edc698f 100644
--- a/backports/pr_fmt.patch
+++ b/backports/pr_fmt.patch
@@ -1174,15 +1174,3 @@ index a99040b..8ff1ed7 100644
  #define pr_fmt(fmt) KBUILD_MODNAME ":%s: " fmt, __func__

  #include <linux/module.h>
-diff --git a/drivers/media/usb/gspca/dtcs033.c b/drivers/media/usb/gspca/dtcs033.c
-index 5e42c71..ba01a3e 100644
---- a/drivers/media/usb/gspca/dtcs033.c
-+++ b/drivers/media/usb/gspca/dtcs033.c
-@@ -14,6 +14,7 @@
-  * GNU General Public License for more details.
-  */
-
-+#undef pr_fmt
- #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
- #define MODULE_NAME "dtcs033"
- #include "gspca.h"
EOF

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.