Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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...
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.
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... ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.