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.
Well, you have to set this CFLAGS in your environment for it to work, try putting it in front.
Code:
CFLAGS="-march=i486" your command here
Or maybe there are already other CFLAGS set, then this should work.
Code:
CFLAGS="${CFLAGS} -march=i486" your command here
And what did you mean by 'dmesg -W' not working? You were supposed to run it in one terminal, leave it running and then try module insertion in another terminal. Is that what you did?
NB! Grepping logs is sometimes misleading, there may be other interesting lines before and after your grepped line.
Hi, sorry I didn't understand the usage of your dmesg -W idea, however, when I type dmesg -W I get an error that -W is not a valid option ??
So i just typed dmesg before and after executing ./make_all CFLAGS=..... KERNELDIR=.....
Attached screenshots of dmesg output before, and after running ./make_all.
Unfortunately this still didn't work.
I also tried installing this driver on LinuxMint (2.6.32.21), which DOES properly recognize both CPU cores of the Vortex, but, the driver still failed to install, although the behaviour was a bit different.
I see your module still builds for i686. You probably need to run configure with CFLAGS also. Maybe you should run
Code:
export CFLAGS="-march=i486"
before you start with configure. I'm not a coder, perhaps someone with coding experience chimes in and tells how to do it properly.
Edit: copy-paste from terminal window is so easy in Linux, taking screenshots is much harder and they are harder to read than plain text. Why pictures?
I tried to find a good copy-paste tutorial from Youtube but found none where it is done the easy way! Basically you hold down the left mouse button, mark the text you want to copy with mouse, and then use middle click here on forums to paste it. Done in 2 seconds. Although I'm not 100% sure it works like this in your rather ancient version of Linux, even 'dmesg -W' did not work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.