Initial Commit
- initial default booting image
This commit is contained in:
4
board/stmicroelectronics/stm32f746-disco/extlinux.conf
Normal file
4
board/stmicroelectronics/stm32f746-disco/extlinux.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
label stm32f746-disco-buildroot
|
||||
kernel /boot/zImage
|
||||
devicetree /boot/stm32f746-disco.dtb
|
||||
append console=ttySTM0,115200 root=/dev/mmcblk0p1 rw rootwait consoleblank=0 ignore_loglevel
|
||||
22
board/stmicroelectronics/stm32f746-disco/flash_sd.sh
Executable file
22
board/stmicroelectronics/stm32f746-disco/flash_sd.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
OUTPUT_DIR=output
|
||||
else
|
||||
OUTPUT_DIR=$1
|
||||
fi
|
||||
|
||||
if ! test -d "${OUTPUT_DIR}" ; then
|
||||
echo "ERROR: no output directory specified."
|
||||
echo "Usage: $0 OUTPUT_DIR"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
"${OUTPUT_DIR}"/host/bin/openocd -f board/stm32f746g-disco.cfg \
|
||||
-c "init" \
|
||||
-c "reset init" \
|
||||
-c "flash probe 0" \
|
||||
-c "flash info 0" \
|
||||
-c "flash write_image erase ${OUTPUT_DIR}/images/u-boot.bin 0x08000000" \
|
||||
-c "reset run" \
|
||||
-c "shutdown"
|
||||
10
board/stmicroelectronics/stm32f746-disco/genimage.cfg
Normal file
10
board/stmicroelectronics/stm32f746-disco/genimage.cfg
Normal file
@@ -0,0 +1,10 @@
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext2"
|
||||
size = 32M
|
||||
}
|
||||
}
|
||||
13
board/stmicroelectronics/stm32f746-disco/linux.fragment
Normal file
13
board/stmicroelectronics/stm32f746-disco/linux.fragment
Normal file
@@ -0,0 +1,13 @@
|
||||
# CONFIG_PREEMPT is not set
|
||||
# CONFIG_MULTIUSER is not set
|
||||
# CONFIG_TIMERFD is not set
|
||||
CONFIG_SET_MEM_PARAM=y
|
||||
CONFIG_DRAM_BASE=0xC0000000
|
||||
CONFIG_DRAM_SIZE=0x01000000
|
||||
# CONFIG_GCC_PLUGINS is not set
|
||||
# CONFIG_XIP_KERNEL is not set
|
||||
# CONFIG_BLK_DEV is not set
|
||||
# CONFIG_COMPAT_BRK is not set
|
||||
# CONFIG_PROC_SYSCTL is not set
|
||||
# CONFIG_CRYPTO is not set
|
||||
CONFIG_RCU_TRACE=y
|
||||
@@ -0,0 +1 @@
|
||||
../linux/linux.hash
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 beb954e53617928b751944a89b6670bf9a9c7177c641b24c5dba504e46f1d961 linux-5.15.211.tar.xz
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 78e8bfc382fe388f9b55aa1daf8c563522a037779b5d4c349d1415e381f1243e u-boot-2026.07.tar.bz2
|
||||
6
board/stmicroelectronics/stm32f746-disco/post-build.sh
Executable file
6
board/stmicroelectronics/stm32f746-disco/post-build.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
BOARD_DIR="$(dirname "$0")"
|
||||
|
||||
install -m 0644 -D "${BOARD_DIR}"/extlinux.conf "${TARGET_DIR}"/boot/extlinux/extlinux.conf
|
||||
31
board/stmicroelectronics/stm32f746-disco/readme.txt
Normal file
31
board/stmicroelectronics/stm32f746-disco/readme.txt
Normal file
@@ -0,0 +1,31 @@
|
||||
STM32F746-DISCO
|
||||
===================
|
||||
|
||||
This tutorial describes how to use the predefined Buildroot
|
||||
configuration for the STM32F746-DISCO evaluation platform.
|
||||
|
||||
Building
|
||||
--------
|
||||
|
||||
make stm32f746_disco_sd_defconfig
|
||||
make
|
||||
|
||||
Flashing
|
||||
--------
|
||||
|
||||
./board/stmicroelectronics/stm32f746-disco/flash_sd.sh output/
|
||||
|
||||
It will flash the U-boot bootloader.
|
||||
|
||||
Creating SD card
|
||||
----------------
|
||||
|
||||
Buildroot prepares an "sdcard.img" image in the output/images/ directory,
|
||||
ready to be dumped on a SD card. Launch the following command as root:
|
||||
|
||||
dd if=output/images/sdcard.img of=/dev/<your-sd-device>
|
||||
|
||||
*** WARNING! This will destroy all the card content. Use with care! ***
|
||||
|
||||
For details about the medium image layout and its content, see the
|
||||
definition in board/stmicroelectronics/stm32f746-disco/genimage.cfg.
|
||||
Reference in New Issue
Block a user