LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-14-2009, 12:31 AM   #1
kartiknatarajan
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Rep: Reputation: 0
Cross compiling Mono for ARM device running on Linux 2.4


Hi,

I am trying to cross compile Mono to install it on a device running on Intel PXA255 processor with Linux 2.4 kernel. I was able to cross compile the mono using scratchbox but the binaries are for Linux 2.16 (as my host is Linux 2.16) and thus are not supported in the device.

can anyone please advice how can I cross compile for Linux 2.4 from Linux 2.6.

thanks.
 
Old 12-14-2009, 11:33 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,632

Rep: Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531
Welcome to LQ.

So what is Linux 2.16 ? ?
Please tell the real name of your Linux.
Like CentOS 5 or Debian 5.

I don't think mono cares about kernel,
but if the scratchbox libc is a later version
than your taget, it won't work.

The used cross tools must include an equal
or older (g)libc than your target.
.....
 
Old 12-14-2009, 05:52 PM   #3
kartiknatarajan
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Welcome to LQ.

Thank you

So what is Linux 2.16 ? ?
Please tell the real name of your Linux.
Like CentOS 5 or Debian 5.

I am using an Ubuntu 9.10 on a VM.

I don't think mono cares about kernel,
but if the scratchbox libc is a later version
than your taget, it won't work.

The device which I need to run the mono on is a stargate which runs on an Intel PXA 255 processor and linux 2.14.

The used cross tools must include an equal
or older (g)libc than your target.

So if I include a glibc which is equivalent to the one in my device will the binaries compiled on linux 2.6 would work fine on 2.4?

I am sorry if my questions are to naive, I am just a beginner.
 
Old 12-14-2009, 06:20 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,632

Rep: Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531
A glibc cannot be included.
Glibc is the system library for your cross toolchain,
and is not possible to change.
Everything you compile with the current cross toolchain,
will depend on that glibc version.

You will have to investigate, which version of glibc
is used on the target.

And use a different cross toolchain with an older glibc.
.....
 
Old 12-15-2009, 07:48 PM   #5
kartiknatarajan
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Yes, I think this might be the reason the glibc on the device is version 2.2.5 and in the scratchbox its 2.5. I am still trying to compile a toolchain. I looked for it on the internet but things are not completely clear. Can you help me with some links that u may know for compiling a tool chain.

Thank you.

Last edited by kartiknatarajan; 12-16-2009 at 11:42 AM.
 
Old 12-16-2009, 10:59 PM   #6
kartiknatarajan
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Original Poster
Rep: Reputation: 0
@knudlf - pls let me know if u have any suggestions for cross compilation?
 
  


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
Trying to cross-compile mono for ARM hal_2001 Programming 2 05-11-2010 03:18 PM
Cross compiling for ARM Hachaso Programming 1 06-26-2009 06:07 AM
Problem compiling BlueZ stack on ARM ( cross compilation from linux x86) shilpates Linux - Wireless Networking 1 08-20-2008 03:02 AM
Cross compiling utftpd on arm linux SachinTCS Linux - Software 1 04-13-2007 10:03 PM


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