DistroKit Mailinglist
 help / color / mirror / Atom feed
* [DistroKit] [PATCH] v7a: barebox: define state for all supported board variants
@ 2023-11-22 18:55 Ahmad Fatoum
  2023-12-11 10:32 ` Roland Hieber
  2023-12-12 18:00 ` Robert Schwebel
  0 siblings, 2 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2023-11-22 18:55 UTC (permalink / raw)
  To: distrokit; +Cc: Ahmad Fatoum

Boot up is broken on some of the Raspberry Pi and STM32MP1 board we
support, because boot method is changed to bootchooser, but state isn't
defined. Fix this by extending state definition to the missed boards.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 configs/platform-v7a/dts/bootstate.dtsi | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/configs/platform-v7a/dts/bootstate.dtsi b/configs/platform-v7a/dts/bootstate.dtsi
index c77df2e19d65..cd24d74d4aea 100644
--- a/configs/platform-v7a/dts/bootstate.dtsi
+++ b/configs/platform-v7a/dts/bootstate.dtsi
@@ -39,8 +39,11 @@
 };
 #endif
 
-/** Raspberry Pi 3 Model B ****************************************************/
-#ifdef bcm2837_rpi_3_dts
+/** Raspberry Pi **************************************************************/
+#if defined(bcm2836_rpi_2_dts)   || \
+    defined(bcm2837_rpi_3_dts)   || \
+    defined(bcm2837_rpi_cm3_dts) || \
+    defined(bcm2711_rpi_4_dts)
 / {
 	aliases {
 		state = &state;
@@ -101,8 +104,10 @@
 };
 #endif
 
-/** LXA MC1 *******************************************************************/
-#ifdef stm32mp157c_lxa_mc1_dts
+/** STM32MP1 ******************************************************************/
+#if defined(stm32mp157c_lxa_mc1_dts) || \
+    defined(stm32mp157c_dk2_dts) || \
+    defined(stm32mp157c_ev1_dts)
 / {
 	aliases {
 		state = &state_mmc0;
-- 
2.39.2




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [DistroKit] [PATCH] v7a: barebox: define state for all supported board variants
  2023-11-22 18:55 [DistroKit] [PATCH] v7a: barebox: define state for all supported board variants Ahmad Fatoum
@ 2023-12-11 10:32 ` Roland Hieber
  2023-12-12 18:00 ` Robert Schwebel
  1 sibling, 0 replies; 3+ messages in thread
From: Roland Hieber @ 2023-12-11 10:32 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: distrokit

On Wed, Nov 22, 2023 at 07:55:35PM +0100, Ahmad Fatoum wrote:
> Boot up is broken on some of the Raspberry Pi and STM32MP1 board we
> support, because boot method is changed to bootchooser, but state isn't
> defined. Fix this by extending state definition to the missed boards.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
>  configs/platform-v7a/dts/bootstate.dtsi | 13 +++++++++----
>  1 file changed, 9 insertions(+), 4 deletions(-)
> 
> diff --git a/configs/platform-v7a/dts/bootstate.dtsi b/configs/platform-v7a/dts/bootstate.dtsi
> index c77df2e19d65..cd24d74d4aea 100644
> --- a/configs/platform-v7a/dts/bootstate.dtsi
> +++ b/configs/platform-v7a/dts/bootstate.dtsi
> @@ -39,8 +39,11 @@
>  };
>  #endif
>  
> -/** Raspberry Pi 3 Model B ****************************************************/
> -#ifdef bcm2837_rpi_3_dts
> +/** Raspberry Pi **************************************************************/
> +#if defined(bcm2836_rpi_2_dts)   || \

Interesting, the kernel DT file names are apparently named "rpi-3-b" and
"rpi-2-b" now, but the "-b" is not part of the barebox device trees.
Anyway, that's a different issue, the patch looks fine to me.

Reviewed-by: Roland Hieber <rhi@pengutronix.de>

> +    defined(bcm2837_rpi_3_dts)   || \
> +    defined(bcm2837_rpi_cm3_dts) || \
> +    defined(bcm2711_rpi_4_dts)
>  / {
>  	aliases {
>  		state = &state;
> @@ -101,8 +104,10 @@
>  };
>  #endif
>  
> -/** LXA MC1 *******************************************************************/
> -#ifdef stm32mp157c_lxa_mc1_dts
> +/** STM32MP1 ******************************************************************/
> +#if defined(stm32mp157c_lxa_mc1_dts) || \
> +    defined(stm32mp157c_dk2_dts) || \
> +    defined(stm32mp157c_ev1_dts)
>  / {
>  	aliases {
>  		state = &state_mmc0;
> -- 
> 2.39.2
> 
> 
> 

-- 
Roland Hieber, Pengutronix e.K.          | r.hieber@pengutronix.de     |
Steuerwalder Str. 21                     | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686         | Fax:   +49-5121-206917-5555 |



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [DistroKit] [PATCH] v7a: barebox: define state for all supported board variants
  2023-11-22 18:55 [DistroKit] [PATCH] v7a: barebox: define state for all supported board variants Ahmad Fatoum
  2023-12-11 10:32 ` Roland Hieber
@ 2023-12-12 18:00 ` Robert Schwebel
  1 sibling, 0 replies; 3+ messages in thread
From: Robert Schwebel @ 2023-12-12 18:00 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: distrokit

Applied to next.

On Wed, Nov 22, 2023 at 07:55:35PM +0100, Ahmad Fatoum wrote:
> Boot up is broken on some of the Raspberry Pi and STM32MP1 board we
> support, because boot method is changed to bootchooser, but state isn't
> defined. Fix this by extending state definition to the missed boards.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
>  configs/platform-v7a/dts/bootstate.dtsi | 13 +++++++++----
>  1 file changed, 9 insertions(+), 4 deletions(-)
> 
> diff --git a/configs/platform-v7a/dts/bootstate.dtsi b/configs/platform-v7a/dts/bootstate.dtsi
> index c77df2e19d65..cd24d74d4aea 100644
> --- a/configs/platform-v7a/dts/bootstate.dtsi
> +++ b/configs/platform-v7a/dts/bootstate.dtsi
> @@ -39,8 +39,11 @@
>  };
>  #endif
>  
> -/** Raspberry Pi 3 Model B ****************************************************/
> -#ifdef bcm2837_rpi_3_dts
> +/** Raspberry Pi **************************************************************/
> +#if defined(bcm2836_rpi_2_dts)   || \
> +    defined(bcm2837_rpi_3_dts)   || \
> +    defined(bcm2837_rpi_cm3_dts) || \
> +    defined(bcm2711_rpi_4_dts)
>  / {
>  	aliases {
>  		state = &state;
> @@ -101,8 +104,10 @@
>  };
>  #endif
>  
> -/** LXA MC1 *******************************************************************/
> -#ifdef stm32mp157c_lxa_mc1_dts
> +/** STM32MP1 ******************************************************************/
> +#if defined(stm32mp157c_lxa_mc1_dts) || \
> +    defined(stm32mp157c_dk2_dts) || \
> +    defined(stm32mp157c_ev1_dts)
>  / {
>  	aliases {
>  		state = &state_mmc0;
> -- 
> 2.39.2
> 
> 
> 

-- 
Pengutronix e.K.                           | Dipl.-Ing. Robert Schwebel  |
Steuerwalder Str. 21                       | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-9    |



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-12-12 18:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-22 18:55 [DistroKit] [PATCH] v7a: barebox: define state for all supported board variants Ahmad Fatoum
2023-12-11 10:32 ` Roland Hieber
2023-12-12 18:00 ` Robert Schwebel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox