tessel / t1-start

[UNMAINTAINED] Tessel 1's getting started page
http://t1-start.tessel.io/
MIT License
32 stars 27 forks source link

`--force` is required to install firmware for the first time #28

Closed tomoya55 closed 10 years ago

tomoya55 commented 10 years ago

On my tessel board, tessel update failed because there's no firmware installed

> tessel update
TESSEL! Connected to <SERIAL>.
INFO Checking for latest firmware...
ERR! No builds were found

Instead, we should add --force option for the first time to install the firmware

> tessel update -f
TESSEL! Connected to <SERIAL>
INFO Checking for latest firmware...
INFO Downloading firmware from https://builds.tessel.io/firmware/tessel-firmware-current.bin
INFO Updating firmware... please wait. Tessel will reset itself after the update
Waiting for bootloader....
Writing: 100%  1186168 /1186168
Done! 
jiahuang commented 10 years ago

The build check is purely on the side of the computer and not on Tessel. In order to determine if there is a new build, we take the following steps: 1) Issue a header request to a builds.json file that has all the working builds. If this fails we error out with "No builds were found" 2) Pull the newest build 3) Check it against the current firmware build 4) If it's newer, download the binary and apply it.

It looks like the header request didn't go through the first time it tried to check for the builds file. The --force option wouldn't have fixed that.

kevinmehall commented 10 years ago

In fact, that error ends the program before the --force flag is checked.