Small, general initialization and utilities for Nerves devices
uboot_env v1.0.0
to be used.Nerves.Runtime.firmware_valid?/0
would return that the firmware wasn't
validated when the validation feature wasn't in use. This was confusing
since firmware is assumed valid when the feature is off.New features
Bug fixes
/etc/sysctl.conf
is present, run sysctl
to load and set the kernel
configuration parameters in it.Nerves.Runtime.firmware_valid?/0
to easily check whether the
firmware has been marked valid for systems that auto-rollback.uboot_env
v0.3.0. This version of uboot_env
has backwards
incompatible changes, but they don't affect nerves_runtime
, so the
mix.exs
deps spec allows it now.Nerves.Runtime.KV
functions.Support for OTP 20 was removed. uboot_env
v0.3.0 requires OTP 21 and later. If
you still are using OTP 20, lock the version of uboot_env
to ~> 0.2.0
in
your mix.exs
.
Nerves.Runtime.validate_firmware/0
for validating firmware on
systems that auto-rollback. This only abstracts the setting of the
nerves_fw_validated
key. It doesn't add any new functionality. However, it
will enable auto-rollback to be added to Nerves systems in a consistent
manner in the future and allow for platform-specific variations without
impacting application code.uboot_env
v0.2.0 to reduce memory garbage that's created when
reading and writing U-Boot environment blocksNerves.Runtime.serial_number/0
. It will call out to the underlying
system to return the device's serial number however it's stored.haveged
for systems that don't have hardware random
number generators or otherwise can't use rngd
.