LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices



Reply
 
Search this Thread
Old 04-01-2009, 05:17 AM   #1
Trixy_Tree
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
cross-compiling modules for a preemptive kernel(2.6.23)


Hi all,

I have linux-2.6.26 preemptive and busybox running on an ARM9

Im trying to run an hello world module but I get the error:
"helloworld: version magic '2.6.23 mod_unload ARMv5' should be '2.6.23 preempt mod_unload ARMv5'"

I have the same version of kernel source tree but i dont know how i compile for a preemptive kernel.

The kernel on the ARM is not made of this source tree, i assume that somewhere there must be a change in the source tree when you compile an preemptive kernel?

And why is there actually 'mod_unload' in the version number of the modules?


Thank you in advance
 
Old 04-07-2009, 11:47 AM   #2
sunr2007
Member
 
Registered: Jan 2009
Location: Bangalore , India
Distribution: Fedora 12
Posts: 65

Rep: Reputation: 17
Hi u u have to make two changes in your kernel Makefile . first in the kernel makefile set ARCH=arm and CROSS_COMPILE= set_your_toolchain_path u use for ur cross_compiler.and then compile ur kernel by using "make defconfig".


and in the Makefile of ur module set ur kernel path to this one. and then compile ur module. it should work.
warm regards,
Ravi Kulkarni.
 
  


Reply


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
Preemptive kernel aravinda78 Linux - General 1 12-12-2008 09:28 AM
Compiling Linux kernel using Cross Compiler shilu72000 Linux - Newbie 4 05-26-2008 01:45 PM
/lib/modules/2.4.33.3/kernel/sound folder is missing after compiling kernel Paulo Ges Slackware - Installation 2 04-15-2007 09:42 PM
gentoo preemptive kernel lyx0m Linux - General 4 10-27-2003 12:10 AM
How to install preemptive kernel patch? sb73542 Linux - Software 6 08-30-2003 06:11 PM


All times are GMT -5. The time now is 10:08 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration