Installation Instructions
On the HOST
To get started, first install julia v0.6.X on the PC running a Linux distribution by following the instructions specified here. So far, the system has only been testen on Ubuntu 14.* and 16.*.
Once julia is installed julia, run
`Pkg.clone(https://gitlab.control.lth.se/labdev/LabConnections.jl)'
`Pkg.add("YAML")'
in the julia prompt to install all dependencies on the HOST.
On the BeagleBone
On the BeagleBone, first install Debian for 32 bit ARM processors using a micro-SD by following this guide. You may also include a julia v0.6 tarball, alternatively transferring it using after an installation.
If chosing the latter, connect the BB and download the julia tarball for ARM (ARMv7 32-bit hard float) from here and scp it to /home/debian/ on the BB. Run
`cd ~/Downloads'
`scp -r julia-0.6.0-linux-arm.tar.gz debian@192.168.7.2:/home/debian'
next, log on to the BB running
`ssh debian@192.168.7.2'
an unpack the tarball. Julia should now be operational by running
`/home/debian/julia-<distro specific tag>/bin/julia'
Next, open a new terminal on the HOST and cd to the /util directory of the LabConnection package by running in the julia package folder
`cd && cd .julia/v0.6/LabConnection/util'
This directory contains some nice utility files to operate the BB from the host. To flash it with the current revision of the software, including all dependencies, simply type
`./flash_BB.sh'
Setting up automatic communication between the BB and the HOST via TCP
To setup automatic start of julia server on the beagle bone
Make sure that julia is installed in
/home/debian/julia-903644385b/bin/julia
on the BeagleBone or editjuliaserver.service
accordinglyCreate the folder
/home/debian/juliapackages/
on the BeagleBoneOn the computer, go to
LabConnections/util
and run./copyfoldertobb.sh
If this failes, make sure that there is not already a folder
/home/debian/juliapackages/LabConnections
Copy
LabConnections/src/BeagleBone/startup/juliaserver.service
to/lib/systemd/system/juliaserver.service
on the BeagleBone.Run:
sudo systemctl enable juliaserver
on BeagleBoneRun:
sudo systemctl start juliaserver
on BeagleBone
After a while, the BeagleBone should start blinking on SysLED 2: on-off-on-sleep-repeat
The server should now start automatically on restart of the BeagleBone.