aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/spi_flash/spi_flash.py
Commit message (Collapse)AuthorAgeFilesLines
* spi_flash: Better fallback on MCU protocol changeJustin Schuh2021-11-091-3/+15
| | | | | | Support a set of known past config responses. Signed-off-by: Justin Schuh <code@justinschuh.com>
* spi_flash: Fix MCU handshake protocolJustin Schuh2021-11-081-1/+1
| | | | | | Update config response string to match new version from d4aee4f. Signed-off-by: Justin Schuh <code@justinschuh.com>
* spi_flash: Improve Python3 compatibilityKevin O'Connor2021-10-071-5/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* spi_flash: Support firmware dictionary validationJustin Schuh2021-07-201-4/+27
| | | | | | | | | | | Updates firmware validation to use a dictionary if provided (or found when updating from the default out/ directory). Validation without a dictionary still checks the following (in order): 1. Active firmware's raw dictionary changed after update 2. Checksum of firmware.cur matches expected Signed-off-by: Justin Schuh <code@justinschuh.com>
* spi_flash: Make SD updates more tolerant of flaky boardsJustin Schuh2021-07-201-22/+53
| | | | | | | | | | Validation passes if either of the following succeeds (in order): 1. Active firmware's raw dictionary changed after update 2. Checksum of firmware.cur matches expected Additionally, deletes firmware.bin if found after update succeeds. Signed-off-by: Justin Schuh <code@justinschuh.com>
* serialhdl: Update callers to decide serial fd typeKevin O'Connor2021-03-021-2/+4
| | | | | | | | Don't try to detect a "real serial port" in serialhdl.py. Instead, have the callers invoke either connect_uart(), connect_file(), or connect_pipe(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* spi_flash: support for firmware upgrades via SD CardArksine2021-02-051-0/+1112
This module connects directly to MCU's previously flashed with Klipper, uploads Klipper firmware to an attached SD Card, and performs a device reset to intiate the bootloader's update process. Signed-off-by: Eric Callahan <arksine.code@gmail.com>