* [PATCH 0/4] board: phycore-imx8mm: Add support for flashing through UUU
@ 2026-11-19 14:12 Thorsten Schmelzer
2026-11-19 14:12 ` [PATCH 1/4] arm: dts: imx8mm-phyboard-polis-rdk-u-boot: Add usb entries for SPL Thorsten Schmelzer
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Thorsten Schmelzer @ 2026-11-19 14:12 UTC (permalink / raw)
To: NXP i.MX U-Boot Team, upstream, u-boot
Cc: Teresa Remmet, Tom Rini, Ilias Apalodimas, Stefano Babic,
Fabio Estevam, Francesco Dolcini, Peng Fan, Yannic Moog,
Benedikt Spranger, INgo Rah, Thorsten Schmelzer
This series adds everything needed to flash bootloader and image to the
emmc using the NXP UUU tool on phycore_imx8mm. The OTG USB port is used
for flashing.
Signed-off-by: Thorsten Schmelzer <t.schmelzer@phytec.de>
---
Thorsten Schmelzer (4):
arm: dts: imx8mm-phyboard-polis-rdk-u-boot: Add usb entries for SPL
configs: phycore-imx8mm: Add support for loading via UUU tool
board: phycore-imx8mm: Start fastboot when booted through USB
board: phycore_imx8mm: env: Add fastboot raw partitions for UUU
arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi | 8 +++++++
board/phytec/phycore_imx8mm/phycore-imx8mm.c | 5 ++++
board/phytec/phycore_imx8mm/phycore_imx8mm.env | 2 ++
configs/phycore-imx8mm_defconfig | 28 ++++++++++++++++++++++
4 files changed, 43 insertions(+)
---
base-commit: f6e8f09ed39347359ebddd983b96993c78b4ec7d
change-id: 20261119-wip-t-schmelzer-phytec-de-usb-uuu-support-imx8mm-5386aaa4c520
Best regards,
--
Thorsten Schmelzer <t.schmelzer@phytec.de>
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/4] arm: dts: imx8mm-phyboard-polis-rdk-u-boot: Add usb entries for SPL
2026-11-19 14:12 [PATCH 0/4] board: phycore-imx8mm: Add support for flashing through UUU Thorsten Schmelzer
@ 2026-11-19 14:12 ` Thorsten Schmelzer
2026-11-25 16:48 ` Benjamin Hahn
2026-11-25 16:49 ` Benjamin Hahn
2026-11-19 14:12 ` [PATCH 2/4] configs: phycore-imx8mm: Add support for loading via UUU tool Thorsten Schmelzer
` (2 subsequent siblings)
3 siblings, 2 replies; 10+ messages in thread
From: Thorsten Schmelzer @ 2026-11-19 14:12 UTC (permalink / raw)
To: NXP i.MX U-Boot Team, upstream, u-boot
Cc: Teresa Remmet, Tom Rini, Ilias Apalodimas, Stefano Babic,
Fabio Estevam, Francesco Dolcini, Peng Fan, Yannic Moog,
Benedikt Spranger, INgo Rah, Thorsten Schmelzer
In order to support the USB serial download mode, SPL needs an activated
usb controller to chainload u-boot proper. Add the necessary entries.
Signed-off-by: Thorsten Schmelzer <t.schmelzer@phytec.de>
---
arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi b/arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi
index 143ce6a6d77c..1d2b456b623c 100644
--- a/arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi
+++ b/arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi
@@ -82,6 +82,14 @@
bootph-pre-ram;
};
+&usbotg1 {
+ bootph-pre-ram;
+};
+
+&usbphynop1 {
+ bootph-pre-ram;
+};
+
&usdhc2 {
bootph-pre-ram;
};
--
2.53.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/4] configs: phycore-imx8mm: Add support for loading via UUU tool
2026-11-19 14:12 [PATCH 0/4] board: phycore-imx8mm: Add support for flashing through UUU Thorsten Schmelzer
2026-11-19 14:12 ` [PATCH 1/4] arm: dts: imx8mm-phyboard-polis-rdk-u-boot: Add usb entries for SPL Thorsten Schmelzer
@ 2026-11-19 14:12 ` Thorsten Schmelzer
2026-11-25 16:50 ` Benjamin Hahn
2026-11-19 14:12 ` [PATCH 3/4] board: phycore-imx8mm: Start fastboot when booted through USB Thorsten Schmelzer
2026-11-19 14:12 ` [PATCH 4/4] board: phycore_imx8mm: env: Add fastboot raw partitions for UUU Thorsten Schmelzer
3 siblings, 1 reply; 10+ messages in thread
From: Thorsten Schmelzer @ 2026-11-19 14:12 UTC (permalink / raw)
To: NXP i.MX U-Boot Team, upstream, u-boot
Cc: Teresa Remmet, Tom Rini, Ilias Apalodimas, Stefano Babic,
Fabio Estevam, Francesco Dolcini, Peng Fan, Yannic Moog,
Benedikt Spranger, INgo Rah, Thorsten Schmelzer
Enable all options, which are required to load and run u-boot through
the USB serial download mode and to do basic flash operations with the
NXP UUU tool. This includes:
- generic USB support for imx8mm
- USB gadget support including gadget configuration
- SDP protocol support
- fastboot support including fastboot configuration
- fastboot UUU support
Signed-off-by: Thorsten Schmelzer <t.schmelzer@phytec.de>
---
configs/phycore-imx8mm_defconfig | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/configs/phycore-imx8mm_defconfig b/configs/phycore-imx8mm_defconfig
index 2be57246addd..7d4f6005dbaa 100644
--- a/configs/phycore-imx8mm_defconfig
+++ b/configs/phycore-imx8mm_defconfig
@@ -29,6 +29,7 @@ CONFIG_SPL_HAVE_INIT_STACK=y
CONFIG_SPL=y
CONFIG_ENV_OFFSET_REDUND=0x3E0000
CONFIG_PCI=y
+# CONFIG_ANDROID_BOOT_IMAGE is not set
CONFIG_FIT=y
CONFIG_FIT_EXTERNAL_OFFSET=0x3000
CONFIG_SPL_LOAD_FIT=y
@@ -58,6 +59,7 @@ CONFIG_SYS_I2C_EEPROM_ADDR_LEN=2
CONFIG_SYS_EEPROM_SIZE=4096
CONFIG_SYS_EEPROM_PAGE_WRITE_BITS=5
CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS=5
+# CONFIG_CMD_BIND is not set
CONFIG_CMD_CLK=y
CONFIG_CMD_FUSE=y
CONFIG_CMD_GPIO=y
@@ -65,6 +67,9 @@ CONFIG_CMD_I2C=y
CONFIG_CMD_MMC=y
CONFIG_CMD_PCI=y
CONFIG_CMD_SF_TEST=y
+CONFIG_CMD_USB=y
+CONFIG_CMD_USB_SDP=y
+CONFIG_CMD_USB_MASS_STORAGE=y
CONFIG_CMD_CACHE=y
CONFIG_CMD_REGULATOR=y
CONFIG_CMD_EXT4_WRITE=y
@@ -82,6 +87,17 @@ CONFIG_CLK_COMPOSITE_CCF=y
CONFIG_SPL_CLK_IMX8MM=y
CONFIG_CLK_IMX8MM=y
CONFIG_FSL_CAAM=y
+CONFIG_USB_FUNCTION_FASTBOOT=y
+CONFIG_FASTBOOT_BUF_ADDR=0x44200000
+CONFIG_FASTBOOT_BUF_SIZE=0x13000000
+CONFIG_FASTBOOT_FLASH=y
+CONFIG_FASTBOOT_UUU_SUPPORT=y
+CONFIG_FASTBOOT_FLASH_MMC_DEV=2
+CONFIG_FASTBOOT_MMC_BOOT_SUPPORT=y
+CONFIG_FASTBOOT_MMC_BOOT1_NAME="mmc2boot0"
+CONFIG_FASTBOOT_MMC_BOOT2_NAME="mmc2boot1"
+CONFIG_FASTBOOT_MMC_USER_SUPPORT=y
+CONFIG_FASTBOOT_MMC_USER_NAME="mmc2"
CONFIG_MXC_GPIO=y
CONFIG_DM_I2C=y
CONFIG_I2C_EEPROM=y
@@ -131,4 +147,16 @@ CONFIG_SYSRESET_PSCI=y
CONFIG_SYSRESET_WATCHDOG=y
CONFIG_TEE=y
CONFIG_OPTEE=y
+CONFIG_USB=y
+CONFIG_SPL_USB_HOST=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_MXC_USB_OTG_HACTIVE=y
+CONFIG_USB_GADGET=y
+CONFIG_SPL_USB_GADGET=y
+CONFIG_USB_GADGET_MANUFACTURER="PHYTEC"
+CONFIG_USB_GADGET_VENDOR_NUM=0x0525
+CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
+CONFIG_CI_UDC=y
+CONFIG_SDP_LOADADDR=0x40400000
+CONFIG_SPL_USB_SDP_SUPPORT=y
CONFIG_IMX_WATCHDOG=y
--
2.53.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 3/4] board: phycore-imx8mm: Start fastboot when booted through USB
2026-11-19 14:12 [PATCH 0/4] board: phycore-imx8mm: Add support for flashing through UUU Thorsten Schmelzer
2026-11-19 14:12 ` [PATCH 1/4] arm: dts: imx8mm-phyboard-polis-rdk-u-boot: Add usb entries for SPL Thorsten Schmelzer
2026-11-19 14:12 ` [PATCH 2/4] configs: phycore-imx8mm: Add support for loading via UUU tool Thorsten Schmelzer
@ 2026-11-19 14:12 ` Thorsten Schmelzer
2026-11-25 16:50 ` [Upstream] " Benjamin Hahn
2026-11-19 14:12 ` [PATCH 4/4] board: phycore_imx8mm: env: Add fastboot raw partitions for UUU Thorsten Schmelzer
3 siblings, 1 reply; 10+ messages in thread
From: Thorsten Schmelzer @ 2026-11-19 14:12 UTC (permalink / raw)
To: NXP i.MX U-Boot Team, upstream, u-boot
Cc: Teresa Remmet, Tom Rini, Ilias Apalodimas, Stefano Babic,
Fabio Estevam, Francesco Dolcini, Peng Fan, Yannic Moog,
Benedikt Spranger, INgo Rah, Thorsten Schmelzer
In order to support the complete flow for flashing with the UUU tool,
fastboot has to be enabled, when booting through USB has been detected.
Modify the bootcmd in board_late_init if USB_BOOT is detected as boot
device.
Signed-off-by: Thorsten Schmelzer <t.schmelzer@phytec.de>
---
board/phytec/phycore_imx8mm/phycore-imx8mm.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/board/phytec/phycore_imx8mm/phycore-imx8mm.c b/board/phytec/phycore_imx8mm/phycore-imx8mm.c
index 25e51dce7396..6e1e88a0a47e 100644
--- a/board/phytec/phycore_imx8mm/phycore-imx8mm.c
+++ b/board/phytec/phycore_imx8mm/phycore-imx8mm.c
@@ -45,6 +45,11 @@ int board_late_init(void)
case MMC3_BOOT:
env_set_ulong("mmcdev", 2);
break;
+ case USB_BOOT:
+ printf("Detect USB boot. Will enter fastboot mode!\n");
+ if (!strcmp(env_get("bootcmd"), env_get_default("bootcmd")))
+ env_set("bootcmd", "fastboot 0; bootflow scan -lb;");
+ break;
default:
break;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 4/4] board: phycore_imx8mm: env: Add fastboot raw partitions for UUU
2026-11-19 14:12 [PATCH 0/4] board: phycore-imx8mm: Add support for flashing through UUU Thorsten Schmelzer
` (2 preceding siblings ...)
2026-11-19 14:12 ` [PATCH 3/4] board: phycore-imx8mm: Start fastboot when booted through USB Thorsten Schmelzer
@ 2026-11-19 14:12 ` Thorsten Schmelzer
2026-11-25 16:51 ` [Upstream] " Benjamin Hahn
3 siblings, 1 reply; 10+ messages in thread
From: Thorsten Schmelzer @ 2026-11-19 14:12 UTC (permalink / raw)
To: NXP i.MX U-Boot Team, upstream, u-boot
Cc: Teresa Remmet, Tom Rini, Ilias Apalodimas, Stefano Babic,
Fabio Estevam, Francesco Dolcini, Peng Fan, Yannic Moog,
Benedikt Spranger, INgo Rah, Thorsten Schmelzer
Add fastboot raw partition configuration for 'bootloader' and 'all'
partitions. The 'bootloader' partitions allows writing the bootloader to
emmc boot0 partition at the correct offset. The 'all' partition allows
writing the complete emmc user area.
These changes allow to use UUU with the inbuilt default scripts:
uuu -b emmc_all _flash.bin _image.wic
Signed-off-by: Thorsten Schmelzer <t.schmelzer@phytec.de>
---
board/phytec/phycore_imx8mm/phycore_imx8mm.env | 2 ++
1 file changed, 2 insertions(+)
diff --git a/board/phytec/phycore_imx8mm/phycore_imx8mm.env b/board/phytec/phycore_imx8mm/phycore_imx8mm.env
index 7cd601f8cd58..bd018f9d0061 100644
--- a/board/phytec/phycore_imx8mm/phycore_imx8mm.env
+++ b/board/phytec/phycore_imx8mm/phycore_imx8mm.env
@@ -1,6 +1,8 @@
boot_script_dhcp=net_boot_fit.scr.uimg
console=ttymxc2,CONFIG_BAUDRATE
emmc_dev=2 /* This is needed by built-in uuu flash scripts */
+fastboot_raw_partition_all=0 4194304
+fastboot_raw_partition_bootloader=66 8126 mmcpart 1
fdt_addr_r=0x40480000
fdtfile=DEFAULT_FDT_FILE
fdtoverlay_addr_r=0x404a0000
--
2.53.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 1/4] arm: dts: imx8mm-phyboard-polis-rdk-u-boot: Add usb entries for SPL
2026-11-19 14:12 ` [PATCH 1/4] arm: dts: imx8mm-phyboard-polis-rdk-u-boot: Add usb entries for SPL Thorsten Schmelzer
@ 2026-11-25 16:48 ` Benjamin Hahn
2026-11-25 16:49 ` Benjamin Hahn
1 sibling, 0 replies; 10+ messages in thread
From: Benjamin Hahn @ 2026-11-25 16:48 UTC (permalink / raw)
To: Thorsten Schmelzer, NXP i.MX U-Boot Team, upstream, u-boot
Cc: Tom Rini, Ilias Apalodimas, Stefano Babic, Fabio Estevam,
Francesco Dolcini, Peng Fan, Benedikt Spranger, INgo Rah
Am 19.11.26 um 15:12 schrieb Thorsten Schmelzer:
> In order to support the USB serial download mode, SPL needs an activated
> usb controller to chainload u-boot proper. Add the necessary entries.
>
> Signed-off-by: Thorsten Schmelzer <t.schmelzer@phytec.de>
Reviewed-by: Benjamin Hahn <B.Hahn@phytec.de>
> ---
> arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi b/arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi
> index 143ce6a6d77c..1d2b456b623c 100644
> --- a/arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi
> +++ b/arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi
> @@ -82,6 +82,14 @@
> bootph-pre-ram;
> };
>
> +&usbotg1 {
> + bootph-pre-ram;
> +};
> +
> +&usbphynop1 {
> + bootph-pre-ram;
> +};
> +
> &usdhc2 {
> bootph-pre-ram;
> };
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/4] arm: dts: imx8mm-phyboard-polis-rdk-u-boot: Add usb entries for SPL
2026-11-19 14:12 ` [PATCH 1/4] arm: dts: imx8mm-phyboard-polis-rdk-u-boot: Add usb entries for SPL Thorsten Schmelzer
2026-11-25 16:48 ` Benjamin Hahn
@ 2026-11-25 16:49 ` Benjamin Hahn
1 sibling, 0 replies; 10+ messages in thread
From: Benjamin Hahn @ 2026-11-25 16:49 UTC (permalink / raw)
To: Thorsten Schmelzer, NXP i.MX U-Boot Team, upstream, u-boot
Cc: Tom Rini, Ilias Apalodimas, Stefano Babic, Fabio Estevam,
Francesco Dolcini, Peng Fan, Benedikt Spranger, INgo Rah
Am 19.11.26 um 15:12 schrieb Thorsten Schmelzer:
> In order to support the USB serial download mode, SPL needs an activated
> usb controller to chainload u-boot proper. Add the necessary entries.
>
> Signed-off-by: Thorsten Schmelzer <t.schmelzer@phytec.de>
Reviewed-by: Benjamin Hahn <B.Hahn@phytec.de>
> ---
> arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi b/arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi
> index 143ce6a6d77c..1d2b456b623c 100644
> --- a/arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi
> +++ b/arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi
> @@ -82,6 +82,14 @@
> bootph-pre-ram;
> };
>
> +&usbotg1 {
> + bootph-pre-ram;
> +};
> +
> +&usbphynop1 {
> + bootph-pre-ram;
> +};
> +
> &usdhc2 {
> bootph-pre-ram;
> };
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/4] configs: phycore-imx8mm: Add support for loading via UUU tool
2026-11-19 14:12 ` [PATCH 2/4] configs: phycore-imx8mm: Add support for loading via UUU tool Thorsten Schmelzer
@ 2026-11-25 16:50 ` Benjamin Hahn
0 siblings, 0 replies; 10+ messages in thread
From: Benjamin Hahn @ 2026-11-25 16:50 UTC (permalink / raw)
To: Thorsten Schmelzer, NXP i.MX U-Boot Team, upstream, u-boot
Cc: Tom Rini, Ilias Apalodimas, Stefano Babic, Fabio Estevam,
Francesco Dolcini, Peng Fan, Benedikt Spranger, INgo Rah
Am 19.11.26 um 15:12 schrieb Thorsten Schmelzer:
> Enable all options, which are required to load and run u-boot through
> the USB serial download mode and to do basic flash operations with the
> NXP UUU tool. This includes:
>
> - generic USB support for imx8mm
> - USB gadget support including gadget configuration
> - SDP protocol support
> - fastboot support including fastboot configuration
> - fastboot UUU support
>
> Signed-off-by: Thorsten Schmelzer <t.schmelzer@phytec.de>
Reviewed-by: Benjamin Hahn <B.Hahn@phytec.de>
> ---
> configs/phycore-imx8mm_defconfig | 28 ++++++++++++++++++++++++++++
> 1 file changed, 28 insertions(+)
>
> diff --git a/configs/phycore-imx8mm_defconfig b/configs/phycore-imx8mm_defconfig
> index 2be57246addd..7d4f6005dbaa 100644
> --- a/configs/phycore-imx8mm_defconfig
> +++ b/configs/phycore-imx8mm_defconfig
> @@ -29,6 +29,7 @@ CONFIG_SPL_HAVE_INIT_STACK=y
> CONFIG_SPL=y
> CONFIG_ENV_OFFSET_REDUND=0x3E0000
> CONFIG_PCI=y
> +# CONFIG_ANDROID_BOOT_IMAGE is not set
> CONFIG_FIT=y
> CONFIG_FIT_EXTERNAL_OFFSET=0x3000
> CONFIG_SPL_LOAD_FIT=y
> @@ -58,6 +59,7 @@ CONFIG_SYS_I2C_EEPROM_ADDR_LEN=2
> CONFIG_SYS_EEPROM_SIZE=4096
> CONFIG_SYS_EEPROM_PAGE_WRITE_BITS=5
> CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS=5
> +# CONFIG_CMD_BIND is not set
> CONFIG_CMD_CLK=y
> CONFIG_CMD_FUSE=y
> CONFIG_CMD_GPIO=y
> @@ -65,6 +67,9 @@ CONFIG_CMD_I2C=y
> CONFIG_CMD_MMC=y
> CONFIG_CMD_PCI=y
> CONFIG_CMD_SF_TEST=y
> +CONFIG_CMD_USB=y
> +CONFIG_CMD_USB_SDP=y
> +CONFIG_CMD_USB_MASS_STORAGE=y
> CONFIG_CMD_CACHE=y
> CONFIG_CMD_REGULATOR=y
> CONFIG_CMD_EXT4_WRITE=y
> @@ -82,6 +87,17 @@ CONFIG_CLK_COMPOSITE_CCF=y
> CONFIG_SPL_CLK_IMX8MM=y
> CONFIG_CLK_IMX8MM=y
> CONFIG_FSL_CAAM=y
> +CONFIG_USB_FUNCTION_FASTBOOT=y
> +CONFIG_FASTBOOT_BUF_ADDR=0x44200000
> +CONFIG_FASTBOOT_BUF_SIZE=0x13000000
> +CONFIG_FASTBOOT_FLASH=y
> +CONFIG_FASTBOOT_UUU_SUPPORT=y
> +CONFIG_FASTBOOT_FLASH_MMC_DEV=2
> +CONFIG_FASTBOOT_MMC_BOOT_SUPPORT=y
> +CONFIG_FASTBOOT_MMC_BOOT1_NAME="mmc2boot0"
> +CONFIG_FASTBOOT_MMC_BOOT2_NAME="mmc2boot1"
> +CONFIG_FASTBOOT_MMC_USER_SUPPORT=y
> +CONFIG_FASTBOOT_MMC_USER_NAME="mmc2"
> CONFIG_MXC_GPIO=y
> CONFIG_DM_I2C=y
> CONFIG_I2C_EEPROM=y
> @@ -131,4 +147,16 @@ CONFIG_SYSRESET_PSCI=y
> CONFIG_SYSRESET_WATCHDOG=y
> CONFIG_TEE=y
> CONFIG_OPTEE=y
> +CONFIG_USB=y
> +CONFIG_SPL_USB_HOST=y
> +CONFIG_USB_EHCI_HCD=y
> +CONFIG_MXC_USB_OTG_HACTIVE=y
> +CONFIG_USB_GADGET=y
> +CONFIG_SPL_USB_GADGET=y
> +CONFIG_USB_GADGET_MANUFACTURER="PHYTEC"
> +CONFIG_USB_GADGET_VENDOR_NUM=0x0525
> +CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
> +CONFIG_CI_UDC=y
> +CONFIG_SDP_LOADADDR=0x40400000
> +CONFIG_SPL_USB_SDP_SUPPORT=y
> CONFIG_IMX_WATCHDOG=y
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Upstream] [PATCH 3/4] board: phycore-imx8mm: Start fastboot when booted through USB
2026-11-19 14:12 ` [PATCH 3/4] board: phycore-imx8mm: Start fastboot when booted through USB Thorsten Schmelzer
@ 2026-11-25 16:50 ` Benjamin Hahn
0 siblings, 0 replies; 10+ messages in thread
From: Benjamin Hahn @ 2026-11-25 16:50 UTC (permalink / raw)
To: Thorsten Schmelzer, NXP i.MX U-Boot Team, upstream, u-boot
Cc: Tom Rini, Ilias Apalodimas, Stefano Babic, Fabio Estevam,
Francesco Dolcini, Peng Fan, Benedikt Spranger, INgo Rah
Am 19.11.26 um 15:12 schrieb Thorsten Schmelzer:
> In order to support the complete flow for flashing with the UUU tool,
> fastboot has to be enabled, when booting through USB has been detected.
>
> Modify the bootcmd in board_late_init if USB_BOOT is detected as boot
> device.
>
> Signed-off-by: Thorsten Schmelzer <t.schmelzer@phytec.de>
Reviewed-by: Benjamin Hahn <B.Hahn@phytec.de>
> ---
> board/phytec/phycore_imx8mm/phycore-imx8mm.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/board/phytec/phycore_imx8mm/phycore-imx8mm.c b/board/phytec/phycore_imx8mm/phycore-imx8mm.c
> index 25e51dce7396..6e1e88a0a47e 100644
> --- a/board/phytec/phycore_imx8mm/phycore-imx8mm.c
> +++ b/board/phytec/phycore_imx8mm/phycore-imx8mm.c
> @@ -45,6 +45,11 @@ int board_late_init(void)
> case MMC3_BOOT:
> env_set_ulong("mmcdev", 2);
> break;
> + case USB_BOOT:
> + printf("Detect USB boot. Will enter fastboot mode!\n");
> + if (!strcmp(env_get("bootcmd"), env_get_default("bootcmd")))
> + env_set("bootcmd", "fastboot 0; bootflow scan -lb;");
> + break;
> default:
> break;
> }
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Upstream] [PATCH 4/4] board: phycore_imx8mm: env: Add fastboot raw partitions for UUU
2026-11-19 14:12 ` [PATCH 4/4] board: phycore_imx8mm: env: Add fastboot raw partitions for UUU Thorsten Schmelzer
@ 2026-11-25 16:51 ` Benjamin Hahn
0 siblings, 0 replies; 10+ messages in thread
From: Benjamin Hahn @ 2026-11-25 16:51 UTC (permalink / raw)
To: Thorsten Schmelzer, NXP i.MX U-Boot Team, upstream, u-boot
Cc: Tom Rini, Ilias Apalodimas, Stefano Babic, Fabio Estevam,
Francesco Dolcini, Peng Fan, Benedikt Spranger, INgo Rah
Am 19.11.26 um 15:12 schrieb Thorsten Schmelzer:
> Add fastboot raw partition configuration for 'bootloader' and 'all'
> partitions. The 'bootloader' partitions allows writing the bootloader to
> emmc boot0 partition at the correct offset. The 'all' partition allows
> writing the complete emmc user area.
>
> These changes allow to use UUU with the inbuilt default scripts:
> uuu -b emmc_all _flash.bin _image.wic
>
> Signed-off-by: Thorsten Schmelzer <t.schmelzer@phytec.de>
Reviewed-by: Benjamin Hahn <B.Hahn@phytec.de>
> ---
> board/phytec/phycore_imx8mm/phycore_imx8mm.env | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/board/phytec/phycore_imx8mm/phycore_imx8mm.env b/board/phytec/phycore_imx8mm/phycore_imx8mm.env
> index 7cd601f8cd58..bd018f9d0061 100644
> --- a/board/phytec/phycore_imx8mm/phycore_imx8mm.env
> +++ b/board/phytec/phycore_imx8mm/phycore_imx8mm.env
> @@ -1,6 +1,8 @@
> boot_script_dhcp=net_boot_fit.scr.uimg
> console=ttymxc2,CONFIG_BAUDRATE
> emmc_dev=2 /* This is needed by built-in uuu flash scripts */
> +fastboot_raw_partition_all=0 4194304
> +fastboot_raw_partition_bootloader=66 8126 mmcpart 1
> fdt_addr_r=0x40480000
> fdtfile=DEFAULT_FDT_FILE
> fdtoverlay_addr_r=0x404a0000
>
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2026-11-25 16:51 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-19 14:12 [PATCH 0/4] board: phycore-imx8mm: Add support for flashing through UUU Thorsten Schmelzer
2026-11-19 14:12 ` [PATCH 1/4] arm: dts: imx8mm-phyboard-polis-rdk-u-boot: Add usb entries for SPL Thorsten Schmelzer
2026-11-25 16:48 ` Benjamin Hahn
2026-11-25 16:49 ` Benjamin Hahn
2026-11-19 14:12 ` [PATCH 2/4] configs: phycore-imx8mm: Add support for loading via UUU tool Thorsten Schmelzer
2026-11-25 16:50 ` Benjamin Hahn
2026-11-19 14:12 ` [PATCH 3/4] board: phycore-imx8mm: Start fastboot when booted through USB Thorsten Schmelzer
2026-11-25 16:50 ` [Upstream] " Benjamin Hahn
2026-11-19 14:12 ` [PATCH 4/4] board: phycore_imx8mm: env: Add fastboot raw partitions for UUU Thorsten Schmelzer
2026-11-25 16:51 ` [Upstream] " Benjamin Hahn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox