Makefile confused about kernel version that's running - Failed Module Insertion
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Makefile confused about kernel version that's running - Failed Module Insertion
Hi everyone,
I'm trying to install a driver for an analog-to-digital converter, everything compiles just fine but I get an insertion error.
I'm running the non-smp kernel when doing this but the Makefile for the A-D seems to think I'm running the smp kernel, I think this is why the module is not being inserted or loaded properly ?
Attached some screenshots.
snapshot1 - the failed insertion.
snapshot2 - verified proper gcc version.
snapshot5 - output of modinfo
Any ideas why the Makefile would be "confused" about the kernel version that is running ?
Typing "uname -r" returns 2.6.21.5, not the smp kernel !
I then removed the 24dsi12 directory completely, and then re-unpacked the tar file (so as to start from scratch), and still the same effect, the new command ran very quickly and didn't seem to be doing anything ?,
when I ran just ./make_all, then the Vortex had to work for a minute or so compiling, etc., but again the module wasn't inserted, with the apparent result being the makefile is compiling against the smp kernel.
I may try installing Lubuntu 10.04 (2.6.32.21) which DOES properly see both Vortex cores (with the generic kernel) and then try installing the ADC driver in Lubuntu ?
Oh, sorry about that, I'll re-try with the new ./make_all syntax, have got Lubuntu 10.04 booted up, no gcc installed at all ! Back to Slack12 and will try the new ./make_all command.
Darn-it, still no luck, the ./make_all process definitely did all the work it was supposed to, but the module still fails to insert, modinfo 24dsi12_pll.ko returns 2.6.21.5-smp.
You have some CHOST conflict there, your Vortex probably is an i586 or even i486, but you are building for i686. Even if your Vortex is an i686 your kernel is not. You need to build for -march=i486 to match your kernel.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.