LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-24-2003, 06:13 AM   #1
manu_s
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
compliling the kernel to make it non-versioned


how can i compile my kernel to make it non versioned (wht is it that i need to change) so that i can load my own modules with insmode without getting the following error msg -

./hello.o: couldn't find the kernel version the module was compiled for

i have all the stuff related to loading modules available in the current kernel.


 
Old 09-24-2003, 06:58 AM   #2
bmahesh
Member
 
Registered: Sep 2003
Location: Bangalore
Distribution: RedHat , Debian
Posts: 42

Rep: Reputation: 15
New Kernel version can be changed accordingly. For that before compilation you can edit first 4 lines of
/usr/src/linux-xx/Makefile


Whatever version you specify with that new kernel will be created.
I hope this will solve your problem
With regards
Mahesh
 
Old 09-24-2003, 07:10 AM   #3
manu_s
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Question

i am trying to recompile the same kernel(2.4.20-8) just to make it non-versioned...i dont know wht that means , but i desperately need to do that to get my module loaded. So the point is will changing the makefile really help?
 
Old 09-24-2003, 11:03 AM   #4
bmahesh
Member
 
Registered: Sep 2003
Location: Bangalore
Distribution: RedHat , Debian
Posts: 42

Rep: Reputation: 15
whenver you compile kernel modules related to that kernel should be compiled.
'make modules'
/lib/modules/kernel*** will have all modules related to that build.

But I dont understand what do you mean by nonversioned kernel.
version is just naming convention used in kernel development.

you can build kernel named 'manu' but you should build modules for that version of kernel.

regards Mahesh
 
Old 09-24-2003, 11:13 AM   #5
bmahesh
Member
 
Registered: Sep 2003
Location: Bangalore
Distribution: RedHat , Debian
Posts: 42

Rep: Reputation: 15
sorry
I could not understand your question. I saw your some other posting in this forum. You mean problem in inserting your own module. this is nothing to do with this answer. I will answer for this problem shortly.
bye
Mahesh
 
Old 09-24-2003, 08:22 PM   #6
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 392

Rep: Reputation: 55
Say Y to CONFIG_MODVERSIONS when compiling your kernel.

Lyle
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling non-versioned kernel sphares Linux - General 2 09-07-2005 06:43 AM
what is "compliling a kernel"? markw8500 Linux - Newbie 24 08-26-2005 05:56 PM
Versioned Dependencies cootetom Mandriva 1 06-28-2004 07:06 PM
Error compliling kernel shams Linux - Software 4 02-14-2004 12:46 AM
Compliling a C program harperonline Programming 3 09-10-2003 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration