fw-updater: Automatically detect Dolos image type

The fw-updater will send a "version" command to Dolos to query the firmware version.
We will assume that anything below 0.100 will be considered baremetal and anything equal or above will be ZephyrOS.
This means that the user is no longer required to specify the --zephyr arugment during programming and the correct BSL invoke message will be sent automatically.

BUG=b:334981992
TEST=Use the fw-updater to install a new Dolos image on both baremetal image and ZephyrOS image

Change-Id: I278d785d9bfea223b9dc7fa2419ae8190053a258
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dolos/+/5465704
Reviewed-by: Samuel Jacob <samjaco@google.com>
Reviewed-by: Udaya Kiran Ammu <udaykiran@google.com>
Commit-Queue: Udaya Kiran Ammu <udaykiran@google.com>
Tested-by: Udaya Kiran Ammu <udaykiran@google.com>
3 files changed