Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HDPVR and VDPAU support in MythTV-0.21
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
mobian
n00b
n00b


Joined: 17 Dec 2004
Posts: 72

PostPosted: Sat Feb 14, 2009 9:35 pm    Post subject: HDPVR and VDPAU support in MythTV-0.21 Reply with quote

I've created an ebuild along with many patches to add support for the new Hauppauge HDPVR. This in an analog device allowing recording of HD content up to 1080i. You can read about the device here: http://www.hauppauge.com/site/products/data_hdpvr.html. It can be ordered at a pretty great price on Newegg. The ebuild I wrote also adds support for VDPAU and other OpenGL playback enhancements for MythTV-0.21. If you haven't heard about VDPAU support, you should look into it, it makes a HUGE difference in playing back h.264 encoded video.

Anyhow, here's a link to the bug I filed for the new ebuild along with all the patches:

https://bugs.gentoo.org/show_bug.cgi?id=259009

Quick and dirty HOWTO:

1. Create a local overlay with path media-tv/mythtv, e.g:

Code:
mkdir -p /usr/portage/local/overlay/media-tv/mythtv/files


2. Add that overlay to your make.conf, as in:

Code:
echo "PORTDIR_OVERLAY=/usr/portage/local/overlay" >> /etc/make.conf


3. Now, copy the ebuild from above into /usr/portage/local/overlay/media-tv/mythtv with name mythtv-0.21_p19983-r2.ebuild

4. Copy all the patches in the above bug into the files directory you created above.

5. Now, build the digest for the ebuild:

Code:
ebuild /usr/portage/local/overlay/media-tv/mythtv/mythtv-0.21_p19983-r2.ebuild digest


6. Now install:

Code:
emerge mythtv


Good luck, let me know if you have any questions or problems. It works awesome on my system.
Back to top
View user's profile Send private message
iamwill
n00b
n00b


Joined: 31 Dec 2007
Posts: 48

PostPosted: Sun May 10, 2009 8:43 pm    Post subject: Reply with quote

one question... which module are you loading to get the box to work..... i am having trouble with this...

i pulled v4l-dvb-hg, but I don't think that it likes kernel 2.6.28-gentoo-r5

here are my specs.... any suggestions?

localhost ~ # emerge --info
Portage 2.1.6.11 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.28-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-glibc2.2.5
Timestamp of tree: Sun, 10 May 2009 13:45:01 +0000
app-shells/bash: 3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python: 2.5.4-r2
dev-util/cmake: 2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.13, 2.63
sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -mtune=k8 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -mtune=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg collision-protect digest distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib alsa amd64 apache2 apm arts audiofile bash-completion berkdb bindist branding bzip2 cdb cddb cdparanoia cdr cli compizconfig-backend-kconfig cracklib crypt css cups curl custom-cflags daap dbus dga dri dts dvb exif expat fam ffmpeg fftw firefox flac gdbm gif glitz gnutls gpm gstreamer hal iconv ieee1394 imlib imlib2 ipod isdnlog ithreads ivtv java joystick jpeg kde latin1 lcms libcaca lirc lm_sensors mad mdnsresponder-compat midi mmx mmxext mp3 mpeg mudflap multilib mysql ncurses network nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png posix pppd python qt qt3 qt4 readline reflection rss samba sdl server session sndfile speex spl sqlite sse sse2 sse3 ssl svg sysfs theora threads tiff transcode truetype type1 unicode usb v4l vcd vorbis wifi wma x264 xcomposite xine xinerama xml xml2 xorg xscreensaver xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" LIRC_DEVICES="serial sir devinput" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
mobian
n00b
n00b


Joined: 17 Dec 2004
Posts: 72

PostPosted: Sun May 10, 2009 9:42 pm    Post subject: Reply with quote

You have to build the HD-PVR module from source and then install it. The module is named, aptly enough, hdpvr :). The instructions on building from source are here:

http://www.mythtv.org/wiki/Hauppauge_HD-PVR

Specifically:

Code:

emerge mercurial
hg clone http://linuxtv.org/hg/v4l-dvb
cd v4l-dvb
make
make install


If compilation and installation succeeded, it should be possible to load the HD-PVR driver with:

Code:

modprobe hdpvr


As for the kernel version, I built mine against 2.6.27-gentoo-r10. I don't have any experience using it on your kernel version. Do you get errors while trying to build it or modprobe it ?
Back to top
View user's profile Send private message
iamwill
n00b
n00b


