mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
bump version to 2022.02.9
add miyoo_defconfig
This commit is contained in:
4
board/stmicroelectronics/stm32f469-disco/extlinux.conf
Normal file
4
board/stmicroelectronics/stm32f469-disco/extlinux.conf
Normal file
@@ -0,0 +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
|
||||
18
board/stmicroelectronics/stm32f469-disco/flash_sd.sh
Executable file
18
board/stmicroelectronics/stm32f469-disco/flash_sd.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
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/stm32f469discovery.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"
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
OUTPUT_DIR=$1
|
||||
|
||||
if ! test -d "${OUTPUT_DIR}" ; then
|
||||
if ! test -d "${OUTPUT_DIR}"; then
|
||||
echo "ERROR: no output directory specified."
|
||||
echo "Usage: $0 OUTPUT_DIR"
|
||||
exit 1
|
||||
@@ -15,6 +15,6 @@ ${OUTPUT_DIR}/host/bin/openocd -f board/stm32f469discovery.cfg \
|
||||
-c "flash info 0" \
|
||||
-c "flash write_image erase ${OUTPUT_DIR}/images/stm32f469i-disco.bin 0x08000000" \
|
||||
-c "flash write_image erase ${OUTPUT_DIR}/images/stm32f469-disco.dtb 0x08004000" \
|
||||
-c "flash write_image erase ${OUTPUT_DIR}/images/xipImage 0x08008000" \
|
||||
-c "flash write_image erase ${OUTPUT_DIR}/images/xipImage 0x0800C000" \
|
||||
-c "reset run" \
|
||||
-c "shutdown"
|
||||
27
board/stmicroelectronics/stm32f469-disco/genimage.cfg
Normal file
27
board/stmicroelectronics/stm32f469-disco/genimage.cfg
Normal file
@@ -0,0 +1,27 @@
|
||||
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"
|
||||
size = 32M
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
# CONFIG_XIP_KERNEL is not set
|
||||
CONFIG_DRM=y
|
||||
CONFIG_DRM_STM=y
|
||||
CONFIG_DRM_STM_DSI=y
|
||||
CONFIG_DRM_PANEL_ORISETECH_OTM8009A=y
|
||||
CONFIG_FB=y
|
||||
CONFIG_BACKLIGHT_CLASS_DEVICE=y
|
||||
120
board/stmicroelectronics/stm32f469-disco/linux-xip.config
Normal file
120
board/stmicroelectronics/stm32f469-disco/linux-xip.config
Normal file
@@ -0,0 +1,120 @@
|
||||
# CONFIG_LOCALVERSION_AUTO is not set
|
||||
CONFIG_KERNEL_XZ=y
|
||||
CONFIG_NO_HZ_IDLE=y
|
||||
CONFIG_HIGH_RES_TIMERS=y
|
||||
CONFIG_PREEMPT=y
|
||||
CONFIG_LOG_BUF_SHIFT=12
|
||||
CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=10
|
||||
CONFIG_BLK_DEV_INITRD=y
|
||||
CONFIG_INITRAMFS_SOURCE="${BR_BINARIES_DIR}/rootfs.cpio"
|
||||
# CONFIG_RD_GZIP is not set
|
||||
# CONFIG_RD_BZIP2 is not set
|
||||
# CONFIG_RD_LZMA is not set
|
||||
# CONFIG_RD_XZ is not set
|
||||
# CONFIG_RD_LZO is not set
|
||||
# CONFIG_RD_LZ4 is not set
|
||||
# CONFIG_RD_ZSTD is not set
|
||||
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
|
||||
# CONFIG_MULTIUSER is not set
|
||||
# CONFIG_SYSFS_SYSCALL is not set
|
||||
# CONFIG_FHANDLE is not set
|
||||
CONFIG_POSIX_TIMERS=y
|
||||
# CONFIG_BUG is not set
|
||||
# CONFIG_BASE_FULL is not set
|
||||
# CONFIG_FUTEX is not set
|
||||
# CONFIG_EPOLL is not set
|
||||
# CONFIG_SIGNALFD is not set
|
||||
# CONFIG_TIMERFD is not set
|
||||
# CONFIG_EVENTFD is not set
|
||||
# CONFIG_AIO is not set
|
||||
# CONFIG_IO_URING is not set
|
||||
# CONFIG_ADVISE_SYSCALLS is not set
|
||||
# CONFIG_MEMBARRIER is not set
|
||||
# CONFIG_KALLSYMS is not set
|
||||
CONFIG_KCMP=y
|
||||
# CONFIG_RSEQ is not set
|
||||
CONFIG_EMBEDDED=y
|
||||
# CONFIG_VM_EVENT_COUNTERS is not set
|
||||
# CONFIG_COMPAT_BRK is not set
|
||||
CONFIG_SLOB=y
|
||||
# CONFIG_SLAB_MERGE_DEFAULT is not set
|
||||
# CONFIG_MMU is not set
|
||||
CONFIG_ARCH_STM32=y
|
||||
# CONFIG_MACH_STM32F429 is not set
|
||||
# CONFIG_MACH_STM32F746 is not set
|
||||
# CONFIG_MACH_STM32F769 is not set
|
||||
# CONFIG_MACH_STM32H743 is not set
|
||||
CONFIG_CPU_V7M_NUM_IRQ=240
|
||||
# CONFIG_ARM_DMA_MEM_BUFFERABLE is not set
|
||||
CONFIG_SET_MEM_PARAM=y
|
||||
CONFIG_DRAM_BASE=0x00000000
|
||||
CONFIG_DRAM_SIZE=0x00800000
|
||||
CONFIG_HZ_1000=y
|
||||
# CONFIG_ATAGS is not set
|
||||
CONFIG_XIP_KERNEL=y
|
||||
CONFIG_XIP_PHYS_ADDR=0x0800C000
|
||||
CONFIG_XIP_DEFLATED_DATA=y
|
||||
# CONFIG_SUSPEND is not set
|
||||
# CONFIG_STACKPROTECTOR is not set
|
||||
# CONFIG_COMPAT_32BIT_TIME is not set
|
||||
# CONFIG_GCC_PLUGINS is not set
|
||||
# CONFIG_BLOCK is not set
|
||||
CONFIG_BINFMT_FLAT=y
|
||||
CONFIG_BINFMT_SHARED_FLAT=y
|
||||
# CONFIG_COREDUMP is not set
|
||||
CONFIG_DEVTMPFS=y
|
||||
CONFIG_DEVTMPFS_MOUNT=y
|
||||
# CONFIG_STANDALONE is not set
|
||||
# CONFIG_PREVENT_FIRMWARE_BUILD is not set
|
||||
# CONFIG_FW_LOADER is not set
|
||||
# CONFIG_ALLOW_DEV_COREDUMP is not set
|
||||
CONFIG_EEPROM_93CX6=y
|
||||
# CONFIG_INPUT is not set
|
||||
# CONFIG_VT is not set
|
||||
# CONFIG_UNIX98_PTYS is not set
|
||||
# CONFIG_LEGACY_PTYS is not set
|
||||
# CONFIG_LDISC_AUTOLOAD is not set
|
||||
CONFIG_SERIAL_STM32=y
|
||||
CONFIG_SERIAL_STM32_CONSOLE=y
|
||||
# CONFIG_DEVMEM is not set
|
||||
# CONFIG_HWMON is not set
|
||||
CONFIG_WATCHDOG=y
|
||||
CONFIG_MFD_STM32_TIMERS=y
|
||||
# CONFIG_USB_SUPPORT is not set
|
||||
CONFIG_NEW_LEDS=y
|
||||
CONFIG_LEDS_CLASS=y
|
||||
CONFIG_LEDS_GPIO=y
|
||||
CONFIG_LEDS_TRIGGERS=y
|
||||
CONFIG_LEDS_TRIGGER_HEARTBEAT=y
|
||||
CONFIG_RTC_CLASS=y
|
||||
CONFIG_RTC_DRV_STM32=y
|
||||
CONFIG_DMADEVICES=y
|
||||
CONFIG_STM32_DMA=y
|
||||
CONFIG_STM32_DMAMUX=y
|
||||
CONFIG_STM32_MDMA=y
|
||||
CONFIG_SYNC_FILE=y
|
||||
# CONFIG_VIRTIO_MENU is not set
|
||||
# CONFIG_VHOST_MENU is not set
|
||||
CONFIG_IIO=y
|
||||
CONFIG_IIO_BUFFER=y
|
||||
CONFIG_IIO_TRIGGERED_BUFFER=y
|
||||
CONFIG_IIO_STM32_TIMER_TRIGGER=y
|
||||
# CONFIG_FILE_LOCKING is not set
|
||||
# CONFIG_DNOTIFY is not set
|
||||
# CONFIG_INOTIFY_USER is not set
|
||||
# CONFIG_PROC_SYSCTL is not set
|
||||
CONFIG_CONFIGFS_FS=y
|
||||
# CONFIG_MISC_FILESYSTEMS is not set
|
||||
CONFIG_NLS=y
|
||||
CONFIG_PRINTK_TIME=y
|
||||
CONFIG_CONSOLE_LOGLEVEL_DEFAULT=15
|
||||
CONFIG_CONSOLE_LOGLEVEL_QUIET=15
|
||||
CONFIG_MESSAGE_LOGLEVEL_DEFAULT=7
|
||||
# CONFIG_SYMBOLIC_ERRNAME is not set
|
||||
CONFIG_DEBUG_INFO=y
|
||||
# CONFIG_SECTION_MISMATCH_WARN_ONLY is not set
|
||||
CONFIG_DEBUG_FS=y
|
||||
# CONFIG_DEBUG_MISC is not set
|
||||
# CONFIG_SCHED_DEBUG is not set
|
||||
# CONFIG_RCU_TRACE is not set
|
||||
# CONFIG_RUNTIME_TESTING_MENU is not set
|
||||
@@ -1,33 +0,0 @@
|
||||
From c8f8f33c2f0460a34c9545b01a7972a7ed2df0e9 Mon Sep 17 00:00:00 2001
|
||||
From: Christophe Priouzeau <christophe.priouzeau@st.com>
|
||||
Date: Mon, 29 May 2017 13:38:16 +0200
|
||||
Subject: [PATCH] ARM: stm32f249-disco: don't force init= in /chosen/bootargs
|
||||
|
||||
There is no reason to override the kernel's default init= value, as
|
||||
this breaks userspace that assumes the kernel default of /init is
|
||||
used. Since stm32 is often used with a minimal bootloader
|
||||
(afboot-stm32) that doesn't provide any mechanism to override the DTB,
|
||||
we need to adjust the kernel command line in the Device Tree source.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
|
||||
---
|
||||
arch/arm/boot/dts/stm32f469-disco.dts | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm32f469-disco.dts
|
||||
index 0dd56ef..93ee1b2 100644
|
||||
--- a/arch/arm/boot/dts/stm32f469-disco.dts
|
||||
+++ b/arch/arm/boot/dts/stm32f469-disco.dts
|
||||
@@ -53,7 +53,7 @@
|
||||
compatible = "st,stm32f469i-disco", "st,stm32f469";
|
||||
|
||||
chosen {
|
||||
- bootargs = "root=/dev/ram rdinit=/linuxrc";
|
||||
+ bootargs = "root=/dev/ram";
|
||||
stdout-path = "serial0:115200n8";
|
||||
};
|
||||
|
||||
--
|
||||
2.7.4
|
||||
|
||||
4
board/stmicroelectronics/stm32f469-disco/post-build.sh
Executable file
4
board/stmicroelectronics/stm32f469-disco/post-build.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
BOARD_DIR="$(dirname $0)"
|
||||
|
||||
install -m 0644 -D $BOARD_DIR/extlinux.conf $BINARIES_DIR/extlinux/extlinux.conf
|
||||
@@ -7,13 +7,39 @@ configuration for the STM32F469 Discovery evaluation platform.
|
||||
Building
|
||||
--------
|
||||
|
||||
make stm32f469_disco_defconfig
|
||||
make stm32f469_disco_sd_defconfig
|
||||
make
|
||||
|
||||
Flashing
|
||||
--------
|
||||
|
||||
./board/stmicroelectronics/stm32f469-disco/flash.sh output/
|
||||
./board/stmicroelectronics/stm32f469-disco/flash_sd.sh output/
|
||||
|
||||
It will flash the minimal bootloader, the Device Tree Blob, and the
|
||||
kernel image which includes the root filesystem as initramfs.
|
||||
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/stm32f469-disco/genimage.cfg.
|
||||
|
||||
Framebuffer
|
||||
-----------
|
||||
After Linux boots, /dev/fb0 will be accessible. You can control the
|
||||
brightness of the display after enabling the framebuffer by running the
|
||||
following commands:
|
||||
|
||||
# echo 0 0 > /sys/class/graphics/fb0/pan
|
||||
# echo 255 >/sys/class/backlight/40016c00.dsi.0/brightness
|
||||
|
||||
The brightness ranges from 0 to 255, as you can see running the
|
||||
command:
|
||||
|
||||
# cat /sys/class/backlight/40016c00.dsi.0/max_brightness
|
||||
|
||||
24
board/stmicroelectronics/stm32f469-disco/readme_xip.txt
Normal file
24
board/stmicroelectronics/stm32f469-disco/readme_xip.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
STM32F469 Discovery
|
||||
===================
|
||||
|
||||
This tutorial describes how to use the predefined Buildroot
|
||||
configuration for the STM32F469 Discovery evaluation platform.
|
||||
|
||||
Internal flash memory stores simple afboot-stm32 bootloader, device tree and
|
||||
in place (XIP) kernel with built-in initramfs. No external flash or SD card
|
||||
is needed.
|
||||
|
||||
Kernel is based on tinyconfig.
|
||||
|
||||
Building
|
||||
--------
|
||||
|
||||
make stm32f469_disco_xip_defconfig
|
||||
make
|
||||
|
||||
Flashing
|
||||
--------
|
||||
|
||||
./board/stmicroelectronics/stm32f469-disco/flash_xip.sh output/
|
||||
|
||||
It will flash binary to internal flash memory.
|
||||
Reference in New Issue
Block a user