Skip to contentSkip to conversation

doc: imx: psb: Fix PERSIST_SECONDARY_BOOT bit location in GPR10

PATCH In review Marek Vasut 3 participants 6 messages Aug 10, 2021 – Oct 20, 2021 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 doc: imx: psb: Fix PERSIST_SECONDARY_BOOT bit location in GPR10

The PERSIST_SECONDARY_BOOT is in GPR10 address 0x30390098, adjust the text which currently says it is in GPR0 while using the correct address of GPR10.

Cc Marcel Ziswiler <[email protected]>
Cc Peng Fan <[email protected]>
Cc Stefano Babic <[email protected]>
Cc uboot-imx <[email protected]>
---
 doc/imx/misc/psb.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
doc/imx/misc/psb.rst +1 -1
index 71ac09fac8d..3533c916405 100644
@@ -159,7 +159,7 @@ WARM reset into B-copy using WDT
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 To perform a reboot into B-copy, the PERSIST_SECONDARY_BOOT must be set
-in SRC_GPR0 register. Example on iMX8MM::
+in SRC_GPR10 register. Example on iMX8MM::
 
   => mw 0x30390098 0x40000000
 
Signature · 1 line
2.30.2
#1 lore raw

PATCH 2/2 doc: imx: psb: Add documentation for MX8MM behavior with Fast Boot fuse blown

On iMX8MM with Fast Boot fuse blown, the SIT and A-copy image are placed at different offset than on iMX8MM with Fast Boot fuse NOT blown. List both options and both offsets to avoid confusion.

Cc Marcel Ziswiler <[email protected]>
Cc Peng Fan <[email protected]>
Cc Stefano Babic <[email protected]>
Cc uboot-imx <[email protected]>
---
 doc/imx/misc/psb.rst | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
doc/imx/misc/psb.rst +9 -7
index 3533c916405..2eccdcfccd9 100644
@@ -75,13 +75,15 @@ offset 0x1 means 512 Bytes from the start of SD/eMMC card data partition).
 For details on the addition of two numbers in recommended B-copy offset, see
 SIT format below.
 
-+----------+--------------------+-----------------------+-----------------------------+
-|   SoC    | SIT offset (fixed) | A-copy offset (fixed) | B-copy offset (recommended) |
-+----------+--------------------+-----------------------+-----------------------------+
-| iMX7D    |         0x1        |          0x2          |          0x800+0x2          |
-+----------+--------------------+-----------------------+-----------------------------+
-| iMX8MM   |        0x41        |         0x42          |         0x1000+0x42         |
-+----------+--------------------+-----------------------+-----------------------------+
++----------+-----------------------------+--------------------+-----------------------+-----------------------------+
+|   SoC    | Boot Device Type            | SIT offset (fixed) | A-copy offset (fixed) | B-copy offset (recommended) |
++----------+-----------------------------+--------------------+-----------------------+-----------------------------+
+| iMX7D    |                             |         0x1        |          0x2          |          0x800+0x2          |
++----------+-----------------------------+--------------------+-----------------------+-----------------------------+
+| iMX8MM   | SD/eSD/MMC/eMMC normal boot |        0x41        |         0x42          |         0x1000+0x42         |
++----------+-----------------------------+--------------------+-----------------------+-----------------------------+
+| iMX8MM   | eMMC Fast boot fuse blown   |         0x1        |          0x2          |          0x1000+0x2         |
++----------+-----------------------------+--------------------+-----------------------+-----------------------------+
 
 SIT format
 ~~~~~~~~~~
Signature · 1 line
2.30.2
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] doc: imx: psb: Add documentation for MX8MM behavior with Fast Boot fuse blown

Quoted 5 lines · Marek Vasut

On iMX8MM with Fast Boot fuse blown, the SIT and A-copy image are placed at different offset than on iMX8MM with Fast Boot fuse NOT blown. List both options and both offsets to avoid confusion.

Quoted 44 lines
Cc Peng Fan <[email protected]>
Cc Stefano Babic <[email protected]>
Cc uboot-imx <[email protected]>

