Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Applied updates, broke HDPVR

  1. #1
    Join Date
    May 2006
    Beans
    35

    Applied updates, broke HDPVR

    This happened the last time I applied updates, but for some reason I went insane this morning and applied updates again. Sure enough, after I rebooted, my Mythbuntu 10.04 system didn't recognize that my HD-PVR was there.

    I went to the mythtv wiki page on the HD-PVR and followed their instructions for recompiling the driver. In the "make" step, though, I get the following error:

    Code:
    make -C /lib/modules/2.6.35-30-generic/build SUBDIRS=/home/mydir/media_build/v4l  modules
    make[2]: Entering directory `/usr/src/linux-headers-2.6.35-30-generic'
      CC [M]  /home/mydir/media_build/v4l/hdpvr-core.o
    /home/mydir/media_build/v4l/hdpvr-core.c:20: fatal error: linux/atomic.h: No such file or directory
    compilation terminated.
    make[3]: *** [/home/mydir/media_build/v4l/hdpvr-core.o] Error 1
    make[2]: *** [_module_/home/mydir/media_build/v4l] Error 2
    make[2]: Leaving directory `/usr/src/linux-headers-2.6.35-30-generic'
    make[1]: *** [default] Error 2
    make[1]: Leaving directory `/home/mydir/media_build/v4l'
    make: *** [all] Error 2
    I tried searching for "atomic.h" errors and HDPVR but didn't turn anything up.

    What do I need to do to recompile and install the drivers? Or barring that, is it just easier to somehow upgrade to the latest Mythbuntu running on 11.04? Does that have enough built-in support so that HD-PVR drivers don't break each time I do a system update?

    Very VERY frustrated right now. Thanks.

  2. #2
    Join Date
    Oct 2005
    Location
    Austin, TX
    Beans
    2,983
    Distro
    Ubuntu Development Release

    Re: Applied updates, broke HDPVR

    What you are missing is the associated headers package that goes with that kernel. There are two headers packages. You need both.

    linux-headers-2.6.35-30-generic
    linux-headers-2.6.35-30


    You should consider installing the module using DKMS instead too, then it would upgrade for you when the kernel upgrades.

  3. #3
    Join Date
    May 2006
    Beans
    35

    Re: Applied updates, broke HDPVR

    Thanks for the reply. I already seem to have those installed:

    Code:
    sudo apt-get install linux-headers-2.6.35-30-generic
    
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    linux-headers-2.6.35-30-generic is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    
    sudo apt-get install linux-headers-2.6.35-30
    
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    linux-headers-2.6.35-30 is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    I just double-checked and I hit the same error when I try to make the driver.

    EDIT: this message I get when I do the "make stagingconfig" step seems relevant in retrospect, but I'm not sure what else I can do to solve it:

    Code:
    Preparing to compile for kernel version 2.6.35
    
    ***WARNING:*** You do not have the full kernel sources installed.
    This does not prevent you from building the v4l-dvb tree if you have the
    kernel headers, but the full kernel source may be required in order to use
    make menuconfig / xconfig / qconfig.
    
    If you are experiencing problems building the v4l-dvb tree, please try
    building against a vanilla kernel before reporting a bug.
    
    Vanilla kernels are available at http://kernel.org.
    On most distros, this will compile a newly downloaded kernel:
    
    cp /boot/config-`uname -r` <your kernel dir>/.config
    cd <your kernel dir>
    make all modules_install install
    
    Please see your distro's web site for instructions to build a new kernel.
    Last edited by ceenvee703; August 1st, 2011 at 11:46 AM. Reason: additional info

  4. #4
    Join Date
    Oct 2005
    Location
    Austin, TX
    Beans
    2,983
    Distro
    Ubuntu Development Release

    Re: Applied updates, broke HDPVR

    Ah, so if the issue is when it's trying to refresh the kernel config, follow exactly what it's telling you. The kernel config that matches those headers is stored in /boot. You can copy it into place here.

  5. #5
    Join Date
    May 2006
    Beans
    35

    Re: Applied updates, broke HDPVR

    Thanks again for the help. I'll try that tonight.

    Just to confirm, I should use /boot as the substitute for <your kernel dir>?

  6. #6
    Join Date
    Oct 2005
    Location
    Austin, TX
    Beans
    2,983
    Distro
    Ubuntu Development Release

    Re: Applied updates, broke HDPVR

    Well wait a minute.

    You're on 2.6.35 on 10.04? Are you running an updated kernel from maverick or something?

    What about the kernel built in doesn't work? That newer device ID? If you're already on a newer kernel, how about just grabbing the natty one and running that?

    Would save you a bunch of trouble I'd think.

  7. #7
    Join Date
    May 2006
    Beans
    35

    Re: Applied updates, broke HDPVR

    Sorry, my mistake, I'm on 10.10. I could upgrade to 11.04 if path forward is easier.

  8. #8
    Join Date
    Oct 2005
    Location
    Austin, TX
    Beans
    2,983
    Distro
    Ubuntu Development Release

    Re: Applied updates, broke HDPVR

    Quote Originally Posted by ceenvee703 View Post
    Sorry, my mistake, I'm on 10.10. I could upgrade to 11.04 if path forward is easier.
    Well if you've got no other reason to stay on 10.10, I think it's the path of least resistance.

    Up to you, if you want to keep rebuilding the HDPVR driver manually or use the one built into 11.04 which should work fine.

  9. #9
    Join Date
    Apr 2006
    Location
    Elgin,IL,USA
    Beans
    169
    Distro
    Kubuntu

    Re: Applied updates, broke HDPVR

    Do you have any other video capture cards installed in the box?
    I have 10.10 and when I reboot it loses the HDPVR and I have to go into Mythtv-setup and change the video device. I tried to set it always use video0, but it seems to alternate between that and video1 when it reboots, so I try not to reboot that often. I need to remove the analog cards since they will not be usefull when the cable converts to all digital, that should fix the problem for me.

  10. #10
    Join Date
    May 2007
    Beans
    2,334

    Re: Applied updates, broke HDPVR

    Quote Originally Posted by uteck View Post
    Do you have any other video capture cards installed in the box?
    I have 10.10 and when I reboot it loses the HDPVR and I have to go into Mythtv-setup and change the video device. I tried to set it always use video0, but it seems to alternate between that and video1 when it reboots, so I try not to reboot that often. I need to remove the analog cards since they will not be usefull when the cable converts to all digital, that should fix the problem for me.
    That sound alot like a race condition, the kernel loads the modules in what ever order it finds the hardware, so sometimes your HDPVR comes up as video0 othertimes as video1.

    Search through the forums for a udev/video0 thread. Theres a python script that creates symbolic links for video0 and video1 that always point to the same device (/dev/hdpvr -> /dev/videoX).

    Here's a link http://ubuntuforums.org/showthread.p...ght=udev+video

    Regards
    Ian Dobson
    Last edited by ian dobson; August 2nd, 2011 at 10:36 AM.
    Walking on water and writing software to specification is easy if they're frozen.

    My corner of the internet http://www.planet-ian.com

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •