[Buildroot] [PATCH 3/9] boards: stm32f469-disco: Add a post-image script

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Feb 22 11:12:27 UTC 2016


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 <lee.jones at linaro.org>
> ---
>  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



More information about the buildroot mailing list