LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   Cross compiling Mono for ARM device running on Linux 2.4 (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/cross-compiling-mono-for-arm-device-running-on-linux-2-4-a-775472/)

kartiknatarajan 12-14-2009 12:31 AM

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.

knudfl 12-14-2009 11:33 AM

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.
.....

kartiknatarajan 12-14-2009 05:52 PM

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.

knudfl 12-14-2009 06:20 PM

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.
.....

kartiknatarajan 12-15-2009 07:48 PM

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.

kartiknatarajan 12-16-2009 10:59 PM

@knudlf - pls let me know if u have any suggestions for cross compilation?


All times are GMT -5. The time now is 08:54 AM.