Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Multimedia & Video
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Multimedia & Video
Have multimedia question? ATI, Nvidia, Sound cards. Just ask here.

 
Thread Tools Display Modes
Old March 30th, 2008   #1
Sastraxi
5 Cups of Ubuntu
 
Join Date: Oct 2006
My beans are hidden!
em28xx/em2880-dvb (HVR-950) compilation woes.

Hey all,

Upgraded to Hardy, went smooth as silk. Now the only issue remaining (apart from the dreadful power consumption) is to get my Hauppauge HVR-950 working once more.

I attempted the steps described in the infamous lunapark article (http://lunapark6.com/usb-hdtv-tuner-...v-hvr-950.html) but they do not seem to work for Hardy. Specifically...

Code:
cameron@vienna:/lib/firmware/v4l-dvb-experimental$ sudo make
[sudo] password for cameron: 
make -C /lib/firmware/v4l-dvb-experimental/v4l 
make[1]: Entering directory `/lib/firmware/v4l-dvb-experimental/v4l'
creating symbolic links...
make -C /lib/modules/2.6.24-12-generic/build SUBDIRS=/lib/firmware/v4l-dvb-experimental/v4l  modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.24-12-generic'
  CC [M]  /lib/firmware/v4l-dvb-experimental/v4l/flexcop-pci.o
In file included from /lib/firmware/v4l-dvb-experimental/v4l/flexcop-common.h:23,
                 from /lib/firmware/v4l-dvb-experimental/v4l/flexcop-pci.c:10:
/lib/firmware/v4l-dvb-experimental/v4l/dvb_frontend.h:42:33: error: media/v4l_dvb_tuner.h: No such file or directory
In file included from /lib/firmware/v4l-dvb-experimental/v4l/flexcop-common.h:23,
                 from /lib/firmware/v4l-dvb-experimental/v4l/flexcop-pci.c:10:
/lib/firmware/v4l-dvb-experimental/v4l/dvb_frontend.h:165: error: field 'tuner_ops' has incomplete type
make[3]: *** [/lib/firmware/v4l-dvb-experimental/v4l/flexcop-pci.o] Error 1
make[2]: *** [_module_/lib/firmware/v4l-dvb-experimental/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.24-12-generic'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/lib/firmware/v4l-dvb-experimental/v4l'
make: *** [all] Error 2
... I'm not exactly sure where the problem lies. Has anyone gotten this card (and its digital capabilities that work flawlessly in the 2.6.22 kernel, in gutsy OR hardy) working with Hardy and the 2.6.24 kernel?
Sastraxi is offline   Reply With Quote
Old April 5th, 2008   #2
gekkio
5 Cups of Ubuntu
 
gekkio's Avatar
 
Join Date: Nov 2005
Location: Finland
Beans: 23
Ubuntu Karmic Koala (testing)
Re: em28xx/em2880-dvb (HVR-950) compilation woes.

It's a known problem when compiling em28xx with kernels >= 2.6.24.

I managed to get my em2880-dvb working by using this patch from the em28xx mailing list:
http://mcentral.de/pipermail/em28xx/...il/001481.html
It's a very simple Makefile patch, but it worked for me.

Hope it helps!
gekkio is offline   Reply With Quote
Old April 8th, 2008   #3
tuku
First Cup of Ubuntu
 
Join Date: May 2006
Beans: 3
Re: em28xx/em2880-dvb (HVR-950) compilation woes.

I have exactly the same problem. The link does not have the patch anymore, its just has the .obj file.
Where can I find the patch.
thanks
tuku is offline   Reply With Quote
Old April 8th, 2008   #4
gekkio
5 Cups of Ubuntu
 
gekkio's Avatar
 
Join Date: Nov 2005
Location: Finland
Beans: 23
Ubuntu Karmic Koala (testing)
Re: em28xx/em2880-dvb (HVR-950) compilation woes.

The obj file IS the patch file, it's just named weirdly.

Just download the obj file and patch the source with
Code:
patch -p0 < v4l-dvb-kernel-Makefile-2.6.24.obj
gekkio is offline   Reply With Quote
Old April 10th, 2008   #5
GaryAitcheson
First Cup of Ubuntu
 
Join Date: Apr 2008
Beans: 1
Re: em28xx/em2880-dvb (HVR-950) compilation woes.

Many thanks for your help.
GaryAitcheson is offline   Reply With Quote
Old April 14th, 2008   #6
xens
A Carafe of Ubuntu
 
Join Date: Jan 2007
Location: Switzerland
Beans: 107
Re: em28xx/em2880-dvb (HVR-950) compilation woes.

Thanks it solved the problem for me!

I can't figure out why the em28xx driver isn't bundled with hardy, it's been a long time since this driver exists.
xens is offline   Reply With Quote
Old April 24th, 2008   #7
ayellen
First Cup of Ubuntu
 
Join Date: Apr 2008
Beans: 2
Re: em28xx/em2880-dvb (HVR-950) compilation woes.

Could someone please walk me through the specific steps of how to apply this patch?

Thanks.
ayellen is offline   Reply With Quote
Old April 24th, 2008   #8
dkscudder
First Cup of Ubuntu
 
Join Date: Aug 2006
My beans are hidden!
Re: em28xx/em2880-dvb (HVR-950) compilation woes.

I have been wrestling with this problem for several months. I've gotten mine working, so I thought I'd throw my 2 cents in . . .

I'm using Hardy 64. I'm pretty sure the patch mentioned above is already in the hg mcentral.de kernel and experimental repositories so it shouldn't be needed. However, just typing "make" still fails. So instead I type
Code:
make LINUXINCLUDE="-I`pwd`/linux/include -I`pwd`/v4l -Iinclude -include include/linux/autoconf.h"
which compiles nicely.

Then there is installing. If I do "make install" Ubuntu won't boot after the next reboot. It looks like HAL crashes. I'm pretty sure this is a bug that only affects 64 bit systems using kernel 2.6.24. I'm not smart enough to figure out what's going on exactly or how to fix it, so I use an ugly work around. Every time I boot up, I run the following command in a terminal:
Code:
cd /lib/firmware/v4l-dvb-experimental/;sudo make load;sudo /etc/init.d/mythtv-backend restart
and BANG -- It works like a charm. Obviously the last part isn't necessary if you don't use myth.

If someone knows of a better way I'm all ears. Hopefully these bugs will be fixed soon at the code level.
dkscudder is offline   Reply With Quote
Old April 25th, 2008   #9
bawilson2
A Carafe of Ubuntu
 
Join Date: Feb 2007
Beans: 96
Re: em28xx/em2880-dvb (HVR-950) compilation woes.

Quote:
Originally Posted by dkscudder View Post
I have been wrestling with this problem for several months. I've gotten mine working, so I thought I'd throw my 2 cents in . . .

I'm using Hardy 64. I'm pretty sure the patch mentioned above is already in the hg mcentral.de kernel and experimental repositories so it shouldn't be needed. However, just typing "make" still fails. So instead I type
Code:
make LINUXINCLUDE="-I`pwd`/linux/include -I`pwd`/v4l -Iinclude -include include/linux/autoconf.h"
which compiles nicely.

Then there is installing. If I do "make install" Ubuntu won't boot after the next reboot. It looks like HAL crashes. I'm pretty sure this is a bug that only affects 64 bit systems using kernel 2.6.24. I'm not smart enough to figure out what's going on exactly or how to fix it, so I use an ugly work around. Every time I boot up, I run the following command in a terminal:
Code:
cd /lib/firmware/v4l-dvb-experimental/;sudo make load;sudo /etc/init.d/mythtv-backend restart
and BANG -- It works like a charm. Obviously the last part isn't necessary if you don't use myth.

If someone knows of a better way I'm all ears. Hopefully these bugs will be fixed soon at the code level.
I'd like to second a request for help here. I tried and couldn't get things working either with the same setup. I've given up and switched back to 7.10 but would love to move up to 8.04 if somebody were able to figure this one out.
bawilson2 is offline   Reply With Quote
Old April 26th, 2008   #10
gekkio
5 Cups of Ubuntu
 
gekkio's Avatar
 
Join Date: Nov 2005
Location: Finland
Beans: 23
Ubuntu Karmic Koala (testing)
Re: em28xx/em2880-dvb (HVR-950) compilation woes.

Quote:
Originally Posted by dkscudder View Post
I'm using Hardy 64. I'm pretty sure the patch mentioned above is already in the hg mcentral.de kernel and experimental repositories so it shouldn't be needed. However, just typing "make" still fails.
It's not there yet, so I recommend that you use the patch on the mailing list. The patch fiddles with include directories, so it might just do the same things you're doing but I urge you to use the patch just to be sure.

Quote:
Originally Posted by ayellen View Post
Could someone please walk me through the specific steps of how to apply this patch?
Here are the exact steps to install the driver on Hardy (works on my 64-bit installation, should work on 32-bit too):
Code:
hg clone http://mcentral.de/hg/~mrec/v4l-dvb-experimental
cd v4l-dvb-experimental
wget http://mcentral.de/pipermail/em28xx/attachments/20080402/b43e9afe/v4l-dvb-kernel-Makefile-2.6.24.obj
patch -p0 < v4l-dvb-kernel-Makefile-2.6.24.obj
make
sudo make install
+ install firmware using instructions from http://mcentral.de/wiki/index.php5/Em2880#Installation
And reboot.

Quote:
Originally Posted by dkscudder View Post
Then there is installing. If I do "make install" Ubuntu won't boot after the next reboot. It looks like HAL crashes. I'm pretty sure this is a bug that only affects 64 bit systems using kernel 2.6.24.
I assume your card is a USB DVB-T card. Does your system crash when it is not plugged in and you boot into Ubuntu?
Also, please note that this driver will break other v4l drivers (for example, my webcam's uvcvideo driver which is bundled in linux-ubuntu-modules-... package), so if you have a webcam or other potential v4l devices, you could try unplugging them.
I'm using Hardy 64-bit and the drivers works for me so there must be something specific in your system that causes the problems. I'll gladly help with isolating the problem.
gekkio is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:47 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry