Difference between revisions of "EBC Exercise 05 Getting Exercise Support Materials"

From eLinux.org
Jump to: navigation, search
(Materials for Later)
m (Updated for 2016)
 
(9 intermediate revisions by the same user not shown)
Line 5: Line 5:
  
 
== Download Reference Manuals ==
 
== Download Reference Manuals ==
 +
There are two important hardware reference manuals you need to have, the '''System Reference Manual''' (SRM) and the '''Technical Reference Manual''' (TRM) for the ARM processor. Here's where to find them.
 +
# The official SRM is kept [https://github.com/beagleboard/BeagleBone-Black here on github]. Here you will find a pdf file with the SRM.  Download it.
 +
# Finding the TRM if for the am335x and is on [http://www.ti.com/lit/pdf/spruh73 TI's site].
  
# Download the BeagleBone and the BeagleBoard-xM [http://beagleboard.org/ BeagleBoard System Reference Manuals].
+
Keep both of these in an easy to find place, we'll reference them now and then.
# Download the [http://www.ti.com/lit/ug/spruh73f/spruh73f.pdf AM335x Technical Reference Manual].  Be sure you have the right one, it's some 4,300+ pages long.
+
# Download the [http://www.ti.com/lit/ds/sprs685d/sprs685d.pdf DM3730 Technical Reference Manual].  It's some 3,600+ pages long.
+
 
+
Keeps these in an easy to find place.
+
  
 
== Set Up Git ==
 
== Set Up Git ==
Line 16: Line 15:
 
Many of the following exercises require some extra files on the BeagleBoard.  These files are stored in a '''git''' repository.  We'll learn more about using git later.  Here I'll just show you how to get the files.
 
Many of the following exercises require some extra files on the BeagleBoard.  These files are stored in a '''git''' repository.  We'll learn more about using git later.  Here I'll just show you how to get the files.
  
