katapult: Update flash_can.py to succesor tool flashtool.py

This updates the outdated CanBoot flash_can.py with the latest
version of Katapult flashtool.py, which should be fully backwards
compatible.

Signed-off-by: Robert Schiele <rschiele@gmail.com>
This commit is contained in:
Robert Schiele
2026-03-01 06:58:56 +01:00
committed by KevinOConnor
parent 41b77b66df
commit 29e2652777
5 changed files with 1177 additions and 632 deletions

View File

@@ -97,12 +97,12 @@ def call_flashcan(device, binfile):
" %s -m pip install pyserial\n\n" % (sys.executable,)
)
sys.exit(-1)
args = [sys.executable, "lib/canboot/flash_can.py", "-d",
args = [sys.executable, "lib/katapult/flashtool.py", "-d",
device, "-f", binfile]
sys.stderr.write(" ".join(args) + '\n\n')
res = subprocess.call(args)
if res != 0:
sys.stderr.write("Error running flash_can.py\n")
sys.stderr.write("Error running flashtool.py\n")
sys.exit(-1)
def flash_canboot(options, binfile):