Joined: 31 Dec 2007
Posts: 48

PostPosted: Sun May 10, 2009 9:54 pm    Post subject: Reply with quote

yes, i am not sure that it is going to work 2.6.28 yet... i am going down to your version to see if that is the problem now

thanks
Back to top
View user's profile Send private message
iamwill
n00b
n00b


Joined: 31 Dec 2007
Posts: 48

PostPosted: Sun May 10, 2009 10:07 pm    Post subject: Reply with quote

btw, can you please post your emerge --sync?? would like to see what your running....... (sandbox, gcc, etc)
Back to top
View user's profile Send private message
mobian
n00b
n00b


Joined: 17 Dec 2004
Posts: 72

PostPosted: Sun May 10, 2009 10:09 pm    Post subject: Reply with quote

I assume you meant "emerge --info" :

Code:

# emerge --info
Portage 2.2_rc33 (!/home/public/gentoo/desktop/etc/profile/, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r10 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r10-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-glibc2.2.5
Timestamp of tree: Sat, 09 May 2009 04:30:18 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.8.5-r3, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fforce-addr -mmmx -msse2 -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /home/mythtv/"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe -fforce-addr -mmmx -msse2 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--usepkg"
FEATURES="ccache collision-protect distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://mirror.datapipe.net/gentoo ftp://mirror.datapipe.net/gentoo ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages/desktop"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac acl acpi aim alsa amarok amazon amd64 ao avahi bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cli cpudetection cracklib crypt css cups dbdnav dbus dga directv divx djvu dri dts dv dvd dvdr dvdread eds emacs embedded emboss emerald encode evo exif fam fbsplash ffmpeg firefox flac foomaticdb fortran gdbm gif gimp gimpprint glitz gmail gmedia gnome gphoto2 gpm gs gstreamer gtk hal iconv imagemagick imap imlib imlib2 ipod irc isdnlog jabber java jikes jingle joystick jpeg jpeg2k kdeprefix kipi kqemu lcms ldap libnotify live lm_sensors mad maildir matroska mdnsresponder-compat meanwhile midi mikmod mjpeg mmx mmxext mono mp3 mp4 mpeg mpeg2 mplayer msn mudflap multilib musepack music musicbrainz mysql nautilus ncurses net nfconntrack nfs nls nocd nowin nptl nptlonly nsplugin nvidia offensive ofx ogg openal openexr opengl openmp opensslcrypt pam pcre pdf perl php pidgin plugins png portage postgres ppds pppd python qt3support quicktime quotes rar raw rdesktop readline realmedia reflection reiserfs rtc scanner sdl sensord server session slang slp smp sms sound speex spell spl sqlite sse sse2 ssl ssse3 startup-notification stream subtitles svg sysfs tcpd themes theora threads threadsafe thumbnail tiff tk transcode trayicon truetype unicode usb utempter vcd vdpau videos vim vim-pager vim-syntax vim-with-x visualization vnc vorbis wavpack webkit wma wmf wmp wxwindows x264 xcb xcomposite xface xfs xine xinerama xml xorg xprint xscreensaver xulrunner xv xvid xvmc yahoo zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
EzInKy
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1742
Location: Kentucky

PostPosted: Sun May 10, 2009 10:12 pm    Post subject: Reply with quote

I've used the hdpvr module from 2.6.27 to 2.6.30 and have no problem building it. I did have to make a few tweaks to get it work well though, such as making spdif the default audio input and AC3 the default audio codec. I also wrote a little command line program to record that restarts the device anytime there is a pause in the data input, which not only occurs when changing channels but also when a station changes audio output. Oh, and it is in the V4L trunk now.
_________________
Time is what keeps everything from happening all at once.
Back to top
View user's profile Send private message
mobian
n00b
n00b


Joined: 17 Dec 2004
Posts: 72

PostPosted: Sun May 10, 2009 10:14 pm    Post subject: Reply with quote

Interesting. I haven't really had many problems with it. Maybe once or twice in the last few months it seemed to lock up (driver support is still very beta, so it doesn't really bother me). Had to turn off the HD-PVR and reboot the machine to get things going again. Though I have 2 HD-PVRs set up and am recording more often than I'm not, so that's a lot of use... :).
Back to top
View user's profile Send private message
EzInKy
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1742
Location: Kentucky

PostPosted: Sun May 10, 2009 10:33 pm    Post subject: Reply with quote

mobian wrote:
Interesting. I haven't really had many problems with it. Maybe once or twice in the last few months it seemed to lock up (driver support is still very beta, so it doesn't really bother me). Had to turn off the HD-PVR and reboot the machine to get things going again. Though I have 2 HD-PVRs set up and am recording more often than I'm not, so that's a lot of use... :).


For me the machine would go dark when a high def station such as CNN went to a commercial, or when I switched channels when I used it to watch live tv. I had a thread on avsforum if your interested in some of the things I tried.
_________________
Time is what keeps everything from happening all at once.
Back to top
View user's profile Send private message
mobian
n00b
n00b


Joined: 17 Dec 2004
Posts: 72

PostPosted: Sun May 10, 2009 10:52 pm    Post subject: Reply with quote

Wow, that's great, thanks for sending that thread over, pretty cool stuff. I'm pretty happy with the way I have it now, but if I have problems, I definitely may try out what you did.
Back to top
View user's profile Send private message
iamwill
n00b
n00b


Joined: 31 Dec 2007
Posts: 48

PostPosted: Mon May 11, 2009 2:21 am    Post subject: Reply with quote

here is another question about this little guy that has been bothering me, is there a way to have it play live... ie


** CABLE BOX **
|
|
|
**HD-PVR** -------- **PC** (SAME LIVE OUTPUT THAT TV IS GETTING)
|
|
|
**TV**

I know the crappy windoze software offers this feature, but i didnt know if our community has something similar.
Back to top
View user's profile Send private message
iamwill
n00b
n00b


Joined: 31 Dec 2007
Posts: 48

PostPosted: Mon May 11, 2009 2:25 am    Post subject: Reply with quote

Here is the error that I am getting when I try to modprobe

Code:
localhost v4l-dvb # modprobe hdpvr
FATAL: Error inserting hdpvr (/lib/modules/2.6.27-gentoo-r10/kernel/drivers/media/video/hdpvr/hdpvr.ko): Unknown symbol in module, or unknown parameter (see dmesg)


here is the dmesg...
Code:
[ 3195.852575] v4l1_compat: module is already loaded
[ 3195.853999] videodev: exports duplicate symbol video_unregister_device (owned by kernel)
[ 3195.854853] v4l2_common: Unknown symbol v4l2_device_register_subdev
[ 3195.856324] hdpvr: Unknown symbol v4l2_device_disconnect
[ 3195.856416] hdpvr: Unknown symbol v4l2_device_register
[ 3195.856689] hdpvr: Unknown symbol v4l2_device_unregister


I am getting this with both 2.6.27-r10, and 2.6.28-r5 kernel versions..... this error is rendered from both MythTV
mercurial instrctions, and the v4l-dvb-hg package in portage.... listed above is my 'emerge --info'.... i am really at a loss for what is causing this problem... does anyone have any ideas or suggestions?
Back to top
View user's profile Send private message
EzInKy
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1742
Location: Kentucky

PostPosted: Mon May 11, 2009 7:36 am    Post subject: Reply with quote

iamwill wrote:
here is another question about this little guy that has been bothering me, is there a way to have it play live... ie


** CABLE BOX **
|
|
|
**HD-PVR** -------- **PC** (SAME LIVE OUTPUT THAT TV IS GETTING)
|
|
|
**TV**

I know the crappy windoze software offers this feature, but i didnt know if our community has something similar.


Mythtv might have that feature by now, I just use mplayer to play the recording file a few seconds after the recording starts.
_________________
Time is what keeps everything from happening all at once.
Back to top
View user's profile Send private message
EzInKy
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1742
Location: Kentucky

PostPosted: Mon May 11, 2009 7:37 am    Post subject: Reply with quote

iamwill wrote:
Here is the error that I am getting when I try to modprobe

Code:
localhost v4l-dvb # modprobe hdpvr
FATAL: Error inserting hdpvr (/lib/modules/2.6.27-gentoo-r10/kernel/drivers/media/video/hdpvr/hdpvr.ko): Unknown symbol in module, or unknown parameter (see dmesg)


here is the dmesg...
Code:
[ 3195.852575] v4l1_compat: module is already loaded
[ 3195.853999] videodev: exports duplicate symbol video_unregister_device (owned by kernel)
[ 3195.854853] v4l2_common: Unknown symbol v4l2_device_register_subdev
[ 3195.856324] hdpvr: Unknown symbol v4l2_device_disconnect
[ 3195.856416] hdpvr: Unknown symbol v4l2_device_register
[ 3195.856689] hdpvr: Unknown symbol v4l2_device_unregister


I am getting this with both 2.6.27-r10, and 2.6.28-r5 kernel versions..... this error is rendered from both MythTV
mercurial instrctions, and the v4l-dvb-hg package in portage.... listed above is my 'emerge --info'.... i am really at a loss for what is causing this problem... does anyone have any ideas or suggestions?


That error usually means that the module was compiled for a different kernel.
_________________
Time is what keeps everything from happening all at once.
Back to top
View user's profile Send private message
mobian
n00b
n00b


Joined: 17 Dec 2004
Posts: 72

PostPosted: Mon May 11, 2009 11:34 am    Post subject: Reply with quote

I agree with EzInKy. If you had the hdpvr source checked out, tried a build, failed, then switched kernels, this would definitely happened as it happened to me several times before I figured it out. I believe from the 'hdpvr' source directory you can type

Code:
make distclean


If it doesn't work from there, try:

Code:

cd hdpvr/v4l
make distclean


Then try following the build instructions again. If that doesn't work, you can always completely remove the hdpvr source directory and start from scratch.

Let us know how the build goes.
Back to top
View user's profile Send private message
iamwill
n00b
n00b


Joined: 31 Dec 2007
Posts: 48

PostPosted: Mon May 11, 2009 12:28 pm    Post subject: Reply with quote

hrm... not so lucky.... here is the top of the build...

Code:
localhost v4l-dvb # make && make install
make -C /v4l-dvb/v4l
make[1]: Entering directory `/v4l-dvb/v4l'
No version yet, using 2.6.28-gentoo-r5
make[1]: Leaving directory `/v4l-dvb/v4l'
make[1]: Entering directory `/v4l-dvb/v4l'
scripts/make_makefile.pl
Updating/Creating .config
Preparing to compile for kernel version 2.6.28
VIDEO_PXA27x: Requires at least kernel 2.6.29
Created default (all yes) .config file
./scripts/make_myconfig.pl
make[1]: Leaving directory `/v4l-dvb/v4l'
make[1]: Entering directory `/v4l-dvb/v4l'
perl scripts/make_config_compat.pl /lib/modules/2.6.28-gentoo-r5/source ./.myconfig ./config-compat.h
creating symbolic links...
ln -sf . oss
make -C firmware prep
make[2]: Entering directory `/v4l-dvb/v4l/firmware'
make[2]: Leaving directory `/v4l-dvb/v4l/firmware'
make -C firmware
make[2]: Entering directory `/v4l-dvb/v4l/firmware'
  CC  ihex2fw
Generating vicam/firmware.fw
Generating dabusb/firmware.fw
Generating dabusb/bitstream.bin
Generating ttusb-budget/dspbootcode.bin
Generating cpia2/stv0672_vp4.bin
Generating av7110/bootcode.bin
make[2]: Leaving directory `/v4l-dvb/v4l/firmware'
Kernel build directory is /lib/modules/2.6.28-gentoo-r5/build
make -C /lib/modules/2.6.28-gentoo-r5/build SUBDIRS=/v4l-dvb/v4l  modules
make[2]: Entering directory `/usr/src/linux-2.6.28-gentoo-r5'


here is the results again...

Code:
localhost v4l-dvb # modprobe hdpvr
FATAL: Error inserting hdpvr (/lib/modules/2.6.28-gentoo-r5/kernel/drivers/media/video/hdpvr/hdpvr.ko): Unknown symbol in module, or unknown parameter (see dmesg)
localhost v4l-dvb # uname -a
Linux localhost 2.6.28-gentoo-r5 #6 SMP Sun May 10 21:46:18 Local time zone must be set--see zic  x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux
localhost v4l-dvb #




(i also pasted the whole build)
http://pastebin.com/f21e9eded

I am not exactly sure why this is... as you can see, I built it with the right kernel, and all the versions match.. the only thing I see that is weird is that "VIDEO_PXA27x: Requires at least kernel 2.6.29"... I can push forward on kernel versions to see if it will work with a later version, but I am not sure that is going to help. I am still open to suggestions =)

EDIT: I am redoing some stuff to see if this will work....
Code:
localhost linux # make clean && make mrproper && cp ../config .config  && make && make modules_install && emerge -e system
Back to top
View user's profile Send private message
mobian
n00b
n00b


Joined: 17 Dec 2004
Posts: 72

PostPosted: Mon May 11, 2009 1:52 pm    Post subject: Reply with quote

That's odd. I don't think there's any advantage to doing an 'emerge -e system' as it probably has nothing to do with that. What I'm curious about is you said you had previously emerged v4l-dvb-hg. I'm wondering if that is conflicting with the driver you're now trying to install. Note in the dmesg output you had:

Code:

[ 3195.852575] v4l1_compat: module is already loaded
[ 3195.853999] videodev: exports duplicate symbol video_unregister_device (owned by kernel)
[ 3195.854853] v4l2_common: Unknown symbol v4l2_device_register_subdev
[ 3195.856324] hdpvr: Unknown symbol v4l2_device_disconnect
[ 3195.856416] hdpvr: Unknown symbol v4l2_device_register
[ 3195.856689] hdpvr: Unknown symbol v4l2_device_unregister


The key line that's giving me this hint is the "videodev: exports duplicate symbol video_unregister_device". Makes me think you have the same driver installed or something. I'd try removing that first via:

Code:

emerge --unmerge  v4l-dvb-hg


Also, you might do a:

Code:

lsmod | grep hdpvr


To see if maybe it's already been modprobed or something. If so, you probably want to do a rmmod on that module first.

Then I'd try going into the hdpvr source and trying the steps again. Maybe the modprobe will work then. If not, we'll try something else :).
Back to top
View user's profile Send private message
mobian
n00b
n00b


Joined: 17 Dec 2004
Posts: 72

PostPosted: Mon May 11, 2009 1:56 pm    Post subject: Reply with quote

Also, I looked at the pastebin output, and saw lots of warnings like:

Code:

#WARNING: /v4l-dvb/v4l/au8522: 'au8522_attach' exported twice. Previous export was in vmlinux
#WARNING: /v4l-dvb/v4l/dib3000mc: 'dib3000mc_attach' exported twice. Previous export was in vmlinux
#WARNING: /v4l-dvb/v4l/dib3000mc: 'dib3000mc_i2c_enumeration' exported twice. Previous export was in vmlinux
#WARNING: /v4l-dvb/v4l/dib3000mc: 'dib3000mc_set_config' exported twice. Previous export was in vmlinux


It looks like those things may already be built into your kernel. Did you recompile a custom kernel, or are you just using genkernel ? If you did a custom compile, it may be that the stuff you built into the kernel is causing it to get confused when it tries to insert the module....
Back to top
View user's profile Send private message
iamwill
n00b
n00b


Joined: 31 Dec 2007
Posts: 48

PostPosted: Mon May 11, 2009 2:01 pm    Post subject: Reply with quote

i am not using genkernel or a custom kernel... just the standard gentoo-sources from portage.. =(

Hopefully though, whats running now should fix this problem...

Quote:

EDIT: I am redoing some stuff to see if this will work....

Code:
localhost linux # make clean && make mrproper && cp ../config .config  && make && make modules_install && emerge -e system
Back to top
View user's profile Send private message
mobian
n00b
n00b


Joined: 17 Dec 2004
Posts: 72

PostPosted: Mon May 11, 2009 2:04 pm    Post subject: Reply with quote

well let us know how it goes when it's done... hopefully it fixes things for you.
Back to top
View user's profile Send private message
iamwill
n00b
n00b


Joined: 31 Dec 2007
Posts: 48

PostPosted: Tue May 12, 2009 1:38 am    Post subject: Reply with quote

I am really at a loss... here is what I have done thus far...

- I realized I had problems with my linux-headers not matching my kernel... so I advanced all to the same 2.6.29...
- some libraries were broken according to revdep-rebuild, so i fixed them (libavc1394)
- after revdep-rebuild, i built the custom mythtv overlay listed above...
- after mythtv, i pulled the v4l drivers above, and now....

Code:
localhost ~ # modprobe hdpvr
FATAL: Error inserting hdpvr (/lib/modules/2.6.29-gentoo-r3/kernel/drivers/media/video/hdpvr/hdpvr.ko): Unknown symbol in module, or unknown parameter (see dmesg)


and dmesg...

Code:
[ 2667.599692] v4l2_compat_ioctl32: exports duplicate symbol v4l2_compat_ioctl32 (owned by kernel)
[ 2667.600043] v4l1_compat: module is already loaded
[ 2667.601679] videodev: exports duplicate symbol video_unregister_device (owned by kernel)
[ 2667.602518] v4l2_common: exports duplicate symbol v4l2_chip_ident_i2c_client (owned by kernel)
[ 2667.604365] hdpvr: Unknown symbol v4l2_device_disconnect
[ 2773.625276] v4l2_compat_ioctl32: exports duplicate symbol v4l2_compat_ioctl32 (owned by kernel)
[ 2773.625622] v4l1_compat: module is already loaded
[ 2773.626883] videodev: exports duplicate symbol video_unregister_device (owned by kernel)
[ 2773.628095] v4l2_common: exports duplicate symbol v4l2_chip_ident_i2c_client (owned by kernel)
[ 2773.629833] hdpvr: Unknown symbol v4l2_device_disconnect


do i need to turn off ALL v4l* in the kernel?


(here is my emerge --info)
Code:
localhost ~ # emerge --info
Portage 2.1.6.11 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r3-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-glibc2.2.5
Timestamp of tree: Mon, 11 May 2009 12:45:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -mtune=k8 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -mtune=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg collision-protect digest distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/layman /usr/local/portage/layman/sunrise"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib alsa amd64 apache2 apm arts audiofile bash-completion berkdb bindist branding bzip2 cdb cddb cdparanoia cdr cli compizconfig-backend-kconfig cracklib crypt css cups curl custom-cflags daap dbus dga dri dts dvb exif expat fam ffmpeg fftw firefox flac gdbm gif glitz gnutls gpm gstreamer hal iconv ieee1394 imlib imlib2 ipod isdnlog ithreads ivtv java joystick jpeg kde latin1 lcms libcaca lirc lm_sensors mad mdnsresponder-compat midi mmx mmxext mp3 mpeg mudflap multilib mysql ncurses network nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png posix pppd python qt qt3 qt4 readline reflection rss samba sdl server session sndfile speex spl sqlite sse sse2 sse3 ssl svg sysfs theora threads tiff transcode truetype type1 unicode usb v4l vcd vorbis wifi wma x264 xcomposite xine xinerama xml xml2 xorg xscreensaver xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" LIRC_DEVICES="serial sir devinput" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


and just for safe measures...

Code:

localhost ~ # eix gentoo-sources             
[I] sys-kernel/gentoo-sources
Installed versions:  2.6.28-r5(2.6.28-r5)!b!s(21:25:55 05/07/09)(-build -symlink)
                    2.6.29-r3(2.6.29-r3)!b!s(19:21:30 05/11/09)(-build -symlink)

localhost ~ # eix linux-headers
[D] sys-kernel/linux-headers
Installed versions:  2.6.29!b!s(19:13:24 05/11/09)
Back to top
View user's profile Send private message
iamwill
n00b
n00b


Joined: 31 Dec 2007
Posts: 48

PostPosted: Tue May 12, 2009 2:01 am    Post subject: Reply with quote

i have been blessed....

remove the v4l crap from the kernel, and voila... it worked

thanks to everyone for your help, it is much appreciated
Back to top
View user's profile Send private message
mobian
n00b
n00b


Joined: 17 Dec 2004
Posts: 72

PostPosted: Tue May 12, 2009 3:02 am    Post subject: Reply with quote

Yeah, was just going to tell you to remove all the v4l stuff from the kernel, glad you got it working. Enjoy it now!!
Back to top
View user's profile Send private message
iamwill
n00b
n00b


Joined: 31 Dec 2007
Posts: 48

PostPosted: Tue May 12, 2009 3:12 am    Post subject: Reply with quote

yes... now i have to figure out why mythtv doesnt connect to mysql... =) i like this problem more though


thanks again for your help
Back to top
View user's profile Send private message
iamwill
n00b
n00b


Joined: 31 Dec 2007
Posts: 48

PostPosted: Tue May 12, 2009 11:57 pm    Post subject: Reply with quote

just out of curiousity.. what options do you guys use for mencoder when recording tv?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum