View Source mix firmware.burn (nerves v1.11.1)
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/sdcor/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 specifiedfwuptask. See thefwup.conffile that was used to create the firmware image for options. By convention, thecompletetask writes everything to the SDCard including bootloaders and application data partitions. Theupgradetask only modifies the parts of the SDCard required to run the new software.--verbose- produce detailed output about release assemblyThe
mix firmware.burntask uses thefwuptool internally; any extra arguments passed to it will be forwarded along tofwup. You can read about the other supported options in thefwupdocumentation.
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
mix firmware.burn --device /dev/mmcblk0 --task upgrade
If you are sure there is only one SD card inserted, you can also add the -y
flag to skip the confirmation that it is the correct device.
mix firmware.burn -y