Since the USB and flash communication layers are different, change the
magic number for booster. This will prevent previous versions of foboot
from trying to launch our updater with the wrong version.
Signed-off-by: Sean Cross <sean@xobs.io>
Booster is so fast now that we probably don't need USB support. If
there's an error condition, however, start up USB so we can hook up the
debugger.
Signed-off-by: Sean Cross <sean@xobs.io>
Earlier we were building with -O0, which is useful for debugging, but
is not particularly fast. Build with -O2 now for speeeeed.
Signed-off-by: Sean Cross <sean@xobs.io>
Remove code that doesn't get called.
Also, remove the `spi_id` global. It conflicted with one from
the linker, which was causing contention.
Signed-off-by: Sean Cross <sean@xobs.io>
If a user installs the wrong version of Booster, it is very important
that it erase itself so that it doesn't keep getting booted.
Signed-off-by: Sean Cross <sean@xobs.io>
Rework Booster so that it uses the bitstream that it is installing
in order to validate that the new image will actually work.
This removes any sort of binary ABI compatibility issues, and
prevents us from installing an image onto a device that it doesn't
support.
Additionally, this installer should be resistant to bricking, though
that has yet to be tested.
Signed-off-by: Sean Cross <sean@xobs.io>