---
 doc/imx/misc/psb.rst | 16 +++++++++-------

 1 file changed, 9 insertions(+), 7 deletions(-)
doc/imx/misc/psb.rst +0 -0
index 3533c916405..2eccdcfccd9 100644
@@ -75,13 +75,15 @@ offset 0x1 means 512 Bytes from the start of SD/eMMC card data partition).

 For details on the addition of two numbers in recommended B-copy offset, see
 SIT format below.

-+----------+--------------------+-----------------------+-----------------------------+
-|   SoC    | SIT offset (fixed) | A-copy offset (fixed) | B-copy offset (recommended) |
-+----------+--------------------+-----------------------+-----------------------------+
-| iMX7D    |         0x1        |          0x2          |          0x800+0x2          |
-+----------+--------------------+-----------------------+-----------------------------+
-| iMX8MM   |        0x41        |         0x42          |         0x1000+0x42         |
-+----------+--------------------+-----------------------+-----------------------------+
++----------+-----------------------------+--------------------+-----------------------+---------------------
--------+
+|   SoC    | Boot Device Type            | SIT offset (fixed) | A-copy offset (fixed) | B-copy offset (recommended) |
++----------+-----------------------------+--------------------+-----------------------+---------------------
--------+
+| iMX7D    |                             |         0x1        |          0x2          | 0x800+0x2          |
++----------+-----------------------------+--------------------+-----------------------+---------------------
--------+
+| iMX8MM   | SD/eSD/MMC/eMMC normal boot |        0x41        |         0x42          | 0x1000+0x42         |
++----------+-----------------------------+--------------------+-----------------------+---------------------
--------+
+| iMX8MM   | eMMC Fast boot fuse blown   |         0x1        |          0x2          | 0x1000+0x2         |
++----------+-----------------------------+--------------------+-----------------------+---------------------
--------+

 SIT format
 ~~~~~~~~~~

#3 lore raw

PATCH 2/2 doc: imx: psb: Add documentation for MX8MM behavior with Fast Boot fuse blown

In reply to Marek Vasut
Quoted 10 lines

On iMX8MM with Fast Boot fuse blown, the SIT and A-copy image are placed at different offset than on iMX8MM with Fast Boot fuse NOT blown. List both options and both offsets to avoid confusion.

Cc Marcel Ziswiler <[email protected]>
Cc Peng Fan <[email protected]>
Cc Stefano Babic <[email protected]>
Cc uboot-imx <[email protected]>

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================
Reviewed-by on v1 1/2
#4 lore raw
In reply to Marek Vasut
Quoted 5 lines · Marek Vasut

The PERSIST_SECONDARY_BOOT is in GPR10 address 0x30390098, adjust the text which currently says it is in GPR0 while using the correct address of GPR10.

Quoted 20 lines
Cc Peng Fan <[email protected]>
Cc Stefano Babic <[email protected]>
Cc uboot-imx <[email protected]>

---
 doc/imx/misc/psb.rst | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
doc/imx/misc/psb.rst +0 -0
index 71ac09fac8d..3533c916405 100644
@@ -159,7 +159,7 @@ WARM reset into B-copy using WDT

 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 To perform a reboot into B-copy, the PERSIST_SECONDARY_BOOT must be set

doc/imx/misc/psb.rst +1 -1
-in SRC_GPR0 register. Example on iMX8MM::
+in SRC_GPR10 register. Example on iMX8MM::


   => mw 0x30390098 0x40000000

#5 lore raw

PATCH 1/2 doc: imx: psb: Fix PERSIST_SECONDARY_BOOT bit location in GPR10

In reply to Marek Vasut
Quoted 10 lines

The PERSIST_SECONDARY_BOOT is in GPR10 address 0x30390098, adjust the text which currently says it is in GPR0 while using the correct address of GPR10.

Cc Marcel Ziswiler <[email protected]>
Cc Peng Fan <[email protected]>
Cc Stefano Babic <[email protected]>
Cc uboot-imx <[email protected]>

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================