Skip to content

Commit 8bcf80c

Browse files
committed
Switched the console output to gpio pins. Cleaned up the @ALL definition. Ignored .img files.
1 parent aa33f3f commit 8bcf80c

File tree

3 files changed

+82
-1
lines changed

3 files changed

+82
-1
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@
1515

1616
# If the VM crashes, it generates a dump, let's ignore it too.
1717
erl_crash.dump
18+
19+
# Ignore image files
20+
*.img

mix.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ defmodule NervesWebKioskPlayground.MixProject do
33

44
@app :nerves_web_kiosk_playground
55
@version "0.1.0"
6-
@all_targets [:rpi3, :rpi3a, :rpi4, :x86_64, :rpi4_kiosk]
6+
@all_targets [:rpi4_kiosk]
77

88
def project do
99
[

rootfs_overlay/etc/erlinit.config

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Additional configuration for erlinit
2+
#
3+
# To override the settings in this file, see
4+
# https://hexdocs.pm/nerves/advanced-configuration.html#overriding-erlinit-config-from-mix-config.
5+
#
6+
7+
# Turn on the debug prints
8+
#-v
9+
10+
# Specify where erlinit should send the IEx prompt. Only one may be enabled at
11+
# a time.
12+
-c ttyS0 # UART pins on the GPIO connector
13+
#-c tty1 # HDMI output
14+
15+
# If more than one tty are available, always warn if the user is looking at the
16+
# wrong one.
17+
--warn-unused-tty
18+
19+
# Use nbtty to improve terminal handling on serial ports.
20+
# Comment out or delete for HDMI (tty1)
21+
-s "/usr/bin/nbtty"
22+
23+
# There's a call to getrandom(2) when loading the crypto NIF that's before
24+
# nerves_runtime can start rngd. This syscall can block the BEAM indefinitely
25+
# if there's not enough entropy in the kernel. We have not observed blocking on
26+
# this platform. However, we don't know that getrandom(2) will always have
27+
# enough entropy, so start rngd here to be safe.
28+
--pre-run-exec /usr/sbin/rngd
29+
30+
# Specify the user and group IDs for the Erlang VM
31+
#--uid 100
32+
#--gid 200
33+
34+
# Uncomment to ensure that the system clock is set to at least the Nerves
35+
# System's build date/time. If you enable this, you'll still need to use NTP or
36+
# another mechanism to set the clock, but it won't be decades off.
37+
#--update-clock
38+
39+
# Uncomment to hang the board rather than rebooting when Erlang exits
40+
# NOTE: Do not enable on production boards
41+
#--hang-on-exit
42+
43+
# Change the graceful shutdown time. If 10 seconds isn't long enough between
44+
# calling "poweroff", "reboot", or "halt" and :init.stop/0 stopping all OTP
45+
# applications, enable this option with a new timeout in milliseconds.
46+
#--graceful-shutdown-timeout 15000
47+
48+
# Optionally run a program if the Erlang VM exits
49+
#--run-on-exit /bin/sh
50+
51+
# Enable UTF-8 filename handling in Erlang and custom inet configuration
52+
-e LANG=en_US.UTF-8;LANGUAGE=en;ERL_INETRC=/etc/erl_inetrc;ERL_CRASH_DUMP=/root/crash.dump
53+
54+
# Mount the application partition (run "man fstab" for field names)
55+
# NOTE: This must match the location in the fwup.conf. If it doesn't the system
56+
# will probably still work fine, but you won't get shell history since
57+
# shoehorn/nerves_runtime can't mount the application filesystem before
58+
# the history is loaded. If this mount fails due to corruption, etc.,
59+
# nerves_runtime will auto-format it. Your applications will need to handle
60+
# initializing any expected files and folders.
61+
-m /dev/mmcblk0p1:/boot:vfat:ro,nodev,noexec,nosuid:
62+
-m /dev/mmcblk0p3:/root:f2fs:nodev:
63+
-m pstore:/sys/fs/pstore:pstore:nodev,noexec,nosuid:
64+
-m tmpfs:/sys/fs/cgroup:tmpfs:nodev,noexec,nosuid:mode=755,size=1024k
65+
-m cpu:/sys/fs/cgroup/cpu:cgroup:nodev,noexec,nosuid:cpu
66+
67+
# Erlang release search path
68+
-r /srv/erlang
69+
70+
# Assign a hostname of the form "nerves-<serial_number>".
71+
# See /etc/boardid.config for locating the serial number.
72+
-d /usr/bin/boardid
73+
-n nerves-%s
74+
75+
# If using shoehorn (https://github.com/nerves-project/shoehorn), start the
76+
# shoehorn OTP release up first. If shoehorn isn't around, erlinit fails back
77+
# to the main OTP release.
78+
--boot shoehorn

0 commit comments

Comments
 (0)