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
By default mix burn (and subsequently mix firmware.burn) will completely overwrite the SD card because it defaults to using the complete task, losing all data on it
However, it may be possible to detect the SD card already has an image on it and adjust the task to use upgrade instead which would preserve the /data partition on disk like when upgrading OTA via SSH or NervesHub
The text was updated successfully, but these errors were encountered:
Oooh, that would be nice! Another option would be for mix firmware.burn to not allow overwriting an existing nerves image and instead require mix firmware.burn --overwrite to actually overwrite the image.
That's precisely what I was thinking @axelson! Default to upgrade, which would fail if there is no Uboot env (according to Frank), then fallback to complete. And also allow --overwrite option to force it
This changes the `mix burn` (and subsequently `mix firmware.burn`) to
use the FWUP `upgrade` task by default. If the upgrade fails because
the device does not actually have upgradable firmware on it, then the
task will fallback to using the `complete` task to overwrite the device.
You can also now specify `--overwrite` to force the `complete` task
and wipe the data on the device with the new firmware.
see #679
This changes the `mix burn` (and subsequently `mix firmware.burn`) to
use the FWUP `upgrade` task by default. If the upgrade fails because
the device does not actually have upgradable firmware on it, then the
task will fallback to using the `complete` task to overwrite the device.
You can also now specify `--overwrite` to force the `complete` task
and wipe the data on the device with the new firmware.
see #679
By default
mix burn
(and subsequentlymix firmware.burn
) will completely overwrite the SD card because it defaults to using thecomplete
task, losing all data on itHowever, it may be possible to detect the SD card already has an image on it and adjust the task to use
upgrade
instead which would preserve the/data
partition on disk like when upgrading OTA via SSH or NervesHubThe text was updated successfully, but these errors were encountered: