diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2022-09-22 14:03:07 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2022-09-22 14:03:07 +0200 |
commit | ba48db8275730fbc512c0872ae426970a09b5619 (patch) | |
tree | f64154d20f3faada75a3b9ef2baeeff012dac76a /scripts | |
parent | 56ede91e9f8f8211a6fc62cd5f56d95a76fec9a7 (diff) |
add support for STM32F746G-DISCO device
Tested with toolbox / simpleinit as userland.
FDPIC/FLAT support both successfully tested.
No LCD or Ethernet support.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/flash-uboot.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/flash-uboot.sh b/scripts/flash-uboot.sh new file mode 100755 index 000000000..e0cfcb340 --- /dev/null +++ b/scripts/flash-uboot.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +OUTPUT_DIR=$1 + +if ! test -d "${OUTPUT_DIR}" ; then + echo "ERROR: no output directory specified." + echo "Usage: $0 OUTPUT_DIR" + echo "" + echo "Arguments:" + echo " OUTPUT_DIR The OpenADK output directory." + exit 1 +fi + +./host_x86_64-linux-gnu/usr/bin/openocd \ + -f interface/stlink.cfg -f board/stm32f7discovery.cfg \ +-c "init" \ +-c "reset init" \ +-c "flash probe 0" \ +-c "flash info 0" \ +-c "flash write_image erase ${OUTPUT_DIR}/u-boot-spl.bin 0x08000000" \ +-c "flash write_image erase ${OUTPUT_DIR}/u-boot-dtb.bin 0x08008000" \ +-c "reset run" \ +-c "shutdown" |