Miriam Ruiz
random thoughts on technology and life











{April 27, 2007}   Building a cross-compiler

When I first started to build my own cross-compiler and my own toolchain, I didn’t think that it was so delicate. It took me almost two weeks to have it working, always fighting quite cryptical errors that could be solved with very unevident switches. Lots of thanks go to Simon Richter and Rob Landley for their help, among many others. I wouldn’t have done it without them.

What you need:

Steps:

Links:

You can download my script for building the compiler if you want. Feedback is welcome.



Josh says:

You might also find my HOWTO for building Debian-packaged cross-compilers useful: http://wiki.debian.org/BuildingCrossCompilers .



Douglas Davenport says:

Congratulations, I have not built a cross compiler in many years. I still recall the first time that I tried. It probably took me two weeks as well. Just out of curiosity what was the target CPU?



Super Coco says:

Me creo que tuvieras un montón de problemas… Yo estuve unos días instalándome una “Linux From Scratch” y siguiendo el libro más o menos al pie de la letra, cualquier tontería que hiciera mal o si me desviaba mínimamente del guíaburros lo echaba todo a perder y lo estropeaba todo.



Miry says:

Thanks! :)

Douglas, my first target architecture was simply a geode, that is more or less a i586. My second one will probably be a ARM processor, lets see how it goes.



Miry says:

I’ve been given a couple of links more:

http://kegel.com/crosstool/
http://linux.bytesex.org/cross-compiler.html

Thanks! :)



em says:

You could also join the emdebian subproject which has an already built cross toolchain and istructions about building your own.



OnlyHype.com » Blog Archive » DNS-323/CH3SNAS: A low cost NAS and embedded development says:

[...] After this long preamble about opensource and NASes :) , let’s talk briefly about Linux and embedded development. There are many ways to start learning Linux for those who come from a MSWindows background such as installing a random distribution, maybe on a virtual machine, and so on… But what the DNS323 and similar devices give you the opportunity to get a taste of what embedded development is. The hardware platform reminds what you could find in your average pocket-pc and is good enough for this use:  a Marvell SoC with an ARM926Tj at 500Mhz and 64Mb of RAM. Don’t limit your experience to installing a different UPnP AV Server or the latest Transmission/mldonkey, try to compile some software yourself and experiment. Browse the WIKI to discover what a toolchain is, how you can cross-compile software for different CPUs (in this case an ARM926) on a x86 host and which are the main differences among glibc and libraries like uclibc, eglibc, etc… This post should contain enough pointers for you to start ;) . Tags: ch3snas, conceptronic, dns-323, embedded, ffp, NAS, opensource [...]



Leave a Reply


about

This is a personal webpage that belongs to Miriam Ruiz.
If you want to contact her, you can do at:
webmistress(at)miriamruiz(dot)es.

pages
categories
archive
twitter
calendar
September 2010
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
27282930EC
upcoming events
credits
La Lista de Sinde
en isoHunt