Toolchain from scratch

Hi all,

Is there any tutorial which explains how to build toolchain from scratch for beagleboard?

As far as I saw, there are many tutorials but there is an issue with glibc (not supported anymore?) or eglibc (arm support?).

Best regards,
Darko T.

I am pretty sure you can download source from codesourcery and compile it

http://www.codesourcery.com/

Not exactly a tutorial, but check:

www.gnuarm.com

in the Support page it has a step by step process on how to build the
gcc toolchain for arm targets. I've used it successfully in the past.

Hope it helps.
Claudio

Cospan wrote:

arm-v5te-linux-gnueabi_gcc-4.3.2_glibc-2.8_binutils-2.18_kernel-2.6.27-
sanitized.ptxconfig

and why would you use a v5te toolchain for a v7 arm architecture?

it takes a LONG time to compile the toolchain... even though its doing
everything for you, but it ends up being a toolchain that you can use
for commercial purposes... (I think)

why would other toolchains not be usable for commercial purposes?

Well, actually I “downloaded” the toolchain from codesourcery…

http://www.codesourcery.com/sgpp/lite/arm/portal/release1033

Why would you like to build your own? Are there hidden issues with it?

Fabio

I have built my own toolchain from scratch using instruction from
CLFS (http://cross-lfs.org/view/clfs-2.0/arm/cross-tools/
chapter.html) and source (not tools). I had some issue in the process
but now i have a working toolchain that can compile u-boot, kernel
2.6.29 and busybox. I have also built a rootfs from scratch, using
this toolchain, that works.

Thank you all for the answers I’ll check the links.

Actually, there is no hidden reason for building the tools from scratch. I just wanted to try it for educational purposes :slight_smile:

Best regards,
Darko T.

Just one more question:

I’ve seen many targets used for arm (arm-unknown-linux, arm-linux-gnueabi, arm-none-eabi …). Which of them is the best for omap3530 and beagle?

Best regards,
Darko T.

Just one more question:

I've seen many targets used for arm (arm-unknown-linux, arm-linux-gnueabi,
arm-none-eabi ....). Which of them is the best for omap3530 and beagle?

It depends on what you are doing.

If you are compiling Linux applications probably arm-linux-gnueabi- or
arm-unknown-linux

If you are compiling code to run directly on the board, with no OS,
arm-none-eabi is the way to go.