User Tools

Site Tools


embedding_oot_modules_or_custom_libraries_binaries_in_minus_scenario

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
embedding_oot_modules_or_custom_libraries_binaries_in_minus_scenario [2016/04/21 17:02]
mimbert
embedding_oot_modules_or_custom_libraries_binaries_in_minus_scenario [2016/04/21 17:06] (current)
mimbert
Line 16: Line 16:
 There is basically no way to avoid this issue: users need to target the same gnuradio version than the one on the cortexlab nodes. There is basically no way to avoid this issue: users need to target the same gnuradio version than the one on the cortexlab nodes.
  
-Actually this is not only about gnuradio, but about the whole package of software used to run the radio on the nodes. We refer to this package as the **cortexlab toolchain**. ​It is made of: +Actually this is not only about gnuradio, but about the whole package of software used to run the radio on the nodes. We refer to this package as the **cortexlab toolchain**. ​See [[Building a toolchain]]
- +
-[[http://​gnuradio.org/​|gnuradio]] +
-* some gnuradio additional modules / blocks, such as blocks which interface with the radio hardware ([[http://​files.ettus.com/​manual/​|uhd]] for usrp and similar blocks to interface with picosdr nodes) +
-* some gnuradio additional modules adding convenient tools, which we decided to incude, such as [[http://​git.osmocom.org/​gr-iqbal|gr-iqbal]]. +
-* software for supporting the picosdr: [[http://​www.xilinx.com/​support/​download/​index.html/​content/​xilinx/​en/​downloadNav/​design-tools.html|xilinx ise]], [[https://​reference.digilentinc.com/​digilent_adept_2#​adept_2_for_linux|digilent hs2]] (the jtag used on the cortexlab nodes) and [[http://​www.nutaq.com/​support/​latest-utca-edition|adp]] from nutaq.+
  
 There is currently three possibilities for working with the same version of toolchain than the one on the cortexlab nodes: There is currently three possibilities for working with the same version of toolchain than the one on the cortexlab nodes:
  
 * use the cortexlab toolchain which is installed on the airlock frontend. It is the exact same toolchain as on the nodes, the only difference is that there is no hardware (usrp, picosdr, jtag) connected to the frontend. * use the cortexlab toolchain which is installed on the airlock frontend. It is the exact same toolchain as on the nodes, the only difference is that there is no hardware (usrp, picosdr, jtag) connected to the frontend.
-* build a cortexlab toolchain on a user's workstation. We provide the [[https://​github.com/​CorteXlab/​cxlb-build-toolchain|cxlb-build-toolchain]] tool, which is the tool that we use to build the toolchain on the nodes. ​This tool is limited to 64 bit linux and is tested only under debian. For each toolchain built with this tool, //bundle// file is written in the toolchain ​directory, which tracks all exact versions of all packages included in the toolchain. The bundle file for the current cortexlab toolchain can be found on airlock in ''/​cortexlab/​toolchains/​current/​share/​cxlb-build-toolchain/​build.bundle''​. This file can be used as input to ''​cxlb-build-toolchain''​ to be sure to build the exact same toolchain. ''​cxlb-build-toolchain''​ also provides options to select which parts of the toolchain to build. For example, a user willing to experiment only on usrp won't need to include the picosdr specific stuff.+* build a cortexlab toolchain on a user's workstation. We provide the [[https://​github.com/​CorteXlab/​cxlb-build-toolchain|cxlb-build-toolchain]] tool, which is the tool that we use to build the toolchain on the nodes. ​See [[Building ​a toolchain]].
 * build the same version of gnuradio than on airlock, without using our ''​cxlb-build-toolchain''​ script. In this case, users are on their own. In the majority of situation this should cause no issue but there may be some slight incompatibilities with the toolchain on the nodes. * build the same version of gnuradio than on airlock, without using our ''​cxlb-build-toolchain''​ script. In this case, users are on their own. In the majority of situation this should cause no issue but there may be some slight incompatibilities with the toolchain on the nodes.
- 
-Besides, the main advantage of the [[https://​github.com/​CorteXlab/​cxlb-build-toolchain|cxlb-build-toolchain]] is that it takes care to install everything in a given directory, as regular user. It then generates and installs two scripts, one that has to be run by root, to configure the dynamic loader and udev to use the toolchain, the other that has to be sourced by the user which will use the toolchain, to configure the environment. Thus: 
- 
-* as it runs as a regular user, there is zero risk to damage anything in the system, you are sure that anything it does is restricted to the rights of the user running the script. The only thing that has to be run as root is a single script generated at the end, which is easy to review and audit. 
-* thus,you are sure that it does not conflict with anything in the regular directory tree structure of your system. In particular, it cannot conflit with the debian package system. 
-* everything from the toolchain is kept isolated in the toolchain install directory, instead of being scattered everywhere. 
-* it is possible to have more than one toolchain installed in parallel. You only need to re-run the root script to switch to a different toolchain, and reboot (or possibly only restart udev? that needs to be checked), and re-source the environment configuration script. 
- 
-When building a toolchain on a user's workstation,​ the user is not forced to build everything. For example, a user willing to experiment only with usrp can avoid installing all picosdr stuff (xilinx ise, digilent hs2 jtag, adp). 
  
 ===== Packaging executable binaries or libraries in a minus task scenario ===== ===== Packaging executable binaries or libraries in a minus task scenario =====
embedding_oot_modules_or_custom_libraries_binaries_in_minus_scenario.txt · Last modified: 2016/04/21 17:06 by mimbert