Installing toolchain in ubuntu for arm

5,153 views
Skip to first unread message

Ganesh

unread,
Jul 13, 2012, 1:35:59 AM7/13/12
to levana-te...@googlegroups.com
Can any one please explain me how to install toolchain for arm in ubuntu
Thank You

Sarang Kalbande

unread,
Jul 13, 2012, 1:52:40 AM7/13/12
to levana-te...@googlegroups.com

Ubuntu has pre-packaged cross-compilers for ARM directly in the archive since Ubuntu 10.10, so you shouldn’t need any special repository with recent Ubuntu releases; just
sudo apt-get install gcc-arm-linux-gnueabi.
If you’re running Ubuntu 10.04, there are backports of this
cross-toolchain in a PPA maintained by Linaro:

sudo add-apt-repository ppa:linaro-maintainers/toolchain
sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabi



On Fri, Jul 13, 2012 at 11:05 AM, Ganesh <dan.da...@gmail.com> wrote:
Can any one please explain me how to install toolchain for arm in ubuntu
Thank You



--
Thanks & Regards,
Sarang M.Kalbande
MO:9920019719

Ganesh Rahate

unread,
Jul 13, 2012, 1:52:45 PM7/13/12
to levana-te...@googlegroups.com
Thank for your reply sir

But sir I have already done this and still my compiler give  me error
sh: 1: arm-elf-gcc: not found

Sarang Kalbande

unread,
Jul 14, 2012, 12:57:01 AM7/14/12
to levana-te...@googlegroups.com
This may be beacuse gcc/binutils are not build correctly or the PATH is not properly set.

Try to find where arm-elf-* commands are exactly locating.

use this to find

find/usr/local/crossgcc -name "arm-elf-*"

Then just add this path to PATH environment variable,e.g.(provided the command above told that arm-elf-gcc is /usr/local/crossgcc/bin/arm-elf-gcc)


export PATH=$PATH:/usr/local/crossgcc/bin

Ganesh Rahate

unread,
Jul 15, 2012, 2:48:50 AM7/15/12
to levana-te...@googlegroups.com
Thank you sir
Now I have successfully setup compiler now i can compile my file but
my lpc21isp is giving me error 

You may have to bring the target in bootloader-mode now.
sudo lpc21isp   main.hex /dev/ttyS0 38400 12000
sudo: lpc21isp: command not found
make: *** [program] Error 1

i have use this file lpc21isp-1.64.tar.gz and copy lpc21isp executable to /usr/local/bin

but i am totally clue less what to do , its not working 
sir please tell me how to set up lpc21isp 
And thank you for your time
Reply all
Reply to author
Forward
0 new messages