device: notify before booting the board

Transfering the image to cdba server takes time (especially when working
with over the network). Notify users before actually booting the board
to ease detecting early boot issues.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
This commit is contained in:
Dmitry Baryshkov
2020-12-18 14:42:22 +03:00
committed by Bjorn Andersson
parent 6fbc50ca58
commit 961792677a

View File

@@ -256,6 +256,7 @@ void device_fastboot_flash_reboot(struct device *device)
void device_boot(struct device *device, const void *data, size_t len)
{
warnx("booting the board...");
if (device->set_active)
fastboot_set_active(device->fastboot, "a");
fastboot_download(device->fastboot, data, len);