[mythtv-users] ati_remote and kernel 2.6.5 with X10 "lola" remote?

Will Dormann wd at pobox.com
Thu Apr 29 03:59:06 EDT 2004


At 09:21 PM 4/28/2004 -0400, you wrote:
>Will I actually set this up the other night.  Get LIRC .7p4 and compile
>it with the atiusb driver.  Also get the kernel patch to include LIRC in
>the kernel and build the appropriate modules.  Then follow the remote
>information in Jarrod's guide.

What kernel version are you running?
With my 2.6.5 (gentoo-dev-sources), lirc 0.70pre4 will not compile.  I get
a bunch of errors:

/opt/src/lirc/lirc-0.7.0pre4/drivers/lirc_dev/lirc_dev.c:54:27:
linux/wrapper.h: No such file or directory
/opt/src/lirc/lirc-0.7.0pre4/drivers/lirc_dev/lirc_dev.c:87: error: syntax
error before "devfs_handle_t"
/opt/src/lirc/lirc-0.7.0pre4/drivers/lirc_dev/lirc_dev.c:87: warning: no
semicolon at end of struct or union
/opt/src/lirc/lirc-0.7.0pre4/drivers/lirc_dev/lirc_dev.c: In function
`init_irctl':
<snip>
/opt/src/lirc/lirc-0.7.0pre4/drivers/lirc_dev/lirc_dev.c:93: error: storage
size of `irctls' isn't known
make[6]: *** [/opt/src/lirc/lirc-0.7.0pre4/drivers/lirc_dev/lirc_dev.o]
Error 1
make[5]: *** [/opt/src/lirc/lirc-0.7.0pre4/drivers/lirc_dev] Error 2
make[5]: Leaving directory `/usr/src/linux-2.6.5-gentoo'
make[4]: *** [lirc_dev.o] Error 2
make[4]: Leaving directory `/opt/src/lirc/lirc-0.7.0pre4/drivers/lirc_dev'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/opt/src/lirc/lirc-0.7.0pre4/drivers/lirc_dev'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/src/lirc/lirc-0.7.0pre4/drivers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/src/lirc/lirc-0.7.0pre4'
make: *** [all] Error 2

It appears as if the code isn't compatible with Kernels 2.6. 

Now, where I'm a little confused is why lirc is needed if the drivers are
merged with the kernel.   When I do a "make menuconfig", there are IR
options under character devices.   I can compile the drivers lirc_atiusb.ko
and lirc_dev.ko right when I build my kernel.  They compile without errors,
and I can modprobe them fine.

Aside from those two modules, what from the actual lirc package is
required?   

I've also tried the CVS version of lirc.   It won't compile right as it
comes, but once I copied Makefile.in from the 07p4 snapshot, it does
completely compile without error.   With just lirc_atiusb and lirc_dev
loaded, I should be able to use irrecord, right?   When I try that, I get
the following:

/usr/local/bin/irrecord: could not open /dev/lirc
/usr/local/bin/irrecord: default_init(): No such device
/usr/local/bin/irrecord: could not init hardware (lircd running ? --> close
it, check permissions)

/dev/lirc is there:
crw-r--r--    1 root     root      61,   0 Apr 29 01:58 /dev/lirc
lircd is not running.

I'm pretty much stumped.   Does anybody have a clue as to what the problem
might be?

Thanks!
-WD


More information about the mythtv-users mailing list