Difference between revisions of "ECE597 Installing DSP Development Tools"

From eLinux.org
Jump to: navigation, search
(Changed levels of heading and added ssh authorization.)
m (Authorizing ssh)
Line 93: Line 93:
 
</pre>
 
</pre>
  
== Authorizing ssh ==
+
=== 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:
 
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:

Revision as of 14:44, 7 April 2010


Page under construction.

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

Install OMAP35x SDK

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

  • Go to 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.
  • Change to your download directory cd ~/Downloads.
  • Make the downloaded file executable, chmod 755 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.

  • 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

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
$ ssh-keygen
$ cd ~/.ssh
$ sftp Beagle
put id_rsa.pub
exit
$ 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
$ mkdir ~/.ssh
$ cd ~/.ssh
$ mv ../id_rsa.pub .
$ cp id_rsa.pub authorized_keys
$ 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:
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.