build
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
build [2019/11/13 12:30] – [Build] graf | build [2023/05/31 16:37] (current) – [Preparations] ursgraf | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Build the Software ====== | ====== Build the Software ====== | ||
- | The application is developed on a Linux host machine and can then be deployed to the board. | + | The application is developed on a Linux host machine and can then be deployed to the board. The software itself can be studied on [[https:// |
===== Preparations ===== | ===== Preparations ===== | ||
- | You need any 64 bit Linux version | + | Install our Linux image on the target and install the necessary SDK and tools on the host as described in [[https:// |
- | < | + | ===== Getting |
- | $ sudo apt-get install make cmake git g++ | + | |
- | </ | + | |
- | + | ||
- | As cross tool chain, the **arm-linux-gnueabihf-gcc-4.9** is needed. It is recommended to use a Ubuntu 16.04 as host operating system, since this packet is available in the default repositories. | + | |
- | If a Linux host is used in a virtual machine, a [[https:// | + | |
- | ==== Start your Beagle Bone Blue ==== | + | |
- | * Connect | + | |
- | * It takes about 15 seconds until the Beagle Bone Blue is powered up and another 15 seconds until a network adapter is shown on your host pc. Open a Terminal and check if this network is already available. < | + | |
- | * Connect via ssh to your Beagle Bone Blue < | + | |
- | + | ||
- | ==== Login ==== | + | |
- | The first time you do this you will get a security alert in the console - type " | + | |
- | Then enter the password " | + | |
- | ===== Getting | + | Fetch the [[https:// |
- | A git repository | + | |
< | < | ||
- | $ git clone https:// | + | $ git clone https:// |
- | $ cd eeros-project | + | $ cd eeduro/ |
</ | </ | ||
- | Run the '' | + | Run the '' |
< | < | ||
$ ./clone.sh | $ ./clone.sh | ||
</ | </ | ||
- | ===== Compile Roboticscape Library ===== | ||
- | The library for the roboticscape must be compiled manually. 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 correct version is checked out per default and no additional step is necessary. \\ | ||
- | If not yet installed, the cross toolchain must be installed on the host machine with the following command | ||
- | < | ||
- | $ sudo apt-get install g++-4.9-arm-linux-gnueabihf | ||
- | </ | ||
- | If this fails and your Linux version does not offer the right version of the cross toolchain in its repositories, | ||
- | |||
- | To compile the library, change into: | ||
- | < | ||
- | $ cd librobotcontrol/ | ||
- | </ | ||
- | and edit the '' | ||
- | < | ||
- | CC := gcc | ||
- | LINKER := gcc | ||
- | </ | ||
- | to | ||
- | < | ||
- | CC := arm-linux-gnueabihf-gcc-4.9 | ||
- | LINKER := arm-linux-gnueabihf-gcc-4.9 | ||
- | </ | ||
- | This change is necessary because the library must be compiled with the cross compiler. Now, the roboticscape library can be compiled using make. | ||
- | < | ||
- | $ make | ||
- | </ | ||
===== Compile ===== | ===== Compile ===== | ||
- | + | Start the compilation of the delta application with | |
- | Change back into your project directory and start the compilation of EEROS, the hardware wrapper library, and the delta application with | + | |
< | < | ||
$ ./make.sh | $ ./make.sh | ||
</ | </ | ||
- | Finally, load the executable onto the target (see notes below if you are doing this on a brand new board) with | ||
- | < | ||
- | $ ./deploy.sh | ||
- | </ | ||
- | The default password on the BeagleBone Blue Board is " | ||
- | ==== 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 executable and libraries to **/ | ||
- | < | ||
- | debian@beaglebone: | ||
- | debian@beaglebone: | ||
- | </ | ||
- | |||
- | Also, some links must be created. The system must find the eeros libraries to load them. The following symbolic links are needed: | ||
- | < | ||
- | debian@beaglebone: | ||
- | debian@beaglebone: | ||
- | debian@beaglebone: | ||
- | debian@beaglebone: | ||
- | debian@beaglebone: | ||
- | </ | ||
- | Make sure the version information (....so.1.0.0.0) is not outdated! This can be checked by browsing the **BeagleBoneBlue/ | ||
- | |||
---- | ---- | ||
- | **Next: [[test|]] ** | + | **Next: [[connect|]] ** |
build.1573644624.txt.gz · Last modified: 2019/11/13 12:30 by graf