* [PATCH] Documentation: boards: stm32mp: document eMMC boot configuration
@ 2020-08-28 17:31 Bastian Krause
2020-09-14 13:10 ` Sascha Hauer
0 siblings, 1 reply; 5+ messages in thread
From: Bastian Krause @ 2020-08-28 17:31 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum, Bastian Krause
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
In order to boot from eMMC on the STM32MP15x, the boot_ack bit in the
ext_csd register must be set. Document this and while at it, fix a
misformatted code block in the same section.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Bastian Krause <bst@pengutronix.de>
---
Documentation/boards/stm32mp.rst | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/Documentation/boards/stm32mp.rst b/Documentation/boards/stm32mp.rst
index 7c657eb990..b235c39927 100644
--- a/Documentation/boards/stm32mp.rst
+++ b/Documentation/boards/stm32mp.rst
@@ -64,7 +64,7 @@ An appropriate image for a SD-Card can be generated with following
}
For eMMC, the boot partitions are used as the FSBL partitions and so the user
-partitions may look like this:
+partitions may look like this::
image @STM32MP_BOARD@.img {
partition ssbl {
@@ -80,6 +80,17 @@ partitions may look like this:
The fsbl1 and fsbl2 can be flashed by writing to barebox ``/dev/mmcX.boot0`` and
``/dev/mmcX.boot1`` respectively or from a booted operating system.
+Additionally, the eMMC's ``ext_csd`` register must be modified to activate the
+boot acknowledge signal (``BOOT_ACK``) and to select a boot partition.
+
+Assuming ``CONFIG_CMD_MMC_EXTCSD`` is enabled and the board shall boot from
+``/dev/mmc1.boot1``::
+
+ mmc_extcsd /dev/mmc1 -i 179 -v 0x50
+
+The STM32MP1 BootROM does *not* support booting from eMMC without fast boot
+acknowledge.
+
Boot source selection
---------------------
--
2.28.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Documentation: boards: stm32mp: document eMMC boot configuration
2020-08-28 17:31 [PATCH] Documentation: boards: stm32mp: document eMMC boot configuration Bastian Krause
@ 2020-09-14 13:10 ` Sascha Hauer
0 siblings, 0 replies; 5+ messages in thread
From: Sascha Hauer @ 2020-09-14 13:10 UTC (permalink / raw)
To: Bastian Krause; +Cc: barebox, Ahmad Fatoum
On Fri, Aug 28, 2020 at 07:31:15PM +0200, Bastian Krause wrote:
> From: Ahmad Fatoum <a.fatoum@pengutronix.de>
>
> In order to boot from eMMC on the STM32MP15x, the boot_ack bit in the
> ext_csd register must be set. Document this and while at it, fix a
> misformatted code block in the same section.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> Signed-off-by: Bastian Krause <bst@pengutronix.de>
> ---
> Documentation/boards/stm32mp.rst | 13 ++++++++++++-
> 1 file changed, 12 insertions(+), 1 deletion(-)
Applied, thanks
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] Documentation: boards: stm32mp: document eMMC boot configuration
@ 2020-05-13 12:53 Ahmad Fatoum
2020-05-18 6:36 ` Sascha Hauer
0 siblings, 1 reply; 5+ messages in thread
From: Ahmad Fatoum @ 2020-05-13 12:53 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
In order to boot from eMMC on the STM32MP15x, the boot_ack bit in the
ext_csd register must be set. Document this and while at it, fix a
misformatted code block in the same section.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
Documentation/boards/stm32mp.rst | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/Documentation/boards/stm32mp.rst b/Documentation/boards/stm32mp.rst
index 607c59fd0757..fc8a68cf4142 100644
--- a/Documentation/boards/stm32mp.rst
+++ b/Documentation/boards/stm32mp.rst
@@ -63,7 +63,7 @@ An appropriate image for a SD-Card can be generated with following
}
For eMMC, the boot partitions are used as the FSBL partitions and so the user
-partitions may look like this:
+partitions may look like this::
image @STM32MP_BOARD@.img {
partition ssbl {
@@ -79,6 +79,14 @@ partitions may look like this:
The fsbl1 and fsbl2 can be flashed by writing to barebox ``/dev/mmcX.boot0`` and
``/dev/mmcX.boot1`` respectively or from a booted operating system.
+Additionally, the eMMC's ``ext_csd`` register must be modified to activate the
+boot acknowledge signal and to select a boot partition, e.g.::
+
+ mmcX.boot_ack=1
+ mmcX.boot=boot0
+
+The STM32MP1 BootROM does *not* support booting eMMC without fast boot acknowledge.
+
Boot source selection
---------------------
--
2.26.2
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Documentation: boards: stm32mp: document eMMC boot configuration
2020-05-13 12:53 Ahmad Fatoum
@ 2020-05-18 6:36 ` Sascha Hauer
2020-05-18 9:36 ` Sascha Hauer
0 siblings, 1 reply; 5+ messages in thread
From: Sascha Hauer @ 2020-05-18 6:36 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: barebox
On Wed, May 13, 2020 at 02:53:48PM +0200, Ahmad Fatoum wrote:
> In order to boot from eMMC on the STM32MP15x, the boot_ack bit in the
> ext_csd register must be set. Document this and while at it, fix a
> misformatted code block in the same section.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> Documentation/boards/stm32mp.rst | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
Applied, thanks
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Documentation: boards: stm32mp: document eMMC boot configuration
2020-05-18 6:36 ` Sascha Hauer
@ 2020-05-18 9:36 ` Sascha Hauer
0 siblings, 0 replies; 5+ messages in thread
From: Sascha Hauer @ 2020-05-18 9:36 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: barebox
On Mon, May 18, 2020 at 08:36:56AM +0200, Sascha Hauer wrote:
> On Wed, May 13, 2020 at 02:53:48PM +0200, Ahmad Fatoum wrote:
> > In order to boot from eMMC on the STM32MP15x, the boot_ack bit in the
> > ext_csd register must be set. Document this and while at it, fix a
> > misformatted code block in the same section.
> >
> > Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> > ---
> > Documentation/boards/stm32mp.rst | 10 +++++++++-
> > 1 file changed, 9 insertions(+), 1 deletion(-)
>
> Applied, thanks
And dropped again until it's clear if we really want to handle this with
a device parameter.
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-09-14 13:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-28 17:31 [PATCH] Documentation: boards: stm32mp: document eMMC boot configuration Bastian Krause
2020-09-14 13:10 ` Sascha Hauer
-- strict thread matches above, loose matches on Subject: below --
2020-05-13 12:53 Ahmad Fatoum
2020-05-18 6:36 ` Sascha Hauer
2020-05-18 9:36 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox