flash node: improve flashing performance
authorSven Rademakers <sven.rademakers@gmail.com>
Fri, 10 Nov 2023 07:23:27 +0000 (07:23 +0000)
committerSven Rademakers <sven.rademakers@gmail.com>
Fri, 10 Nov 2023 07:23:27 +0000 (07:23 +0000)
commitb740a20bc41dba83e9ddcd32bc6ae9cea43d8c9c
treee2eed36d175125a9b85707d23fa515228da331ff
parent07a3da443df868519ac66b20513f584b164d891c
flash node: improve flashing performance

Decreased the flashing time from 16m to 6m40s.

Conducted a dd test locally on the BMC to determine the correct block
size for writing to a raspberry CM4.
Times measured using a 206Mb file:

512B     1m50.22s
512K     43.0s
1M       43.03s
4M       42.96s
8M       43.19s
16M      43.00s
32M      45.95s

Concluded 4M is the optimal blocksize.

Ran some tests writing `2023-05-03-raspios-bullseye-armhf-lite.img`
* using dd 4M                   => 6m23.86s
* using tpi with -l flag        => 6m22s
* using tpi over local network  => 6m40s
src/app/firmware_runner.rs