My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
EmdebianCross  
How to install the emdebian tools & toolchains.
emdebian, toolchain, armel
Updated Jan 12, 2012 by buser...@gmail.com

Introduction

Once you are in debian proper, you need some configuration legwork to get the cross environment working. If you run Ubuntu, see EmdebianChroot for a howto install a sandbox.

Note that you might need to install extra pcakges as you go along for everything to work. If you want to make your own toolchain if the binary ine is not available, you have to use emchain too, see bellow.

Details

Install emdebian-tools, if not already done so.

 # *aptitude install emdebian-tools* 

First, select the default architecture. We use armel for mini2440.

 # *dpkg-reconfigure dpkg-cross* 

Next, let emsetup add itself to the source list, and also upgrade itself if necessary.

 # *emsetup* 

Now it's time to install all the relevant toolchains and headers:

 # *aptitude install libc6-armel-cross libc6-dev-armel-cross binutils-arm-linux-gnueabi gcc-4.3-arm-linux-gnueabi g++-4.3-arm-linux-gnueabi* 

Build a toolchain

If the toolchain is not available as a binary in embedian, you need to use emchain to build one.

emchain takes a long time, and will probably fail to work the first times due to lack of dependencies on your system, so read the errors carefully and install missing packages with aptitude install XXXX where XXXX is bison, autogen and all that.

Other than this it should be pretty straightforward!

Comment by pvin1...@yahoo.no, May 28, 2009

Does this work on Lenny? As of 28 May, 2009 I see this: "emchain: Error. Mismatch in source versions; armel does not appear to have built version 2.18.1~cvs20080103-7 of binutils successfully yet. Therefore it is unlikely that emchain will be able to build a usable cross-compiler ...". Couldn't you provide binaries? I want to build a Debian 5.0 full system like I have on my NSLU2 but running off the SD card (rather than a USB key on the NSLU2).

Comment by findlayb...@gmail.com, Jul 21, 2009

Hi, Just did a first time install. It appeared to work flawlessly on my (uname -a) Linux LinuxAtom? 2.6.26-2-amd64 #1 SMP Thu May 28 21:28:49 UTC 2009 x86_64 GNU/Linux

Working on a heavy duty Intel Atom 330 (dual processor atom).. great little board from Intel.. amazing what $75 dollars can buy you. Anyway.. thanks!

Comment by f.m.go...@gmail.com, Feb 24, 2011

I've tried on a ubuntu 10.04, making a chroot for debian according to this tuturial: http://code.google.com/p/mini2440/wiki/EmdebianChroot The problem i have is that when I try to execute emsetup it doesn't exist. Any tip about this problem? Thanks

Comment by frij...@gmail.com, May 5, 2011

If you used the EmdebianChroot tutorial, emdebian-tools no longer contains emsetup. This script amongst other things adds the apt sources required so you can download the compilers etc.

To get round this, simple:

Edit '/etc/apt/sources.list' and add the line:

deb http://www.emdebian.org/debian/ squeeze main

Now execute a 'apt-get update' and then:

aptitude install libc6-armel-cross libc6-dev-armel-cross binutils-arm-linux-gnueabi gcc-4.3-arm-linux-gnueabi g++-4.3-arm-linux-gnueabi

If you want to take a more detailed look at what the script does, you can browse the source here: http://www.emdebian.org/trac/browser/tools/emdebian-tools/trunk/emsetup?rev=640

Hope that helps...

Comment by codehelp...@gmail.com, Feb 21, 2012

emdebian-tools is for Debian Lenny only, it is several years out of date. Packages are available for armv4 (StrongARM) but no packages for armv5 or later. Use the existing toolchains from Emdebian for Debian Squeeze which can be installed in later versions of Debian as well, including unstable. For smaller packages which are binary-compatible with Debian, use Emdebian Grip. (See the www.emdebian.org website for up to date information.)


Sign in to add a comment
Powered by Google Project Hosting