From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Mon, 22 Feb 2016 12:12:27 +0100 Subject: [Buildroot] [PATCH 3/9] boards: stm32f469-disco: Add a post-image script In-Reply-To: <1455901745-18486-4-git-send-email-lee.jones@linaro.org> References: <1455901745-18486-1-git-send-email-lee.jones@linaro.org> <1455901745-18486-4-git-send-email-lee.jones@linaro.org> Message-ID: <20160222121227.7b6f02b2@free-electrons.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Dear Lee Jones, On Fri, 19 Feb 2016 17:08:59 +0000, Lee Jones wrote: > Once each of the; bootloader, kernel, host utilities and rootfs have > been successfully built and packaged, this post-image script will > endeavour to flash the relevant images onto the board. > > Signed-off-by: Lee Jones > --- > board/stmicroelectronics/stm32/stm32f469-disco/post-image.sh | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > create mode 100755 board/stmicroelectronics/stm32/stm32f469-disco/post-image.sh > > diff --git a/board/stmicroelectronics/stm32/stm32f469-disco/post-image.sh b/board/stmicroelectronics/stm32/stm32f469-disco/post-image.sh > new file mode 100755 > index 0000000..281660b > --- /dev/null > +++ b/board/stmicroelectronics/stm32/stm32f469-disco/post-image.sh > @@ -0,0 +1,12 @@ > +#!/bin/bash > + > +$HOST_DIR/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" Looks good, once merged into the patch adding the defconfig. Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com