Dies ist eine alte Version des Dokuments!


Linux on BeagleBone Blue

Useful information about the board can be found under Beagle Bone Blue. More about working with the board can be found under https://eewiki.net/display/linuxonarm/BeagleBone+Blue

EEROS on the BeagleBone Blue

Fetch example application and build scripts on host.

$ git clone https://github.com/ntb-ch/BeagleBoneBlue.git

Get EEROS and the hardware wrapper library.

$ cd BeagleBoneBlue
$ ./clone.sh

The library for the roboticscape must be manually compiled. Though the library is already on the target, we must also have it on the host, in order to be able to link an application. At the time of writing, the BeagleBone Blue Boards are shipped with an image that has the robotics cape library version 0.3.4 installed. Therefore, it is highly recommended to use this version. The bbblue-eeros wrapper library was implemented to work with the robotics cape library v0.3.4. Newer version were not tested yet. When using the clone.sh script, the right version is checked out per default and no additional step is needed.

To compile the library,change into:

$ cd robotics_cape_installer/libraries

and edit the Makefile therein. Change the following to lines from

CC		:= gcc
LINKER		:= gcc

to

CC		:= arm-linux-gnueabihf-gcc-4.9
LINKER		:= arm-linux-gnueabihf-gcc-4.9

This is necessary because we work on the host and must make sure to choose the right cross compiler. You must install this compiler with

$ sudo apt-get install g++-4.9-arm-linux-gnueabihf

Now you can create the roboticscape library with

$ make

Change back into your project directory and start the compilation of EEROS, the hardware wrapper library, and the application with

$ ./make.sh

Finally, load the executables onto the target with

$ ./deploy.sh

The default password on the BeagleBone Blue Board is „temppwd“. Edit the deploy.txt file to define which files are downloaded.
Use ssh to get on the target and change into /opt/eeros/bin. Start the demo application with

$ sudo ./myApp -c HwConfigBBBlue.json

Advanced BeagleBone Blue Setups for EEROS

RT-Kernel

Check if there is already a RT-Kernel:

uname -r

If not, download:

sudo apt-get install linux-image-4.4.49-ti-rt-r89

Do not use a newer one. Robotics Cape won't work anymore (ERROR: missing PINMUX driver).

Reboot and delete the old kernel:

sudo apt remove --purge linux-image-4.4.54-ti-r93