You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since it's going to be possible in the official Nerves systems to try
out firmware that needs logic to validate it, there needs to be a simple
way for new users to use it. This is a really basic startup guard that
waits for all OTP applications in the start script to be running and
then validates the running firmware.
Applications not starting result in a reboot after 15 minutes which will
either revert or go through the process again. A warning message is
printed every minute to hopefully clue people into what's happening
since it's guaranteed that 15 minutes won't work for everyone.
`:boardid_path` | `"/usr/bin/boardid"` | Path to the `boardid` binary for determining the device's serial number
310
-
`:devpath` | `/dev/rootdisk0` | The block device that firmware is stored on. `/dev/rootdisk0` is a symlink on Nerves to the real location, so this really shouldn't need to be changed.
311
-
`:fwup_env` | `%{}` | Additional environment variables to pass to `fwup`
312
-
`:fwup_path` | `"fwup"` | Path to the `fwup` binary for querying or modifying firmware status
313
-
`:kv_backend` | `Nerves.Runtime.KVBackend.UBootEnv` | The backing store for firmware slot and other low level key-value pairs. This is almost always a U-Boot environment block for Nerves
314
-
`:ops_fw_path` | `"/usr/share/fwup/ops.fw"` | Path to the `ops.fw` file for passing to `fwup` for firmware status tasks
`:boardid_path` | `"/usr/bin/boardid"` | Path to the `boardid` binary for determining the device's serial number (useful for unit tests)
306
+
`:devpath` | `/dev/rootdisk0` | The block device that firmware is stored on. `/dev/rootdisk0` is a symlink on Nerves to the real location, so this really shouldn't need to be changed. (useful for unit tests)
307
+
`:fwup_env` | `%{}` | Additional environment variables to pass to `fwup`. (useful for unit tests)
308
+
`:fwup_path` | `"fwup"` | Path to the `fwup` binary for querying or modifying firmware status. (useful for unit tests)
309
+
`:kv_backend` | `Nerves.Runtime.KVBackend.UBootEnv` | The backing store for firmware slot and other low level key-value pairs. This is almost always a U-Boot environment block for Nerves. (useful for unit tests)
310
+
`:ops_fw_path` | `"/usr/share/fwup/ops.fw"` | Path to the `ops.fw` file for passing to `fwup` for firmware status tasks. (useful for unit tests)
311
+
`:startup_guard_enabled` | `false` | Check that all OTP applications start up and then validate the firmware if needed. Reboot after 15 minutes if start up isn't successful.
315
312
316
313
## Using nerves_runtime in tests
317
314
@@ -357,4 +354,3 @@ All original source code in this project is licensed under Apache-2.0.
357
354
358
355
Additionally, this project follows the [REUSE recommendations](https://reuse.software)
359
356
and labels so that licensing and copyright are clear at the file level.
0 commit comments