Dev Parida
1 min readJul 10, 2021

--

Writing first Application on BeagleboneBlack.

  1. The first step is to install a cross-compiler toolchain for your BeagleBone Black.
    Linaro is a popular platform that provides GCC cross-toolchain . you can obtain it by going directly to the Linaro website or you can follow the below steps.
    $ wget -c https://releases.linaro.org/components/toolchain/binaries/latest-6/arm-linux-gnueabihf/gcc-linaro-6.4.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz
    $ tar xf gcc-linaro-6.4.1–2017.11-x86_64_arm-linux-gnueabihf.tar.xz
    $ export CC=`pwd`/gcc-linaro-6.4.1–2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
  2. You can confirm the download and installation by using the following command and output.
    ${CC}gcc — version
    arm-linux-gnueabihf-gcc (Linaro GCC 6.4–2017.11) 6.4.1 20171012
    Copyright © 2017 Free Software Foundation, Inc.
    This is free software; see the source
    for copying conditions. There is NO
    warranty; not even
    for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  3. Now write your first dummy code and name it test.c
    #include “stdio.h”
    int main()
    {
    printf(“Deba is here\n”);
    return 0;
    }
  4. Compile the code as follows
    ${CC}gcc *.c
    This will provide a.out as an output file.
  5. I will write the next story about the connectivity with Beaglebone and different way to transfer files to Beaglebone from your Host Machine

--

--