Go to [http://help.github.com/set-up-git-redirect github] and follow the directions for installing and setting up git.  No need to set up your own repository right now (unless you want to).
+
I suggest you do this for both your host computer and your Beagle. git is already installed on your Beagle.
 
+
I suggest you do this for both your host computer and your Beagle. On the Beagle use
+
 
+
beagle$ '''opkg update'''
+
beagle$ '''opkg install git'''
+
beagle$ '''opkg install openssh-keygen'''
+
 
+
The last opkg installs <code>ssh-keygen</code> which is needed to work with github.
+
  
 
On my host computer I had to run
 
On my host computer I had to run
  
  host$ '''ssh-add id_rsa'''
+
  host$ '''apt-get install git'''
  
after running <code>ssh-keygen</code> to get <code>ssh -T git@github.com</code> to work.
+
Set up your own repository at [https://github.com/ https://github.com/].
  
=== 'opkg update' Doesn't Work ===
+
Now you are ready to use github.
If you're connected to the Internet but the "feeds.angstrom-distribution.org" host doesn't resolve, make this the only line in the "/etc/resolv.conf" file on your Beagle:
+
 
+
nameserver 208.67.222.222
+
 
+
This is an [[Wikipedia:OpenDNS|OpenDNS]] nameserver.
+
  
 
== Get the Files ==
 
== Get the Files ==
Line 43: Line 29:
 
It only takes one command to pull down all the files.
 
It only takes one command to pull down all the files.
  
  beagle$ '''git clone git://github.com/MarkAYoder/BeagleBoard-exercises.git exercises'''
+
  beagle$ '''git clone https://github.com/MarkAYoder/BeagleBoard-exercises.git exercises --depth=1'''
 +
(The whole repo is some 550M.  Using '''--depth=1''' you only get the recent history and it only takes 190M.)
  
 
This will take a while since it's getting all the course files, including pdf files of the course PowerPoint.  You only have to clone once for each computer.  I suggest you do the same on your host computer.
 
This will take a while since it's getting all the course files, including pdf files of the course PowerPoint.  You only have to clone once for each computer.  I suggest you do the same on your host computer.
  
  host$ '''git clone git://github.com/MarkAYoder/BeagleBoard-exercises.git exercises'''
+
  host$ '''git clone https://github.com/MarkAYoder/BeagleBoard-exercises.git exercises --depth=1'''
  
 
Now take a look at what you got.
 
Now take a look at what you got.
Line 62: Line 49:
 
  beagle$ '''git pull'''
 
  beagle$ '''git pull'''
  
== Materials for later ==
+
=== P8 and P9 Header Files ===
 
+
The BeagleBone Black has two headers, P8 and P9, that have lots of IO. There are two [http://derekmolloy.ie/gpios-on-the-beaglebone-black-using-device-tree-overlays/ pdf files] that have lots of information about the headers in this git repositoryHere's how to get them
Some later exercises will need the following additional git repositoriesYou don't have to load them now, the exercises will tell you when to do it.
+
  host$ '''git clone git://github.com/derekmolloy/boneDeviceTree.git'''
 
+
  host$ '''cd boneDeviceTree/docs'''
This will load Big Buck Bunny and some other media.
+
  host$ '''ls'''
beagle$ '''cd ~/exercises/gstreamer'''
+
BeagleboneBlackP8HeaderTable.pdf  BeagleboneBlackP9HeaderTable.pdf
  beagle$ '''git clone git://github.com/MarkAYoder/esc-media.git'''
+
Put these where you can find them again.
 
+
This load the things needed for using the DSP.
+
  beagle$ '''cd ~/exercises/audioThru/lab06d_audio_c6run'''
+
  beagle$ '''git clone git://github.com/MarkAYoder/c6run_build.git'''
+
  
 
{{YoderFoot}}
 
{{YoderFoot}}

Latest revision as of 12:28, 20 July 2016

thumb‎ Embedded Linux Class by Mark A. Yoder


You need to download some reference manuals and set up your Beagle with some extra files. Here's what to do.

Download Reference Manuals

There are two important hardware reference manuals you need to have, the System Reference Manual (SRM) and the Technical Reference Manual (TRM) for the ARM processor. Here's where to find them.

  1. The official SRM is kept here on github. Here you will find a pdf file with the SRM. Download it.
  2. Finding the TRM if for the am335x and is on TI's site.

Keep both of these in an easy to find place, we'll reference them now and then.

Set Up Git

Many of the following exercises require some extra files on the BeagleBoard. These files are stored in a git repository. We'll learn more about using git later. Here I'll just show you how to get the files.

I suggest you do this for both your host computer and your Beagle. git is already installed on your Beagle.

On my host computer I had to run

host$ apt-get install git

Set up your own repository at https://github.com/.

Now you are ready to use github.

Get the Files

It only takes one command to pull down all the files.

beagle$ git clone https://github.com/MarkAYoder/BeagleBoard-exercises.git exercises --depth=1

(The whole repo is some 550M. Using --depth=1 you only get the recent history and it only takes 190M.)

This will take a while since it's getting all the course files, including pdf files of the course PowerPoint. You only have to clone once for each computer. I suggest you do the same on your host computer.

host$ git clone https://github.com/MarkAYoder/BeagleBoard-exercises.git exercises --depth=1

Now take a look at what you got.

beagle$ cd exercises
beagle$ ls
beagle$ cd pptx
beagle$ ls

Later exercises will tell you which files to use from here.

If it's been a while since you did the clone it's a good idea to do a pull. This will make sure all the files are up to date.

beagle$ git pull

P8 and P9 Header Files

The BeagleBone Black has two headers, P8 and P9, that have lots of IO. There are two pdf files that have lots of information about the headers in this git repository. Here's how to get them

host$ git clone git://github.com/derekmolloy/boneDeviceTree.git
host$ cd boneDeviceTree/docs
host$ ls
BeagleboneBlackP8HeaderTable.pdf  BeagleboneBlackP9HeaderTable.pdf

Put these where you can find them again.




thumb‎ Embedded Linux Class by Mark A. Yoder