[mythtv-users] Fedora 14 & Hauppauge (Grey) & lirc devinput with Nova-T

Harry Orenstein holists at optonline.net
Sat Feb 19 16:38:06 UTC 2011


On Saturday, February 19, 2011 01:03:30 am Jarod Wilson wrote:

<snip>

> > I tried compiling an F14 kernel with a modified ir-kbd-i2c and the
> > resulting module gives an "invalid module format" error when modprobe'd.
> >  It's my first time trying to compile a kernel, so I'm not sure what the
> > problem could be.  I tried to keep it simple by doing "rpmbuild -bp
> > --target=$(uname -m) kernel.spec" followed by "make modules".  Any tips?
> >  I figure that, based on your job, you might have some small experience
> > in this area.   ;-)
> 
> Yeah, just a wee bit...
> 
> Install kernel-devel that matches your running kernel, and after doing
> the bp and patching, in path/to/source/drivers/media/video/, do
> 'make -C /usr/src/kernels/$(uname -r) M=$PWD modules'. The resulting .ko
> files should work fine with your running kernel (just copy ir-kbd-i2c.ko
> into /lib/modules/$(uname -r)/extra/ and run depmod, and the updated
> ir-kbd-i2c should be the one that gets loaded next time you modprobe.
> 
> Alternatively, there's this:
> 
> http://linuxtv.org/wiki/index.php/How_to_Obtain,_Build_and_Install_V4L-DVB_
> Device_Drivers
> 
> Overkill in this case though.

Tried as you suggested.  Not sure what went wrong.  It starts out OK, then 
errors out:

$ make -C /usr/src/kernels/$(uname -r) M=$PWD modulesmake: Entering directory 
`/usr/src/kernels/2.6.35.11-83.fc14.i686'
  CC [M]  
/home/mythtv/rpm/BUILD/kernel-2.6.35.fc14/linux-2.6.35.i686/drivers/media/video/msp3400-
driver.o
  CC [M]  
/home/mythtv/rpm/BUILD/kernel-2.6.35.fc14/linux-2.6.35.i686/drivers/media/video/msp3400-
kthreads.o
  CC [M]  
/home/mythtv/rpm/BUILD/kernel-2.6.35.fc14/linux-2.6.35.i686/drivers/media/video/stk-
webcam.o
  CC [M]  
/home/mythtv/rpm/BUILD/kernel-2.6.35.fc14/linux-2.6.35.i686/drivers/media/video/stk-
sensor.o
  CC [M]  
/home/mythtv/rpm/BUILD/kernel-2.6.35.fc14/linux-2.6.35.i686/drivers/media/video/tuner-
core.o
/home/mythtv/rpm/BUILD/kernel-2.6.35.fc14/linux-2.6.35.i686/drivers/media/video/tuner-
core.c:23:20: fatal error: mt20xx.h: No such file or directory
compilation terminated.
make[1]: *** 
[/home/mythtv/rpm/BUILD/kernel-2.6.35.fc14/linux-2.6.35.i686/drivers/media/video/tuner-
core.o] Error 1
make: *** 
[_module_/home/mythtv/rpm/BUILD/kernel-2.6.35.fc14/linux-2.6.35.i686/drivers/media/video] 
Error 2
make: Leaving directory `/usr/src/kernels/2.6.35.11-83.fc14.i686'

I have the 2.6.35.11-83.fc14 kernel-devel installed and mt20xx.h is in the 
/usr/src/kernels/2.6.35.11-83.fc14.i686 path, so I'm not sure why make cannot 
find it.

Sorry to be such a pain.  Like I said before, I'm not a big kernel compiler.


More information about the mythtv-users mailing list