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

From eLinux.org
Jump to: navigation, search
m (Adding dropbear notes.)
m (Get the Files)
(11 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
== 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.
 
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.
# [http://circuitco.com CircuitCo] has the [http://circuitco.com/support official reference materials] for the Bone. Click on the link for the Bone Black and then click on the ''Hardware Files'' link. Here you will find a link to a pdf file with the SRM.  Download it.
+
# 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 is a bit trickier. Open the SRM you found in the previous step and find what processor it is using. (Hint: page 52) You'll find a link to a TI site that has the manual.  Be sure you have the right one, it's some 18M and 4,100+ pages long.
+
# The TRM for the am335x  is on [http://www.ti.com/lit/pdf/spruh73 TI's site].
  
 
Keep both of these in an easy to find place, we'll reference them now and then.
 
Keep both of these in an easy to find place, we'll reference them now and then.
Line 13: Line 13:
 
== Set Up Git ==
 
== 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.
+
Many of the following exercises require some extra files on the BeagleBoard which you should have loaded on your host computer eariler.  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 [https://help.github.com/articles/set-up-git github],  [https://help.github.com/articles/generating-ssh-keys generating-ssh-keys] and [http://www.troodon-software.com/Embedded/2012/01/31/using-git-with-the-dropbear-ssh-client/ dropbear] 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.  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
 
 
 
host$ '''ssh-add id_rsa'''
 
 
 
after running <code>ssh-keygen</code> to get <code>ssh -T git@github.com</code> to work.
 
 
 
=== 'opkg update' Doesn't Work ===
 
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 42: Line 19:
 
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'''
+
  bone$ '''git clone https://github.com/MarkAYoder/BeagleBoard-exercises.git exercises --depth=1'''
 +
(The whole repo is some 700M.  Using '''--depth=1''' you only get the recent history and it only takes 200M.)
  
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 if you haven't done so already.
  
  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.
  
  beagle$ '''cd exercises'''
+
  bone$ '''cd exercises'''
  beagle$ '''ls'''
+
  bone$ '''ls'''
  beagle$ '''cd pptx'''
+
  bone$ '''cd pptx'''
  beagle$ '''ls'''
+
  bone$ '''ls'''
  
 
Later exercises will tell you which files to use from here.
 
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.
+
=== 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
beagle$ '''git pull'''
+
  host$ '''git clone git://github.com/derekmolloy/boneDeviceTree.git'''
 
+
  host$ '''cd boneDeviceTree/docs'''
== Materials for later ==
+
  host$ '''ls'''
 
+
BeagleboneBlackP8HeaderTable.pdf  BeagleboneBlackP9HeaderTable.pdf
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.
+
Put these where you can find them again.
 
 
This will load Big Buck Bunny and some other media.
 
  beagle$ '''cd ~/exercises/gstreamer'''
 
beagle$ '''git clone git://github.com/MarkAYoder/esc-media.git'''
 
 
 
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}}

Revision as of 12:40, 2 August 2017

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. The TRM for the am335x 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 which you should have loaded on your host computer eariler. 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.

Get the Files

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

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

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

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 if you haven't done so already.

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

Now take a look at what you got.

bone$ cd exercises
bone$ ls
bone$ cd pptx
bone$ ls

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

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