LinHES Forums
http://forums.linhes.org/

R4V3: Recompile Lirc...
http://forums.linhes.org/viewtopic.php?f=6&t=1426
Page 1 of 1

Author:  Iceman [ Wed May 12, 2004 11:30 am ]
Post subject:  R4V3: Recompile Lirc...

Hi all,
After i've upgraded my hardware, i preferred to reinstall all.
This time i've installed R4V3...
After installed, i did:

- install-NVIDIA (OK)
- install-i686-l (OK)
- setup mythbackend and other small things (samba, webmin, lcdproc)
- recompiled mythtv with LCD and Lirc support

Now, all works well.. but i was not able to use lirc.
I have a Leadtek Winfast Tv2000XP deluxe with remote controller...
Obviously, i tried to recompile lirc with lirc_gpio driver to support my remote...
NO WAY TO DO THIS!

I did:
- tar xjf linux-2.4.25-chw.tar.bz2 (and type a "make menuconfig" & "make dep")
- tar xjf lirc-0.7.0pre4.tar.bz2
- tar xzf lirc-modules.tar.gz
- Create symbolic link in /usr/src/linux -> /usr/src/linux-2.4.25-chw
- cd lirc-0.7.0pre4
- ./configure (and set my remote), save configuration & run configure
- make && make install

Now, when i type "modprobe lirc_gpio" or "modprobe lirc_dev", i get:
/lib/modules/2.4.25-chw/misc/lirc_dev.o: insmod /lib/modules/2.4.25-chw/misc/lirc_dev.o failed
/lib/modules/2.4.25-chw/misc/lirc_dev.o: insmod lirc_dev failed
or
/lib/modules/2.4.25-chw/misc/lirc_dev.o: insmod /lib/modules/2.4.25-chw/misc/lirc_dev.o failed
/lib/modules/2.4.25-chw/misc/lirc_dev.o: insmod lirc_gpio failed

Any idea?

Author:  Quigs [ Wed May 12, 2004 6:55 pm ]
Post subject: 

Not sure what these steps are for - I never did anything like this:

Quote:
- tar xjf linux-2.4.25-chw.tar.bz2 (and type a "make menuconfig" & "make dep")
- tar xzf lirc-modules.tar.gz
- Create symbolic link in /usr/src/linux -> /usr/src/linux-2.4.25-chw
- cd lirc-0.7.0pre4


I have the TV2000XP. It is very easy to setup. All I ever do is untar the package. Change directories to that package: ./setup.sh, make, make install and that is it. Kind of like you mentioned. (yes it is setup.sh if I recall, not configure.sh)

You need to verify that you have your /etc/modutils/lirc file setup to say:

alias char-major-61 lirc_gpio

(then possibly run update-modules) - if it says lirc_dev - remove and type what is listed above. The Winfast card only uses gpio. KnoppMyth does not place these settings directly into the modules.conf file. After update-modules you can verify this line is in your modules.conf file.

If that fails - try

dmesg | grep lirc

I get back the following:

lirc_dev: IR Remote Control driver registered, at major 61
lirc_gpio (-1): card type 0x22, id 0x6606107d
lirc_dev: lirc_register_plugin:sample_rate: 0
lirc_gpio (0): driver registered

You can always from a prompt type in irw - if you get a response but MythTV is not working, then you lircrc file is not setup but the remote is.

There are 3 Keys to getting the remote to work.
1. untar and run setup - picking your card, configuring, make, make install
2. Validating your modules are setup for lirc_gpio (for the winfast card)
3. Having the right lircrc file in place in your /home/mythtv/.mythtv directory.

Hope that helps!

Quigs

Author:  Iceman [ Thu May 13, 2004 8:07 am ]
Post subject: 

In R4V2 it was like you say now... (i used r4v2 before today... sigh!)
In R4V3, in a fresh installation, i untar lirc, ./setup.sh, set winfast2000, save configuration & run configure and before to run make i read:
Quote:
checking for Linux kernel sources... /tmp/LIRCMF.0a8IwR:260: arch/i386/Makefile: No such file or directory
/tmp/LIRCMF.0a8IwR:543: Rules.make: No such file or directory
make: *** No rule to make target `Rules.make'. Stop.

Then i run make and:
Quote:
make -C /usr/src/linux/ SUBDIRS=/usr/src/lirc-0.7.0pre4/drivers/lirc_dev modules \
KBUILD_VERBOSE=1
make[4]: Entering directory `/usr/src/kernel-headers-2.4.25-chw'
Makefile:260: arch/i386/Makefile: No such file or directory
Makefile:543: Rules.make: No such file or directory
make[4]: *** No rule to make target `Rules.make'. Stop.
make[4]: Leaving directory `/usr/src/kernel-headers-2.4.25-chw'
make[3]: *** [lirc_dev.o] Error 2

Where am i wrong?

Author:  Iceman [ Thu May 13, 2004 10:00 am ]
Post subject: 

OK, i resolved...
I use this commands:

cd /usr/src
tar xjf linux-2.4.25-chw.tar.bz2
cp linux/.config linux-2.4.25-chw
rm linux
ln -s linux-2.4.25-chw linux
cd linux-2.4.25-chw
make oldconfig dep
rm /lib/modules/2.4.25-chw/build
ln -sf /usr/src/linux-2.4.25-chw /lib/modules/2.4.25-chw/build
cp /usr/src/linux-2.4.25-chw/include/config/modversions.h /usr/src/linux-2.4.25-chw/include/linux/

Go in lirc directory
make
make install
modprobe lirc_gpio

Now, if i try irw and push some button, i get a result...
The strange thing is that every time i push a button, lirc repeat four times the button!! I don't understand why...
I hope to understand it soon!! (have you any idea?)

Author:  Iceman [ Thu May 13, 2004 10:43 am ]
Post subject: 

PERFECT!
Ok, i don't know why, but i got lirc-0.7.0pre2.tar.bz2 from R4V2, recompiled it, and now all works! No repetead button...
Now all works!

Author:  Quigs [ Thu May 13, 2004 12:05 pm ]
Post subject: 

Excellent. Glad you got it to work. I tried to upgrade to R4V3 but had a had trouble with the Nvidia drivers and my bttv card. I also could not get the lirc driver to work. Makes sense with what you posted. Never had problems with R4V2.

Author:  Iceman [ Fri May 14, 2004 8:59 am ]
Post subject: 

I had to recompile Mplayer too...
Anyway, i have a nvdia 440mx se 8x and the driver just work after installed... (so in R4v2...)
Now i am working on "ogle", dvd player with menu... after set "hdparm -d 1 -X66" on dvd, now it works very well on my TB 1100... (now i have to set lircrc to work with it... :? )

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/