User Tools

Site Tools


getting_started:install:use_with_cb20

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
getting_started:install:use_with_cb20 [2021/03/24 16:27] – [Test Application] ursgrafgetting_started:install:use_with_cb20 [2021/04/29 11:41] (current) – [Install SDK on the Host] ursgraf
Line 2: Line 2:
 The following is a step-by-step procedure to get started using EEROS on the [[https://wiki.ntb.ch/infoportal/embedded_systems/imx6/cb#cb20_board|cb20 Board]]. It describes how to set up the SDK. The application is developed on a Linux host machine and can then be deployed to the board. The following is a step-by-step procedure to get started using EEROS on the [[https://wiki.ntb.ch/infoportal/embedded_systems/imx6/cb#cb20_board|cb20 Board]]. It describes how to set up the SDK. The application is developed on a Linux host machine and can then be deployed to the board.
  
-===== Prerequisites =====+===== Install Linux Image on cb20  Blue =====
  
-  - Get an suitable image for your cb20 platform from [[https://wiki.bu.ost.ch/infoportal/software/linux/images/start|Linux Images]] and install it on your target system, see [[https://wiki.bu.ost.ch/infoportal/software/linux/toradex/toradex-easy-installer]]+Make sure to have the newest image from our download section [[https://wiki.bu.ost.ch/infoportal/software/linux/images/start|Linux Images]] installed on your [[https://wiki.bu.ost.ch/infoportal/embedded_systems/imx6/cb|cb20]] boardsee [[https://wiki.bu.ost.ch/infoportal/software/linux/toradex/toradex-easy-installer|toradex-easy-installer]]. This image already contains the EEROS library together with examplesFurther is includes necessary hardware libraries, notably [[http://flink-project.ch|flink]] as well as basic functionalities of ROS
-  - On the hostyou have to fetch the cross development SDK for the cb20 board from [[https://wiki.bu.ost.ch/infoportal/software/linux/images/downloads|Downloads]] and install it on the host according to [[https://wiki.bu.ost.ch/infoportal/software/linux/yocto/sdk#installing_the_sdk|Installing the SDK]]. Unpack it on your host system with <code>$ tar -vxJf ntb-dev-image-cb20-1.0_sdk.tar.xz</code> Change into the sdk directory and execute the script therein with <code>$ cd sdk +
-./tdx-xwayland-glibc-x86_64-ntb-ros-image-melodic-armv7at2hf-neon-cb20-toolchain-5.0.0.sh</code>  +
-Fetch the [[https://github.com/eeros-project/eeros-build-scripts.git|EEROS scripts]] on your cross development system with +
-<code> +
-$ git clone https://github.com/eeros-project/eeros-build-scripts.git cb20 +
-$ cd cb20 +
-</code> +
-Edit the file ''config.sh.in'' as follows +
-<code> +
-use_simulator=false +
-use_flink=true +
-use_bbblue=false +
-use_comedi=false +
-use_ros=false +
-use_can=false +
-use_custom_application=true +
-use_cross_compilation_environment=true +
-use_ros_setup_script=false +
-</code>+
  
-The entry ''use_cross_compilation_environment'' ensures that you compile using an SDK built for the target platform. Make sure to install the SDK by +Get the image from [[https://wiki.bu.ost.ch/infoportal/software/linux/images/downloads|Downloads]]. 
-  * downloading the SDK from [[https://wiki.bu.ost.ch/infoportal/software/linux/images/start|Linux Images]]  +
-  * installing the SDK as described in [[https://wiki.bu.ost.ch/infoportal/software/linux/toradex/toradex-sdk]]+
  
-Edit the file ''config.sh.in'' as follows +===== Install SDK on the Host ===== 
-<code> +In order to develop your application on the host, you have to install the cross development SDK. 
-environment_setup_script=/opt/tdx-xwayland/5.0.0/environment-setup-armv7at2hf-neon-tdx-linux-gnueabi +  - Get the cross development SDK for the cb20 board from [[https://wiki.bu.ost.ch/infoportal/software/linux/images/downloads|Downloads]].  
-</code> +  - Unpack it on your host system with <code>$ tar -vxJf ntb-dev-image-cb20-1.0_sdk.tar.xz</code>  
-This will guide your make script to use the SDK. Make sure that the above path matches your installation path.+  - Change into the sdk directory and execute the script therein with <code>$ cd sdk 
 +$ ./tdx-x11-glibc-x86_64-ntb-dev-image-armv7at2hf-neon-toolchain-2.6.4.sh</code>Stick with the default target directory for the SDK. If you choose a different directory you have to manually change the associated entry in ''config.sh.in''
  
-If you want to use CAN, choose  
-<code> 
-use_can=true 
-</code> 
  
-Setting the entry ''use_custom_application'' to //true// will fetch an existing application from a git repository. Per default this will will be [[https://github.com/eeros-project/simple-motor-control.git]]. However, you could choose another repository in ''config.sh.in''. Or you could set the entry to //false// if you want to develop your own application. \\ +===== Install Git ===== 
-Now you can run the ''clone'' script  +Install the following package on your machine <code> 
-<code> +apt-get install git
-./clone.sh+
 </code> </code>
  
-After this you can continue with [[getting_started:compile_eeros|]]. +Continue with [[getting_started:write_app:use_on_cb20|]].
- +
- +
getting_started/install/use_with_cb20.1616599649.txt.gz · Last modified: 2021/03/24 16:27 by ursgraf