Unified firmware#1763
Conversation
1c4c6e2 to
241532f
Compare
There was a problem hiding this comment.
couple nits:
- had a write error get thrown mid-progress bar, but still had to wait for the bar to complete before the error was displayed
- maybe the restart modal on successful upload should clear itself when the page refreshes?
- can we have a button to delete partitions?
- choosing which partition to upload to would be cool too
7e67875 to
c7c3932
Compare
What caused the write error? It should handle it better now, but not sure how to test/reproduce this?
Fixed.
Why? I mean, yes, it's possible to add a delete button next to not-active partitions, not sure why you would want this. They would be marked as empty, not actually deleted. We cannot delete or change the partition table without forcing everyone to do a factory flash, it's a tiny miracle this is even possible without any partition table changes.
You can't upload to factory partition. And you always upload to the other OTA partition, you can't upload to the current active one. It's all managed by the ota library. |
e9b8292 to
237519e
Compare
likely the same issue that triggers #764, sending a malformed request.
well, not delete-delete, but clear em? marking as empty would be good enough i think
ahhh i seee, ok nvm then |
# Conflicts: # main/http_server/axe-os/package.json


This PR embeds Axe-OS into
esp-miner.binto create a unified firmware.It is still possible to upload a custom front-end, but this is a separate configuration option, as it's no longer needed for default installs.
It also exposes the currently installed firmware versions, as there are several partitions (
factory,ota_0andota_1). This should make rolling back easier.The
esp-miner.binis only 450kB bigger, instead of the full 3MB of thewww.binfile. This was because the SPIFFS partition image ofwww.binwas not truncated, even though only 450kB of the 3MB was used. So the unified firmware is only a little bit larger, now clocking in at 2.4MB which leaves plenty of room on the 4MB partition.Prior issue: #308 and #1002. This PR implements option 3 from 1002. The closing of these issues was done when Axewell-UI was released. Having the configuration option makes it possible to still use external developed front-ends.
Reason 3 was done to preserve the Angular filenames, which have a random hash at the end for cache-busting purposes. Other solutions would be trickier to get right, and disabling the cache-busting feature from Angular is not a viable option either.