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

Lee Jones lee.jones at linaro.org
Mon Feb 22 18:59:24 UTC 2016


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 at 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 --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"
-- 
1.9.1



More information about the buildroot mailing list