- April 26, 2017 at 3:37 pm #55679
Hi, just a quick note before we get started: This topic is closed to replies. If you have questions or problems downloading any of the tools covered here please search the existing topics or start a new topic with your question.
This topic covers how to install everything you need to write, compile, and debug programs using the Codescape Tools on Linux. We recommend that you install the tools in the order covered in this guide and into the default locations. If you’d like to install these tools so that all users on the system can use them then you will need to run the installers a root (or using sudo). The default (and recommended) installation locations are rooted at:
- Local Installation: ~/.local/opt/imgtec
- System Installation: /opt/imgtec
Python 2.6 or Python 2.7
Scripting support requires Python 2.6 or Python 2.7. Most Linux distributions have one of these already present. Verify that it is installed by opening a shell and typing ‘python –version’:
>python –version Python 2.7.7
Install: Codescape SDK Essentials
Run the installer. You have a few choices to make during the installation process. The first choice you have is whether or not to accept the license agreement. Assuming you make the correct choice here, you can move on to the (technically) important questions:
Installer Page: Shared or Local Install
On this page you can select to do a local install (for the current logged in user) or a Shared install (for all users). In order to do a Shared install you must run the install as root.
Installer Page: Development Type
This page lets you decide which toolchains types to install. We strongly recommend the “Bare Metal Application” toolchain. If you intend to develop Linux userland applications of kernel distributions then you can also install the “GNU Linux Application” toolchain. Keep in mind that, unless you need it, the “GNU Linux Application” toolchain installation takes much longer and uses significantly more disk space.
Installer Page: Development Core
Check one or more of the core classes that you plan on working with.
Complete the installation
Click [Next] to start (and finish) the installation. The installer will download only the components that you have chosen to install. Time to install will vary with the number of toolchains and the internet connection speed.
When the installation is complete the chosen toolchains will be installed to the following (default) path:
C:\Program Files\Imagination Technologies\Toolchains
The toolchain binaries directory will be added to the environment path.
Verify that all is good by opening a command prompt and checking the version of the compiler:
/home/gandalf> mips-mti-elf-gcc –version mips-mti-elf-gcc (Codescape GNU Tools 2016.05-03 for MIPS MTI Bare Metal) 4.9.2 Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. /home/gandalf>
Depending on your answers to the installer questions one or more of the following compilers will be installed:
Install: Codescape Debugger
Run the installer, accept the license agreement, select a local or shared installation, select whether to install scripting support (we recommend that you do), and let the installer run. At the end of the installation process you will be asked if you would like to install the Python scripting packages. Codescape Console is installed as part of the scripting support framework.
Install: Codescape for Eclipse
Run the installer, accept the license agreement, select a local or shared installation, select whether to install scripting support (we recommend that you do), and let the installer run.
Install: MIPS Core Hardware Support Packages
This is very straight-forward. Simply run the installer, select a local or shared installationl, and you are done.
Once you have completed all of the install you will need to log out and back in again to pick up changes to path so that you can run your new tools.
This topic is temporarily locked.