naicheben
Posts: 344
Joined: Sat Jan 28, 2012 12:28 pm
Contact: Website

could not insert 'lirc_rpi': Exec format error

Thu Jul 19, 2012 8:26 pm

I just updatet to 3.1.9-31. Copied my Module lirc_rpi from old kernel and get the

Code: Select all

ERROR: could not insert 'lirc_rpi': Exec format error
What changed so dramatically that I can not use my old module anymore?
I used it since 3.1.9-28
Had the same error when I tried the kernel from git.

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: could not insert 'lirc_rpi': Exec format error

Thu Jul 19, 2012 11:00 pm

Where did you put it?
Modules moved to /usr/lib/modules

naicheben
Posts: 344
Joined: Sat Jan 28, 2012 12:28 pm
Contact: Website

Re: could not insert 'lirc_rpi': Exec format error

Thu Jul 19, 2012 11:28 pm

I removed the symlink, moved /lib/modules to /usr/lib/modules and made a symlink /lib/modules -> /usr/lib/modules.
So when I install the module it is copied to /usr/lib/modules/3.1.9-31-ARCH+/driver/stagging/lirc/lirc_rpi.ko

But I found some strange things with modinfo. The vermagic was different from the kernel-version. I'm just about to recompile the module (did that 1000 times before).
What I wanted to do is:
after updating with pacman -Syu
copy the Kernel config to the kernel source/headers:
zcat /proc/config.gz > /usr/src/linux-3.1.9-31+ARCH+/.config
enabled the module via make menuconfig
saved the config
Then I usually should have patched the Kernel, but there are missing files in the Kernel headers, there is no Makefile at this moment. If I do a "make" in the kernel source directory, it does not kompile.

naicheben
Posts: 344
Joined: Sat Jan 28, 2012 12:28 pm
Contact: Website

Re: could not insert 'lirc_rpi': Exec format error

Thu Jul 19, 2012 11:46 pm

Output of dmesg:

Code: Select all

lirc_dev: IR Remote Control driver registered, major 251 
systemd-modules-load[84]: Inserted module 'lirc_dev'
lirc_rpi: disagrees about version of symbol lirc_dev_fop_poll
lirc_rpi: Unknown symbol lirc_dev_fop_poll (err -22)
lirc_rpi: disagrees about version of symbol lirc_dev_fop_open
lirc_rpi: Unknown symbol lirc_dev_fop_open (err -22)
lirc_rpi: disagrees about version of symbol lirc_dev_fop_close
lirc_rpi: Unknown symbol lirc_dev_fop_close (err -22)
lirc_rpi: disagrees about version of symbol lirc_dev_fop_read
lirc_rpi: Unknown symbol lirc_dev_fop_read (err -22)
lirc_rpi: disagrees about version of symbol lirc_register_driver
lirc_rpi: Unknown symbol lirc_register_driver (err -22)
lirc_rpi: disagrees about version of symbol lirc_dev_fop_ioctl
lirc_rpi: Unknown symbol lirc_dev_fop_ioctl (err -22)
systemd-modules-load[84]: Failed to insert 'lirc_rpi': Invalid argument

jim68000
Posts: 1
Joined: Sat Jul 14, 2012 11:30 pm

Re: could not insert 'lirc_rpi': Exec format error

Sun Jul 22, 2012 7:18 am

Usually means the module is no longer compatible with the kernel, which usually happens after a kernel upgrade like this. It needs recompiling.

naicheben
Posts: 344
Joined: Sat Jan 28, 2012 12:28 pm
Contact: Website

[SOLVED] Re: could not insert 'lirc_rpi': Exec format error

Sun Jul 22, 2012 11:28 am

Thought so and compiled the kernel and the modules gets loaded without any problems.
I just wondered what changed, because I could just copie the module from an older kernel. 3.1.9-31 is not a major number change ....

Never mind, I'll try to label it SOLVED
Thanks.

Return to “Arch”