Description
I'm currently using autoupdater to update the firmware on an Aerohive HiveAP 330. Which takes ages.
So I've used that time to find out about what's holding it up.
The HiveAP 330 uses a 9600bps console output, so any output takes a long time.
The while loop in recv_image_cb outputs the progress in every iteration:
packages/admin/autoupdater/src/autoupdater.c
Lines 252 to 277 in 3d08b0f
Maybe it would be beneficial if the downloading progress would only get shown, like, every 128th iteration or so?
On a sidenote, it also looks to me like the SHA256 checksum is calculated for every iteration as well? Is this necessary? Wouldn't it be sufficient to calculate it once the download is completed?
packages/admin/autoupdater/src/autoupdater.c
Line 275 in 3d08b0f
Okay, it finally finished downloading, took about 20 minutes for the 44MB image...
EDIT:
using # autoupdater >/dev/null
it took merely a couple seconds to download the image. So it definitely is related to terminal output.
Activity