Getting started with Bela » History » Version 5

Giulio Moro, 2015-07-16 04:04 PM

1 1 Giulio Moro
h1.  Getting started with BeagleRT
2 1 Giulio Moro
3 1 Giulio Moro
h2. Prerequisites
4 1 Giulio Moro
5 1 Giulio Moro
Before starting, make sure you have:
6 1 Giulio Moro
* Beaglebone Black
7 3 Giulio Moro
* BeagleRT cape
8 1 Giulio Moro
* standard-A to mini-B USB cable
9 1 Giulio Moro
* 2GB or more micro-SD card
10 3 Giulio Moro
* Optional, but recommended: up to two 3-ways female connectors for audio in/out from the cape. You will probably want some sort of stereo female jack connector at the other end.
11 1 Giulio Moro
12 1 Giulio Moro
h2. Hardware setup
13 1 Giulio Moro
14 1 Giulio Moro
Stack the audio cape on top of the Beaglebone Black (BBB). Make sure all the pins from the cape fit into the socket header of the BBB and that no pin gets bent in the process. 
15 1 Giulio Moro
16 1 Giulio Moro
[TODO: connector wiring]
17 1 Giulio Moro
18 1 Giulio Moro
h2. Software setup
19 1 Giulio Moro
20 1 Giulio Moro
Clone the disk image from [TODO: url] on the SD card. This image contains a Debian 7.7 distribution with Xenomai extensions which contains all the toolkits needed to compile and run BeagleRT projects.
21 5 Giulio Moro
Insert the SD card into the BBB and plug it into your computer with the USB cable. The BBB will boot Debian and advertise itself to your computer as a network interface.
22 2 Giulio Moro
23 5 Giulio Moro
h3. Linux users
24 1 Giulio Moro
25 5 Giulio Moro
All you need should be already on your machine, have fun!
26 1 Giulio Moro
27 5 Giulio Moro
h3. MacOS users
28 5 Giulio Moro
29 5 Giulio Moro
* install network drivers for the BBB from http://beagleboard.org/static/Drivers/MacOSX/RNDIS/HoRNDIS.pkg and the serial drivers from http://beagleboard.org/static/Drivers/MacOSX/FTDI/EnergiaFTDIDrivers2.2.18.pkg
30 5 Giulio Moro
* make sure the BBB is plugged in and booted up (might take up to one minute after you plug it in).
31 5 Giulio Moro
* go to System Preferences->Network, click the + symbol at the bottom left. From the popup window, select "Beaglebone Black"
32 5 Giulio Moro
!ss_add.png!
33 5 Giulio Moro
* now set the "Configure IP v4" field to "Using DHCP with manual address" and set the IP address to 192.168.7.1
34 5 Giulio Moro
!ss_dhcp.png!
35 5 Giulio Moro
* click apply and wait a few seconds, the indicator close to the icon should turn green
36 5 Giulio Moro
* now if you open a terminal you should be able to connect to the beaglebone with
37 5 Giulio Moro
<pre>$ ssh root@192.168.7.2</pre>
38 5 Giulio Moro
According to the settings of your ssh client, you might be prompted with something along the lines of 
39 5 Giulio Moro
40 1 Giulio Moro
h3. Windows users
41 1 Giulio Moro
42 5 Giulio Moro
You will need a toolkit that allows you to use ssh and some other basic shell tools. The shell scripts in this project have been tested with *mingw* http://mingw.org/ . You will want to note that in order to paste code on the mingw terminal you have to right click on the terminal's title bar and navigate the menu to edit->paste .
43 5 Giulio Moro
Additionally, you need to install the network drivers from http://beagleboard.org/static/Drivers/Windows/BONE_D64.exe (Windows 64 bit) or http://beagleboard.org/static/Drivers/Windows/BONE_DRV.exe (Windows 32bit)
44 1 Giulio Moro
45 5 Giulio Moro
h3. Test ssh connection
46 1 Giulio Moro
47 5 Giulio Moro
48 5 Giulio Moro
h3. (Optional) ssh keys setup
49 5 Giulio Moro
50 5 Giulio Moro
Communication between the BBB and the host pc takes place through 
51 5 Giulio Moro
52 5 Giulio Moro
Run the <pre>./setup-ssh-windows.sh</pre> if you are on Windows or <pre>./setup-ssh.sh</pre> otherwise
53 5 Giulio Moro
54 1 Giulio Moro
h2. Build your first project
55 4 Giulio Moro
56 4 Giulio Moro
Do you want to get started immediately, without need to install any software on your machine? Grab a terminal and learn about  [[ Compiling projects with BeagleRT on the board]]
57 5 Giulio Moro
Do you want to turn your computer into a cross-compiling machine, with the advantages of an IDE and you are willing to put (some) effort into it? [[ Compiling BeagleRT projects in Eclipse]]