joaohf

joaohf

Using Elixir and Scenic with Yocto Project

Hello!

This is about running BEAM using embedded linux. One way to get this working is using Yocto Project (Openembedded). I have been working in a layer which brings BEAM (Erlang and Elixir) to YP/Openembedded. See GitHub - meta-erlang/meta-erlang: Erlang and Elixir support, https://meta-erlang.github.io/ · GitHub.
Of course to get a real picture, a bit of knowledgment using YP is good to have (See: Yocto Project Quick Build) before start any adventure.

I’ve watched a talk in Code Sync STO from Boyd Multerer about Elixir and Scenic (GitHub - ScenicFramework/scenic: Core Scenic library · GitHub). That was very interesting.

After some experiments with YP, scenic and meta-erlang; I would like to share my results and maybe anybody with expirience using scenic/opengl to get some insights about what is going on. Keep reading.

Yocto has a qemu emulator and I can run scenic demo (mix scenic_new) inside the qemu emulator. I’ve attached three screenshots, well is not fully working yet.

I did an application called axon_scenic using scenic_demo and release it using distillery (all of that cross-compiling using yocto sdk). See: GitHub - joaohf/axon-scenic: A simple elixir application with scenic · GitHub

After scenic starts (inside the qemu), the follow issues happens:

  • ‘load_texture_error: {:error, :not_found}’ multiple times
  • using the top command, the CPU consume is almost 97% all the time
  • the scenic screen does not respond to clicks, but the temperature changes over the time

1- scenic demo: https://pasteboard.co/IgGSkWO.png
2- load texture error message: https://pasteboard.co/IgGSRs5.png
3- top showing high cpu user: https://pasteboard.co/IgGT8Q7.png

Do you have any idea about what could be the issue?

My next step to investigate this problem will be run my application using a real hardware.

Best regards,

Where Next?

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
silverdr
Using Phoenix.LiveView.TagEngine as an EEx.Engine is deprecated! To compile HEEx, use Phoenix.LiveView.TagEngine.compile/2 instead. Sta...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New
michallepicki
I am using Oban and occasionally, shortly after a deployment, a handful of jobs can fail because of dependency on other parts of the syst...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New

We're in Beta

About us Mission Statement