Difference between revisions of "EBC Exercise 01 Start Here"

From eLinux.org
Jump to: navigation, search
m (Kernel Development: Updated to 4.4)
m (The class git repository: Removed)
(3 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
# Get your Beagle Hardware together
 
# Get your Beagle Hardware together
 
# Set up a host computer, running Linux for code development
 
# Set up a host computer, running Linux for code development
# Clone the course git repository on both the Beagle and the host
+
# Clone the course git repository on both the host and the Beagle
  
 
== The Hardware ==
 
== The Hardware ==
Line 15: Line 15:
 
=== You may have, or will have to buy ===
 
=== You may have, or will have to buy ===
  
We are using the [http://beagleboard.org/Getting%20Started BeagleBone Black] this year.  Since it's only $50 (or so) I'll have you buy your own. There are a few other things you will need to get before the first day of class.
+
We are using the [http://beagleboard.org/blue BeagleBone Blue] this year.  Since it's only $50 (or so) I'll have you buy your own. There are a few other things you will need to get before the first day of class.
* BeagleBone Black.  See [http://beagleboard.org/ http://beagleboard.org/] for suggestions of where to buy the Black. I suggest ordering sooner rather than later since it may take a couple of weeks.   
+
* BeagleBone Blue.  See [http://beagleboard.org/blue http://beagleboard.org/blue] for suggestions of where to buy the Black. I suggest ordering sooner rather than later since it may take a couple of weeks.   
* At least three 8G micro SD cards. I suggest you have 3 or 4 cards since it's easy to mess up one and it takes some 10 minutes to reload it.
+
* At least two 8G micro SD cards. I suggest you have 2 or 3 cards since it's easy to mess up one and it takes some 10 minutes to reload it.
 
* micro SD card reader/writer
 
* micro SD card reader/writer
* Powered USB hub, at least 4 ports.  The Black has only one USB port so this will allow you to plug in the keyboard, mouse, web cam, etc.
+
* Powered USB hub, at least 4 ports.  The Blue has only one USB port so this will allow you to plug in the keyboard, mouse, web cam, etc.
  
 
==== Books ====
 
==== Books ====
* [http://exploringbeaglebone.com/ Exploring BeagleBone].
 
 
* [http://shop.oreilly.com/product/0636920033899.do BeagleBone Cookbook] (Not the BeagleBone Black Cookbook, it's a different book.)
 
* [http://shop.oreilly.com/product/0636920033899.do BeagleBone Cookbook] (Not the BeagleBone Black Cookbook, it's a different book.)
 +
* (optional but good) [http://exploringbeaglebone.com/ Exploring BeagleBone].
  
 
=== What you buy from the Instrument Room ===
 
=== What you buy from the Instrument Room ===
Line 43: Line 43:
 
== The Linux host computer ==
 
== The Linux host computer ==
  
The above will get you ready for about the first 4 weeks of class. Around week 5 we'll start looking at the kernel and will need to cross compile. Once we start moving into Kernel development we will need a host computer. Since we are doing Linux development, it's generally agreed the host should be running Linux.  I suggest you run [http://www.ubuntu.com Ubuntu 16.04 (LTS)]. The CSSE department has a [ftp://ftp.csse.rose-hulman.edu/ubuntu-releases/16.04 local copy] so you don't have to download some 700M. You want the '''desktop-amd64.iso''' if you have a 64-bit machine, or the '''desktop-i386.iso''' if you are running 32-bits.
+
The above will get you ready for about the first 4 weeks of class. Around week 5 we'll start looking at the kernel and will need to cross compile. Once we start moving into Kernel development we will need a host computer. Since we are doing Linux development, it's generally agreed the host should be running Linux.  I suggest you run [http://www.ubuntu.com Ubuntu 16.04 (LTS)]. The CSSE department has a [ftp://ftp.csse.rose-hulman.edu/ubuntu-releases/16.04 local copy] you can access on campus, so you don't have to download some 700M from elsewhere. You want the '''desktop-amd64.iso''' if you have a 64-bit machine, or the '''desktop-i386.iso''' if you are running 32-bits.
  
 
There are three options as to how to run Linux.
 
There are three options as to how to run Linux.
Line 50: Line 50:
 
# Run in the cloud
 
# Run in the cloud
  
No matter which method you use be sure to have some 16G of disk space.  The kernel tools will need at least 6G.
+
No matter which method you use be sure to have some 30G of disk space.  The kernel tools will need at least 6G.
  
 
The Ubuntu site gives good instructions for a native install. I've had good success with running both VMware and Virtual Box, though my installation instructions are a bit dated.  (Feel free to update them if they need it.)
 
The Ubuntu site gives good instructions for a native install. I've had good success with running both VMware and Virtual Box, though my installation instructions are a bit dated.  (Feel free to update them if they need it.)
  
I've been testing out the "Cloud" approach and it looks like it will work too.  If you want to try the cloud, let me known and I'll ask CSSE to set up a machine for you.
+
I've been testing out the "Cloud" approach and it looks like it will work too.  If you want to try the cloud, let me known and I'll show you how.
  
=== Kernel Development ===
 
 
Once you have Linux running somewhere, you need to install the kernel development tools.  Go to [[EBC_Exercise_08_Installing_Development_Tools_4.4]] to see all the steps you need.
 
 
Now that you have all these pieces in place you are ready to work with a very powerful embedded processor.
 
 
== The class git repository ==
 
 
Once you have an up to date OS running on your Beagle, go to [[EBC Exercise 05 Getting Exercise Support Materials]] to learn how to clone the class git repository. Once cloned it's a single command to get the latest materials on your Beagle (or host computer for that matter).
 
  
 
{{YoderHead}}
 
{{YoderHead}}

Revision as of 11:39, 2 August 2017

thumb‎ Embedded Linux Class by Mark A. Yoder


Overview

There are three major things that need to be done to have the BeagleBoard ready to run for class:

  1. Get your Beagle Hardware together
  2. Set up a host computer, running Linux for code development
  3. Clone the course git repository on both the host and the Beagle

The Hardware

Here's the hardware you will need and where you get it.

You may have, or will have to buy

We are using the BeagleBone Blue this year. Since it's only $50 (or so) I'll have you buy your own. There are a few other things you will need to get before the first day of class.

  • BeagleBone Blue. See http://beagleboard.org/blue for suggestions of where to buy the Black. I suggest ordering sooner rather than later since it may take a couple of weeks.
  • At least two 8G micro SD cards. I suggest you have 2 or 3 cards since it's easy to mess up one and it takes some 10 minutes to reload it.
  • micro SD card reader/writer
  • Powered USB hub, at least 4 ports. The Blue has only one USB port so this will allow you to plug in the keyboard, mouse, web cam, etc.

Books

What you buy from the Instrument Room

  • various input devices, sensors, displays, etc.

What you borrow from the Instrument Room

The Linux host computer

The above will get you ready for about the first 4 weeks of class. Around week 5 we'll start looking at the kernel and will need to cross compile. Once we start moving into Kernel development we will need a host computer. Since we are doing Linux development, it's generally agreed the host should be running Linux. I suggest you run Ubuntu 16.04 (LTS). The CSSE department has a local copy you can access on campus, so you don't have to download some 700M from elsewhere. You want the desktop-amd64.iso if you have a 64-bit machine, or the desktop-i386.iso if you are running 32-bits.

There are three options as to how to run Linux.

  1. Native install ([1])
  2. Install in a virtual machine. I've been running Virtual Box recently and it works fine. I suggest using it. You can also try VMware Player if you would like.
  3. Run in the cloud

No matter which method you use be sure to have some 30G of disk space. The kernel tools will need at least 6G.

The Ubuntu site gives good instructions for a native install. I've had good success with running both VMware and Virtual Box, though my installation instructions are a bit dated. (Feel free to update them if they need it.)

I've been testing out the "Cloud" approach and it looks like it will work too. If you want to try the cloud, let me known and I'll show you how.


thumb‎ Embedded Linux Class by Mark A. Yoder