Difference between revisions of "EBC Exercise 01 Start Here"

From eLinux.org
Jump to: navigation, search
m (Starting fresh for the Fall 2012 class)
m (The Linux host computer: Added Guest Additions instructions)
 
(52 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
[[Category:ECE497]]
 
[[Category:ECE497]]
 
{{YoderHead}}
 
{{YoderHead}}
There are four major things that need to be done to have the BeagleBoard ready to run for class:
+
 
 +
== Overview ==
 +
 
 +
There are three major things that need to be done to have the BeagleBoard ready to run for class:
 
# Get your Beagle Hardware together
 
# Get your Beagle Hardware together
# Write the SD card for you Beagle
 
 
# 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
  
If you have a BeagleBone and want to start playing, go to [[EBC Exercise 02 Out-of-the-Box, Bone]]. The Bone comes with all the hardware you need and an SD card that's ready to run.
+
== The Hardware ==
  
After you've had a chance to explore the Bone, or you are running a Beagle xM, check [[#The Hardware | The Hardware]] below. Once you have all your hardware together you need to get an up to date image for you SD cards. Go to [[EBC Exercise 03 Installing a Beagle OS]] to learn how to flash your SD card with a fresh OS. With a fresh OS installed, you are now ready for [[EBC Exercise 04 Out-of-the-Box, xM]] on the xM.  It'a little different than the bone.
+
Here's the hardware you will need and where you get it.
  
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).
+
=== You may have, or will have to buy ===
  
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 agree the host should be running LinuxI suggest you run [http://www.ubuntu.com Ubuntu 12.04 (LTS)]. The Rose Linux Users Group [http://lug.rose-hulman.edu/wiki/Main_Page LUG] has instructions on where to get a local copy so you don't have to download some 700M.
+
We are using the [http://beagleboard.org/black BeagleBone Black] this year. Since it's only $65 (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 BlackSee [http://beagleboard.org/black http://beagleboard.org/black] for suggestions of where to buy the Black. I suggest ordering sooner rather than later since it may take a couple of weeks.  Note:  If you already have a different Beagle and want to use it, contact me.
 +
* 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
  
There are three options as to how to run Linux.
+
==== Books ====
# Native install ([http://www.ubuntu.com/download])
+
* (optional but good) [http://exploringbeaglebone.com/ Exploring BeagleBone]. Be sure to get the [https://www.amazon.com/Exploring-BeagleBone-Techniques-Building-Embedded/dp/1119533163 second edition].
# Install in a virtual machine. I've been running [[EBC Exercise 06 Notes on VirtualBox | Virtual Box]] recently and it seems to work find. You can also try [[EBC Exercise 07 Notes on Installing Ubuntu in VMware Player | VMware Player]].
+
* (optional but good) [http://shop.oreilly.com/product/0636920033899.do BeagleBone Cookbook] (Not the BeagleBone Black Cookbook, it's a different book.)
# Run in the cloud
 
  
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.)
+
=== What you buy from the Instrument Room ===
  
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.
+
* various input devices, sensors, displays, etc.
  
Once you have Linux running somewhere, you need to install the kernel development tools. Go to [[EBC Exercise 08 Installing Development Tools]] to see all the step you need. Once set up, go back to [[EBC Exercise 05 Getting Exercise Support Materials]] to clone the class repository on your host.
+
=== What you borrow from the Instrument Room ===
 +
* Proto Plate with full sized breadboard
 +
* 5V power supply
 +
* [http://www.monoprice.com/products/product.asp?c_id=104&cp_id=10419&cs_id=1041913&p_id=7703&seq=1&format=2 micro HDMI to HDMI adapter]
 +
* [https://www.sparkfun.com/products/9717 FTDI USB to Serial Adapter] Must be 3.3V version
 +
* [http://www.adafruit.com/products/902 Bicolor LED Square Pixel Matrix with I2C Backpack]
 +
* Two (2) [http://www.ti.com/product/tmp101 TMP101] temperature sensors
 +
* [http://www.ti.com/product/tmp006 TMP006] Infrared Thermopile Sensor (too small to mount, we won't use this)
 +
* [http://www.ti.com/product/l293 L293 Quadruple Half-H Drivers]
  
Now that you have all these pieces in place you are ready to work with a very power embedded processor.
+
== The Linux host computer ==
  
=== The Hardware ===
+
Since we are doing Linux development, it's generally agreed the host compute should be running Linux.  I suggest you run [https://www.ubuntu.com/download/desktop Ubuntu 20.04 (LTS)]. You want the '''desktop-amd64.iso''' if you have a 64-bit machine.
  
Here's the hardware you will need and where you get it.
+
There are options as to how to run Linux.
 +
# Install in a virtual machine. I've been running [https://www.virtualbox.org Virtual Box] recently and it works fine. I suggest using it. 
 +
# Native install ([http://www.ubuntu.com/download])
  
==== From the Instrument Room ====
+
I suggest you use the virtual machine.  I run Virtual Box on my laptop.
 +
No matter which method you use be sure to have some 30G of disk space.  The kernel tools will need at least 6G.
  
* BeagleBoard xM
+
If you do use Virtual Box, do this once you've set things up:
* 5V power supply
+
* In the VM, go to Devices:Insert Guest Addition CD Image...
* HDMI to DVI cable
+
* A box will appearClick '''RUN'''    Wait while it installs.
* serial to USB cable
+
* If it says '''This system is currently not set up to build kernel modules.''', run '''sudo apt update''' and '''sudo apt install gcc make perl'''
 
+
* Reboot the VM.
==== From your own resources ====
+
* In the VM, go to Devices:USB and select the Beagle.
* USB keyboard and mouse
+
You are ready to go.
* DVI-D display
 
* micro SD card4G should be enough. 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.
 
* micro SD card reader/writer
 
* USB to Ethernet adapter.  The Beagle xM has Ethernet on it, but every time you boot it you get a random MAC address. If you are running on the Rose network you need a fixed MAC address.
 
  
 
{{YoderHead}}
 
{{YoderHead}}

Latest revision as of 13:48, 17 August 2020

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 Black this year. Since it's only $65 (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/black for suggestions of where to buy the Black. I suggest ordering sooner rather than later since it may take a couple of weeks. Note: If you already have a different Beagle and want to use it, contact me.
  • 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

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

Since we are doing Linux development, it's generally agreed the host compute should be running Linux. I suggest you run Ubuntu 20.04 (LTS). You want the desktop-amd64.iso if you have a 64-bit machine.

There are options as to how to run Linux.

  1. Install in a virtual machine. I've been running Virtual Box recently and it works fine. I suggest using it.
  2. Native install ([1])

I suggest you use the virtual machine. I run Virtual Box on my laptop. No matter which method you use be sure to have some 30G of disk space. The kernel tools will need at least 6G.

If you do use Virtual Box, do this once you've set things up:

  • In the VM, go to Devices:Insert Guest Addition CD Image...
  • A box will appear. Click RUN Wait while it installs.
  • If it says This system is currently not set up to build kernel modules., run sudo apt update and sudo apt install gcc make perl
  • Reboot the VM.
  • In the VM, go to Devices:USB and select the Beagle.

You are ready to go.

thumb‎ Embedded Linux Class by Mark A. Yoder