Difference between revisions of "ECE597 Installing DSP Development Tools"

From eLinux.org
Jump to: navigation, search
(Install OMAP35x SDK: Added OMAP 3530 DV)
m
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:ECE597]]
+
I'm retiring this page. See [[ECE497 Lab13 Using the DSP via c6run]]
[[Category:BeagleBoard]]
+
  
'''Page under construction.'''
+
= Installing Software for the DSP =
 +
Although TI's [http://wiki.davincidsp.com/index.php/GSG:_OMAP35x_DVEVM_Software_Setup GSG: OMAP35x DVEVM Software Setup] is targeting a different board (DVEVM, Digital Video EValuation Module) it looks like a good set of instructions for getting the Beagle set up for using the DSP.  I've copied it locally so we can update it for the BeagleBoard ([[ECE597 BeagleBoard DSP Software Setup]]).
  
Here's what you need to do to program the DSP side of the BeagleBoard.
+
Follow the instructions at [[ECE597 BeagleBoard DSP Software Setup]] to install the Beagle DSP software.  If you get stuck, look at the '''Old''' instructions below.  These are the instructions I wrote before TI updated their site.  They might help.
  
== Install OMAP35x SDK ==
+
Once everything is installed, do the '''Authorizing ssh''' below.  It will make developing software easier.
 +
 
 +
== Authorizing ssh ==
 +
 
 +
We'll be using '''ssh''' and '''sftp''' to move files to the Beagle and run them there.  '''Makefile''' will be setup to automatically sftp files to the Beagle when <code>make install</code> is run.  For this to work you need to set up authorization so you don't have to enter your password when using these commands.  Here's how to do it:
 +
 
 +
* On your host computer run
 +
<pre>
 +
host $ ssh-keygen
 +
host $ cd ~/.ssh
 +
host $ sftp Beagle
 +
put id_rsa.pub
 +
exit
 +
host $ ssh Beagle
 +
</pre>
 +
The first command creates an authorization key and places it in your .ssh directory.  Remember the pass phrase you enter here.  You'll use it below.  The next two commands copy that key to your Beagle.  The last command connects to your Beagle.
 +
* On your Beagle run
 +
<pre>
 +
beagle $ mkdir ~/.ssh
 +
beagle $ cd ~/.ssh
 +
beagle $ mv ../id_rsa.pub .
 +
beagle $ cp id_rsa.pub authorized_keys
 +
beagle $ exit
 +
</pre>
 +
Here we create a '''.ssh''' directory and copy the public key into it.  The authorized_keys folder contains a list of all the machines that are authorized to connect to your Beagle without a password.
 +
* Back on the host computer:
 +
<pre>
 +
host $ ssh Beagle
 +
</pre>
 +
This time you should see a window pop up.  Enter your pass phrase from above.  You should be logged into your Beagle.  Log out and log in again.  This time you should get access without having to enter your pass phrase.
 +
 
 +
[http://kimmo.suominen.com/docs/ssh/ Here] is move information on ssh authorization.
 +
 
 +
= Old =
 +
 
 +
Here's what you need to do to program the DSP side of the BeagleBoard.  The first part is getting things installed.  The second is moving things around and setting up ssh show you don't have to enter your password every time.
 +
 
 +
== Installing ==
 +
 
 +
To save download time I've put these files on the class SharePoint site.  Look in the '''Shared Documents''' folder in '''Downloads'''.
 +
 
 +
=== Install OMAP35x SDK ===
  
 
First install the OMAP35x Software Developers Kit.  Do this by:
 
First install the OMAP35x Software Developers Kit.  Do this by:
* Go to [http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_3_00/latest/index_FDS.html here] and scroll near the bottom to '''Linux Platform Support Package [PSP]'''.  Below it you will see a link to '''OMAP35x-PSP-SDK-setuplinux-02.01.03.11.bin'''.  Click and download it.
+
* Go to [http://focus.ti.com/docs/toolsw/folders/print/linuxdvsdk-omap.html here]  
 +
* Click on [[File:Get_Software.png]]
 +
* Scroll near the bottom to '''Linux Platform Support Package [PSP]'''.  Below it you will see a link to '''OMAP35x-PSP-SDK-setuplinux-02.01.03.11.bin'''.  Click and download it.
 
* Change to your download directory <code>cd ~/Downloads</code>.
 
* Change to your download directory <code>cd ~/Downloads</code>.
* Make the downloaded file executable, <code>chmod 755 OMAP35x-PSP-SDK-setuplinux-02.01.03.11.bin</code>
+
* Make the downloaded file executable, <code>chmod +x OMAP35x-PSP-SDK-setuplinux-02.01.03.11.bin</code>
 
* Run it, <code>./OMAP35x-PSP-SDK-setuplinux-02.01.03.11.bin</code>.
 
* Run it, <code>./OMAP35x-PSP-SDK-setuplinux-02.01.03.11.bin</code>.
 
[[File:OMAP35x_SDK_Install.png|300px]]
 
[[File:OMAP35x_SDK_Install.png|300px]]
Line 22: Line 65:
 
* The install takes around 5 minutes.  Continue clicking until it's installed.
 
* The install takes around 5 minutes.  Continue clicking until it's installed.
  
== Install Digital Video Software Development Kit [DVSDK] ==
+
=== Install Digital Video Software Development Kit [DVSDK] ===
  
 
The next step is the install the DVSDK.
 
The next step is the install the DVSDK.
 +
 +
==== Here are instructions for Version 4 (work in progress) ====
 +
 +
* Go [http://focus.ti.com/docs/toolsw/folders/print/linuxdvsdk-omap3530.html here]
 +
 +
==== Here are instructions for Version 3 ====
  
 
* Go back to [http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_3_00/latest/index_FDS.html here] and scroll down to '''Digital Video Software Development Kit [DVSDK]'''.  Click on '''dvsdk_setuplinux_3_00_02_44.bin''' to download.
 
* Go back to [http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_3_00/latest/index_FDS.html here] and scroll down to '''Digital Video Software Development Kit [DVSDK]'''.  Click on '''dvsdk_setuplinux_3_00_02_44.bin''' to download.
Line 31: Line 80:
 
* Run it, <code>./dvsdk_setuplinux_3_00_02_44.bin</code>.
 
* Run it, <code>./dvsdk_setuplinux_3_00_02_44.bin</code>.
 
[[File:OMAP3530_DV_Install.png|300px]]
 
[[File:OMAP3530_DV_Install.png|300px]]
 +
* Click '''Yes'''
 +
[[File:OMAP3530_DV_Setup.png|300px]]
 +
* Click '''Next >'''
 +
* Accept the agreement.
 +
[[File:OMAP3530_DV_Location.png|300px]]
 +
* Keeping clicking until it's installed.
 +
 +
=== Install DVSDK Dependencies ===
 +
 +
The next step is the install the DVSDK Dependencies.
 +
 +
* Go back to [http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_3_00/latest/index_FDS.html here] and scroll down to '''DVSDK Dependencies'''.  Click on '''xdctools_setuplinux_3_15_01_59.bin''' to download.
 +
* Also download '''bios_setuplinux_5_33_06.bin''' and '''TI-C6x-CGT-v6.0.16.1.bin'''
 +
* Change to your download directory <code>cd ~/Downloads</code>.
 +
* Make the downloaded file executable, <code>chmod 755 xdctools_setuplinux_3_15_01_59.bin</code>
 +
* Run it, <code>./xdctools_setuplinux_3_15_01_59.bin</code>.
 +
* Pick you language (sorry, no Chinese)
 +
[[File:XDCtools_Install.png|300px]]
 +
* Click '''Yes'''
 +
[[File:XDCtools_Setup.png|300px]]
 +
* Click '''Next >'''
 +
* Accept the agreement.
 +
[[File:XDCtools_Location.png|300px]]
 +
* Keeping clicking until it's installed.  This will take longer than the previous installs.
 +
 +
* Repeat this process for '''bios_setuplinux_5_33_06.bin'''
 +
[[File:DSP_BIOS_Setup.png|300px]]
 +
 +
* Again repeat for '''TI-C6x-CGT-v6.0.16.1.bin'''
 +
[[File:C6x_Setup.png|300px]]
 +
* Set the install path to '''/home/user/dvsdk_3_00_02_44/cg6x_6_0_16''' where '''user''' is your username.
 +
 +
=== Install the CodeSourcery Compiler ===
 +
 +
[http://www.elinux.org/ARMCompilers TI recommends] the 2009q1-203 version of the [http://www.codesourcery.com CodeSourcery] compiler.
 +
 +
* Get it [http://www.codesourcery.com/sgpp/lite/arm/portal/release858 here]
 +
* Click on '''IA32 GNU/Linux Installer''' to download it
 +
* Install as before
 +
* After a while this will appear
 +
[[File:Sourcery_Install.png|300px]]
 +
* Click through, selecting '''Typical''' install
 +
* Use the default install location
 +
[[File:Sourcery_Path.png|300px]]
 +
* Take the default shortcuts
 +
* Click '''Install''' and wait awhile
 +
 +
Some addition useful information at be found here: [http://focus.ti.com/docs/toolsw/folders/print/linuxdvsdk-omap.html Linux Digital Video Software Development Kit (DVSDK) for OMAP35x Processors]
 +
 +
== Post install setup ==
 +
 +
=== Move some things around ===
 +
 +
The TI workshop material that we are using have these files in slightly different locations.  Let's move our files to match theirs.
 +
<pre>
 +
$ cd
 +
$ mv bios_5_33_06/ dvsdk_3_00_02_44
 +
$ mv xdctools_3_15_01_59/ dvsdk_3_00_02_44
 +
$ mv OMAP35x-PSP-SDK-02.01.03.11 dvsdk_3_00_02_44
 +
$ cd dvsdk_3_00_02_44
 +
$ mv OMAP35x-PSP-SDK-02.01.03.11 PSP_02_01_03_11
 +
</pre>
  
* [http://focus.ti.com/docs/toolsw/folders/print/linuxdvsdk-omap.html Linux Digital Video Software Development Kit (DVSDK) for OMAP35x Processors]
+
[[Category:Development Tools]]
 +
[[Category:Tips and Tricks]]

Latest revision as of 09:51, 27 October 2011

I'm retiring this page. See ECE497 Lab13 Using the DSP via c6run

Installing Software for the DSP

Although TI's GSG: OMAP35x DVEVM Software Setup is targeting a different board (DVEVM, Digital Video EValuation Module) it looks like a good set of instructions for getting the Beagle set up for using the DSP. I've copied it locally so we can update it for the BeagleBoard (ECE597 BeagleBoard DSP Software Setup).

Follow the instructions at ECE597 BeagleBoard DSP Software Setup to install the Beagle DSP software. If you get stuck, look at the Old instructions below. These are the instructions I wrote before TI updated their site. They might help.

Once everything is installed, do the Authorizing ssh below. It will make developing software easier.

Authorizing ssh

We'll be using ssh and sftp to move files to the Beagle and run them there. Makefile will be setup to automatically sftp files to the Beagle when make install is run. For this to work you need to set up authorization so you don't have to enter your password when using these commands. Here's how to do it:

  • On your host computer run
host $ ssh-keygen
host $ cd ~/.ssh
host $ sftp Beagle
put id_rsa.pub
exit
host $ ssh Beagle

The first command creates an authorization key and places it in your .ssh directory. Remember the pass phrase you enter here. You'll use it below. The next two commands copy that key to your Beagle. The last command connects to your Beagle.

  • On your Beagle run
beagle $ mkdir ~/.ssh
beagle $ cd ~/.ssh
beagle $ mv ../id_rsa.pub .
beagle $ cp id_rsa.pub authorized_keys
beagle $ exit

Here we create a .ssh directory and copy the public key into it. The authorized_keys folder contains a list of all the machines that are authorized to connect to your Beagle without a password.

  • Back on the host computer:
host $ ssh Beagle

This time you should see a window pop up. Enter your pass phrase from above. You should be logged into your Beagle. Log out and log in again. This time you should get access without having to enter your pass phrase.

Here is move information on ssh authorization.

Old

Here's what you need to do to program the DSP side of the BeagleBoard. The first part is getting things installed. The second is moving things around and setting up ssh show you don't have to enter your password every time.

Installing

To save download time I've put these files on the class SharePoint site. Look in the Shared Documents folder in Downloads.

Install OMAP35x SDK

First install the OMAP35x Software Developers Kit. Do this by:

  • Go to here
  • Click on Get Software.png
  • Scroll near the bottom to Linux Platform Support Package [PSP]. Below it you will see a link to OMAP35x-PSP-SDK-setuplinux-02.01.03.11.bin. Click and download it.
  • Change to your download directory cd ~/Downloads.
  • Make the downloaded file executable, chmod +x OMAP35x-PSP-SDK-setuplinux-02.01.03.11.bin
  • Run it, ./OMAP35x-PSP-SDK-setuplinux-02.01.03.11.bin.

OMAP35x SDK Install.png

  • Click Yes

OMAP35x Setup.png

  • Click Next >
  • Accept the terms.

OMAP35c Location.png

  • Use the default location
  • The install takes around 5 minutes. Continue clicking until it's installed.

Install Digital Video Software Development Kit [DVSDK]

The next step is the install the DVSDK.

Here are instructions for Version 4 (work in progress)

Here are instructions for Version 3

  • Go back to here and scroll down to Digital Video Software Development Kit [DVSDK]. Click on dvsdk_setuplinux_3_00_02_44.bin to download.
  • Change to your download directory cd ~/Downloads.
  • Make the downloaded file executable, chmod 755 dvsdk_setuplinux_3_00_02_44.bin
  • Run it, ./dvsdk_setuplinux_3_00_02_44.bin.

OMAP3530 DV Install.png

  • Click Yes

OMAP3530 DV Setup.png

  • Click Next >
  • Accept the agreement.

OMAP3530 DV Location.png

  • Keeping clicking until it's installed.

Install DVSDK Dependencies

The next step is the install the DVSDK Dependencies.

  • Go back to here and scroll down to DVSDK Dependencies. Click on xdctools_setuplinux_3_15_01_59.bin to download.
  • Also download bios_setuplinux_5_33_06.bin and TI-C6x-CGT-v6.0.16.1.bin
  • Change to your download directory cd ~/Downloads.
  • Make the downloaded file executable, chmod 755 xdctools_setuplinux_3_15_01_59.bin
  • Run it, ./xdctools_setuplinux_3_15_01_59.bin.
  • Pick you language (sorry, no Chinese)

XDCtools Install.png

  • Click Yes

XDCtools Setup.png

  • Click Next >
  • Accept the agreement.

XDCtools Location.png

  • Keeping clicking until it's installed. This will take longer than the previous installs.
  • Repeat this process for bios_setuplinux_5_33_06.bin

DSP BIOS Setup.png

  • Again repeat for TI-C6x-CGT-v6.0.16.1.bin

C6x Setup.png

  • Set the install path to /home/user/dvsdk_3_00_02_44/cg6x_6_0_16 where user is your username.

Install the CodeSourcery Compiler

TI recommends the 2009q1-203 version of the CodeSourcery compiler.

  • Get it here
  • Click on IA32 GNU/Linux Installer to download it
  • Install as before
  • After a while this will appear

Sourcery Install.png

  • Click through, selecting Typical install
  • Use the default install location

Sourcery Path.png

  • Take the default shortcuts
  • Click Install and wait awhile

Some addition useful information at be found here: Linux Digital Video Software Development Kit (DVSDK) for OMAP35x Processors

Post install setup

Move some things around

The TI workshop material that we are using have these files in slightly different locations. Let's move our files to match theirs.

$ cd
$ mv bios_5_33_06/ dvsdk_3_00_02_44
$ mv xdctools_3_15_01_59/ dvsdk_3_00_02_44
$ mv OMAP35x-PSP-SDK-02.01.03.11 dvsdk_3_00_02_44
$ cd dvsdk_3_00_02_44
$ mv OMAP35x-PSP-SDK-02.01.03.11 PSP_02_01_03_11