Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
software:linux:beagleboneblue [2019-02-25 16:23]
Kunz Andreas Add section for initial board setup
software:linux:beagleboneblue [2019-10-14 10:44] (aktuell)
Graf Urs
Zeile 1: Zeile 1:
-======Linux on BeagleBone ​Blue====== +====== Linux on Beaglebone ​Blue Board ====== 
-Useful information about the board can be found under [[:​embedded_systems:​ti_sitara_am335x:​beaglebone_blue:​start|Beagle Bone Blue]]. ​More about working with the board can be found under +Useful information about the board can be found under [[:​embedded_systems:​ti_sitara_am335x:​beaglebone_blue:​start|Beaglebone ​Blue]].
-https://​eewiki.net/​display/​linuxonarm/​BeagleBone+Blue+
  
-===== EEROS on the BeagleBone Blue ===== 
-Fetch example application and build scripts on host. 
-<​code>​ 
-$ git clone https://​github.com/​ntb-ch/​BeagleBoneBlue.git 
-</​code>​ 
-Get EEROS and the hardware wrapper library. 
-<​code>​ 
-$ cd BeagleBoneBlue 
-$ ./clone.sh 
-</​code>​ 
  
-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.  +===== RT-Kernel ​=====
-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: +
-<​code>​ +
-$ cd robotics_cape_installer/​libraries +
-</​code>​ +
-and edit the ''​Makefile''​ therein. Change the following to lines from  +
-<​code>​ +
-CC :gcc +
-LINKER := gcc +
-</​code>​ +
-to +
-<​code>​ +
-CC := arm-linux-gnueabihf-gcc-4.9 +
-LINKER := arm-linux-gnueabihf-gcc-4.9 +
-</​code>​ +
-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 +
-<​code>​ +
-$ sudo apt-get install g++-4.9-arm-linux-gnueabihf +
-</​code>​ +
-Now you can create the roboticscape library with +
-<​code>​ +
-$ make +
-</​code>​ +
- +
-Change back into your project directory and start the compilation of EEROS, the hardware wrapper library, and the application with +
-<​code>​ +
-$ ./make.sh +
-</​code>​ +
- +
-Finally, load the executables onto the target (see notes below if you are doing this on a brand new board) with +
-<​code>​ +
-$ ./​deploy.sh +
-</​code>​ +
-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  +
-<​code>​ +
-$ sudo ./myApp -c HwConfigBBBlue.json +
-</​code>​ +
- +
-==== Notes ==== +
-When the BeagleBone Blue Board is used the first time (never used with EEROS before or a brand new BeagleBone Blue / Image), some initial setup steps are needed. The script **deploy.sh** will copy the executables and libraries to **/​opt/​eeros**. Therefore, this folder must be present on the target or the copy fails. To create the folder, execute the following on the BeagleBone:​ +
-<​code>​ +
-debian@beaglebone:​$ sudo mkdir /​opt/​eeros +
-debian@beaglebone:​$ sudo chown debian:​debian /​opt/​eeros/​ +
-</​code>​ +
- +
-Also, some links must be created. The system must find the eeros libraries to load them. The following symbolic links are needed: +
-<​code>​ +
-debian@beaglebone:​$ cd /usr/lib/ +
-debian@beaglebone:​$ sudo ln -s /​opt/​eeros/​lib/​libbbblueeeros.so.1.0.0.0 libbbblueeeros.so.1.0.0.0 +
-debian@beaglebone:​$ sudo ln -s libbbblueeeros.so.1.0.0.0 libbbblueeeros.so +
-debian@beaglebone:​$ sudo ln -s /​opt/​eeros/​lib/​libeeros.so.1.0.0.0 libeeros.so.1.0.0.0 +
-debian@beaglebone:​$ sudo ln -s libeeros.so.1.0.0.0 libeeros.so +
-</​code>​ +
-Make sure the version information (....so.1.0.0.0) is not outdated! This can be checked by browsing the **BeagleBoneBlue/​install-armhf/​lib/​** folder. +
- +
- +
- +
-===== Advanced BeagleBone Blue Setups for EEROS ===== +
- +
-==== RT-Kernel ====+
 Check if there is already a RT-Kernel: Check if there is already a RT-Kernel:
 <​code>​ <​code>​