[PATCH 1/2] configs: stm32mp1: set the console variable for extlinux.conf

Patrice CHOTARD patrice.chotard at foss.st.com
Tue May 10 09:36:21 CEST 2022



On 4/15/22 14:31, Patrick Delaunay wrote:
> Set the environment variable "console", used in extlinux.conf file when it
> is generated by YOCTO distribution with:
> 
> UBOOT_EXTLINUX_CONSOLE ??= "console=${console},${baudrate}"
> 
> With these 2 variables, U-Boot give dynamically the used console and
> baudrate in the Linux kernel bootargs.
> 
> For the STMicroelectronics boards, the used console is ttySTM0.
> 
> Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
> ---
> 
>  include/configs/stm32mp15_st_common.h | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/include/configs/stm32mp15_st_common.h b/include/configs/stm32mp15_st_common.h
> index 10248bffc1..e8dad004c6 100644
> --- a/include/configs/stm32mp15_st_common.h
> +++ b/include/configs/stm32mp15_st_common.h
> @@ -8,6 +8,9 @@
>  #ifndef __CONFIG_STM32MP15_ST_COMMON_H__
>  #define __CONFIG_STM32MP15_ST_COMMON_H__
>  
> +#define STM32MP_BOARD_EXTRA_ENV \
> +	"console=ttySTM0\0"
> +
>  #include <configs/stm32mp15_common.h>
>  
>  #ifdef CONFIG_EXTRA_ENV_SETTINGS
Applied to u-boot-stm32

Thanks
Patrice


More information about the U-Boot mailing list