View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 7 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: R4V3: Recompile Lirc...
PostPosted: Wed May 12, 2004 11:30 am 
Offline
Joined: Tue Apr 13, 2004 1:47 pm
Posts: 62
Location: Turin
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?


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 12, 2004 6:55 pm 
Offline
Joined: Thu Oct 16, 2003 5:27 am
Posts: 148
Location: Dayton, OH
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 13, 2004 8:07 am 
Offline
Joined: Tue Apr 13, 2004 1:47 pm
Posts: 62
Location: Turin
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?


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 13, 2004 10:00 am 
Offline
Joined: Tue Apr 13, 2004 1:47 pm
Posts: 62
Location: Turin
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?)


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 13, 2004 10:43 am 
Offline
Joined: Tue Apr 13, 2004 1:47 pm
Posts: 62
Location: Turin
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!


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 13, 2004 12:05 pm 
Offline
Joined: Thu Oct 16, 2003 5:27 am
Posts: 148
Location: Dayton, OH
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 14, 2004 8:59 am 
Offline
Joined: Tue Apr 13, 2004 1:47 pm
Posts: 62
Location: Turin
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... :? )


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 64 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu