LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Thread Tools
Old 10-24-2009, 05:34 PM   #1
dumbcoder
LQ Newbie
 
Registered: Oct 2009
Posts: 1
Thanked: 0
Angry [help] try to build loadable .ko file for a specific kernel (2.6.24-1-486)


[Log in to get rid of this advertisement]
In my project, I am trying to build a loadable .ko file for a Linux box with specific linux kernel (uname -r result is 2.6.24-1-486) installed on it.
This Linux box contains no directory named /lib/modules/2.6.24-1-486/build; it contains no related kernel header files for its 2.6.24-1-486 kernel. The remaining docs of it say that some test/unstable Debian release with 2.6.24 kernel may be OK to produce loadable .ko kernel modules for it.
I tried several 2.6.24 kernels, and just got the version verifying failure info below:
# insmod my_kernel_mod.ko
insmod: error inserting 'my_kernel_mod.ko': -1 Invalid module format
# dmesg|tail
my_kernel_mod: disagrees about version of symbol struct_module
my_kernel_mod: disagrees about version of symbol struct_module

Thus, I think I do need the Linux kernel source files (or just header files) with specific kernel version: 2.6.24-1-486. But, I cannot find this kind of 2.6.24-1-486 stuffs, event after I visit the www.kernel.org/ and www.debian.org/.

Does any know how to download the Linux kernel source files (or just header files) with specific kernel version 2.6.24-1-486??

Thanks a lot in advance.
linux dumbcoder is offline     Reply With Quote
Old 10-26-2009, 09:52 AM   #2
knudfl
Senior Member
 
Registered: Jan 2008
Location: Copenhagen, Denmark
Distribution: pclos2009.2, slack13, Debian Lenny (+30 others, for test only)
Posts: 2,934
Thanked: 277
Welcome to LQ.

An available source package can be e.g.
linux-headers-2.6.24-etchnhalf.1-486

.. which means, you will have to update your
kernel to a version , also available as source
like ' linux-image-2.6.24-etchnhalf.1-486 '.

Not all old 'linux-image's have a source counterpart.
Some were used for a very short time, then updated
for various reasons.
.....

Just do : 1) su
2) apt-get install linux-image
.....

Last edited by knudfl; 10-26-2009 at 09:54 AM..
linuxpclinuxos knudfl is offline     Reply With Quote
Old 11-06-2009, 08:15 PM   #3
yaplej
Member
 
Registered: Apr 2009
Posts: 69
Thanked: 0
I have been developing on CentOS, and to get the kernel headers to setup a working enviroment I run this. I actually think I stopped at gcc because it has kernel-headers as a dependancy.

yum install eclipse-platform
yum install kernel-devel
yum install gcc
yum install kernel-headers
windows_98_nt_2000 yaplej is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
LXer: The Kernel Newbie Corner: Loadable Kernel Modules, Coming and Going LXer Syndicated Linux News 0 07-08-2009 09:00 PM
reboot kernel from kernel from loadable module ? jeff price Linux - Kernel 1 01-11-2007 06:22 AM
kernel version 2.4 loadable kernel module mhuman1 Linux - Kernel 2 05-11-2006 02:08 PM
Kernel Build config file Igor007 Programming 1 08-14-2005 03:39 PM
trying to build 486 freesco router box jgams Linux - Networking 1 12-04-2004 05:01 AM


All times are GMT -5. The time now is 06:49 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration