Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 12-01-2004, 01:51 PM   #1
LQ Newbie
Registered: Dec 2004
Location: Computing Center.
Distribution: Mandrake 10
Posts: 1

Rep: Reputation: 0
Angry Where is modversion.h in 2.6? Trying to cross compile a module.

I am attempting to produce a module which can be used on multiple versions of the 2.6 kernel. The limiting factors seem to be the vermagic...(I can hexedit that and get it past that..I know it is wrong, I could also just force) and some symbols not defined in the version of os I am running.

I compiled the module on Mandrake 10 with 2.6.3-4mdkenterprise version kernel. There are symbols defined __read_lock_failed and __write_lock_failed. These apparently come from the SMP part of the kernel. When I try to run this on a non SMP kernel, it fails telling me that those are non-extant. If I define them, as empty functions it fails to align the symbols correctly.

Is there a better way to cross compile a module for multiple versions of the OS?

I have read about CONFIG_MODULES but have not had any sucess using it. Reading many posts online about it failed to educate me. So, I look in the code and what I can see is that the kernel checksums it's symbols if it is on. Then compares the checksummed symbol to the one in the module. If they match then it allows "untainted' loading of the kernel. But wtf mate? How do I use that to my advantage. Particularly when I have a symbol that is not even defined in the kernel, but expected by the module!

Jackalo Computero



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to cross compile? jiyun0121 Linux - General 3 09-01-2005 06:15 PM
Qt Cross Compile werewolfolondon Linux - Software 2 02-25-2005 01:01 PM
cross compile zaicheke Linux - Software 7 01-20-2005 08:23 PM
Cross Compile Kernel. zaicheke Linux - General 1 01-10-2005 11:39 PM
How to cross-compile? karfei00 Linux - Laptop and Netbook 2 06-03-2004 09:56 AM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:59 PM.

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