mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-09 17:03:35 -09:00
board/stm32f469-disco: move kernel and DTB to rootfs partition
The patch, following the suggestion expressed in the review [1] for the stm32f746-disco board support, moves the Linux kernel and the related device tree to the ext4 rootfs partition. By doing so, the vfat partition, improperly called u-boot, no longer makes sense and can therefore be removed. From now on, U-Boot will load the kernel and the device tree from the ext4 rootfs partition. While we're at it, also fix shellcheck warnings in the post-build script. [1] https://patchwork.ozlabs.org/project/buildroot/patch/20240822183742.3550055-3-dario.binacchi@amarulasolutions.com/ Suggested-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
This commit is contained in:
committed by
Arnout Vandecappelle
parent
5de5ef51b5
commit
cac410a49e
@@ -85,7 +85,6 @@ board/stmicroelectronics/common/stm32mp1xx/post-image.sh Shellcheck
|
||||
board/stmicroelectronics/stm32f429-disco/flash.sh Shellcheck
|
||||
board/stmicroelectronics/stm32f469-disco/flash_sd.sh Shellcheck
|
||||
board/stmicroelectronics/stm32f469-disco/flash_xip.sh Shellcheck
|
||||
board/stmicroelectronics/stm32f469-disco/post-build.sh Shellcheck
|
||||
board/synopsys/axs10x/post-build.sh Shellcheck
|
||||
board/technologic/ts4900/post-image.sh Shellcheck
|
||||
board/toradex/apalis-imx6/post-image.sh Shellcheck
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
label stm32f469-disco-buildroot
|
||||
kernel /zImage
|
||||
devicetree /stm32f469-disco.dtb
|
||||
append console=ttySTM0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext2 rootwait earlyprintk consoleblank=0 ignore_loglevel
|
||||
kernel /boot/zImage
|
||||
devicetree /boot/stm32f469-disco.dtb
|
||||
append console=ttySTM0,115200 root=/dev/mmcblk0p1 rw rootfstype=ext2 rootwait earlyprintk consoleblank=0 ignore_loglevel
|
||||
|
||||
@@ -1,24 +1,7 @@
|
||||
image boot.vfat {
|
||||
vfat {
|
||||
files = {
|
||||
"zImage",
|
||||
"stm32f469-disco.dtb",
|
||||
"extlinux"
|
||||
}
|
||||
}
|
||||
|
||||
size = 16M
|
||||
}
|
||||
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
}
|
||||
|
||||
partition u-boot {
|
||||
partition-type = 0xC
|
||||
image = "boot.vfat"
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext2"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
BOARD_DIR="$(dirname $0)"
|
||||
BOARD_DIR="$(dirname "$0")"
|
||||
|
||||
install -m 0644 -D $BOARD_DIR/extlinux.conf $BINARIES_DIR/extlinux/extlinux.conf
|
||||
install -m 0644 -D "${BOARD_DIR}"/extlinux.conf "${TARGET_DIR}"/boot/extlinux/extlinux.conf
|
||||
|
||||
@@ -15,6 +15,7 @@ BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y
|
||||
BR2_LINUX_KERNEL_IMAGE_TARGET_NAME="zImage"
|
||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="stm32f469-disco"
|
||||
BR2_LINUX_KERNEL_INSTALL_TARGET=y
|
||||
BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES="board/stmicroelectronics/common/stm32f4xx/busybox.fragment"
|
||||
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||
BR2_TARGET_ROOTFS_EXT2=y
|
||||
@@ -26,7 +27,5 @@ BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2024.07"
|
||||
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="stm32f469-discovery"
|
||||
BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
|
||||
BR2_PACKAGE_HOST_DOSFSTOOLS=y
|
||||
BR2_PACKAGE_HOST_GENIMAGE=y
|
||||
BR2_PACKAGE_HOST_MTOOLS=y
|
||||
BR2_PACKAGE_HOST_OPENOCD=y
|
||||
|
||||
Reference in New Issue
Block a user