* [PATCH 1/2] ARM: imx: Enable LTO for DH electronics i.MX6 DHCOM @ 2023-03-07 7:51 Marek Vasut 2023-03-07 7:51 ` [PATCH 2/2] ARM: imx: Enable SDP download in SPL on DH i.MX6 DHSOM Marek Vasut 2023-04-04 10:19 ` [PATCH 1/2] ARM: imx: Enable LTO for DH electronics i.MX6 DHCOM sbabic 0 siblings, 2 replies; 4+ messages in thread From: Marek Vasut @ 2023-03-07 7:51 UTC (permalink / raw) To: u-boot Cc: Marek Vasut, Andreas Geisreiter, Christoph Niedermaier, Fabio Estevam, NXP i . MX U-Boot Team, Stefano Babic, u-boot Enable LTO to reduce the size of SPL, which with SPL SDP support may be close to the limit. Signed-off-by: Marek Vasut <marex@denx.de> --- Cc: Andreas Geisreiter <ageisreiter@dh-electronics.de> Cc: Christoph Niedermaier <cniedermaier@dh-electronics.com> Cc: Fabio Estevam <festevam@gmail.com> Cc: NXP i.MX U-Boot Team <uboot-imx@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Cc: u-boot@dh-electronics.com --- configs/dh_imx6_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/dh_imx6_defconfig b/configs/dh_imx6_defconfig index 62c446f86a9..cf52b0e3a00 100644 --- a/configs/dh_imx6_defconfig +++ b/configs/dh_imx6_defconfig @@ -28,6 +28,7 @@ CONFIG_SPL_SPI=y CONFIG_AHCI=y CONFIG_SYS_MEMTEST_START=0x10000000 CONFIG_SYS_MEMTEST_END=0x20000000 +CONFIG_LTO=y CONFIG_DISTRO_DEFAULTS=y CONFIG_SYS_MONITOR_LEN=409600 CONFIG_FIT=y -- 2.39.2 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] ARM: imx: Enable SDP download in SPL on DH i.MX6 DHSOM 2023-03-07 7:51 [PATCH 1/2] ARM: imx: Enable LTO for DH electronics i.MX6 DHCOM Marek Vasut @ 2023-03-07 7:51 ` Marek Vasut 2023-04-04 10:19 ` sbabic 2023-04-04 10:19 ` [PATCH 1/2] ARM: imx: Enable LTO for DH electronics i.MX6 DHCOM sbabic 1 sibling, 1 reply; 4+ messages in thread From: Marek Vasut @ 2023-03-07 7:51 UTC (permalink / raw) To: u-boot Cc: Marek Vasut, Andreas Geisreiter, Christoph Niedermaier, Fabio Estevam, NXP i . MX U-Boot Team, Stefano Babic, u-boot Enable SDP protocol support in SPL for DH i.MX6 DHSOM, now that those components fit into the SPL due to LTO. To start U-Boot via SDP upload on i.MX6 DHSOM based board, proceed as follows: - Compile imx_usb [1] . - Power off the i.MX6 DHSOM based board. - Connect both USB-serial console and USB-OTG miniB ports to host PC. - Switch board to USB boot mode. - Power on the board. - Verify using '$ dmesg' that a new device has been detected as follows: New USB device found, idVendor=15a2, idProduct=0054, bcdDevice= 0.01 New USB device strings: Mfr=1, Product=2, SerialNumber=0 Product: SE Blank ARIK Manufacturer: Freescale SemiConductor Inc - Upload U-Boot SPL: $ imx_usb u-boot-with-spl.imx - Wait for SPL to come up, the following print ought to be the last on UART console: SDP: handle requests... - Upload U-Boot proper: $ imx_usb u-boot.img [1] https://github.com/boundarydevices/imx_usb_loader.git Signed-off-by: Marek Vasut <marex@denx.de> --- Cc: Andreas Geisreiter <ageisreiter@dh-electronics.de> Cc: Christoph Niedermaier <cniedermaier@dh-electronics.com> Cc: Fabio Estevam <festevam@gmail.com> Cc: NXP i.MX U-Boot Team <uboot-imx@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Cc: u-boot@dh-electronics.com --- configs/dh_imx6_defconfig | 5 +++++ include/configs/dh_imx6.h | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configs/dh_imx6_defconfig b/configs/dh_imx6_defconfig index cf52b0e3a00..3de974f139d 100644 --- a/configs/dh_imx6_defconfig +++ b/configs/dh_imx6_defconfig @@ -40,6 +40,10 @@ CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y CONFIG_SYS_SPL_MALLOC=y CONFIG_SPL_SPI_LOAD=y CONFIG_SYS_SPI_U_BOOT_OFFS=0x11400 +CONFIG_SPL_USB_HOST=y +CONFIG_SPL_USB_GADGET=y +CONFIG_SPL_USB_SDP_SUPPORT=y +CONFIG_SPL_WATCHDOG=y CONFIG_SYS_MAXARGS=32 CONFIG_SYS_PBSIZE=532 CONFIG_CMD_MEMTEST=y @@ -113,6 +117,7 @@ CONFIG_USB_GADGET_MANUFACTURER="dh" CONFIG_USB_GADGET_VENDOR_NUM=0x0525 CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5 CONFIG_CI_UDC=y +CONFIG_SDP_LOADADDR=0x17ffffc0 CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_WATCHDOG_TIMEOUT_MSECS=60000 CONFIG_IMX_WATCHDOG=y diff --git a/include/configs/dh_imx6.h b/include/configs/dh_imx6.h index 5cf73274d5e..ef27e483295 100644 --- a/include/configs/dh_imx6.h +++ b/include/configs/dh_imx6.h @@ -31,7 +31,6 @@ #define CFG_MXC_UART_BASE UART1_BASE /* USB Configs */ -#ifdef CONFIG_CMD_USB #define CFG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) #define CFG_MXC_USB_FLAGS 0 @@ -39,7 +38,6 @@ #if defined(CONFIG_CMD_DFU) || defined(CONFIG_CMD_USB_MASS_STORAGE) #define DFU_DEFAULT_POLL_TIMEOUT 300 #endif -#endif #define CFG_EXTRA_ENV_SETTINGS \ "console=ttymxc0,115200\0" \ -- 2.39.2 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] ARM: imx: Enable SDP download in SPL on DH i.MX6 DHSOM 2023-03-07 7:51 ` [PATCH 2/2] ARM: imx: Enable SDP download in SPL on DH i.MX6 DHSOM Marek Vasut @ 2023-04-04 10:19 ` sbabic 0 siblings, 0 replies; 4+ messages in thread From: sbabic @ 2023-04-04 10:19 UTC (permalink / raw) To: Marek Vasut, u-boot > Enable SDP protocol support in SPL for DH i.MX6 DHSOM, now that those > components fit into the SPL due to LTO. > To start U-Boot via SDP upload on i.MX6 DHSOM based board, proceed as follows: > - Compile imx_usb [1] . > - Power off the i.MX6 DHSOM based board. > - Connect both USB-serial console and USB-OTG miniB ports to host PC. > - Switch board to USB boot mode. > - Power on the board. > - Verify using '$ dmesg' that a new device has been detected as follows: > New USB device found, idVendor=15a2, idProduct=0054, bcdDevice= 0.01 > New USB device strings: Mfr=1, Product=2, SerialNumber=0 > Product: SE Blank ARIK > Manufacturer: Freescale SemiConductor Inc > - Upload U-Boot SPL: > $ imx_usb u-boot-with-spl.imx > - Wait for SPL to come up, the following print ought to be the last on > UART console: > SDP: handle requests... > - Upload U-Boot proper: > $ imx_usb u-boot.img > [1] https://github.com/boundarydevices/imx_usb_loader.git > Signed-off-by: Marek Vasut <marex@denx.de> Applied to u-boot-imx, next, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de ===================================================================== ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] ARM: imx: Enable LTO for DH electronics i.MX6 DHCOM 2023-03-07 7:51 [PATCH 1/2] ARM: imx: Enable LTO for DH electronics i.MX6 DHCOM Marek Vasut 2023-03-07 7:51 ` [PATCH 2/2] ARM: imx: Enable SDP download in SPL on DH i.MX6 DHSOM Marek Vasut @ 2023-04-04 10:19 ` sbabic 1 sibling, 0 replies; 4+ messages in thread From: sbabic @ 2023-04-04 10:19 UTC (permalink / raw) To: Marek Vasut, u-boot > Enable LTO to reduce the size of SPL, which with SPL SDP > support may be close to the limit. > Signed-off-by: Marek Vasut <marex@denx.de> Applied to u-boot-imx, next, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de ===================================================================== ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-04-04 10:21 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-03-07 7:51 [PATCH 1/2] ARM: imx: Enable LTO for DH electronics i.MX6 DHCOM Marek Vasut 2023-03-07 7:51 ` [PATCH 2/2] ARM: imx: Enable SDP download in SPL on DH i.MX6 DHSOM Marek Vasut 2023-04-04 10:19 ` sbabic 2023-04-04 10:19 ` [PATCH 1/2] ARM: imx: Enable LTO for DH electronics i.MX6 DHCOM sbabic
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.