Difference between revisions of "EBC Exercise 03 Installing a Beagle OS"

From eLinux.org
Jump to: navigation, search
m (Download a copy of the Ångström image: Updated for ETC2012 image)
m (This will be updated before class starts.)
 
(42 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
[[Category:ECE497]]
 
[[Category:ECE497]]
 +
{{YoderHead}}
  
In this class we run [http://www.angstrom-distribution.org/ The Ångström Distribution] on the BeagleBoard. Ångström is a stable and userfriendly distribution if Linux for embedded devices like handhelds, set top boxes and network-attached storage devices and the BeagleBoard.
+
In this class we run [https://www.debian.org/ The Debian Distribution] on the BeagleBoard. Here's how to load the Debian image we'll be using on an SD card.  First get a microSD card that holds at least 8G.
 +
== Downloads ==
 +
There are two items you need to download, the image to copy to your SD card and the software to copy it.  
  
Here's how to load the Ångström image we'll be using on an SD card.  First get a microSD card that holds at least 4G.
+
Use '''balenaEtcher''' to copy to your SD card.  Download it from here: https://www.etcher.io/.  It runs on Linux, Mac or Windows, so pick your favorite OS and install it.
  
== Download a copy of the Ångström image ==
+
There are many versions of Debian we could use.  Browse to https://rcn-ee.net/rootfs/bb.org/testing/2020-08-31/buster-iot/ and download '''bone-debian-10.5-iot-armhf-2020-08-31-4gb.img.xz'''
  
Download a copy of the image [http://www.rose-hulman.edu/~yoder/Beagle/ here]You see several files listed hereYou want to download '''ETC2012.img.bz2''' and '''ETC2012.img.bz2.md5'''.  The first is some 1.5G, so it will take a while.  The second is a check sum file for the first.
+
== Copying to your SD card ==
 +
# Start up balenaEtcher. 
 +
# Select the image you downloaded (no need to uncompress it).   
 +
# Put your SD card in the reader and select it.   
 +
# Click '''Flash!''' and wait for it to finish.
  
Once you have the two files and the card, what you do with them depends on what OS you are running.
+
Once the SD card is flashed, put it in your Bone and boot it up.
  
=== Writing an SD card via Linux ===
+
{{YoderFoot}}
 
 
If you are running Linux type:
 
 
 
host$ '''md5sum ETC2012.img.bz2'''
 
host$ '''cat ETC2012.img.bz2.md5'''
 
 
 
The two command should show the same thing
 
6610e1ea35febc5e9016734213bdba68  ETC2012.img.bz2
 
 
 
If your results match you have successfully downloaded the image and can move on.  If they don't match, try downloading again.  If that doesn't work, contact me.
 
 
 
Next uncompress the image. 
 
host$ '''bunzip2 -k ETC2012.img.bz2'''
 
The '''-k''' says to keep the compressed file.  This will take a few minutes. 
 
 
 
Insert your microSD card in a reader/writre and find the path to it by running '''System:Administration:Disk Utility'''.  You will see
 
 
 
[[File:Screenshot-Disk_Utility.png| 400x293px]]
 
 
 
The path is in the upper right.
 
 
 
Then enter:
 
 
 
host$ '''dd if=ETC2012.img  of=/dev/sd''X'' bs=8M'''
 
host$ '''sync'''
 
 
 
Where <code>/dev/sd''X''</code> is the path to your SD card.  This may take 10 minutes.  Mine took about 7.5.
 
 
 
=== Writing an SD card via Windows ===
 
 
 
The following instructions come from [http://code.google.com/p/beagleboard/wiki/BeagleBoardDiagnosticsNext here].
 
 
 
To initialize your card under Windows, you can do the following:
 
 
 
# Download and install [https://wiki.ubuntu.com/Win32DiskImager Ubuntu's Win32DiskImager] (also known as the [https://launchpad.net/win32-image-writer/ win32-image-writer]).
 
# Download and install [http://www.7-zip.org/ 7-zip compression software]. (Or use winRAR)
 
# Decompress '''ETC2012.img.bz2''' image file using 7-zip (or winRAR).
 
# Insert >=4GB SD card into the reader/writer.
 
# Start the Win32DiskImager.
 
# Select '''ETC2012.img''' and correct SD card location.
 
# Click on '''Write'''.
 
After the image writing is done (this will take some 10 minutes), eject the SD card.
 
 
 
== Boot your Beagle ==
 
 
 
You should now have a functioning SD card image. Plug it into your BeagleBoard and boot it up.
 
 
 
The root password is '''test'''.
 

Latest revision as of 16:23, 2 September 2020

thumb‎ Embedded Linux Class by Mark A. Yoder


In this class we run The Debian Distribution on the BeagleBoard. Here's how to load the Debian image we'll be using on an SD card. First get a microSD card that holds at least 8G.

Downloads

There are two items you need to download, the image to copy to your SD card and the software to copy it.

Use balenaEtcher to copy to your SD card. Download it from here: https://www.etcher.io/. It runs on Linux, Mac or Windows, so pick your favorite OS and install it.

There are many versions of Debian we could use. Browse to https://rcn-ee.net/rootfs/bb.org/testing/2020-08-31/buster-iot/ and download bone-debian-10.5-iot-armhf-2020-08-31-4gb.img.xz

Copying to your SD card

  1. Start up balenaEtcher.
  2. Select the image you downloaded (no need to uncompress it).
  3. Put your SD card in the reader and select it.
  4. Click Flash! and wait for it to finish.

Once the SD card is flashed, put it in your Bone and boot it up.




thumb‎ Embedded Linux Class by Mark A. Yoder