Moblin Integration?

Moblin Integration?

Installing the Compiler into KVM*

For additional information not covered in this document and for latest updates on the Moblin* Integration of the Intel Application Software Development Tool Suite 2.0 for Intel Atom Processor please check the Intel Software Network article located at:

http://software.intel.com/en-us/articles/installing-compiler-into-kvm-atom/

Whether you intend to do most of your development on a live Moblin* image running inside a KVM* virtual machine ore whetehr 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 Moblin* based Intel Atom Processor target.

It is recommended to register for the Intel Application Software Development Tool Suite 2.0 for Intel Atom Processor at http://software.intel.com/en-us/intel-compilers/ and download it at https://registrationcenter.intel.com. It is also recommended to install at least the Intel VTune Performance Analyzer and the Intel 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 as well as the idbserver debug agent on an existing live Moblin* image please follow the steps below:

Open a shell on the Moblin* image, enable root access and change to the /etc/yum.repos.d directory. There create a *.repo repository file with the following contents:
[inteltools]

name=inteltools

baseurl=http://downloads.moblinzone.com/development-tool-suite-2

enabled=1

gpgcheck=0

A template repository file can also be found at http://software.intel.com/en-us/articles/installing-compiler-into-kvm-atom/ .

If your network setup requires the use of a proxy server you may want to add a line with the following contents

proxy=http://myProxyIP:myProxyPort/

where myProxyIP and myProxyPort reflect the actual proxy configuration in your network environment

Still at the Moblin* Linux* prompt enter the following command:
> yum groupinstall "Compiler" "IPP" "Server agent for Application Debugger"

and follow the installation messages.

This will install the Intel C++ Compiler, the Intel Integrated Performance Primitives (Intel IPP) and the Intel Application Debugger idbserver debug agent on the Moblin* image to be used there locally.

To additionally install the Intel VTune Analyzer Sampling Collector (SEP) you would download it directly from http://downloads.moblinzone.com/development-tool-suite-2/rpm/vtune91_tar... 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*.
To use the Intel Application Debugger to connect to idbserver running inside KVM* and attach to processes running on Moblin* there you will need to redirect TCP/IP port 2000 to point at KVM*:
> qemu-kvm my_moblin_image.raw -redir tcp:2000::2000

Installing Tool Suite Components into Moblin* Image Creator

For additional information not covered in this document and for latest updates on the Moblin* Integration of the Intel Application Software Development Tool Suite 2.0 for Intel Atom Processor please check the Intel Software Network article located at:

http://software.intel.com/en-us/articles/moblin-integration-software-dev...

Whether you intend to do most of your development on a live Moblin* image running inside a KVM* virtual machine ore whetehr 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 Moblin* based Intel Atom Processor target.

It is recommended to register for the Intel Application Software Development Tool Suite 2.0 for Intel Atom Processor at http://software.intel.com/en-us/intel-compilers/ and download it at https://registrationcenter.intel.com. It is also recommended to install at least the Intel VTune Performance Analyzer and the Intel 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 Moblin* Image Creator jailroot environment and prepare the Moblin* 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:

Go to http://www.moblin.org and download Moblin* Image Creator 2. Detailed Moblin* Image Creator documentation can be found at http://moblin.org/documentation/moblin-image-creator-2/using-moblin-imag... and the Moblin* Image Creator itself can be downloaded at http://git.moblin.org/cgit.cgi/moblin-image-creator-2 .
Follow the instructions you find at moblin.org for installing the Moblin* Image Creator.
Go to http://software.intel.com/en-us/articles/moblin-integration-software-dev... and download the two scripts netbook-core-developer_JAILROOT.ks and netbook-core-developer_TARGET.ks .
To create a KVM* image or a Live-CD of the target Moblin* system, please use netbook-core-developer_TARGET.ks:
> moblin-image-creator -c /netbook-core-developer_TARGET.ks -f raw --cache=/tmp/mycache
The image created will contain The Intel Application Debugger iIdbserver and the Intel VTune 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.

To create an image with the Intel C++ Compiler & the Intel Integrated Performanced Primitives 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:
> moblin-image-creator -c /netbook-core-developer_JAILROOT.ks -f loop --cache=/tmp/mycache

The image will contain the Intel C++ Compiler and the 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 moblin-netbook-core-developer_JAIROOT.img /mnt/loop
> chroot /mnt/loop su

To additionally install the Intel VTune Analyzer Sampling Collector (SEP) you would download it directly from http://downloads.moblinzone.com/development-tool-suite-2/rpm/vtune91_tar... 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*.

2 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

Kommentar hinterlassen

Bitte anmelden, um einen Kommentar hinzuzufügen. Sie sind noch nicht Mitglied? Jetzt teilnehmen