LinuxQuestions.org
Help answer threads with 0 replies.
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 04-22-2010, 11:19 AM   #1
kazola!
LQ Newbie
 
Registered: Jan 2008
Distribution: Slackware, Fedora, FreeBSD
Posts: 13

Rep: Reputation: 0
Any good samaritan?


Hi!
I'm trying to cross-compile a kernel module for ARM but I can't :P Is there any possibility that someone running that architecture or with a correct cross-compile environment can build it for me and for free?

Thanks!
 
Old 04-22-2010, 12:02 PM   #2
bmxcess
Member
 
Registered: Jan 2009
Location: Brisbane, Australia
Distribution: @work:RHEL 5.4/Fedora 13, @home:slack64-current,ubuntu lynx studio
Posts: 65

Rep: Reputation: 19
You are going to have to do better than that :P A few details might peak some interest.
 
Old 04-22-2010, 12:15 PM   #3
lupusarcanus
Senior Member
 
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,022
Blog Entries: 19

Rep: Reputation: 146Reputation: 146
Are you doing it for an iPhone/iPod Touch?
 
Old 04-22-2010, 12:18 PM   #4
kazola!
LQ Newbie
 
Registered: Jan 2008
Distribution: Slackware, Fedora, FreeBSD
Posts: 13

Original Poster
Rep: Reputation: 0
:)

I'm trying to compile a module for a NSLU2 running Linux OpenWRT. ARCH is arm(eb). This module is for a ZigBee sniffer called Perytons, and the source code is not very big but I'm unable to do it
Source is at

[URL="http://zigbuzz.sourceforge.net/files/steeple3_2_6.tgz"]

But I have no room to install gcc on my device and cross-compiling is not my strong point Kernel is 2.6.32.10. UclibC is used.

Any volunteeeeeer?

Last edited by kazola!; 04-22-2010 at 12:43 PM. Reason: Mistake
 
Old 04-22-2010, 04:16 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,388

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
Wonder if a VM would work? I think qemu supports some ARM processor.
 
Old 04-23-2010, 08:28 AM   #6
bmxcess
Member
 
Registered: Jan 2009
Location: Brisbane, Australia
Distribution: @work:RHEL 5.4/Fedora 13, @home:slack64-current,ubuntu lynx studio
Posts: 65

Rep: Reputation: 19
Funnily enough I've had to do the same thing at work recently. Usually when you get your hands on a device like this it should come with compilers specific to the architecture. The docs in mine simply require the path to include the toolchain you are compiling against.

However, I did have to make sure that any code outside of what was shipped with the device pointed to the correct cross-compiler ie.
Code:
CC=<location of gcc cross compiler>
export CC
make
[EDIT:] I'm doing this on a host machine - not on the device itself. After successful compile I copy across. Add -g to your CCFLAGS when compiling and use gdb if you run into trouble executing on the ARM device.

HTH

Last edited by bmxcess; 04-23-2010 at 08:43 AM.
 
Old 04-23-2010, 08:55 AM   #7
bmxcess
Member
 
Registered: Jan 2009
Location: Brisbane, Australia
Distribution: @work:RHEL 5.4/Fedora 13, @home:slack64-current,ubuntu lynx studio
Posts: 65

Rep: Reputation: 19
What host system are you using? Here is a debian link which may get you on the right path: http://wiki.debian.org/BuildingCrossCompilers .

And some help specific to NSLU2: http://www.nslu2-linux.org/wiki/HowTo/HomePage


As Jefro suggested these both reference qemu-arm ...
B

Last edited by bmxcess; 04-23-2010 at 08:57 AM.
 
Old 04-27-2010, 10:29 AM   #8
kazola!
LQ Newbie
 
Registered: Jan 2008
Distribution: Slackware, Fedora, FreeBSD
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks a lot

Finally, the module was for 2.6.1x kernel series.
Since OpenWRT 10.3 on NSLU2 uses 2.6.32.10 thereis no change to get it working easily.
Thanks a lot for all your answers!
 
  


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
Good morning, god day, good afternoon, good night! wumpel LinuxQuestions.org Member Intro 3 10-07-2010 05:57 AM
LXer: IBM Sun acquisition : Good for Unix. Good for Linux. Bad for HP LXer Syndicated Linux News 0 03-18-2009 12:00 PM
A good live distro with a good hardware diagnostic & profiling program? studpenguin General 2 11-25-2008 04:37 AM
Good morning, Good evening, Good night. Cheeseboy LinuxQuestions.org Member Intro 2 11-04-2004 10:46 PM
xine-lib trouble & more misc questions...-- a samaritan expert's dream come true bandofmercy Linux - Newbie 6 03-01-2003 08:24 PM


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