Difference between revisions of "ECE497 Lab10 gMake"

From eLinux.org
Jump to: navigation, search
m (Lab 05, gMake)
(Delete, there's a newer page out there.)
 
(33 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Below are the details of the labs we'll be doing from the DaVinci workshop.  Get these files before doing the labs:
+
[[Category:ToDelete]]
  
* Go to the class [https://myrhit.rose-hulman.edu/class/ece597/default.aspx SharePoint Site] and get
+
See [[EBC Exercise 07a make]] instead.
** DaVinci-OMAP_Workshop_v2.0.pdf
 
** tto_workshop_labs_(v2.00).tar
 
** setpaths.mak  (Get BOTH setpaths, they are different)
 
** setpaths.sh
 
* Untar the labs file on your Linux host.  It will create two directories, '''workshop''' and '''solutions'''.  You will find the materials needed to do the labs below in the workshop folder.  The directions in '''DaVanci-OMAP_Workshop''' file will tell you which directory to use for each lab.
 
* Move the '''setpaths''' files to another location.
 
<pre>
 
host $ cd workshop
 
host $ mv setpaths.sh setpaths.sh.orig
 
host $ mv setpaths.mak setpaths.mak.orig
 
</pre>
 
* Copy the setpaths files you got from SharePoint into the workshop directory. In Lab 5 you will edit these files so they are correct.
 
  
These labs were originally done for the Digital Video Evaluation Module (DVEVM)We will be adapting them for the BeagleBoard as we go.
+
Texas Instruments' Technical Traning for students concerning the DaVinci/OMAP platforms including DM64xx, DM35x/36x, OMAP35x, OMAP-L1x, and AMxBelow are the details of the labs we'll be doing from the DaVinci workshop.
  
== Lab 05, gMake ==
+
Note, the workshop calls these labs 6-8.  I'm renumbering them to fit our numbering scheme, so the mapping is:
  
Pages 125-157 of the DaVinci-OMAP_Workshop_v2.0.pdf file are Lab 5. 
+
{| style="color:green; background-color:#ccffff;" cellpadding="10" cellspacing="0" border="1"
 
+
! Our Lab Number !! TI Lab Number
{|
 
! Due Date !! style="width:50%" | Exercise !! Links
 
 
|-
 
|-
| 12-Apr-2010
+
| 10
| Demo what you've done so far
+
| 5
|  
 
 
|-
 
|-
| 13-Apr-2010
+
| 11
| Reconfigure BusyBox
+
| 6
| [[ECE597 Configuring BusyBox]]
 
 
|-
 
|-
|
+
| 12
| Install DSP Software
+
| 7
| [[ECE597 Installing DSP Development Tools]]
 
 
|-
 
|-
|
+
| 13
| DaVinci Workshop Lab 5
+
| 8
| [[ECE597 DaVinci Workshop Labs]]
 
 
|}
 
|}
 +
 +
Labs 10/5 appears here the rest have their own pages.
 +
 +
== Lab 10/5a - Installation ==
 +
 +
* Go to the class dfs site and get
 +
** DaVinci-OMAP_Workshop_v2.0.pdf
 +
** tto_workshop_labs_(v2.00).tar
 +
** makefile_profile.mak
 +
 +
* Untar the labs file on your Linux host.  It will create two directories, '''workshop''' and '''solutions'''.  You will find the materials needed to do the labs below in the '''workshop''' directory.  The finished product for each lab can be found in the '''solutions''' directory.  The directions in '''DaVanci-OMAP_Workshop''' file will tell you which directory to use for each lab.
 +
 +
These labs were originally done for the Digital Video Evaluation Module (DVEVM).  I've  adapted them for the BeagleBoard.
 +
 +
== Lab 10/5b - gMake ==
 +
 +
Lab 10 is lab 5 on pages 125-157 of '''DaVinci-OMAP_Workshop_v2.0.pdf'''. Work through this lab.  You'll learn how '''make''' works.  Part C has an error in the solution, a workaround can be found [[User:Simonea|here]].  When you get to part D, compare my version of the make file ('''makefile_profile.mak.yoder''') to the one in the folder.  The workshop assumes you have NFS setup to share files between the DVEVM and the host computer.  Rather than share files, I've set up the makefile so use sftp and ssh to copy the executables to the Beagle when installing.  If you can get NFS working, great!, otherwise use my setup.
 +
 +
To get part '''d''' to compile correctly, you have to make sure all the path information is correct.  Make sure to edit '''setpaths.sh, setpaths.mak, and makefile_profile.mak'''.  Because Configure is stubborn, you will still need to link <code>arm_v5t_le-gcc</code> to <code>arm-nonearm-none-linux-gnueabi-gcc</code> if it is to compile.
 +
<pre>
 +
cd /home/user/CodeSourcery/Sourcery_G++_Lite/bin
 +
ln -s arm-none-linux-gnueabi-gcc arm_v5t_le-gcc
 +
</pre>

Latest revision as of 12:25, 9 December 2011


See EBC Exercise 07a make instead.

Texas Instruments' Technical Traning for students concerning the DaVinci/OMAP platforms including DM64xx, DM35x/36x, OMAP35x, OMAP-L1x, and AMx. Below are the details of the labs we'll be doing from the DaVinci workshop.

Note, the workshop calls these labs 6-8. I'm renumbering them to fit our numbering scheme, so the mapping is:

Our Lab Number TI Lab Number
10 5
11 6
12 7
13 8

Labs 10/5 appears here the rest have their own pages.

Lab 10/5a - Installation

  • Go to the class dfs site and get
    • DaVinci-OMAP_Workshop_v2.0.pdf
    • tto_workshop_labs_(v2.00).tar
    • makefile_profile.mak
  • Untar the labs file on your Linux host. It will create two directories, workshop and solutions. You will find the materials needed to do the labs below in the workshop directory. The finished product for each lab can be found in the solutions directory. The directions in DaVanci-OMAP_Workshop file will tell you which directory to use for each lab.

These labs were originally done for the Digital Video Evaluation Module (DVEVM). I've adapted them for the BeagleBoard.

Lab 10/5b - gMake

Lab 10 is lab 5 on pages 125-157 of DaVinci-OMAP_Workshop_v2.0.pdf. Work through this lab. You'll learn how make works. Part C has an error in the solution, a workaround can be found here. When you get to part D, compare my version of the make file (makefile_profile.mak.yoder) to the one in the folder. The workshop assumes you have NFS setup to share files between the DVEVM and the host computer. Rather than share files, I've set up the makefile so use sftp and ssh to copy the executables to the Beagle when installing. If you can get NFS working, great!, otherwise use my setup.

To get part d to compile correctly, you have to make sure all the path information is correct. Make sure to edit setpaths.sh, setpaths.mak, and makefile_profile.mak. Because Configure is stubborn, you will still need to link arm_v5t_le-gcc to arm-nonearm-none-linux-gnueabi-gcc if it is to compile.

cd /home/user/CodeSourcery/Sourcery_G++_Lite/bin
ln -s arm-none-linux-gnueabi-gcc arm_v5t_le-gcc