Difference between revisions of "EBC Exercise 01 Start Here"

From eLinux.org
Jump to: navigation, search
m (Books)
m (You may have, or will have to buy)
 
(12 intermediate revisions by the same user not shown)
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/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.
+
We are using the [https://www.beagleboard.org/boards/beaglebone-black BeagleBone Black] this year.  Since it's only $75 (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 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.   
+
* BeagleBone Black.  See [https://www.beagleboard.org/boards/beaglebone-black https://www.beagleboard.org/boards/beaglebone-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.
 
* 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
Line 22: Line 22:
 
==== Books ====
 
==== Books ====
 
* (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].
 
* (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].
* (optional but good) [http://shop.oreilly.com/product/0636920033899.do BeagleBone Cookbook] (Not the BeagleBone Black Cookbook, it's a different book.)
+
* (optional but free) [https://docs.beagleboard.io/latest/books/beaglebone-cookbook/index.html BeagleBone Cookbook] (Not the BeagleBone Black Cookbook, it's a different book.)
  
 
=== What you buy from the Instrument Room ===
 
=== What you buy from the Instrument Room ===
Line 35: Line 35:
 
* [http://www.adafruit.com/products/902 Bicolor LED Square Pixel Matrix with I2C Backpack]
 
* [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
 
* 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)
+
* Other sensors
* [http://www.ti.com/product/l293 L293 Quadruple Half-H Drivers]
 
  
 
== The Linux host computer ==
 
== 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 [https://www.ubuntu.com/download/desktop Ubuntu 18.04 (LTS)]. You want the '''desktop-amd64.iso''' if you have a 64-bit machine.
+
Since we are doing Linux development, it's generally agreed the host computer should be running Linux.  I suggest you run [https://www.ubuntu.com/download/desktop Ubuntu 22.04 (LTS)]. You want the '''desktop-amd64.iso''' if you have a 64-bit machine.
  
 
There are options as to how to run Linux.
 
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.
+
# Install Windows Subsystem for Linux (WSL) ([https://learn.microsoft.com/en-us/windows/wsl/install install]) I run it and it works fine.  I suggest using it.
 +
# Install in a virtual machine. I've been running [https://www.virtualbox.org Virtual Box].
 
# Native install ([http://www.ubuntu.com/download])
 
# Native install ([http://www.ubuntu.com/download])
  
I suggest you use the virtual machineI run Virtual Box on my laptop.
+
I suggest you use WSL.
 +
No matter which method you use be sure to have some 30G of disk spaceThe kernel tools will need at least 6G.
  
No matter which method you use be sure to have some 30G of disk spaceThe 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 appearClick '''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.
  
 
{{YoderHead}}
 
{{YoderHead}}

Latest revision as of 13:21, 14 November 2023

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 $75 (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 https://www.beagleboard.org/boards/beaglebone-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 computer should be running Linux. I suggest you run Ubuntu 22.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 Windows Subsystem for Linux (WSL) (install) I run it and it works fine. I suggest using it.
  2. Install in a virtual machine. I've been running Virtual Box.
  3. Native install ([1])

I suggest you use WSL. 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