Jump to content
Sign in to follow this  
Verplrke

Problem Compiling LMPCM

Recommended Posts

To enable the media buttons on my logitech Mediaplay Mouse, I would like to use lmpcm.

 

It worked fine under Mandriva 2006 but now in the new Mandriva 2007 Spring (with kernel 2.6.17-13) I get this error when I run make:

[root@localhost lmpcm_usb-0.5.5]# make
make -C /lib/modules/2.6.17-13mdv/build SUBDIRS=/home/maarten/Desktop/lmpcm_usb-0.5.5 modules
make: *** /lib/modules/2.6.17-13mdv/build: Unknown file or folder. Aborted.
make: *** [default] Error 2

*Note: the archive does not contain a configure-file, only make and make-install need to be executed.

Share this post


Link to post
Share on other sites

Installing the kernel source solved the compile problem partially, after that I encoutered an module symvers error, which I was able to solve myself. But now when inserting the module i get this error:

 

[root@localhost lmpcm_usb-0.5.5]# insmod /lib/modules/2.6.17-13mdv/misc/lmpcm_usb.ko
insmod: error inserting '/lib/modules/2.6.17-13mdv/misc/lmpcm_usb.ko': -1 Invalid module format

 

Renaming lmpcm_usb.ko tot lmpcm_usb.ko.gz didn't solve the problem ...

Share this post


Link to post
Share on other sites
To enable the media buttons on my logitech Mediaplay Mouse, I would like to use lmpcm.

 

It worked fine under Mandriva 2006 but now in the new Mandriva 2007 Spring (with kernel 2.6.17-13) I get this error when I run make:

[root@localhost lmpcm_usb-0.5.5]# make
make -C /lib/modules/2.6.17-13mdv/build SUBDIRS=/home/maarten/Desktop/lmpcm_usb-0.5.5 modules
make: *** /lib/modules/2.6.17-13mdv/build: Unknown file or folder. Aborted.
make: *** [default] Error 2

*Note: the archive does not contain a configure-file, only make and make-install need to be executed.

most buttons on my logitech mx610 mouse work out of the box (volume up and down and mute), and i guess you could manually assign functions to them....

Share this post


Link to post
Share on other sites

[root@localhost maarten]# modprobe lmpcm_usb
FATAL: Module lmpcm_usb not found.

 

Normally the make command should add a entry in the modules.dep file using depmod. Apperently it didn't, so I added this myself:

/lib/modules/2.6.17-13mdv/misc/lmpcm_usb.ko: /lib/modules/2.6.17-13mdv/kernel/drivers/usb/core/usbcore.ko.gz

 

The eventual result stays the same:

[root@localhost maarten]# modprobe lmpcm_usb
FATAL: Error inserting lmpcm_usb (/lib/modules/2.6.17-13mdv/misc/lmpcm_usb.ko): Invalid module format

 

I must say, adding this in Mandriva 2006 was a lot easier!

Edited by Verplrke

Share this post


Link to post
Share on other sites

did you already use xev to see if those keys generate any output

 

(type xev in a console, put mouse cursor in xev window and press the keys....)

Share this post


Link to post
Share on other sites

Are you sure you have installed the same kernel source as the kernel you're using? I only ask because this is the most frequent cause of the 'Invalid module format' error

Share this post


Link to post
Share on other sites

Got it: uninstalled the kernel source, rebooted, installed the kernel source again and I was able to run make and make install without a single problem.

 

 

Thanks for the help!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...