Giter VIP home page Giter VIP logo

brewberry-pi's Introduction

Hey You 🕴️

I’m Arjan, a software engineer/architect happily working at Xebia.

I’m an Open Source adept. I've been using and writing open source software ever since I started programming, more than 25 years ago. I favor working on a Linux-based machine, running GNOME Desktop.

For the last few years I've been writing mostly Python. I also like to write Elixir, a bit of Typescript, and the occasional shell script.

My (Open Source) Work

Lately I’ve been actively working on:

  • Pytest-archon: a little tool my colleage Joachim and me built to enforce rules on your Python application architecture.
  • Gaphor: a modeling tool for SysML/UML modeling. It’s a lot of fun building a desktop app in my spare time, while building webapps for work.
  • PyGObject: a Python library that provides language bindings for the GNOME ecosystem (e.g. GTK).
  • GTK: a multi-platform UI toolkit. I've been improving macOS support.

I maintained FitNesse for a couple of years.

Recent Blogs

I occasionally post on xebia.com and gaphor.org.

The Stats

Anurag's GitHub stats Top Langs

brewberry-pi's People

Contributors

amolenaar avatar mauricionr avatar mobileoverlord avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

brewberry-pi's Issues

After update nerves-bootstrap, the firmware is not booting up PI3 model B

mauricios-MacBook-Pro:elixir mauricionr$ git clone https://github.com/amolenaar/brewberry-pi.git
Cloning into 'brewberry-pi'...
remote: Counting objects: 1326, done.
remote: Total 1326 (delta 0), reused 0 (delta 0), pack-reused 1326
Receiving objects: 100% (1326/1326), 589.22 KiB | 93.00 KiB/s, done.
Resolving deltas: 100% (694/694), done.
mauricios-MacBook-Pro:elixir mauricionr$ cd brewberry-pi/
mauricios-MacBook-Pro:brewberry-pi mauricionr$ MIX_ENV=prod mix deps.get
** (Mix.Config.LoadError) could not load config apps/fw_rpi/config/wifi.exs
    ** (File.Error) could not read file "/Users/mauricionr/workspace/elixir/brewberry-pi/apps/fw_rpi/config/wifi.exs": no such file or directory
    (elixir) lib/file.ex:272: File.read!/1
    (mix) lib/mix/config.ex:180: Mix.Config.read!/2
    (mix) lib/mix/config.ex:217: anonymous fn/3 in Mix.Config.read_wildcard!/2
    (elixir) lib/enum.ex:1811: Enum."-reduce/3-lists^foldl/2-0-"/3
    (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
    (stdlib) erl_eval.erl:878: :erl_eval.expr_list/6
    (stdlib) erl_eval.erl:404: :erl_eval.expr/5
mauricios-MacBook-Pro:brewberry-pi mauricionr$ cp apps/fw_rpi/config/wifi-example.exs apps/fw_rpi/config/wifi.exs
mauricios-MacBook-Pro:brewberry-pi mauricionr$ MIX_ENV=prod mix deps.get
Env
  MIX_ENV:  prod
  target:   rpi

* Getting nerves_dnssd (https://github.com/amolenaar/nerves_dnssd.git)
remote: Counting objects: 856, done.        
remote: Compressing objects: 100% (5/5), done.        
remote: Total 856 (delta 0), reused 5 (delta 0), pack-reused 851        
Receiving objects: 100% (856/856), 339.71 KiB | 248.00 KiB/s, done.
Resolving deltas: 100% (479/479), done.
Resolving Hex dependencies...
Dependency resolution completed:
  bootloader 0.1.2
  bunt 0.2.0
  cowboy 1.1.2
  cowlib 1.0.2
  credo 0.7.4
  dialyxir 0.5.1
  distillery 1.5.1
  earmark 1.2.4
  elixir_make 0.4.0
  eunit_formatters 0.3.1
  ex_doc 0.15.1
  mime 1.1.0
  mix_eunit 0.3.0
  nerves 0.7.5
  nerves_firmware 0.4.0
  nerves_firmware_http 0.4.1
  nerves_network 0.3.4
  nerves_network_interface 0.4.2
  nerves_runtime 0.4.4
  nerves_system_br 0.13.7
  nerves_system_rpi 0.16.1
  nerves_toolchain_armv6_rpi_linux_gnueabi 0.11.0
  nerves_toolchain_ctng 1.1.0
  nerves_wpa_supplicant 0.3.2
  plug 1.3.5
  plug_redirect 0.1.2
  poison 3.1.0
  ranch 1.3.2
  system_registry 0.6.0
* Getting ex_doc (Hex package)
* Getting credo (Hex package)
* Getting dialyxir (Hex package)
* Getting cowboy (Hex package)
* Getting plug (Hex package)
* Getting plug_redirect (Hex package)
* Getting poison (Hex package)
* Getting mime (Hex package)
* Getting cowlib (Hex package)
* Getting ranch (Hex package)
* Getting nerves (Hex package)
* Getting nerves_network (Hex package)
* Getting nerves_firmware_http (Hex package)
* Getting bootloader (Hex package)
* Getting nerves_runtime (Hex package)
* Getting nerves_system_rpi (Hex package)
* Getting nerves_system_br (Hex package)
* Getting nerves_toolchain_armv6_rpi_linux_gnueabi (Hex package)
* Getting nerves_toolchain_ctng (Hex package)
* Getting elixir_make (Hex package)
* Getting system_registry (Hex package)
* Getting distillery (Hex package)
* Getting mix_eunit (Hex package)
* Getting eunit_formatters (Hex package)
* Getting nerves_firmware (Hex package)
* Getting nerves_network_interface (Hex package)
* Getting nerves_wpa_supplicant (Hex package)
* Getting bunt (Hex package)
* Getting earmark (Hex package)
mauricios-MacBook-Pro:brewberry-pi mauricionr$ cd apps/web/
mauricios-MacBook-Pro:web mauricionr$ MIX_ENV=prod mix deps.get
Resolving Hex dependencies...
Dependency resolution completed:
  cowboy 1.1.2
  cowlib 1.0.2
  mime 1.1.0
  plug 1.3.5
  plug_redirect 0.1.2
  poison 3.1.0
  ranch 1.3.2
mauricios-MacBook-Pro:web mauricionr$ cd ..
mauricios-MacBook-Pro:apps mauricionr$ cd fw_rpi/
mauricios-MacBook-Pro:fw_rpi mauricionr$ MIX_ENV=prod mix deps.get
Env
  MIX_ENV:  prod
  target:   rpi

** (Mix) Archive "nerves_bootstrap-0.7.0" does not match requirement ~> 0.6.1. Please update your archive version accordingly.
mauricios-MacBook-Pro:fw_rpi mauricionr$ vi mix.exs 
mauricios-MacBook-Pro:fw_rpi mauricionr$ MIX_ENV=prod mix deps.get
Env
  MIX_ENV:  prod
  target:   rpi

* Getting nerves_dnssd (https://github.com/amolenaar/nerves_dnssd.git)
remote: Counting objects: 856, done.        
remote: Compressing objects: 100% (5/5), done.        
remote: Total 856 (delta 0), reused 5 (delta 0), pack-reused 851        
Receiving objects: 100% (856/856), 339.71 KiB | 254.00 KiB/s, done.
Resolving deltas: 100% (479/479), done.
Resolving Hex dependencies...
Dependency resolution completed:
  bootloader 0.1.2
  cowboy 1.1.2
  cowlib 1.0.2
  distillery 1.5.1
  elixir_make 0.4.0
  eunit_formatters 0.3.1
  mime 1.1.0
  mix_eunit 0.3.0
  nerves 0.7.5
  nerves_firmware 0.4.0
  nerves_firmware_http 0.4.1
  nerves_network 0.3.4
  nerves_network_interface 0.4.2
  nerves_runtime 0.4.4
  nerves_system_br 0.13.7
  nerves_system_rpi 0.16.1
  nerves_toolchain_armv6_rpi_linux_gnueabi 0.11.0
  nerves_toolchain_ctng 1.1.0
  nerves_wpa_supplicant 0.3.2
  plug 1.3.5
  plug_redirect 0.1.2
  poison 3.1.0
  ranch 1.3.2
  system_registry 0.6.0
* Getting nerves (Hex package)
* Getting nerves_network (Hex package)
* Getting nerves_firmware_http (Hex package)
* Getting bootloader (Hex package)
* Getting nerves_runtime (Hex package)
* Getting nerves_system_rpi (Hex package)
* Getting nerves_system_br (Hex package)
* Getting nerves_toolchain_armv6_rpi_linux_gnueabi (Hex package)
* Getting nerves_toolchain_ctng (Hex package)
* Getting elixir_make (Hex package)
* Getting system_registry (Hex package)
* Getting cowboy (Hex package)
* Getting plug (Hex package)
* Getting plug_redirect (Hex package)
* Getting poison (Hex package)
* Getting mime (Hex package)
* Getting cowlib (Hex package)
* Getting ranch (Hex package)
* Getting distillery (Hex package)
* Getting mix_eunit (Hex package)
* Getting eunit_formatters (Hex package)
* Getting nerves_firmware (Hex package)
* Getting nerves_network_interface (Hex package)
* Getting nerves_wpa_supplicant (Hex package)
mauricios-MacBook-Pro:fw_rpi mauricionr$ MIX_ENV=prod mix firmware
Env
  MIX_ENV:  prod
  target:   rpi

** (Mix) 
  Nerves is missing an alias for "deps.get"
  Please update nerves to the latest version:

  mix deps.update nerves
  
  Also update your mix.exs target aliases to:
  
  defp aliases(_target) do
    [
      # Add custom mix aliases here
    ]
    |> Nerves.Bootstrap.add_aliases()
  end


mauricios-MacBook-Pro:fw_rpi mauricionr$ vi mix.exs 
mauricios-MacBook-Pro:fw_rpi mauricionr$ MIX_ENV=prod mix firmware
Env
  MIX_ENV:  prod
  target:   rpi

==> distillery
Compiling 19 files (.ex)
Generated distillery app
==> nerves
Compiling 28 files (.ex)
warning: function Mix.Nerves.Shell.open/2 is undefined (module Mix.Nerves.Shell is not available)
  lib/nerves/package/providers/docker.ex:115

warning: function Mix.Nerves.Shell.open/2 is undefined (module Mix.Nerves.Shell is not available)
  lib/nerves/package/providers/local.ex:48

Generated nerves app
==> nerves_system_br
Generated nerves_system_br app
==> nerves_toolchain_ctng
Compiling 2 files (.ex)
Generated nerves_toolchain_ctng app
==> nerves_toolchain_armv6_rpi_linux_gnueabi
Compiling 1 file (.ex)
Generated nerves_toolchain_armv6_rpi_linux_gnueabi app
==> nerves_system_rpi
Generated nerves_system_rpi app
==> ctrl
Compiling 17 files (.ex)
warning: GenEvent.start_link/1 is deprecated, use one of the alternatives described in the documentation for the GenEvent module
  lib/ctrl/time_series/dispatcher.ex:9

warning: GenEvent.stream/1 is deprecated, use one of the alternatives described in the documentation for the GenEvent module
  lib/ctrl/time_series/dispatcher.ex:17

warning: GenEvent.notify/2 is deprecated, use one of the alternatives described in the documentation for the GenEvent module
  lib/ctrl/time_series/dispatcher.ex:21

Generated ctrl app
==> nerves_firmware
Compiling 3 files (.ex)
Generated nerves_firmware app
===> Compiling ranch
==> system_registry
Compiling 14 files (.ex)
Generated system_registry app
warning: String.strip/1 is deprecated, use String.trim/1
  /Users/mauricionr/workspace/elixir/brewberry-pi/deps/rpi/poison/mix.exs:4

==> poison
Compiling 4 files (.ex)
warning: Integer.to_char_list/2 is deprecated, use Integer.to_charlist/2
  lib/poison/encoder.ex:173

Generated poison app
==> elixir_make
Compiling 1 file (.ex)
Generated elixir_make app
==> nerves_runtime
mkdir -p priv
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -c -I/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/lib/erlang/erts-9.0/include -I/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/lib/erlang/lib/erl_interface-3.10/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -Os -I/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/include -std=gnu99 -o src/uevent.o src/uevent.c
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -c -I/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/lib/erlang/erts-9.0/include -I/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/lib/erlang/lib/erl_interface-3.10/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -Os -I/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/include -std=gnu99 -o src/erlcmd.o src/erlcmd.c
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc src/uevent.o src/erlcmd.o -L/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/lib/erlang/erts-9.0/lib -L/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/lib/erlang/lib/erl_interface-3.10/lib -lerts -lerl_interface -lei --sysroot=/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging -lmnl -o priv/uevent
Compiling 11 files (.ex)
Generated nerves_runtime app
==> nerves_network_interface
mkdir -p priv
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -c -I/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/lib/erlang/erts-9.0/include -I/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/lib/erlang/lib/erl_interface-3.10/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -Os -I/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/include -std=c99 -D_XOPEN_SOURCE=600 -o src/erlcmd.o src/erlcmd.c
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -c -I/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/lib/erlang/erts-9.0/include -I/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/lib/erlang/lib/erl_interface-3.10/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -Os -I/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/include -std=c99 -D_XOPEN_SOURCE=600 -o src/netif.o src/netif.c
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc src/erlcmd.o src/netif.o -L/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/lib/erlang/erts-9.0/lib -L/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/lib/erlang/lib/erl_interface-3.10/lib -lerts -lerl_interface -lei --sysroot=/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging -lmnl -o priv/netif
# setuid root net_basic so that it can configure network interfaces
SUDO_ASKPASS= true -- sh -c 'chown root:root priv/netif; chmod +s priv/netif'
Compiling 3 files (.ex)
Generated nerves_network_interface app
==> nerves_wpa_supplicant
mkdir -p priv
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -c -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -Os -I/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/include -o src/wpa_ex.o src/wpa_ex.c
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -c -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -Os -I/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/include -o src/wpa_ctrl/os_unix.o src/wpa_ctrl/os_unix.c
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -c -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -Os -I/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/include -o src/wpa_ctrl/wpa_ctrl.o src/wpa_ctrl/wpa_ctrl.c
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc src/wpa_ex.o src/wpa_ctrl/os_unix.o src/wpa_ctrl/wpa_ctrl.o --sysroot=/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging -lrt -o priv/wpa_ex
# setuid root wpa_ex so that it can interact with the wpa_supplicant
SUDO_ASKPASS= true -- sh -c 'chown root:root priv/wpa_ex; chmod +s priv/wpa_ex'
Compiling 3 files (.ex)
Generated nerves_wpa_supplicant app
==> nerves_network
mkdir -p priv
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -Os -I/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/include -std=c99 -o src/udhcpc_wrapper.o src/udhcpc_wrapper.c
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc src/udhcpc_wrapper.o -L/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/lib/erlang/erts-9.0/lib -L/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/lib/erlang/lib/erl_interface-3.10/lib -lerts -lerl_interface -lei --sysroot=/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging  -o priv/udhcpc_wrapper
# setuid root udhcpc_wrapper so that it can call udhcpc
SUDO_ASKPASS= true -- sh -c 'chown root:root priv/udhcpc_wrapper; chmod +s priv/udhcpc_wrapper'
Compiling 11 files (.ex)
Generated nerves_network app
===> Compiling cowlib
src/cow_multipart.erl:392: Warning: crypto:rand_bytes/1 is deprecated and will be removed in a future release; use crypto:strong_rand_bytes/1

===> Compiling cowboy
==> nerves_firmware_http
Compiling 3 files (.ex)
warning: String.to_char_list/1 is deprecated, use String.to_charlist/1
  lib/mix/firmware.push.ex:54

warning: variable "image" is unused
  lib/mix/firmware.push.ex:125

Generated nerves_firmware_http app
===> Compiling eunit_formatters
warning: variable "package" does not exist and is being expanded to "package()", please use parentheses to remove the ambiguity or change the variable name
  /Users/mauricionr/workspace/elixir/brewberry-pi/deps/rpi/mix_eunit/mix.exs:9

warning: variable "deps" does not exist and is being expanded to "deps()", please use parentheses to remove the ambiguity or change the variable name
  /Users/mauricionr/workspace/elixir/brewberry-pi/deps/rpi/mix_eunit/mix.exs:10

==> mix_eunit
Compiling 1 file (.ex)
warning: variable "ensure_compile" does not exist and is being expanded to "ensure_compile()", please use parentheses to remove the ambiguity or change the variable name
  lib/mix/tasks/eunit.ex:86

warning: variable "compilers" does not exist and is being expanded to "compilers()", please use parentheses to remove the ambiguity or change the variable name
  lib/mix/tasks/eunit.ex:186

Generated mix_eunit app
==> nerves_dnssd
curl https://opensource.apple.com/tarballs/mDNSResponder/mDNSResponder-765.50.9.tar.gz -o deps/mDNSResponder-765.50.9.tar.gz --create-dirs
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2254k  100 2254k    0     0   149k      0  0:00:15  0:00:15 --:--:--  213k
mkdir -p /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod
tar xzf deps/mDNSResponder-765.50.9.tar.gz -C /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod
make -C /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/mDNSResponder-765.50.9/mDNSPosix Daemon os=linux CC=/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc BUILDDIR=/Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/mdnsd HAVE_IPV6=0
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -I../mDNSCore -I../mDNSShared -Iobjects/prod -fwrapv -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\" -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -DTARGET_OS_LINUX -fno-strict-aliasing -DHAVE_IPV6=0 -Os -DMDNS_DEBUGMSGS=0 -c -o objects/prod/PosixDaemon.c.o PosixDaemon.c
<command-line>:0:0: warning: "HAVE_IPV6" redefined
<command-line>:0:0: note: this is the location of the previous definition
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -I../mDNSCore -I../mDNSShared -Iobjects/prod -fwrapv -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\" -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -DTARGET_OS_LINUX -fno-strict-aliasing -DHAVE_IPV6=0 -Os -DMDNS_DEBUGMSGS=0 -c -o objects/prod/mDNSPosix.c.o mDNSPosix.c
<command-line>:0:0: warning: "HAVE_IPV6" redefined
<command-line>:0:0: note: this is the location of the previous definition
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -I../mDNSCore -I../mDNSShared -Iobjects/prod -fwrapv -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\" -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -DTARGET_OS_LINUX -fno-strict-aliasing -DHAVE_IPV6=0 -Os -DMDNS_DEBUGMSGS=0 -c -o objects/prod/mDNSUNP.c.o mDNSUNP.c
<command-line>:0:0: warning: "HAVE_IPV6" redefined
<command-line>:0:0: note: this is the location of the previous definition
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -I../mDNSCore -I../mDNSShared -Iobjects/prod -fwrapv -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\" -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -DTARGET_OS_LINUX -fno-strict-aliasing -DHAVE_IPV6=0 -Os -DMDNS_DEBUGMSGS=0 -c -o objects/prod/mDNS.c.o ../mDNSCore/mDNS.c
<command-line>:0:0: warning: "HAVE_IPV6" redefined
<command-line>:0:0: note: this is the location of the previous definition
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -I../mDNSCore -I../mDNSShared -Iobjects/prod -fwrapv -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\" -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -DTARGET_OS_LINUX -fno-strict-aliasing -DHAVE_IPV6=0 -Os -DMDNS_DEBUGMSGS=0 -c -o objects/prod/DNSDigest.c.o ../mDNSCore/DNSDigest.c
<command-line>:0:0: warning: "HAVE_IPV6" redefined
<command-line>:0:0: note: this is the location of the previous definition
In file included from ../mDNSCore/DNSDigest.c:22:0:
../mDNSCore/DNSDigest.c: In function 'DNSDigest_SignMessage':
../mDNSCore/mDNSEmbeddedAPI.h:2867:32: warning: array subscript is above array bounds [-Warray-bounds]
 #define DomainNameLength(name) DomainNameLengthLimit((name), (name)->c + MAX_DOMAIN_NAME)
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../mDNSCore/mDNSEmbeddedAPI.h:2845:57: note: in expansion of macro 'DomainNameLength'
 #define AssignDomainName(DST, SRC) do { mDNSu16 len__ = DomainNameLength((SRC)); \
                                                         ^~~~~~~~~~~~~~~~
../mDNSCore/DNSDigest.c:1356:5: note: in expansion of macro 'AssignDomainName'
     AssignDomainName(&tsig.resrec.rdata->u.name, &HMAC_MD5_AlgName);
     ^~~~~~~~~~~~~~~~
../mDNSCore/mDNSEmbeddedAPI.h:2867:32: warning: array subscript is above array bounds [-Warray-bounds]
 #define DomainNameLength(name) DomainNameLengthLimit((name), (name)->c + MAX_DOMAIN_NAME)
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../mDNSCore/DNSDigest.c:1357:11: note: in expansion of macro 'DomainNameLength'
     len = DomainNameLength(&HMAC_MD5_AlgName);
           ^~~~~~~~~~~~~~~~
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -I../mDNSCore -I../mDNSShared -Iobjects/prod -fwrapv -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\" -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -DTARGET_OS_LINUX -fno-strict-aliasing -DHAVE_IPV6=0 -Os -DMDNS_DEBUGMSGS=0 -c -o objects/prod/uDNS.c.o ../mDNSCore/uDNS.c
<command-line>:0:0: warning: "HAVE_IPV6" redefined
<command-line>:0:0: note: this is the location of the previous definition
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -I../mDNSCore -I../mDNSShared -Iobjects/prod -fwrapv -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\" -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -DTARGET_OS_LINUX -fno-strict-aliasing -DHAVE_IPV6=0 -Os -DMDNS_DEBUGMSGS=0 -c -o objects/prod/DNSCommon.c.o ../mDNSCore/DNSCommon.c
<command-line>:0:0: warning: "HAVE_IPV6" redefined
<command-line>:0:0: note: this is the location of the previous definition
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -I../mDNSCore -I../mDNSShared -Iobjects/prod -fwrapv -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\" -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -DTARGET_OS_LINUX -fno-strict-aliasing -DHAVE_IPV6=0 -Os -DMDNS_DEBUGMSGS=0 -c -o objects/prod/uds_daemon.c.o ../mDNSShared/uds_daemon.c
<command-line>:0:0: warning: "HAVE_IPV6" redefined
<command-line>:0:0: note: this is the location of the previous definition
../mDNSShared/uds_daemon.c: In function 'set_peer_pid':
../mDNSShared/uds_daemon.c:1198:21: warning: variable 'len' set but not used [-Wunused-but-set-variable]
     socklen_t       len  = sizeof(p);
                     ^~~
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -I../mDNSCore -I../mDNSShared -Iobjects/prod -fwrapv -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\" -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -DTARGET_OS_LINUX -fno-strict-aliasing -DHAVE_IPV6=0 -Os -DMDNS_DEBUGMSGS=0 -c -o objects/prod/mDNSDebug.c.o ../mDNSShared/mDNSDebug.c
<command-line>:0:0: warning: "HAVE_IPV6" redefined
<command-line>:0:0: note: this is the location of the previous definition
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -I../mDNSCore -I../mDNSShared -Iobjects/prod -fwrapv -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\" -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -DTARGET_OS_LINUX -fno-strict-aliasing -DHAVE_IPV6=0 -Os -DMDNS_DEBUGMSGS=0 -c -o objects/prod/dnssd_ipc.c.o ../mDNSShared/dnssd_ipc.c
<command-line>:0:0: warning: "HAVE_IPV6" redefined
<command-line>:0:0: note: this is the location of the previous definition
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -I../mDNSCore -I../mDNSShared -Iobjects/prod -fwrapv -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\" -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -DTARGET_OS_LINUX -fno-strict-aliasing -DHAVE_IPV6=0 -Os -DMDNS_DEBUGMSGS=0 -c -o objects/prod/GenLinkedList.c.o ../mDNSShared/GenLinkedList.c
<command-line>:0:0: warning: "HAVE_IPV6" redefined
<command-line>:0:0: note: this is the location of the previous definition
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -I../mDNSCore -I../mDNSShared -Iobjects/prod -fwrapv -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\" -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -DTARGET_OS_LINUX -fno-strict-aliasing -DHAVE_IPV6=0 -Os -DMDNS_DEBUGMSGS=0 -c -o objects/prod/PlatformCommon.c.o ../mDNSShared/PlatformCommon.c
<command-line>:0:0: warning: "HAVE_IPV6" redefined
<command-line>:0:0: note: this is the location of the previous definition
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -I../mDNSCore -I../mDNSShared -Iobjects/prod -fwrapv -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\" -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -DTARGET_OS_LINUX -fno-strict-aliasing -DHAVE_IPV6=0 -Os -DMDNS_DEBUGMSGS=0 -c -o objects/prod/CryptoAlg.c.o ../mDNSCore/CryptoAlg.c
<command-line>:0:0: warning: "HAVE_IPV6" redefined
<command-line>:0:0: note: this is the location of the previous definition
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -I../mDNSCore -I../mDNSShared -Iobjects/prod -fwrapv -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\" -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -DTARGET_OS_LINUX -fno-strict-aliasing -DHAVE_IPV6=0 -Os -DMDNS_DEBUGMSGS=0 -c -o objects/prod/anonymous.c.o ../mDNSCore/anonymous.c
<command-line>:0:0: warning: "HAVE_IPV6" redefined
<command-line>:0:0: note: this is the location of the previous definition
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -o /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/mdnsd/mdnsd objects/prod/PosixDaemon.c.o objects/prod/mDNSPosix.c.o objects/prod/mDNSUNP.c.o objects/prod/mDNS.c.o objects/prod/DNSDigest.c.o objects/prod/uDNS.c.o objects/prod/DNSCommon.c.o objects/prod/uds_daemon.c.o objects/prod/mDNSDebug.c.o objects/prod/dnssd_ipc.c.o objects/prod/GenLinkedList.c.o objects/prod/PlatformCommon.c.o objects/prod/CryptoAlg.c.o objects/prod/anonymous.c.o 
/Library/Developer/CommandLineTools/usr/bin/strip: can't process non-object and non-archive file: /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/mdnsd/mdnsd
Responder daemon done
mkdir -p /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/lib/nerves_dnssd/priv/sbin
# Do a simple copy, since we do not want the initd script copied as well
cp /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/mdnsd/mdnsd /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/lib/nerves_dnssd/priv/sbin/mdnsd
/Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/lib/nerves_dnssd/priv/sbin/mdnsd installed
make -C /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/mDNSResponder-765.50.9/mDNSPosix libdns_sd os=linux CC=/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc BUILDDIR=/Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/dnssd_drv OBJDIR=/Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/dnssd_drv
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -I../mDNSCore -I../mDNSShared -I/Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/dnssd_drv -fwrapv -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\" -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -DTARGET_OS_LINUX -fno-strict-aliasing -Os -DMDNS_DEBUGMSGS=0 -c -fPIC -o /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/dnssd_drv/dnssd_clientlib.c.so.o ../mDNSShared/dnssd_clientlib.c
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -I../mDNSCore -I../mDNSShared -I/Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/dnssd_drv -fwrapv -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\" -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -DTARGET_OS_LINUX -fno-strict-aliasing -Os -DMDNS_DEBUGMSGS=0 -c -fPIC -o /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/dnssd_drv/dnssd_clientstub.c.so.o ../mDNSShared/dnssd_clientstub.c
../mDNSShared/dnssd_clientstub.c: In function 'FreeDNSServiceOp':
../mDNSShared/dnssd_clientstub.c:430:30: warning: variable 'op_were_not_going_to_free_but_we_need_to_fool_the_analyzer' set but not used [-Wunused-but-set-variable]
         static DNSServiceOp *op_were_not_going_to_free_but_we_need_to_fool_the_analyzer;
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -I../mDNSCore -I../mDNSShared -I/Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/dnssd_drv -fwrapv -W -Wall -DPID_FILE=\"/var/run/mdnsd.pid\" -DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd\" -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX -DTARGET_OS_LINUX -fno-strict-aliasing -Os -DMDNS_DEBUGMSGS=0 -c -fPIC -o /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/dnssd_drv/dnssd_ipc.c.so.o ../mDNSShared/dnssd_ipc.c
/Library/Developer/CommandLineTools/usr/bin/strip: can't process non-object and non-archive file: /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/dnssd_drv/libdns_sd.so
Client library done
/Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/dnssd_drv/libdns_sd.so.1 compiled
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -c -I/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/lib/erlang/erts-9.0/include -I/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/lib/erlang/lib/erl_interface-3.10/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -Os -I/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/include -fPIC -I /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/mDNSResponder-765.50.9/mDNSShared -o /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/dnssd_drv/dnssd.o c_src/dnssd.c
mkdir -p /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/lib/nerves_dnssd/priv
/Users/mauricionr/.nerves/artifacts/nerves_toolchain_armv6_rpi_linux_gnueabi-0.11.0.darwin-x86_64/bin/armv6-rpi-linux-gnueabi-gcc -shared /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/dnssd_drv/dnssd.o /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/dnssd_drv/dnssd_clientlib.c.so.o /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/dnssd_drv/dnssd_clientstub.c.so.o /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/dnssd_drv/dnssd_ipc.c.so.o -L/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/lib/erlang/erts-9.0/lib -L/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging/usr/lib/erlang/lib/erl_interface-3.10/lib -lerts -lerl_interface -lei --sysroot=/Users/mauricionr/.nerves/artifacts/nerves_system_rpi-0.16.1.armv6_rpi_linux_gnueabi/staging  -o /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/lib/nerves_dnssd/priv/dnssd_drv.so
lib /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/lib/nerves_dnssd/priv/dnssd_drv.so installed
Compiling 4 files (.erl)
src/dnssd_definition.erl:3: Warning: export_all flag enabled - all functions will be exported
Compiling 2 files (.ex)
Generated nerves_dnssd app
==> mime
Compiling 1 file (.ex)
warning: String.strip/1 is deprecated, use String.trim/1
  lib/mime.ex:28

Generated mime app
==> plug
Compiling 44 files (.ex)
warning: Atom.to_char_list/1 is deprecated, use Atom.to_charlist/1
  lib/plug/builder.ex:186

warning: Kernel.to_char_list/1 is deprecated, use Kernel.to_charlist/1
  lib/plug/adapters/cowboy.ex:220

warning: Kernel.to_char_list/1 is deprecated, use Kernel.to_charlist/1
  lib/plug/adapters/cowboy.ex:238

warning: String.rstrip/1 is deprecated, use String.trim_trailing/1
  lib/plug/templates/debugger.html.eex:635

Generated plug app
warning: variable "deps" does not exist and is being expanded to "deps()", please use parentheses to remove the ambiguity or change the variable name
  /Users/mauricionr/workspace/elixir/brewberry-pi/deps/rpi/plug_redirect/mix.exs:11

==> plug_redirect
Compiling 2 files (.ex)
Generated plug_redirect app
==> web
Compiling 4 files (.ex)
Generated web app
==> bootloader
Compiling 10 files (.ex)
Generated bootloader app
==> fw_rpi
Compiling 1 file (.ex)
warning: unused alias Networking
  lib/fw_rpi.ex:7

Generated fw_rpi app
|nerves_bootstrap| Building OTP Release...

==> Cleaning all releases..
==> Release output directory not found! Nothing to do.
Updating base firmware image with Erlang release...
Parallel mksquashfs: Using 4 processors
Creating 4.0 filesystem on /Users/mauricionr/workspace/elixir/brewberry-pi/apps/fw_rpi/_nerves-tmp/combined.squashfs, block size 131072.

Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 131072
	compressed data, compressed metadata, compressed fragments, no xattrs
	duplicates are removed
Filesystem size 20341.04 Kbytes (19.86 Mbytes)
	57.22% of uncompressed filesystem size (35546.86 Kbytes)
Inode table size 15980 bytes (15.61 Kbytes)
	29.42% of uncompressed inode table size (54324 bytes)
Directory table size 18386 bytes (17.96 Kbytes)
	42.10% of uncompressed directory table size (43672 bytes)
Number of duplicate files found 11
Number of inodes 1654
Number of files 1329
Number of fragments 170
Number of symbolic links  137
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 187
Number of ids (unique uids + gids) 4
Number of uids 3
	root (0)
	_appstore (33)
	mauricionr (501)
Number of gids 3
	wheel (0)
	_appstore (33)
	staff (20)
Building /Users/mauricionr/workspace/elixir/brewberry-pi/_build/rpi/prod/nerves/images/fw_rpi.fw...
mauricios-MacBook-Pro:fw_rpi mauricionr$ MIX_ENV=prod mix firmware.burn
Env
  MIX_ENV:  prod
  target:   rpi

==> nerves_toolchain_ctng
Compiling 1 file (.ex)
==> fw_rpi
** (Mix) Could not auto detect your SD card
mauricios-MacBook-Pro:fw_rpi mauricionr$ MIX_ENV=prod mix firmware.burn
Env
  MIX_ENV:  prod
  target:   rpi

==> nerves_toolchain_ctng
Compiling 1 file (.ex)
==> fw_rpi
Use 1.84 GiB memory card found at /dev/rdisk3? [Yn] y
|====================================| 100% (28.17 / 28.17) MB
Success!
Elapsed time: 5.621s
mauricios-MacBook-Pro:fw_rpi mauricionr$ 

being more specific in this part

mauricios-MacBook-Pro:fw_rpi mauricionr$ MIX_ENV=prod mix deps.get
Env
  MIX_ENV:  prod
  target:   rpi

** (Mix) Archive "nerves_bootstrap-0.7.0" does not match requirement ~> 0.6.1. Please update your archive version accordingly.
mauricios-MacBook-Pro:fw_rpi mauricionr$ vi mix.exs 
mauricios-MacBook-Pro:fw_rpi mauricionr$ MIX_ENV=prod mix deps.get
Env
  MIX_ENV:  prod
  target:   rpi

* Getting nerves_dnssd (https://github.com/amolenaar/nerves_dnssd.git)
remote: Counting objects: 856, done.        
remote: Compressing objects: 100% (5/5), done.        
remote: Total 856 (delta 0), reused 5 (delta 0), pack-reused 851        
Receiving objects: 100% (856/856), 339.71 KiB | 254.00 KiB/s, done.
Resolving deltas: 100% (479/479), done.
Resolving Hex dependencies...
Dependency resolution completed:
  bootloader 0.1.2
  cowboy 1.1.2
  cowlib 1.0.2
  distillery 1.5.1
  elixir_make 0.4.0
...

after fixed this ☝️ i got another error 👇

mauricios-MacBook-Pro:fw_rpi mauricionr$ MIX_ENV=prod mix firmware
Env
  MIX_ENV:  prod
  target:   rpi

** (Mix) 
  Nerves is missing an alias for "deps.get"
  Please update nerves to the latest version:

  mix deps.update nerves
  
  Also update your mix.exs target aliases to:
  
  defp aliases(_target) do
    [
      # Add custom mix aliases here
    ]
    |> Nerves.Bootstrap.add_aliases()
  end


mauricios-MacBook-Pro:fw_rpi mauricionr$ vi mix.exs 
mauricios-MacBook-Pro:fw_rpi mauricionr$ MIX_ENV=prod mix firmware
Env
  MIX_ENV:  prod
  target:   rpi

==> distillery
Compiling 19 files (.ex)
Generated distillery app
==> nerves
Compiling 28 files (.ex)
warning: function Mix.Nerves.Shell.open/2 is undefined (module Mix.Nerves.Shell is not available)
  lib/nerves/package/providers/docker.ex:115
...

after fix this ☝️ the firmware was generated but not booting up in Raspberry pi 3 model b

I could boot this generated firmware in my old raspberry(Raspberry Pi 1 Model A)

Thanks @amolenaar 🚀

:erlang.open_port error

Generated fw_rpi app
MacBook-Pro-de-Mauririo:brewberry-pi mauririonunes$ iex -S mix
Erlang/OTP 20 [erts-9.0] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false]

Env
  MIX_ENV:  dev
  target:   host


19:10:03.933 [info]  Start Network Interface Worker

19:10:03.992 [info]  Application nerves_network_interface exited: Nerves.NetworkInterface.Application.start(:normal, []) returned an error: shutdown: failed to start child: Nerves.NetworkInterface.Worker
    ** (EXIT) an exception was raised:
        ** (ErlangError) Erlang error: :enoent
            :erlang.open_port({:spawn_executable, '/Users/mauririonunes/workspace/brewberry-pi/_build/dev/lib/nerves_network_interface/priv/netif'}, [{:packet, 2}, :use_stdio, :binary])
            (nerves_network_interface) lib/network_interface/worker.ex:123: Nerves.NetworkInterface.Worker.init/1
            (stdlib) gen_server.erl:365: :gen_server.init_it/2
            (stdlib) gen_server.erl:333: :gen_server.init_it/6
            (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3

19:10:03.992 [info]  Application nerves_wpa_supplicant exited: :stopped
** (Mix) Could not start application nerves_network_interface: Nerves.NetworkInterface.Application.start(:normal, []) returned an error: shutdown: failed to start child: Nerves.NetworkInterface.Worker
    ** (EXIT) an exception was raised:
        ** (ErlangError) Erlang error: :enoent
            :erlang.open_port({:spawn_executable, '/Users/mauririonunes/workspace/brewberry-pi/_build/dev/lib/nerves_network_interface/priv/netif'}, [{:packet, 2}, :use_stdio, :binary])
            (nerves_network_interface) lib/network_interface/worker.ex:123: Nerves.NetworkInterface.Worker.init/1
            (stdlib) gen_server.erl:365: :gen_server.init_it/2
            (stdlib) gen_server.erl:333: :gen_server.init_it/6
            (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3
MacBook-Pro-de-Mauririo:brewberry-pi mauririonunes$ 
MacBook-Pro-de-Mauririo:brewberry-pi mauririonunes$ elixir -v
Erlang/OTP 20 [erts-9.0] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false]

Elixir 1.5.0
MacBook-Pro-de-Mauririo:brewberry-pi mauririonunes$ 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.