Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
label stm32h747i-disco-buildroot
kernel /boot/zImage
devicetree /boot/stm32h747i-disco.dtb
append console=ttySTM0,115200 root=/dev/mmcblk0p1 rw rootfstype=ext2 rootwait earlyprintk consoleblank=0 ignore_loglevel

View File

@@ -0,0 +1,18 @@
#!/bin/sh
OUTPUT_DIR=$1
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/stm32h747i-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"

View File

@@ -0,0 +1,10 @@
image sdcard.img {
hdimage {
}
partition rootfs {
partition-type = 0x83
image = "rootfs.ext2"
size = 32M
}
}

View File

@@ -0,0 +1 @@
# CONFIG_XIP_KERNEL is not set

View File

@@ -0,0 +1,2 @@
# Locally calculated
sha256 a7a7e3d2ae9d95e74197223a8d4eb5f6be7aac21b6e6de27e9685d001c1f8cb0 linux-6.18.39.tar.xz

View File

@@ -0,0 +1,2 @@
# Locally calculated
sha256 78e8bfc382fe388f9b55aa1daf8c563522a037779b5d4c349d1415e381f1243e u-boot-2026.07.tar.bz2

View File

@@ -0,0 +1,9 @@
#!/bin/sh
set -eu
BOARD_DIR="$(dirname "$0")"
# Kernel is built without devpts support
sed -i '/^devpts/d' "${TARGET_DIR}"/etc/fstab
install -m 0644 -D "${BOARD_DIR}"/extlinux.conf "${TARGET_DIR}"/boot/extlinux/extlinux.conf

View File

@@ -0,0 +1,32 @@
STM32H747 Discovery
===================
This tutorial describes how to use the predefined Buildroot
configuration for the STM32H747 Discovery evaluation platform.
Building
--------
make stm32h747_disco_sd_defconfig
make
Flashing
--------
./board/stmicroelectronics/stm32h747-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/stm32h747-disco/genimage.cfg.