How To Install ELDK Toolchain

18 Dec

In this post I’m going to describe how to install ELDK toolchain.

You can download the toolchain from ELDK’s website. It’s somewhat big in size. Around 500MB. I have downloaded arm-2008-11-24.iso

Create a folder in /mnt directory and in your home directory which in my case is

$ sudo mkdir /mnt/iso

$ mkdir /home/egenc/ELDK

Mount the iso file to the newly created folder.

$ sudo mount -o loop /home/egenc/Desktop/arm-2008-11-24.iso /mnt /iso

Go to the folder

$ cd /mnt/iso

$ ./install –d /home/egenc/ELDK

 Now go to the ELDK directory and change the mode of the eldk_init file to executable

$ cd /home/egenc/ELDK

$ chmod 755 eldk_init

You can set the environment variables for ELDK by two ways.

You can either execute the following command every time you open a new shell.

$ cd /home/egenc/ELDK

$ ./eldk_init

Or more practically you can add the following lines to bashrc file so that every time you open a new shell the variables are assigned automatically.

$ gedit ~/.bashrc

Add the following linet o the end of the file and save it.

export PATH=/home/egenc/ELDK/usr/bin:/home/egenc/ELDK/bin:$PATH

You can save and close the file.

Now type

$ source ~/.bashrc

İn order for the changes to take effect.

You can repeat the same procedure fort he root user as well.

$ sudo su

$ gedit ~/.bashrc

Add the line

export PATH=/home/egenc/ELDK/usr/bin:/home/egenc/ELDK/bin:$PATH

Save and close

$ source ~/.bashrc

Now every time open a shell either as a normal user or a root user the PATH variable will be set automatically.

I hear some of you ask why bother setting the PATH variable. Well, if you type arm-linux-gcc, the shell will know where to look for the executable file. Otherwise you will have to type it explicitly specifying its directory such as

$ /home/egenc/ELDK/bin/arm-linux-gcc

Now you are ready to compile your code

$ arm-linux-gcc Hello_World.c –o Hello_World

That’s all folks.

P.S: arm-linux-gcc is just a symbolic link pointing to arm-linux-gnueabi-gcc


Posted by on December 18, 2012 in Linux


3 responses to “How To Install ELDK Toolchain

  1. Hamdi

    May 23, 2013 at 3:17 AM

    How to install code sourcery section I cant’ find !!

    • emreboy

      June 15, 2013 at 1:16 PM

      I haven’t wrote a part on how to install Codesourcery but u can install it in a similar way to ELDK.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: