Sourcery CodeBench Lite

Current versions

Component Version
GNU programming tools
GNU Compiler Collection 4.7.3
GNU Binary Utilities 2.23.52
Debugging support and simulators
GNU Debugger 7.4.50
Target libraries
CodeSourcery Common Startup Code Sequence 2013.05-23
C Library

Toolchain installation

chmod u+x arm-2013.05-23-arm-none-eabi.bin
Checking for required programs: awk grep sed bzip2 gunzip
Error: DASH shell not supported as system shell
The installer has detected that your system uses the dash shell
as /bin/sh.  This shell is not supported by the installer.
You can work around this problem by changing /bin/sh to be a
symbolic link to a supported shell such as bash.
For example, on Ubuntu systems, execute this shell command:
   % sudo dpkg-reconfigure -plow dash
   Install as /bin/sh? No
Please refer to the Getting Started guide for more information,
or contact CodeSourcery Support for assistance.
sudo dpkg-reconfigure -plow dash
[sudo] password for pezzino:
Removing 'diversion of /bin/sh to /bin/sh.distrib by dash'
Adding 'diversion of /bin/sh to /bin/sh.distrib by bash'
Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash'
Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash'
sudo dpkg-reconfigure -plow dash
Removing 'diversion of /bin/sh to /bin/sh.distrib by bash'
Adding 'diversion of /bin/sh to /bin/sh.distrib by dash'
Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash'
Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash'

The installer will complain about dash being the default shell, using the provided command and selecting ‘No’ you can switch to bash shell. After the installation process it is better to switch back to dash.
The next command add the binaries to the system path:

echo "export PATH=/share/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin:\${PATH}" >> ~/.bashrc
%cat ~/.bashrc
export PATH=/share/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin:${PATH}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.