Skip to contentSkip to conversation

spl: imx6: Provide a SPL_SIZE_LIMIT default

PATCH New Fabio Estevam 3 participants 3 messages Jun 8, 2019 – Jun 11, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spl: imx6: Provide a SPL_SIZE_LIMIT default

As explained in include/configs/imx6_spl.h. the i.MX6 SPL size limit is 68KB (4KB header + 64KB max size).

Provide such limit for all i.MX6 boards that use SPL to detect SPL size overflow in build time.

---
Hi Tom and Stefano,

In order to build fine for all mx6 boards the following patch is needed:
https://lists.denx.de/pipermail/u-boot/2019-May/370224.html

Ran buildman successfully for all imx6 boards.

 common/spl/Kconfig | 1 +
 1 file changed, 1 insertion(+)
common/spl/Kconfig +1 -0
index ac2f470032..48f6b39a75 100644
@@ -28,6 +28,7 @@ config SPL_FRAMEWORK
 config SPL_SIZE_LIMIT
 	int "Maximum size of SPL image"
 	depends on SPL
+	default 69632 if ARCH_MX6
 	default 0
 	help
 	  Specifies the maximum length of the U-Boot SPL image.
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 spl: imx6: Provide a SPL_SIZE_LIMIT default

Quoted 24 lines · On Sat, 8 Jun 2019 14:56:44 -0300 Fabio Estevam <[email protected]> wrote:

As explained in include/configs/imx6_spl.h. the i.MX6 SPL size limit is 68KB (4KB header + 64KB max size).

Provide such limit for all i.MX6 boards that use SPL to detect SPL size overflow in build time.

---
Hi Tom and Stefano,

In order to build fine for all mx6 boards the following patch is needed:
https://lists.denx.de/pipermail/u-boot/2019-May/370224.html

Ran buildman successfully for all imx6 boards.

 common/spl/Kconfig | 1 +
 1 file changed, 1 insertion(+)
common/spl/Kconfig +0 -0
index ac2f470032..48f6b39a75 100644

common/spl/Kconfig config SPL_FRAMEWORK · line 34

Quoted 7 lines
common/spl/Kconfig +1 -0
@@ -28,6 +28,7 @@ config SPL_FRAMEWORK
 config SPL_SIZE_LIMIT
 	int "Maximum size of SPL image"
 	depends on SPL
+	default 69632 if ARCH_MX6
 	default 0
 	help
 	  Specifies the maximum length of the U-Boot SPL image.

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de -------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190608/61b0dfc1/attachment.sig>

#2 lore raw

PATCH 1/1 spl: imx6: Provide a SPL_SIZE_LIMIT default

In reply to Fabio Estevam
Quoted 6 lines

As explained in include/configs/imx6_spl.h. the i.MX6 SPL size limit is 68KB (4KB header + 64KB max size). Provide such limit for all i.MX6 boards that use SPL to detect SPL size overflow in build time.

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: sbabic at denx.de
=====================================================================