nodename is now devnode in 2.6.33 kernel - drivers don't compile

Bug #525703 reported by John Reid
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mythbuntu
Invalid
Undecided
Unassigned

Bug Description

I'm using mythbuntu 9.10. I upgraded to kernel v2.6.33-rc8 because I have a DH55TC mobo (following the advice here https://wiki.ubuntu.com/Intel_DH55TC). This fixed a number of startup and slow video issues.

Now I can't rebuild the drivers for my hauppage 2200 as I did for my previous kernel. I've been following the instructions here:
http://www.linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-2200
I've been using the dev tree but I also get similar errors with the stable tree.

Initially I got a message complaining v4l/config-compat.h could not include autoconf.h. I got around that by changing the include to be:
#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
#include <linux/autoconf.h>
#endif

Now I get the following error:
/home/john/local/src/hauppage-2200/saa7164-dev/v4l/dvbdev.c: In function 'init_dvbdev':
/home/john/local/src/hauppage-2200/saa7164-dev/v4l/dvbdev.c:516: error: 'struct class' has no member named 'nodename'
make[3]: *** [/home/john/local/src/hauppage-2200/saa7164-dev/v4l/dvbdev.o] Error 1
make[2]: *** [_module_/home/john/local/src/hauppage-2200/saa7164-dev/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.33-020633rc8-generic'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/john/local/src/hauppage-2200/saa7164-dev/v4l'
make: *** [all] Error 2

As far as I can tell by googling, 'nodename' is now 'devnode' in 2.6.33 (perhaps 2.6.32 as well?) and has a different signature. I don't think I know enough to edit the driver source to reflect this. Has anyone got a solution? If the 2200 driver is not currently supported on 2.6.33 does anyone know when it might be?

Revision history for this message
John Reid (johnbaronreid) wrote :

Devin Heitmueller posted the following answer on the linux-media mail list which fixes the problem for me:

There were some changes made in the 2.6.33 mainline kernel which were
incompatible with the v4l-dvb tree (and the saa7164 tree on the
kernellabs hg is based off of a version of v4l-dvb that is several
months old).

The issue should have been fixed relatively recently in the v4l-dvb
trunk (which *does* contain pretty much all the hvr-2200 fixes).

I would recommend you do an "hg clone http://linuxtv.org/hg/v4l-dvb"
and do a compile and see if it works. If it doesn't then post a
reply. But to be clear, this has nothing to do with the HVR-2200
support in particular.

Revision history for this message
MarcRandolph (mrand) wrote :

Howdy, and thank you for helping to improve Mythbuntu by opening this ticket, and for including the work-around.
Since 10.04 (Lucid) is not using 2.6.33, I'm going to close this ticket on the assumption that such issues will be resolved during the course of kernel development for 10.10 (and whatever kernel version that ends up using).

Changed in mythbuntu:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.