Nerves v1.3.2 mix firmware.burn View Source
This task calls mix firmware
& mix burn
to burn a new firmware to a SDCard
Command line options
--device <filename>
- skip SDCard detection and write the image to the specified filename. SDCard paths depend on the operating system, but have a form like/dev/sdc
or/dev/mmcblk0
. You may also specify a filename to create an image that can be used with a bulk memory programmer or copied to an SDCard manually with a utility likedd
.--task <name>
- apply the specifiedfwup
task. See thefwup.conf
file that was used to create the firmware image for options. By convention, thecomplete
task writes everything to the SDCard including bootloaders and application data partitions. Theupgrade
task only modifies the parts of the SDCard required to run the new software.--verbose
- produce detailed output about release assembly
Environment variables
NERVES_SYSTEM
- may be set to a local directory to specify the Nerves system image that is usedNERVES_TOOLCHAIN
- may be set to a local directory to specify the Nerves toolchain (C/C++ crosscompiler) that is used
Examples
# Upgrade the contents of the SDCard at /dev/mmcblk0 using the rpi0 system
NERVES_SYSTEM=rpi0 mix firmware.burn --device /dev/mmcblk0 --task upgrade
Link to this section Summary
Link to this section Functions
A task needs to implement run
which receives
a list of command line args.
Callback implementation for Mix.Task.run/1
.