Introduction

Published: June 19, 2019
Edited: November 29, 2019

Firebolt SDK lets you build native apps using C/C++ specific to each device. Native apps are developed for high performance and customized applications and they help you to reuse the existing C/C++ libraries. It is available for Raspberry-Pi platform for the development environment. Firebolt SDK toolset includes the following,

  • C/C++ cross-compiling toolchains.
  • Platform/device specific libraries, headers and symbols.
  • Open source libraries (eg: Gstreamer, Opengl, curl, etc).
  • Additional third-party requirements.
Step 1

Download

  Download requires Login
Step 2

Install on Raspberry Pi

Minimum requirements

HDMI
Cable
USB2
MOUSE
100/G
ETHERNET
USB2
KEYBOARD
USB
DRIVE

Supported Models

Etcher provides easy way to flash the image on SD card across all the platforms, Windows, Mac, and Linux. Flash the image on Raspberry-Pi using Etcher.

Step 3

Connections on Raspberry Pi

Your setup should resemble the one in the picture

...
  1. Connect HDMI
  2. Connect Ethernet
  3. Connect USB Keyboard
  4. Connect USB Mouse
  5. Insert the SD card with the Firebolt image flashed
  6. Power on the Raspberry-Pi
Step 4

Learn the basics of Firebolt for Raspberry Pi

A USB keyboard or remote control (on supported systems) can be used on the device to launch an app on Raspberry-Pi.The following actions are supported:

move

The arrow keys will move the cursor selector

suspend

Supsend is available for Native Apps.Open “Controls” tab on the UI to enable/disable Suspend mode

launch

Select an app and press Enter or Ok

refresh

Ctrl+E

stop

Ctrl+M

Step 5

Terminal Access on Raspberry-Pi

  • Once the Pi is booted-up completely, Pi gets valid ethernet connection.
  • The IP address will be displayed on the bottom right of the display/TV connected to Pi.
  • Login to Raspberry-Pi using ssh into the box from a PC on the same network.
  • Login is root, password is empty.
    Example:
     ssh root@192.168.0.103
    Then press enter twice to get ssh terminal access to the box.
Step 6

Access our GitHub examples

Step 7

Build Sample Apps using Firebolt SDK

A.Software Prerequisites

  • System Requirements
    Ubuntu 14.4 64 bit OS or higher 8GB of RAM
  • Software Requirements
    Install the following command-
     sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping libsdl1.2-dev xterm 

B.Download Firebolt SDK

  Download requires Login

C.Install the SDK

  • Go the directory where Firebolt SDK is downloaded.
  • Untar the Firebolt SDK bundle.
    tar -zxvf raspberrypi-rdk-mc-RNE-SDK-0.4-bundle.tgz
    In the above command, raspberrypi-rdk-mc-RNE-SDK-0.4-bundle.tgz is the Firebolt SDK bundle name.
  • Run the following commands
    chmod +x ./raspberrypi-rdk-mc-RNE-SDK-2.0.sh ./raspberrypi-rdk-mc-RNE-SDK-2.0.sh
  • Follow the instructions in the screen regarding installation directory. If you don’t want to change the default directory, please press ENTER and proceed. You will need sudo permissions to install in the same directory. It’s easiest to run the above script in an empty directory and type to install in the current directory. If you don’t have sudo permissions install in a different directory.

D.Install Cross-Compiler tools

  • Assuming that the SDK is installed in sdk_root directory, issue the following command.
    source sdk_root /environment-setup- chipset-rdk-linux-gnueabi
    Example:
    source RNE-3.0/environment-setup-cortexa7t2hf-vfp-vfpv4-neon-rdk-linux-gnueabi
    In the above command, RNE-3.0 is sdk_root directory
  • Now all the cross compiler tools are available for development.

E.Build Sample apps

  • To build the samples, go to the samples directory and execute the following command:
    Example:
    ./build_samples.sh
  • After the samples are built they are contained in a partnerapps directory for copying to the Raspberry-Pi.
Step 8

Launch Sample Apps on Raspberry Pi

  • Once the sample applications are built with the provided sdk a partnerapps folder will be created at the root of the samples directory. 
  • Place this directory at the root of the USB storage device.
  • Insert the USB stick into the pi.
  • Use a USB keyboard and press “Ctrl + E “ to reload the app manager.
  • You will now see all the sample apps in the list.
  • Select “Launch” tab to launch any app.
  • To go back to the menu listing all the apps, press “Ctrl + m”.
  • You can also have the app manager launch your own binary by renaming the binary partnerapp and placing it in the partnerapps folder at the root of the USB storage device.