summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.rules4
-rwxr-xr-xboard/ryu/dfu3
2 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 5f52fc38c8..8ccb54540a 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -275,6 +275,10 @@ flash: $(out)/ec.bin
flash_ec: $(out)/ec.bin
./util/flash_ec --board $(BOARD) --image $(out)/ec.bin
+.PHONY: flash_dfu
+flash_dfu: $(out)/ec.bin
+ sudo ./board/$(BOARD)/dfu $(out)/ec.bin
+
.PHONY: clean
clean:
-rm -rf $(out)
diff --git a/board/ryu/dfu b/board/ryu/dfu
new file mode 100755
index 0000000000..313ca24341
--- /dev/null
+++ b/board/ryu/dfu
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+dfu-util -a 0 -d 0483:df11 -s 0x08000000:262144 -D $1