Follow these steps to build your Android custom images based on Digi’s source code:

  1. Set up your environment and install the sources. If you have not already done so, see Set up your development computer.

  2. Change to the directory where the source code is installed.

    $ cd dea-8.0-r1
  3. Initialize the build environment:

    $ source build/envsetup.sh
  4. Select a ConnectCore 6 target to build:

    1. ccimx6sbc-eng creates development images with root access and additional debugging tools.

    2. ccimx6sbc-user creates images with no root access, suitable for production.

      Information about the selected target is displayed:

      $ lunch ccimx6sbc-eng
      
      ============================================
      PLATFORM_VERSION_CODENAME=REL
      PLATFORM_VERSION=8.0.0
      TARGET_PRODUCT=ccimx6sbc
      TARGET_BUILD_VARIANT=eng
      TARGET_BUILD_TYPE=release
      TARGET_PLATFORM_VERSION=OPD1
      TARGET_BUILD_APPS=
      TARGET_ARCH=arm
      TARGET_ARCH_VARIANT=armv7-a-neon
      TARGET_CPU_VARIANT=cortex-a9
      TARGET_2ND_ARCH=
      TARGET_2ND_ARCH_VARIANT=
      TARGET_2ND_CPU_VARIANT=
      HOST_ARCH=x86_64
      HOST_2ND_ARCH=x86
      HOST_OS=linux
      HOST_OS_EXTRA=Linux-4.15.0-34-generic-x86_64-with-Ubuntu-18.04-bionic
      HOST_CROSS_OS=windows
      HOST_CROSS_ARCH=x86
      HOST_CROSS_2ND_ARCH=x86_64
      HOST_BUILD_TYPE=release
      BUILD_ID=dea-8.0-r1.1
      OUT_DIR=out
      AUX_OS_VARIANT_LIST=
      ============================================
      
      $
  5. Use make to build the Android images.

    • To build the complete Android firmware, execute:

      $ make -j<Number_Of_Jobs>
      Building Android can take several hours, depending mainly on the number of CPUs of the development machine and the parallelization level used in the make command.
    • To only build the bootloader image, execute:

      $ make -j<Number_Of_Jobs> bootloader
    • To only build the kernel image, execute:

      $ make -j<Number_Of_Jobs> kernelimage
      The command make can handle parallel tasks with a -jN argument, and it’s common to use a number of tasks N that’s between 1 and 2 times the number of hardware threads on the computer used for the build.
  6. Once the build process finishes, check that the resulting images are inside the dea-8.0-r1 sources directory at out/target/product/ccimx6sbc. List them with the following command:

    $ ls -lh out/target/product/ccimx6sbc/

To program generated development images into your ConnectCore 6, follow the steps in Program the firmware from U-Boot.

The images generated during this process are suitable for development. When you prepare for release, you must generate the proper images. See Release your custom Android images.