Hi Michael,

Please see this app note which covers cross compiling UHD/GR/gr-ettus.

You can treat your OOT the same as gr-ettus.

https://kb.ettus.com/Software_Development_on_the_E3xx_USRP_-_Building_RFNoC_UHD_/_GNU_Radio_/_gr-ettus_from_Source#SDK_Setup

https://kb.ettus.com/Software_Development_on_the_E3xx_USRP_-_Building_RFNoC_UHD_/_GNU_Radio_/_gr-ettus_from_Source#Cross-Compiling_gr-ettus

Regards,
Nate Temple

On Mon, Nov 25, 2019 at 3:09 PM Michael Bassi via USRP-users <
usrp-users@lists.ettus.com> wrote:

> Hi all,
>
>
> I have created my first GNU Radio Out of Tree (OOT) module in C++
> I have tested it in GNU Radio Companion (GRC) and it works as expected.
> I would now like to run it from my USRP device (E312).
> Currently my USRP does not recognize my custom module. Which makes sense!
> It is not a part of the GNU library....
> I have tried copying my gr-custom_module across to the device root
> directory, but obviously the dependencies are not setup.
> I have then tried running the standard cmake commands from the build
> directory (on the USRP), but these don't work.
>
> I got some tips on stack-overflow:
>
> https://stackoverflow.com/questions/58794210/running-a-gnu-radio-custom-out-of-tree-oot-module-on-a-usrp-device/58808077?noredirect=1#comment103906511_58808077
>
> I was told to:
>
>    - Set up a cross-compilation tool-chain on my PC,
>    - Cross-compile my module, and
>    - install it to the correct directory structure, finally
>    - copying over the thus generated filesystem tree to your device
>
> How do I do this?
>
> I'm currently reading this wiki
> https://wiki.gnuradio.org/index.php/Cross_compile_GNU_Radio_and_install_on_target.
> It says:
> We have our environment set up such that we've run the environment script
> provided by the SDK and we can talk to the device. To build the program, we
> just need to follow standard instructions for our build system to make sure
> it uses the right tools from the SDK. The environmental variables take care
> of a great many of these issues. For CMake-based projects like GNU Radio
> and GNU Radio out-of-tree modules, we also provide a toolchain file.
> Setting up the project is then as simple as: (and then some special cmake
> commands)
>
> What is this "environment script provided by the SDK"?
> I can currently connect to my device via ssh. Though I'm assuming this is
> something different?
> "we just need to follow standard instructions..." - what standard
> instructions"
> what toolchain file?
>
> Thanks again for any help!
> Mike
>
>
> _______________________________________________
> USRP-users mailing list
> USRP-users@lists.ettus.com
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
>
_______________________________________________
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to