mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
Merge tag 'u-boot-stm32-20260512' of https://source.denx.de/u-boot/custodians/u-boot-stm
CI: https://source.denx.de/u-boot/custodians/u-boot-stm/-/pipelines/30081 - reset: stm32: Fix compilation error - Remove remaining non-existant STM32_RESET flag - configs: stm32mp13: Add SPI-NAND UBI boot support - Support metadata-driven A/B boot for STM32MP25
This commit is contained in:
@@ -33,6 +33,12 @@
|
||||
#define BOOT_TARGET_MMC1(func)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CMD_UBIFS
|
||||
#define BOOT_TARGET_UBIFS(func) func(UBIFS, ubifs, 0, UBI, boot)
|
||||
#else
|
||||
#define BOOT_TARGET_UBIFS(func)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CMD_USB
|
||||
#define BOOT_TARGET_USB(func) func(USB, usb, 0)
|
||||
#else
|
||||
@@ -41,12 +47,14 @@
|
||||
|
||||
#define BOOT_TARGET_DEVICES(func) \
|
||||
BOOT_TARGET_MMC1(func) \
|
||||
BOOT_TARGET_UBIFS(func) \
|
||||
BOOT_TARGET_MMC0(func) \
|
||||
BOOT_TARGET_USB(func)
|
||||
|
||||
/*
|
||||
* default bootcmd for stm32mp13:
|
||||
* for serial/usb: execute the stm32prog command
|
||||
* for nand or spi-nand boot, distro boot with ubifs on UBI partition
|
||||
* for mmc boot (eMMC, SD card), distro boot on the same mmc device
|
||||
*/
|
||||
#define STM32MP_BOOTCMD "bootcmd_stm32mp=" \
|
||||
@@ -56,7 +64,10 @@
|
||||
"else " \
|
||||
"run env_check;" \
|
||||
"if test ${boot_device} = mmc;" \
|
||||
"then env set boot_targets \"mmc${boot_instance}\"; fi;" \
|
||||
"then env set boot_targets \"mmc${boot_instance}\"; fi; " \
|
||||
"if test ${boot_device} = nand ||" \
|
||||
" test ${boot_device} = spi-nand ;" \
|
||||
"then env set boot_targets ubifs0; fi;" \
|
||||
"run distro_bootcmd;" \
|
||||
"fi;\0"
|
||||
|
||||
|
||||
@@ -8,7 +8,22 @@
|
||||
#ifndef __CONFIG_STM32MP25_ST_COMMON_H__
|
||||
#define __CONFIG_STM32MP25_ST_COMMON_H__
|
||||
|
||||
#ifdef CONFIG_FWU_MULTI_BANK_UPDATE
|
||||
#define SCAN_DEV_FOR_BOOT_PARTS \
|
||||
"setenv devplist; " \
|
||||
"env exists boot_partuuid && " \
|
||||
"part number ${devtype} ${devnum} ${boot_partuuid} devplist; " \
|
||||
"env exists devplist || " \
|
||||
"part list ${devtype} ${devnum} -bootable devplist; "
|
||||
|
||||
#define ST_STM32MP25_FWU_ENV \
|
||||
"altbootcmd=${bootcmd}\0"
|
||||
#else
|
||||
#define ST_STM32MP25_FWU_ENV
|
||||
#endif
|
||||
|
||||
#define STM32MP_BOARD_EXTRA_ENV \
|
||||
ST_STM32MP25_FWU_ENV \
|
||||
"usb_pgood_delay=2000\0" \
|
||||
"console=ttySTM0\0"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user