LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-22-2010, 02:29 PM   #46
David Li
Member
 
Registered: Mar 2010
Posts: 42

Original Poster
Rep: Reputation: 15

Thank you for your patience, did not put 's' for objs. Now have 'invialid register name for 'current_stack_pointer' error.
 
Old 03-22-2010, 03:44 PM   #47
David Li
Member
 
Registered: Mar 2010
Posts: 42

Original Poster
Rep: Reputation: 15
register 'current_stack_pointer' has never been used in the application, any comments?
 
Old 03-22-2010, 05:42 PM   #48
David Li
Member
 
Registered: Mar 2010
Posts: 42

Original Poster
Rep: Reputation: 15
When I did make prepare and configured the kernel, I entered return as all options. Is that a problem. I am trying relate the kernel configuration to the 'current_stack_pointer' error.
 
Old 03-22-2010, 05:52 PM   #49
irmin
Member
 
Registered: Jan 2010
Location: the universe
Distribution: Slackware (modified), Slackware64 (modified), openSuSE (modified)
Posts: 342

Rep: Reputation: 62
I'm not an expert on ARM but I think 'invialid register name for 'current_stack_pointer' is some wrong inline assembly code. I had a look at the kernel sources and found that symbol only for the sh, mn10300 and and x86 architecture defined but not for arm. Where does this error come from? Can you post the whole output of make? Did you do "make prepare" and "make *config" with the same arguments as the compilation (ARCH=arm, CROSS_COMPILE=arm-...)? It seems that somehow different architectures are mixed ...
 
Old 03-22-2010, 06:56 PM   #50
David Li
Member
 
Registered: Mar 2010
Posts: 42

Original Poster
Rep: Reputation: 15
So if compile a module for arm processor, then the kernel has to be compied with arm compiler? After removing the arm compileing option in makefile, it compiles ok and modinfo display the right version number, but file check reaveals intel 80386 format.
 
Old 03-22-2010, 09:01 PM   #51
irmin
Member
 
Registered: Jan 2010
Location: the universe
Distribution: Slackware (modified), Slackware64 (modified), openSuSE (modified)
Posts: 342

Rep: Reputation: 62
If you remove the ARCH=arm option from the makefile, the architecture of the host system (I assume x86) will be selected and thus elf32-i386 output will be created. You have to do all things like "make prepare", "make menuconfig" with the options "ARCH=arm CROSS_COMPILE=...".
Enter "make distclean" and then reconfigure the kernel.
 
Old 03-23-2010, 09:04 AM   #52
David Li
Member
 
Registered: Mar 2010
Posts: 42

Original Poster
Rep: Reputation: 15
I redid everything with the arm-none-linux option. Now I was able to create the right module and inserted into the target. I would like to say thank you very mouch for your persistent help for these few days.
 
Old 03-25-2010, 02:01 PM   #53
David Li
Member
 
Registered: Mar 2010
Posts: 42

Original Poster
Rep: Reputation: 15
I have a different question. Once the kernel module is inserted, do we need to do anything in order to be able to call the functions in the kernel module? It seems like I have trouble accessing the kernel module that I have just insterted.
 
Old 04-29-2010, 04:43 PM   #54
David Li
Member
 
Registered: Mar 2010
Posts: 42

Original Poster
Rep: Reputation: 15
Now I have to compile a kernel module for another kernel linux-2.6.30-rc7. But when I do make prepare, I have following erros:

cripts/kconfig/conf -s arch/arm/Kconfig
CHK include/linux/version.h
Generating include/asm-arm/mach-types.h
CHK include/linux/utsrelease.h
UPD include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
In file included from include/linux/compiler-gcc.h:86,
from include/linux/compiler.h:40,
from include/linux/stddef.h:4,
from include/linux/posix_types.h:4,
from include/linux/types.h:14,
from include/linux/page-flags.h:8,
from kernel/bounds.c:9:
include/linux/compiler-gcc4.h:8:4: error: #error Your version of gcc miscompiles the __weak directive
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2

Do you know how to solve this ?

Thanks
 
  


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
What is the error "invalid module format" and "insert kernel module"? shayori Linux - Newbie 8 02-25-2010 04:48 AM
[SOLVED] booting a newly compiled kernel error :"invalid or unsupported executable format" shivanth Linux - Kernel 1 09-16-2009 07:57 AM
ns:"error when calling class OldSim"&tclsh:"invalid command+child process exits abn." shojaru Linux - Newbie 0 03-05-2009 05:23 AM
error: Error for wireless request "Set Mode" (8B06) : invalid argument "roaming" penguin chick Linux - Wireless Networking 5 08-22-2008 02:16 PM
Ndiswrapper "Invalid driver" error - but it worked before i switched distros! drewbug01 Linux - Wireless Networking 5 11-01-2006 01:36 PM


All times are GMT -5. The time now is 12:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration