External buildroot tree for STMicroelectronics stm32f769 discovery board
board/ stm32f769-disco | 2 years ago | ||
configs | 2 years ago | ||
.gitignore | 2 years ago | ||
Config.in | 2 years ago | ||
LICENSE | 2 years ago | ||
README.md | 2 years ago | ||
changelog.md | 2 years ago | ||
external.desc | 2 years ago | ||
external.mk | 2 years ago |
This repository provides an external buildroot tree to be used with at least buildroot 2021.02 for the stm32f769 discovery board from STMicroelectronics.
It builds a minimal operating system for the target:
The current configuration is built using a prebuilt toolchain from Bootlin to accelerate the build.
First install Buildroot's required dependencies. See: The buildroot user manual, chapter 2: System requirements. Also install openocd, it is required for the flashing script (see below).
Then set up the required source code:
mkdir STM32F769DISCO && cd STM32F769DISCO wget 'https://buildroot.org/downloads/buildroot-2021.02.7.tar.gz' tar -xf buildroot-2021.02.7.tar.gz mv buildroot-2021.02.7 buildroot git clone 'https://git.lumina-sensum.com/git/LuminaSensum/buildroot-stm32f769-disco.git' export BR2_EXTERNAL="$PWD/buildroot-stm32f769-disco"
Build the image:
cd buildroot make O=output_build stm32f769-disco_defconfig cd output_build make cd ../..
To flash the bootloader, run the provided flash.sh script which is located in the external tree:
buildroot-stm32f769-disco/board/stm32f769-disco/flash.sh buildroot/output_build
During build, buildroot creates the sdcard.img file inside the images directory, which you can then simply burn onto a micro sd card using dd:
sudo dd if=buildroot-stm32f769-disco/output_build/images/sdcard.img of=/dev/sdX