none
Installation and set up on Wind River Linux RRS feed

  • Question

  • Hi,

    I've been having trouble getting Azure IoT Edge up on running on a device that runs Wind River Linux 7. I was hoping anyone could help me with a walkthrough for this?

    Thanks!

    Monday, July 8, 2019 9:28 AM

All replies

  • Hi,

    I have been doing work with Azure IoT Edge on Wind River Linux LTS 18.  It should be transferrable back to 7, but I haven't tried it.

    Which BSP are you using?

    Regards,
    Rob

    Monday, July 8, 2019 4:46 PM
  • Hi,

    Thanks for replying! I'm actually very new to embedded linux systems. How do I check the BSP version?

    Thanks

    Tuesday, July 9, 2019 5:15 AM
  • There are 2 ways to create a Wind River Linux platform project:

    1. On the command-line with the ./configure script

    See https://docs.windriver.com/bundle/Wind_River_Linux_Platform_Developers_Guide_7.0_1/page/1609047.html



    The BSP is the option you pass to configure with --enable-board=bspName 



    2. In the Wind River Workbench GUI:



    In the GUI, the BSP is the entry you select in the Board field of the Platform Project Configure dialog box.

    See https://docs.windriver.com/bundle/Wind_River_Linux_Getting_Started_Workbench_Tutorials_7.0_1/page/1608283.html



    The BSP is also embedded into the name of the kernel and root filesystem files produced by the build.   The output of a complete build may be found in: projectDir/bitbake_build/tmp/deploy/images/bspName/*

    I assume that you are either on an Intel or ARM board.  Here is a list of the Board Support Packages available for Wind River Linux 7 for various reference boards: https://marketplace.windriver.com/index.php?bsp&on=list&type=platform&value=Wind%20River%20Linux%207

    Hope that helps!





    • Edited by rcwoolley Tuesday, July 9, 2019 2:39 PM
    Tuesday, July 9, 2019 2:34 PM
  • I see.

    In that case I'll be using WRL 7 BSP for Intel x86, but I'm not sure if I have it installed or not. How do I check?

    Also I don't seem to have an InstallDir directory, which the WRLinux documentation keeps mentioning. Is there something I need to take care of on that front?
    • Edited by Hibro53 Thursday, July 11, 2019 5:36 AM
    Thursday, July 11, 2019 5:03 AM
  • Hi,

    Sorry, I had assumed that you had the full product install.  Wind River Linux is normally a source-based distribution that developers customize and tune to only include the parts they need.

    • What Intel board did it come with?
    • Are you able to say where the Wind River Linux 7 software came from?  Was it preloaded on the board?
    • Are they able to provide the source code they used to build the image?

    The person that gave you the device may not have enabled the tools or kernel features required to run Microsoft IoT Edge.  (eg. OVERLAY_FS enabled in the kernel)

    If you would like to use more up-to-date software,  Wind River Linux LTS 18 source code is available for download here: https://github.com/WindRiver-Labs/wrlinux-x

    I think you may find it easier to add Microsoft Azure IoT Edge to Wind River Linux LTS 18.  Let me know which way you'd like to go.


    • Edited by rcwoolley Thursday, July 11, 2019 7:46 PM
    Thursday, July 11, 2019 7:46 PM
  • Hi,

    So I followed the setup workflow for LTS 18 given in the ReadMe file in the GitHub URL you copied. Could you tell me what steps I need to follow now to complete the set up of LTS 18 and IoT Edge?

    Friday, July 12, 2019 4:56 AM
  • Hi Hibro53,

    If your OS is X64 you should follow this tutorial: Install the Azure IoT Edge runtime on Linux (x64)

    If Arm32: Install Azure IoT Edge runtime on Linux (ARM32v7/armhf)

    Please share if you are still blocked after following it?

    Thanks!

    Monday, July 22, 2019 11:50 AM
    Moderator
  • Here are some steps for adding Azure IoT Edge to Wind River Linux LTS

    # Clone the git repository for Wind River Linux LTS 18 installer
    git clone https://github.com/WindRiver-OpenSourceLabs/wrlinux-x

    # Install Wind River Linux LTS 18
    setup.sh --distro wrlinux --dl-layers --no-recommend --machine genericx86-64 --repo-force -sync --all-layers

    # Source the development environment
    . environment-setup-x86_64-wrlinuxsdk-linux
    . oe-init-build-env build-az

    # Clone the Azure dependencies

    git clone https://github.com/jwessel/meta-iotedge
    cd meta-iotedge
    git checkout ef3f187
    cd ..
    bitbake-layers add-layer meta-iotedge

    git clone https://github.com/jwessel/meta-rust
    cd meta-rust
    git checkout 0d03c20
    cd ..
    bitbake-layers add-layer meta-rust

    # Make changes to conf/local.conf to add iotedge

    echo 'INHERIT_remove = "whitelist"' >> conf/local.conf
    echo 'INHERIT_DISTRO_remove = "whitelist"' >> conf/local.conf
    echo 'BB_NO_NETWORK = "0"' >> conf/local.conf
    echo 'WRTEMPLATE += "feature/docker"' >> conf/local.conf
    echo 'IMAGE_INSTALL_append_pn-wrlinux-image-glibc-std += "iotedge-cli iotedge-daemon"' >> conf/local.conf
    echo 'IMAGE_ROOTFS_EXTRA_SPACE="2048000"' >> conf/local.conf

    # If you want to build for something other than x86_64, now is the time to
    # modify the MACHINE line of conf/local.conf to aarch64 or something else appropriate.

    # Build the image
    bitbake wrlinux-image-glibc-std

    Monday, July 22, 2019 3:22 PM