diff mbox

[v2,10/15] boards: stm32f469-disco: Add a helper script to flash images

Message ID 1456167569-8713-11-git-send-email-lee.jones@linaro.org
State Changes Requested
Headers show

Commit Message

Lee Jones Feb. 22, 2016, 6:59 p.m. UTC
Once each of the; bootloader, kernel, host utilities and rootfs
have been successfully built and packaged, the user run this
helper script to flash the relevant images onto the board.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
 board/stmicroelectronics/stm32/stm32f469-disco/flash.sh | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100755 board/stmicroelectronics/stm32/stm32f469-disco/flash.sh
diff mbox

Patch

diff --git a/board/stmicroelectronics/stm32/stm32f469-disco/flash.sh b/board/stmicroelectronics/stm32/stm32f469-disco/flash.sh
new file mode 100755
index 0000000..1076f1c
--- /dev/null
+++ b/board/stmicroelectronics/stm32/stm32f469-disco/flash.sh
@@ -0,0 +1,12 @@ 
+#!/bin/bash
+
+output/host/usr/bin/openocd -f board/stm32f469discovery.cfg \
+  -c "init" \
+  -c "reset init" \
+  -c "flash probe 0" \
+  -c "flash info 0" \
+  -c "flash write_image erase $BINARIES_DIR/stm32f469i-disco.bin 0x08000000" \
+  -c "flash write_image erase $BINARIES_DIR/stm32f469-disco.dtb 0x08004000" \
+  -c "flash write_image erase $BINARIES_DIR/xipImage 0x08008000" \
+  -c "reset run" \
+  -c "shutdown"