Integrating Intel® Software Development Tool Suite Components with MeeGo* SDK and Image Creator

Submit New Article

August 31, 2010 12:00 AM PDT


This article describes how to install components of the Intel® Software Development Tool Suites for Intel® Atom™ Processor with the MeeGo* SDK and its chroot environment and Image Creator.

This allows the Intel® C++ Compiler and the Intel® Integrated Performance Primitives (Intel® IPP) to be used inside the Image Creator's protected jailroot/chroot environment.

It also allows one to make sure the MeeGo* target image created contains the idbserver, the Intel® Application Debugger remote debug server, as well as a copy of the Intel® VTune™ Performance Analyzer Sampling Collector (SEP) installation for the Intel® Atom™ Processor.

The Intel Software Development Tool Suites for Intel Atom Processor offer two distinct options for tight integration of Intel's development tools with MeeGo*'s development and testing environment. The MeeGo* SDK development options that this tool suite integrates with are outlined at http://wiki.meego.com/SDK/Docs/1.1/MeeGo_developer_story. You can download an existing MeeGo* image from http://www.meego.com for development and testing on this image and install target specific components of the Intel Application Software Development Tool Suite into it. Alternatively, you can also download and install the MeeGo*Image Creator, which is part of the MeeGo* SDK from http://www.meego.com and integrate development tool suite components into its chroot environment with Xephyr* as well as prepare the target image created by MeeGo* Image Creator to contain the Intel VTune Performance Analyzer Sampling Collector (SEP) and Intel Application Debugger debug agent (idbserver) for testing and performance tuning.


Whether you intend to do most of your development on a live MeeGo* image running inside a QEMU* or KVM*-based virtual machine or whether you intend to do your development in a protected jailroot/chroot environment, there are tools components that should be installed on your development host system and should be independent of your MeeGo*-based Intel Atom processor target.

It is recommended to register for the Intel Application Software Development Tool Suite for Intel Atom processor at http://software.intel.com/en-us/articles/intel-tools-for-intel-atom-processors/ and download it at https://registrationcenter.intel.com. It is also recommended to install at least the Intel VTune Performance Analyzer and the Intel Application Debugger following the steps outlined in the product installation guide Install_All.htm. This will take care of installing the host components to take advantage of the Intel Application Software Development Tool Suite's performance analysis, tuning and debug capabilities.

To install the Intel C++ Compiler and the Intel Integrated Performance Primitives into the MeeGo* Image Creator jailroot environment and prepare the MeeGo* Image Creator-produced target image to also include the Intel Application Debugger debug agent (Idbserver) and the Intel VTune Analyzer Sampling Collector (SEP), please follow the steps below:

 

  1. Go to http://www.meego.com and download MeeGo* Image Creator. Detailed Image Creator documentation can be found at:
    The Image Creator itself can be downloaded at  http://meego.gitorious.org/meego-developer-tools/image-creator.
  2. Follow the instructions you find at meego.com for installing the Image Creator.
  3. Go to http://software.intel.com/en-us/articles/meego-integration-software-development-tool-suite-atom/ and download the two scripts netbook-core-developer_JAILROOT.ks and netbook-core-developer_TARGET.ks .
  4. To create a KVM* image or a Live-CD of the target Moblin* system, please use netbook-core-developer_TARGET.ks:


> mic-image-creator -c <path_to_ks>/netbook-core-developer_TARGET.ks -f raw --cache=/tmp/mycache

The image created will contain The Intel Application Debugger idbserver and the Intel VTune Performance Analyzer Sampling Collector for target system located as a tarball in the /tmp directory. TheParameter '-f raw' of the moblin-image-creator command instructs the Moblin* Image Creator to create an image which can be loaded into a KVM* virtual machine. For more information on Moblin* Image Creator usage please consult moblin.org.

  1. To create an image with the Intel C++ Compiler and Intel IPP that you can then use to do builds in a protected jailroot/chroot environment before creating the target image, please use netbook-core-developer_JAILROOT.ks:


> mic-image-creator -c <path_to_ks>/netbook-core-developer_JAILROOT.ks -f loop --cache=/tmp/mycache

The image will contain the Intel C++ Compiler and Intel IPP at /opt/intel/Compiler. The command parameter '-f loop' of moblin-image-creator tells it to create a loop image. You can mount this image and then chroot into it for your protected builds using the following commands:

 


> mount -o loop netbook-core-developer_JAILROOT.img /mnt/loop
> chroot /mnt/loop su

 

  1. To additionally install the Intel VTune Performance Analyzer Sampling Collector (SEP), you would download it directly from http://downloads.meegozone.com/development-tool-suite/rpm/vtune91u8_target.tar.gz and unpack it and install it in the Moblin* environment. Please be advised that using SEP is only supported on real Intel Atom processor-based hardware and not on OS images running under KVM*.

     

Advanced

If you would like to modify the kickstart script templates provided with the MeeGo* Image Creator yourself, below is a short outline of the changes we apply to the template scripts provided with the Moblin* Image Creator to enable our integration. The example kickstart scripts for the Image Creator can be found in /usr/share/mic after you install it.

To enable integration of the Intel Software Development Tool Suite, you would do the following:

  1. Add a repository entry for the Intel Software Development Tool Suite to the header of the ks file:  
    > repo --name=intel-tools --baseurl=http://downloads.meegozone.com/development-tool-suite
  2. add packages which you want to install into Moblin image in %packages section of the ks file.
    There are 4 groups of Intel packages which you may want to install:
    @Compiler
    @IPP
    @Application Debugger
    @Server agent for Application Debugger

Each of these groups contains a set of rpm files related to the corresponding products.

@Compiler contains the Intel(R) C++ Compiler for applications runninng on IA-32
@IPP containsthe Intel(R) IPP for Intel(R) Atom(TM) Processor
@Application Debuggers contains the Intel(R) Application Debugger 2.0 for Intel(R) Atom(TM) Processor
@Server agent for Application Debugger conntains the Intel(R) Debugger Remote Server (idbserver)

 


Each group of packages contains the information about its dependencies which will be automatically resolved during the installation.

 

Host Install


It is recommended to register for the Intel® Application Software Development Tool Suite for Intel® Atom™ Processor or the Intel® Embedded Software Development Tool Suite for Intel® Atom™ Processor at http://software.intel.com/en-us/articles/intel-tools-for-intel-atom-processors/ and download it at https://registrationcenter.intel.com. It is also recommended to install at least the Intel VTune Performance Analyzer and the Intel Application Debugger following the steps outlined in the product installation guide Install_All.htm. This will take care of installing the host components to take advantage of the Intel Application Debugger and Intel VTune Perfromance Analyzers debuging and performance optimization tuning capabilities.

If you wanted to, you could also do the host component install using the kickstart script approach of Image Creator. This is however not the recommended approach.
To any kickstart script of your choice, you would add  the '%post --nochroot' section shown below for copying of the Intel VTune Performance Analyzer and the Intel Application Debugger to the host machine and VTune Performance Analyzer sampling collector for embedded systems (SEP-embedded) to the target image.


%post --nochroot

# Copying vtune_for_targets to the target image (set your proxy here if needed)
echo "Downloading required additional packages..."
export http_proxy=http://proxy.jf.intel.com:911
test -s /tmp/vtune91u8_target.tar.gz || wget http://downloads.meegozone.com/development-tool-suite/rpm/vtune91u8_target.tar.gz -O /tmp/vtune91_target.tar.gz
cp /tmp/vtune91u8_target.tar.gz $INSTALL_ROOT/tmp/vtune91_target.tar.gz

# copying VTune for host to the user's host machine
test -d /tmp/intel-tools || mkdir -p /tmp/intel-tools
test -s /tmp/intel-tools/l_vt_pu_9.1.021.tar.gz || wget http://downloads.meegozone.com/development-tool-suite/l_vt_pu_9.1.xxx.tar.gz -O /tmp/intel-tools/l_vt_pu_9.1.xxx.tar.gz

# copying Application Debugger to the user's host machine
test -d /tmp/intel-tools/idb || mkdir -p /tmp/intel-tools/idb
wget http://downloads.meegozone.com/development-tool-suite/rpm/intel-mid_idb2xxxx-2.x.xxx-001.i486.rpm -O /tmp/intel-tools/idb/intel-mid_idb2xxxx-2.x.xxx-001.i486.rpm
wget http://downloads.meegozone.com/development-tool-suite/rpm/intel-mid_idb-kernel2xxxx-2.x.xxx-001.i486.rpm -O /tmp/intel-tools/idb/intel-mid_idb-kernel2xxxx-2.x.xxx-001.i486.rpm
wget http://downloads.meegozone.com/development-tool-suite/rpm/intel-mid_idb-eclipse2xxxx-2.x.xxx-001.i486.rpm -O /tmp/intel-tools/idb/intel-mid_idb-eclipse2xxxx-2.x.xxx-001.i486.rpm

# Installing App Debugger (if needed, please remove the comments)
# TODO: write some lines, so that add installation for non-rpm systems (like Ubuntu 8.10)
#echo "Installing an Application Debugger..."
#type -P rpm &>/dev/null
#if [ $? -eq 0 ]; then
# rpm -U --force --nodeps /tmp/intel-tools/idb/intel-mid_idb2xxxx-2.x.xxx-001.i486.rpm
# rpm -U --force --nodeps /tmp/intel-tools/idb/intel-mid_idb-kernel2xxxx-2.x.xxx-001.i486.rpm
# rpm -U --force --nodeps /tmp/intel-tools/idb/intel-mid_idb-eclipse2xxxx-2.x.xxx-001.i486.rpm
#fi

%end


Again, though, the recommended method to install the host components of the Intel Software Development Tool Suites for Intel Atom Processor is to simply download the installation tarball, run the install.sh install script as outlined in Install_All.htm, and follow its instructions.

********************************************************************************************************
NOTE: In addition to the information above, you may find the following Image Creator overview useful:
http://meego.com/developers/hardware-enabling-process
********************************************************************************************************

 




Do you need more help?


This article applies to: Intel® AppUp(SM) Developer Community,   ISN General,   MID,   Mobility,   Intel® Software Development Tool Suites for Intel® Atom™ Processor Knowledge Base