Getting Started With C6Run On Beagleboard

From Texas Instruments Embedded Processors Wiki

Jump to: navigation, search
Translate this page to   

^ Up to main C6EZRun Main Page ^

This article is part of a collection of articles describing the C6EZRun Software Development Project. Select the link above to return to the main project page.

Contents

Introduction

This page contains info on how to get started using C6Run on the Beagleboard or Beagleboard-XM community platforms.


System Setup for Angstrom Development

Before running the various scripts and utilities required to download and build the Beagleboard components, you will need to setup your Linux development box. The examples below are intended for use in an Ubuntu 10.04 host environment. They may vary depending on what Linux distribution you are using.

Proxy Setup

This step may not be required depending on your Internet connection.

~$ export http_proxy=http://<proxy server>:<port>
~$ export ftp_proxy=http://<proxy server>:<port>
~$ export no_proxy=localhost,127.0.0.0/8
~$ sudo chmod a+w /etc/wgetrc
~$ vi /etc/wgetrc

(Uncomment and set lines containing http_proxy, ftp_proxy, and use_proxy)

Git Setup

OpenEmbedded and Angstrom Setup

  1. Create local repository for OEBB:
      ~/Git$ git clone git://gitorious.org/angstrom/angstrom-setup-scripts.git angstrom-setup-scripts
  2. From repository, run OEBB config (select the platform you want to build for) and update. This may take a while to execute:
     ~/Git/angstrom-setup-scripts$ ./oebb.sh config beagleboard
     ~/Git/angstrom-setup-scripts$ ./oebb.sh update
    Note that if you later switch platforms you need to manually delete the build/conf path, as the oebb.sh script does not create a new one if one already exists.
     ~/Git/angstrom-setup-scripts$ rm -Rf build/conf


Building Base Image for Beagleboard

At this point, you will have a base console root filesystem and binary bootloader and kernel images in the angstrom-setup-scripts/build/tmp-angstrom_2008_1/deploy/glibc/images/beagleboard directory.


Installing Images for Beagleboard to SD card for Boot

We are only interested in the kernel image and the filesystem archive, and we will simply replace the ones on the bootable SD card with these new versions. Note that we are assuming that you are starting with an SD card that actually already boots. If you haven't yet reached that milestone, please look here for information on how to get started.


Building and installing an Angstrom SDK

To build applications that rely on the ARM and the DSP we want to have a target SDK on our host, with a GCC cross compiler for the ARM and the TI C6000 compiler tools.

Now we need to get the TI C6000 Code Generation tools. These can be downloaded from the TI website. You need a my.ti.com login to actually get to the download. The latest release is recommended for use.

At this point, we have the ARM cross-compiler and the DSP cross-compiler installed and ready to be used.


Downloading and installing C6Run for DSP Development


Running C6Run programs on the Beagleboard

E2e.jpg For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Getting Started With C6Run On Beagleboard here.
Hyperlink blue.png Links
ARM Microcontroller MCU ARM Processor Digital Media Processor Digital Signal Processing Microcontroller MCU Multi Core Processor
Ultra Low Power DSP 8 bit Microcontroller MCU 16 bit Microcontroller MCU 32 bit Microcontroller MCU

Leave a Comment

Comments

Comments on Getting Started With C6Run On Beagleboard


Contents

Twilight said ...

Please I need Help, Wen I run the command

bitbake base-image console-image

Appear this error:

ERROR: no recipe files to build, check your BBPATH and BBFILES? NOTE: Psyco JIT Compiler (http://psyco.sf.net) not available. Install it to increase performance. ERROR: no recipe files to build, check your BBPATH and BBFILES? FATAL: Openembedded's config sanity checker detected a potential misconfiguration. Either fix the cause of this error or at your own risk disable the checker (see sanity.conf). Following is the list of potential problems / advisories:

Please set TARGET_ARCH directly, or choose a MACHINE or DISTRO that does so.


--Twilight 22:26, 14 February 2011 (CST)

Suhl said ...

somehow strange, becouse tested examples showed better performance for arm than dsp core:

/examples/c6runapp/emqbit# ./benc h_arm N=16, nTimes=100: Dot with C code => time:3.1e-05 s N=16, nTimes=100: Distance with C code => time:9.1e-05 s N=32, nTimes=100: Dot with C code => time:6.2e-05 s N=32, nTimes=100: Distance with C code => time:0.000152 s N=64, nTimes=100: Dot with C code => time:0.000153 s N=64, nTimes=100: Distance with C code => time:0.000305 s N=128, nTimes=100: Dot with C code => time:0.000305 s N=128, nTimes=100: Distance with C code => time:0.00058 s N=256, nTimes=100: Dot with C code => time:0.000579 s N=256, nTimes=100: Distance with C code => time:0.00116 s N=512, nTimes=100: Dot with C code => time:0.00116 s N=512, nTimes=100: Distance with C code => time:0.003113 s N=1024, nTimes=100: Dot with C code => time:0.002289 s N=1024, nTimes=100: Distance with C code => time:0.005066 s N=2048, nTimes=100: Dot with C code => time:0.005066 s N=2048, nTimes=100: Distance with C code => time:0.009491 s N=4096, nTimes=100: Dot with C code => time:0.009613 s N=4096, nTimes=100: Distance with C code => time:0.018616 s N=8192, nTimes=100: Dot with C code => time:0.01825 s N=8192, nTimes=100: Distance with C code => time:0.036865 s N=16384, nTimes=100: Dot with C code => time:0.036468 s N=16384, nTimes=100: Distance with C code => time:0.073364 s


/examples/c6runapp/emqbit# ./benc h_dsp N=16, nTimes=100: Dot with C code => time:0.000527 s N=16, nTimes=100: Distance with C code => time:0.002645 s N=32, nTimes=100: Dot with C code => time:0.001026 s N=32, nTimes=100: Distance with C code => time:0.003972 s N=64, nTimes=100: Dot with C code => time:0.002119 s N=64, nTimes=100: Distance with C code => time:0.006593 s N=128, nTimes=100: Dot with C code => time:0.004125 s N=128, nTimes=100: Distance with C code => time:0.011755 s N=256, nTimes=100: Dot with C code => time:0.008236 s N=256, nTimes=100: Distance with C code => time:0.022216 s N=512, nTimes=100: Dot with C code => time:0.016669 s N=512, nTimes=100: Distance with C code => time:0.042813 s N=1024, nTimes=100: Dot with C code => time:0.03311 s N=1024, nTimes=100: Distance with C code => time:0.084269 s N=2048, nTimes=100: Dot with C code => time:0.066035 s N=2048, nTimes=100: Distance with C code => time:0.167391 s N=4096, nTimes=100: Dot with C code => time:0.131762 s N=4096, nTimes=100: Distance with C code => time:0.333434 s N=8192, nTimes=100: Dot with C code => time:0.263476 s N=8192, nTimes=100: Distance with C code => time:0.665751 s N=16384, nTimes=100: Dot with C code => time:0.533226 s N=16384, nTimes=100: Distance with C code => time:1.33683 s


How is it possible? suhl


--Suhl 21:45, 25 June 2011 (CDT)

S.CHAMPIN said ...

Hi! were find the following file for "Building Base Image for Beagleboard": . ~/.oe/environment Thanks!


--S.CHAMPIN 07:19, 11 July 2011 (CDT)

S.CHAMPIN said ...

I try to skip this command:". ~/.oe/environment" for make:"bitbake base-image console-image" but I have this error : "OperationalError: attempt to write a readonly database" Can you help me! Thanks


--S.CHAMPIN 09:10, 12 July 2011 (CDT)

Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox