Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Have you tried using modprobe instead? Is the support compiled into your kernel?
**************************************************************************************************** ******
it is in /root. I downloaded this Makefile and sgi_hostid.c file to the /root dr.
I tried modprobe but it gave me a similar error:
FATAL: module sgi_hostid not found
Is the support compiled into your kernel?
Support fo what? Sorry, I have only been using linux for 4 weeks now. Whatever your answer will be can I find out if the support for whatever your answer will be in my .config file?
Let's backup a minute. What execatly are you trying to accomplish? In most cases, a kernel module is not something that you can download; it must be compiled with (or at least into) the kernel.
Also, as a general rule of thumb, downloading untrusted code and attempting to compile it into the kernel is a *really* bad idea.
Originally posted by iansoundz it is in /root. I downloaded this Makefile and sgi_hostid.c file to the /root dr.
I tried modprobe but it gave me a similar error:
FATAL: module sgi_hostid not found
Is the support compiled into your kernel?
Support fo what? Sorry, I have only been using linux for 4 weeks now. Whatever your answer will be can I find out if the support for whatever your answer will be in my .config file?
Now your making more sense. You downloaded a driver to support some hardware and now your wanting to insert it into your running kernel as a module, well then, you can't just download a .c file and then insmod it, you have to compile it. Read the README or INSTALL documentation to learn how to properly compile the module to load into your system..
That link gives a "File Not Found" and those are some very crappy instructions without any details. Perhaps you need to submit them to the author for help since their apparent instructions are not working.
You will get a "file not found" because you don't have it!
I was provided those files via a .tgz sent to me via email
once uncompressed, I was left with:
Makefile
sgi_hostid.c
and these instructions.
Should I just move the sgi_hostid.ko mod to the modules directory myself and then try insmod again? I just assumed that make would have placed files in the locaiton insmod expects to find them. Perhaps that explains the error message "Error inserting 'sgi_hostid.ko': Invalid module format!??
Originally posted by iansoundz You will get a "file not found" because you don't have it!
I was provided those files via a .tgz sent to me via email
once uncompressed, I was left with:
Makefile
sgi_hostid.c
and these instructions.
Should I just move the sgi_hostid.ko mod to the modules directory myself and then try insmod again? I just assumed that make would have placed files in the locaiton insmod expects to find them. Perhaps that explains the error message "Error inserting 'sgi_hostid.ko': Invalid module format!??
Your thoughts?
BTW, thanks for working on this with me!
You can try anything you like. Like I said, not knowing anything more than what you've explained here, I don't think anyone would be much help except the provider of this module.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.