HomePage | RecentChanges | Preferences


building firmware for embedded Elixir

How to print out MAC address `! "/sys/class/net/eth0/address"` or use nerves project `nerves_networking` dependency.

Using Screen to connect to RPi3

Wifi is supported - RT2800

Known issues with 8192?

Checking whether wifi is up/working:

defp wait_for_wifi() do
    :timer.sleep 500
    case Nerves.NetworkInterface.settings("wlan0") do
      {:ok, _} -> :done
      _        -> wait_for_wifi 

pkazmier [8:15 PM] I got the idea from a comment from @fhunleth here:


wsmoak [9:16 PM] so do I owe anyone that chocolate, did anyone get one or both of my wifi adapters working on RPi2 ?

gregmefford [9:18 PM] @wsmoak LOL - I think they might be both supported by default now, but you have to `modprobe` a driver to activate it.

gregmefford [9:20 PM] Oh wait, is it this? Looks like it's not merged yet but I thought it was:

[9:21] Ah, this is the one I was thinking about that got merged longer ago:

[9:22] So I think if those are the ones you're talking about, @alfert gets the chocolate, assuming you can get it working and/or wait for the next `rpi2` system release. :wink:

Umbrella Project

@misiek - btw is someone is interested seems to be working… my (sample) main umbrella mix.exs:

defmodule Nervy.Mixfile do
  use Mix.Project

  def project do
      apps_path: "apps",
      archives: [nerves_bootstrap: "~> 0.1.4"],
      build_embedded: Mix.env == :prod,
      start_permanent: Mix.env == :prod,
      deps: deps,
      aliases: aliases

  defp deps do

  def aliases do
    ["deps.precompile": ["nerves.precompile", "deps.precompile"],
     "deps.loadpaths":  ["deps.loadpaths", "nerves.loadpaths"]]


paulwilson [3:10 AM] @misiek It is possible to set it up so that you can build for the host as well as the target, but it does take a bit of massaging. I’ll write it up in the next few days, but here’s an example.

A key difference is that to build for the target you need to set the `MIX_ENV` to prod. eg

``` MIX_ENV=prod mix release MIX_ENV=prod mix release.burn ```

[3:12] That way you can build and test from the root of the umbrella. (Note the `dummy_nerves` project that fakes out target specific things)



after your connection is established you have to do something along the lines of `System.cmd("ntpd", ["-q", "-p", ""])` this is on rpi3 btw

HomePage | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited April 5, 2017 6:57 pm by (diff)