Comments (3)
i guess i found a solution
@target System.get_env("MIX_TARGET") || :host
#@target if Mix.env == :prod, do: :rpi, else: :host
mauricios-MacBook-Pro:fw_rpi mauricionr$ MIX_ENV=prod mix firmware
Env
MIX_ENV: prod
target: rpi3
==> 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_arm_unknown_linux_gnueabihf
Compiling 1 file (.ex)
Generated nerves_toolchain_arm_unknown_linux_gnueabihf app
|Elixir.Nerves.Package.Providers.HTTP| Downloading Artifact nerves_toolchain_arm_unknown_linux_gnueabihf-0.11.0.darwin-x86_64.tar.xz
From Location:
https://github.com/nerves-project/toolchains/releases/download/v0.11.0/nerves_toolchain_arm_unknown_linux_gnueabihf-0.11.0.darwin-x86_64.tar.xz
|=================== | 38% (19 / 51) MB
😁
from brewberry-pi.
Building /Users/mauricionr/workspace/elixir/brewery/_build/rpi3/prod/nerves/images/fw_rpi.fw...
fwup: can't open path '/Users/mauricionr/.nerves/artifacts/nerves_system_rpi3-0.16.1.arm_unknown_linux_gnueabihf/images/bcm2708-rpi-b.dtb' in file-resource 'bcm2708-rpi-b.dtb'
** (Mix) Nerves encountered an error. %IO.Stream{device: :standard_io, line_or_bytes: :line, raw: true}
after MIX_ENV=prod mix firmware
i got fwup: can't open path...
mauricios-MacBook-Pro:fw_rpi mauricionr$ MIX_ENV=prod mix firmware.burn
Env
MIX_ENV: prod
target: rpi3
==> nerves_toolchain_ctng
Compiling 1 file (.ex)
==> fw_rpi
** (Mix) Firmware for target rpi3 not found at /Users/mauricionr/workspace/elixir/brewery/_build/rpi3/prod/nerves/images/fw_rpi.fw run `mix firmware` to build
|nerves_bootstrap| Environment Package List
Pkg: nerves_system_br
Vsn: 0.13.7
Type: system_platform
Provider: []
Pkg: nerves_system_rpi3
Vsn: 0.16.1
Type: system
Provider: [{Nerves.Package.Providers.HTTP, []}, {Nerves.Package.Providers.Docker, []}]
Pkg: nerves_toolchain_arm_unknown_linux_gnueabihf
Vsn: 0.11.0
Type: toolchain
Provider: [{Nerves.Package.Providers.HTTP, []}, {Nerves.Package.Providers.HTTP, []}]
Pkg: nerves_toolchain_ctng
Vsn: 1.1.0
Type: toolchain_platform
Provider: []
|nerves_bootstrap| Loadpaths Start
|nerves_bootstrap| Environment Variable List
target: rpi3
toolchain: /Users/mauricionr/.nerves/artifacts/nerves_toolchain_arm_unknown_linux_gnueabihf-0.11.0.darwin-x86_64
system: /Users/mauricionr/.nerves/artifacts/nerves_system_rpi3-0.16.1.arm_unknown_linux_gnueabihf
app: /Users/mauricionr/workspace/elixir/brewery/apps/fw_rpi
|nerves_bootstrap| Loadpaths End
Nerves: 0.7.5
Nerves Bootstrap: 0.7.0
Elixir: 1.5.0
|nerves_bootstrap| Info End
from brewberry-pi.
I tested and this pr #8 fix my issue 🎉 thanks @mobileoverlord
from brewberry-pi.
Related Issues (2)
- :erlang.open_port error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brewberry-pi.