Permalink
Browse files

Working Nerves Message Board

  • Loading branch information...
Steven Fuchs
Steven Fuchs committed Jan 9, 2019
1 parent 24ccc64 commit 01b171fb8acd83601118711858635b87b186eddc
Showing with 553 additions and 7 deletions.
  1. +25 −5 fw/config/config.exs
  2. +95 −0 fw/config/config.txt
  3. +395 −0 fw/config/fwup.conf
  4. +2 −1 fw/mix.exs
  5. +32 −0 fw/rel/config.exs
  6. +3 −0 fw/rel/plugins/.gitignore
  7. +1 −1 fw/rel/vm.args
@@ -8,7 +8,9 @@ use Mix.Config
# Customize non-Elixir parts of the firmware. See
# https://hexdocs.pm/nerves/advanced-configuration.html for details.

config :nerves, :firmware, rootfs_overlay: "rootfs_overlay"
config :nerves, :firmware,
rootfs_overlay: "rootfs_overlay",
fwup_conf: "config/fwup.conf"

# Use shoehorn to start the main application. See the shoehorn
# docs for separating out critical OTP applications such as those
@@ -42,15 +44,33 @@ config :nerves_firmware_ssh,

# Setting the node_name will enable Erlang Distribution.
# Only enable this for prod if you understand the risks.
node_name = if Mix.env() != :prod, do: "fw"
# node_name = if Mix.env() != :prod, do: "fw"

node_name = "msgboard"
config :clixir, application: :msg_board

config :msg_board, :dimensions,
width: 800,
height: 480

config :nerves_init_gadget,
ifname: "usb0",
address_method: :dhcpd,
mdns_domain: "nerves.local",
ifname: "wlan0",
ipv4_address_method: :dhcp,
address_method: :dhcp,
mdns_domain: "msgboard.local",
node_name: node_name,
node_host: :mdns_domain

config :nerves_network, :default,
wlan0: [
ssid: System.get_env("NERVES_NETWORK_SSID"),
psk: System.get_env("NERVES_NETWORK_PSK"),
key_mgmt: :"WPA-PSK"
],
eth0: [
ipv4_address_method: :dhcp
]

# Import target specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
# Uncomment to use target specific configurations
@@ -0,0 +1,95 @@
# Default Nerves RPi0 config.txt
#
# It's possible to override this file by using a custom fwup.conf
# configuration to pull in a replacement.
#
# Useful links:
# https://www.raspberrypi.org/documentation/configuration/config-txt/README.md
# https://www.raspberrypi.org/documentation/configuration/device-tree.md
# https://github.com/raspberrypi/documentation/blob/master/configuration/device-tree.md

kernel=zImage

# Disable the boot rainbow
disable_splash=1

# This, along with the Raspberry Pi "x" firmware is needed for the camera
# to work. The Raspberry Pi "x" firmware is selected via the Buildroot
# configuration. See Target packages->Hardware handling->Firmware.
gpu_mem=192

# Enable I2C, SPI, and audio
dtparam=i2c_arm=on
dtparam=spi=on
dtparam=audio=on

# Comment this in or modify to enable OneWire
# NOTE: check that the overlay that you specify is in the boot partition or
# this won't work.
#dtoverlay=w1-gpio-pullup,gpiopin=4
dtoverlay=dwc2

# Enable the UART (/dev/ttyAMA0) on the RPi0.
enable_uart=1
dtoverlay=pi3-miniuart-bt

# The active LED is active low instead of active high like other Raspberry Pis
dtparam=act_led_activelow=on

# The default is to blink the LED on MicroSD card accesses, but this isn't
# that useful since Nerves has very few accesses. Switch it to a heartbeat
# so that it's easy to see if the processor hangs.
dtparam=act_led_trigger=heartbeat

# To turn the LED completely off comment out the previous line and uncomment
# the next.
#dtparam=act_led_trigger=none




# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
framebuffer_width=800
framebuffer_height=480

# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (here we are forcing 800x480!)
hdmi_group=2
hdmi_mode=87
hdmi_cvt=800 480 60 6 0 0 0
hdmi_drive=1

max_usb_current=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# for more options see http://elinux.org/RPi_config.txt
Oops, something went wrong.

0 comments on commit 01b171f

Please sign in to comment.