Skip to contentSkip to conversation

configs: imx6dl_mamoj_defconfig: Enable LTO on imx6dl_mamoj board

PATCH In review Michael Trimarchi 3 participants 3 messages Mar 23, 2022 – Apr 12, 2022 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs: imx6dl_mamoj_defconfig: Enable LTO on imx6dl_mamoj board

Enable LTO on mamoj to reduce SPL and uboot size. Tested with gcc gcc-11.1.0

U-Boot 2022.04-rc4-00051-g17fc5facd0 (Mar 23 2022 - 16:43:43 +0100)

CPU:   Freescale i.MX6DL rev1.3 996 MHz (running at 792 MHz)
CPU:   Extended Commercial temperature grade (-20C to 105C) at 40C
Reset cause: POR
Model: BTicino i.MX6DL Mamoj board
DRAM:  512 MiB
Core:  29 devices, 12 uclasses, devicetree: separate
MMC:   FSL_SDHC: 2
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial

Net:
Error: ethernet@2188000 address not set.
No ethernet found.

---

 configs/imx6dl_mamoj_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/imx6dl_mamoj_defconfig +1 -0
index ae27857e6f..4a535012b2 100644
@@ -14,6 +14,7 @@ CONFIG_SPL_TEXT_BASE=0x00908000
 CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_IMX_HAB=y
 # CONFIG_CMD_BMODE is not set
+CONFIG_LTO=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_BOOTDELAY=3
 CONFIG_SPL_OS_BOOT=y
Signature · 1 line
2.25.1
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 17 lines · Michael Trimarchi

Enable LTO on mamoj to reduce SPL and uboot size. Tested with gcc gcc-11.1.0

U-Boot 2022.04-rc4-00051-g17fc5facd0 (Mar 23 2022 - 16:43:43 +0100)

CPU:   Freescale i.MX6DL rev1.3 996 MHz (running at 792 MHz)
CPU:   Extended Commercial temperature grade (-20C to 105C) at 40C
Reset cause: POR
Model: BTicino i.MX6DL Mamoj board
DRAM:  512 MiB
Core:  29 devices, 12 uclasses, devicetree: separate
MMC:   FSL_SDHC: 2
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
Quoted 6 lines

Net:
Error: ethernet@2188000 address not set.
No ethernet found.

#2 lore raw

PATCH 1/1 configs: imx6dl_mamoj_defconfig: Enable LTO on imx6dl_mamoj board

In reply to Michael Trimarchi
Quoted 14 lines

Enable LTO on mamoj to reduce SPL and uboot size. Tested with gcc gcc-11.1.0
U-Boot 2022.04-rc4-00051-g17fc5facd0 (Mar 23 2022 - 16:43:43 +0100)

CPU:   Freescale i.MX6DL rev1.3 996 MHz (running at 792 MHz)
CPU:   Extended Commercial temperature grade (-20C to 105C) at 40C
Reset cause: POR
Model: BTicino i.MX6DL Mamoj board
DRAM:  512 MiB
Core:  29 devices, 12 uclasses, devicetree: separate
MMC:   FSL_SDHC: 2
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
Quoted 6 lines

Net:
Error: ethernet@2188000 address not set.
No ethernet found.

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]
=====================================================================