Project

General

Profile

Linux Build Virtual Machine

In order to ease software configuration setup for first time linux developers, Critical Link has developed a Virtual Machine using the Sun VirtualBox virtual machine product. The linux virtual machine is configured to include the necessary tools and projects in order to start developing applications for the MityDSP-L138 and MityARM-1808 products. Users of the virtual image should consult the VirtualBox licensing restrictions and determine if they need to purchase a license from Sun/Oracle.

The Virtual machine is configured to provide a Ubuntu 14.04 LTS (Long Term Support) environment using a 64 bit architecture.

For the Virtual Machine, the default user is "mitydsp" and the password is also "mitydsp" (this is necessary for sudo operations).

Downloading and Installing the Virtual Machine

The Virtual Machine image is available via download via the link below or you may request a copy that will be delivered on a USB Drive. The image is approximately 10 GBytes, so users electing the download image should expect a lengthy transfer time. It is recommended to install the latest "virtualbox guest additions:https://www.virtualbox.org/manual/ch04.html#idm1959 after importing VM.

Virtual Machine Download link: http://support.criticallink.com/files/Critical_Link_Unified_VM_14-04_02-2018.ova (md5sum: c193bfb668cf12b1829b28b98da22dcb)

Deprecated Versions:
Old 14.04 VM: http://support.criticallink.com/files/Critical_Link_Unified_VM_14-04_04-2017.ova (md5sum: 03531ac0aa223b4d18076f2e40595820)
Old 10.04 VM: http://support.criticallink.com/files/mitydspl138/MityDSP-L138_SDK_2012_06_13.ova (md5sum: 4b598247c5d5c2f9370ca114f5c07485)


VM Build Steps

This section outlines the steps taken to build the Virtual Machine. It may be useful for developers setting up their own native development environment.

  1. Install Ubuntu 16.04 LTS
  2. Allow Upgrade Manager to apply 16.04 LTS software upgrades (after install)
  3. Install Guest Additions
    - Select Devices->Install Guest Additions
    - Launch a terminal shell
    mitydspl138@mitydspl138:~# sudo -i
    root@mitydsp:~# apt-get install dkms
    root@mitydsp:~# cd /media/VBOXADDITIONS_3.1.6_59338
    root@mitydsp:/media/VBOXADDITIONS_3.1.6_59338# sh ./VBoxLinuxAdditions-x86.run
    

    - Close Shell and Restart Machine
  4. Switch shell to bash. Needed for several scripts
    run sudo dpkg-reconfigure dash and respond "No" to the prompt asking "Install dash as /bin/sh?"
  5. Install ARM Toolchain for Angstrom Build
    - Open Firefox and go to http://support.criticallink.com/redmine/projects/arm9-platforms
    - if you don't have an account, register for one
    - download the 32 bit version of the GCC toolchain
    - start a shell and install the toolchain
    mitydsp@mitydsp-dev:~$cd Downloads
    mitydsp@mitydsp-dev:~/Downloads$ sudo tar xjf mitydspl138_toolchain_20100508.tar.bz2 -C /
    
  6. Install Source Control Utilities (GIT and Subversion), using a terminal shell
    mitydsp@mitydsp-dev:~/Downloads$ sudo apt-get install git-core subversion
    
  7. Install Eclipse IDE Framework and CDT extensions
    - From a shell
    mitydsp@mitydsp-dev:~$ sudo apt-get install eclipse
    

    - To install the extensions, you need to launch eclipse and configure loading the CDT:
    -- Start Eclipse by selecting Applications->Programming->Eclipse
    -- Check for updates by running Help->Check For Updates
    -- Select Help->Install New Software
    -- Enter "http://download.eclipse.org/tools/cdt/releases/galileo" in the Work With: section and click Add
    -- The Name would be "CDT Downloads"
    -- Click checkbox on "CDT Main Features"
    -- Open CDT Optional Features and Select "C/C++ Development Platform" and "C/C++ Remote Launch"
    -- Click Next, and Next Again
    -- Accept the license Agreement, click Finish
  8. Setup u-Boot project
    mitydsp@mitydsp-dev:~$ mkdir projects
    mitydsp@mitydsp-dev:~$ cd projects
    mitydsp@mitydsp-dev:~/projects$ git clone git://support.criticallink.com/home/git/u-boot-mitydspl138.git
    mitydsp@mitydsp-dev:~/projects/u-boot-mitydspl138$ make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- mityomapl138_config
    mitydsp@mitydsp-dev:~/projects/u-boot-mitydspl138$ make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi-
    
  9. Setup linux kernel project
    mitydsp@mitydsp-dev:~$ mkdir projects
    mitydsp@mitydsp-dev:~$ cd projects
    mitydsp@mitydsp-dev:~/projects$ git clone git://support.criticallink.com/home/git/linux-davinci.git
    mitydsp@mitydsp-dev:~/projects/u-boot-mitydspl138$ make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- mityomapl138_defconfig
    mitydsp@mitydsp-dev:~/projects/u-boot-mitydspl138$ make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- menuconfig # this stage is optional...
    mitydsp@mitydsp-dev:~/projects/u-boot-mitydspl138$ make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- uImage
    
  10. Install TI DSP compiler and BIOS needed for DSPLink
    
    
  11. Install CCS5 Installing_CCS5_for_L138_DSP
  12. Install various build tools
    sudo apt-get install build-essential checkinstall cmake cdbs devscripts dh-make fakeroot libxml-parser-perl check libc6-dev libtool sharutils libncurses5-dev libgmp3-dev libmpfr-dev gawk gettext bison flex gperf indent texinfo libgtk2.0-dev libgtk2.0-bin libsdl1.2-dev swig python-dev texlive-latex3 texlive-extra-utils binutils-dev automake guile-1.8 icon-naming-utils libdbus-glib-1-dev wget gtk-doc-tools libxml-parser-perl zip unzip ecj fastjar x11-xkb-utils libglade2-dev libperl-dev python-libxml2 libexpat1-dev gconf2 groff libc6-dev python-devel mono-complete u-boot-tools
    

    For 64-bit host machines only:
     sudo apt-get install libc6-dev-i386
  13. Getting CCS5 to Work (for 64-bit)
    sudo apt-get install libc6-i386 libx11-6:i386 libasound2:i386 libjpeg62:i386 libatk1.0-0:i386 libcairo2:i386 libdbus-1-3:i386 libdbus-glib-1-2:i386 libfontconfig1:i386 libfreetype6:i386 libgconf-2-4:i386 libgdk-pixbuf2.0-0:i386 libgtk2.0-0:i386 libice6:i386 lib32ncurses5 liborbit2:i386 libpango-1.0-0:i386 libpangocairo-1.0-0:i386 libpangoft2-1.0-0:i386 libpng12-0:i386 libsm6:i386 lib32stdc++6 libusb-0.1-4:i386 libx11-6:i386 libxext6:i386 libxi6:i386 libxrender1:i386 libxt6:i386 libxtst6:i386 lib32z1 libgnomevfs2-0:i386 libcanberra-gtk-module:i386
    

    Also needed for CCS6 (64-bit)
    http://processors.wiki.ti.com/index.php/CCSv6
    sudo apt-get install libudev1:i386
    sudo ln -sf /lib/i386-linux-gnu/libudev.so.1 /lib/i386-linux-gnu/libudev.so.0
    

    Source:
    http://processors.wiki.ti.com/index.php?title=How_to_Build_a_Ubuntu_Linux_host_under_VirtualBox

Add picture from clipboard (Maximum size: 600 MB)