LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-11-2007, 01:55 PM   #1
energiya
Member
 
Registered: Feb 2007
Distribution: Zenwalk
Posts: 30

Rep: Reputation: 15
Help with LIRC


I have just installed kernel 2.6.20 and I can't get Lirc to work. Did the same things I did with any other kernel version. I'm using the default Zenwalk kernel.

Quote:
$modprobe lirc_serial
WARNING: Error inserting lirc_dev (/lib/modules/2.6.20-k7-rev1z/misc/lirc_dev.ko): Invalid module format
FATAL: Error inserting lirc_serial (/lib/modules/2.6.20-k7-rev1z/misc/lirc_serial.ko): Invalid module format
tried with Lirc 0.8.1 and 0.8.2pre1.
 
Old 04-12-2007, 11:33 PM   #2
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Rep: Reputation: 31
that error happens only when you use modules from different kernel version #s or some different configuration.
i know for sure cause ive had it.
 
Old 04-13-2007, 01:08 AM   #3
energiya
Member
 
Registered: Feb 2007
Distribution: Zenwalk
Posts: 30

Original Poster
Rep: Reputation: 15
And do you have a way to solve this? Due to the major modifications in kernel 2.6.20 it would need to much work to go back to 2.6.18.6
 
Old 04-13-2007, 01:17 AM   #4
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Rep: Reputation: 31
compile the modules for the kernel you are using right now.
do you have a .config file for your current kernel?
if you do, all you gotta do is download the exact source number as your kernel, place your .config into the root directory of the source, run "make xconfig" and set the module you are missing to "M", save the configuration and run "make modules" and manually copy over the modules you want to your existing kernel modules directory.
i confirm the above method to work.
 
Old 04-13-2007, 01:32 AM   #5
energiya
Member
 
Registered: Feb 2007
Distribution: Zenwalk
Posts: 30

Original Poster
Rep: Reputation: 15
Excuse my ignorance, but what module to load?
The way I did things: install sources, compile kernel, start using kernel, copy Lirc source to /usr/src/linux and untar, ./setup.sh, make && make install, modprobe lirc_serial.

Rebuilding the kernel magically builds modules in /usr/src/linux/lirc* ? I'm desperate... I'm going to try...
 
Old 04-13-2007, 02:34 AM   #6
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Rep: Reputation: 31
Quote:
Originally Posted by energiya
Excuse my ignorance, but what module to load?
The way I did things: install sources, compile kernel, start using kernel, copy Lirc source to /usr/src/linux and untar, ./setup.sh, make && make install, modprobe lirc_serial.

Rebuilding the kernel magically builds modules in /usr/src/linux/lirc* ? I'm desperate... I'm going to try...
i thought lirc support was already included in the kernels these days... its an old project you know...
what you described above is correct.
are you sure you used the right # source in /usr/src/linux because the version of your current kernel HAS TO MATCH the version of the source.
the error you got occurred to me only when i used modules from a version different from my kernel.
the makefile of the kernel source does not include compiling lirc stuff you manually added so dont even bother compiling the kernel.
 
Old 04-13-2007, 02:50 AM   #7
energiya
Member
 
Registered: Feb 2007
Distribution: Zenwalk
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks for your help! Managed to get it working... finally!

Tried this way: "make mrproper", make modules, install lirc but no luck.

It seems that for some reason it worked only after I removed /usr/src/linux-* and untar sources again, cp /boot/config-2.6.20*, make menuconfig, make modules, install lirc

I allways thought "make mrproper" cleans the sources, but... ?
 
  


Reply

Tags
lirc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lirc Odissey... ohyeah Linux - Software 4 08-23-2011 05:11 AM
Lirc with Dapper zupidupi Ubuntu 1 01-09-2007 03:57 PM
Lirc vs. Lircd jagot Linux - Hardware 2 06-19-2006 01:34 AM
LIRC and 2.6.3 hoborocks Linux - Hardware 3 08-14-2004 10:56 AM
lirc configuration biscristi Linux - Software 0 05-20-2004 10:00 AM


All times are GMT -5. The time now is 01:15 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration