Elixir on Industrial Hardware, porting Nerves to e-RT3

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • buildroot

    Buildroot, making embedded Linux easy. Note that this is not the official repository, but only a mirror. The official Git repository is at http://git.buildroot.net/buildroot/. Do not open issues or file pull requests here.

  • Once you know how the target boots, you will know that you need to create the kernel, dtb, and rootfs. These can be created by downloading, configuring and compiling the Linux kernel sources, but Nerves use Buildroot to do this.

  • nerves

    Platform infrastructure for embedded Erlang/OTP, Elixir, and LFE projects

  • The porting procedure of Nerves is described in README of nerves_system_br as follows:

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • fwup

    Discontinued Configurable embedded Linux firmware update creator and runner [Moved to: https://github.com/fwup-home/fwup] (by fhunleth)

  • Take a look at the Flash memory layout and compare that to the layouts used in one of the supported systems. We use fwup to create images. There's a lot of variety in how one can lay out Flash memory and deal with things like failbacks. At this point, just see if you can get fwup to create an image.

  • nerves_system_rpi3

    Base Nerves system configuration for the Raspberry Pi 3

  • Once I understood this, I was able to finish step 2 above by learning how to use Buildroot and creating the kernel and dtb. Steps 3, 4, and 5, I use nerves_system_rpi3 as base and made modifications. This is a difficult part to describe what I did.

  • fwup

    Configurable embedded Linux firmware update creator and runner

  • fwup for image creation

  • linux-xlnx

    The official Linux kernel from Xilinx

  • e-RT3 uses the Xilinx Zynq-7000, and it seemed that Xilinx linux-xlnx code is partially applied.

  • br2-external-f3rp70

  • The br2-external for e-RT3 I created is available here, br2-external-f3rp70.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • nerves_system_f3rp70

  • It's difficult to describe what I did, but nerves_system_f3rp70 that I created is based on nerves_system_rpi3. So you can see what I changed by looking at the diff between them.

  • circuits_gpio

    Use GPIOs from Elixir

  • For example, DIO is not a GPIO, we can't use circuits_gpio. So, we need to use NIFs as myasu did in Real-time OS controller e-RT3 (controlled from Elixir).

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts