From 676872349dbaa54dd339d70012e2b83c0539b73b Mon Sep 17 00:00:00 2001 From: Matthew O'Gorman Date: Sat, 19 Jun 2021 23:20:52 -0400 Subject: [PATCH] verify flash after flashing after flashing verify the signature of whats running on the panda matches the binary we just built --- board/build.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/board/build.mk b/board/build.mk index 534d423390b..1be10983a6d 100644 --- a/board/build.mk +++ b/board/build.mk @@ -35,6 +35,7 @@ POSTCOMPILE = @mv -f $(DEPDIR)/$*.Td $(DEPDIR)/$*.d && touch $@ # this no longer pushes the bootstub flash: obj/$(PROJ_NAME).bin PYTHONPATH=../ python3 -c "from python import Panda; Panda().flash('obj/$(PROJ_NAME).bin')" + PYTHONPATH=../ python3 -c "from python import Panda; print('flash succeeded') if Panda().get_signature() == Panda().get_signature_from_firmware('obj/$(PROJ_NAME).bin') else print('flash failed')" ota: obj/$(PROJ_NAME).bin curl http://192.168.0.10/stupdate --upload-file $<