Hi,
I need to enable Falcon Mode on iMX8MP_EVK in the Yocto branch 6.12-walnascar. However, as per the AN14641 document, the meta-imx-fastboot layer is available only in the lf-6.6.36-2.1.0-secure branch. How can I port this layer to my walnascar branch and enable Falcon Mode?
Please help here..
Please use the following command.
uuu -b emmc_all
For example:
$ uuu -b emmc_all imx-boot-imx95evk-sd.bin-flash_all core-image-minimal-imx95evk.rootfs.wic
Hi Tipingwang,
Thanks for your reply.
I am trying to enable Falcon mode and have followed the steps provided in AN14641, but I am getting stuck during the flashing process.
As per the README, the flashing steps are mentioned as below (for eMMC):
My boot memory is eMMC. I attempted to flash the image using the following command:
sudo ./uuu -d -v -b emmc_all imx-boot-imx8mpevk-sd.bin-flash_evk imx-image-core-imx8mpevk.rootfs-20260616051114.wic
However, during execution, the flashing process fails with the following error:
The detailed uuu logs are attached above for reference.
Could you please guide me on the correct procedure to flash a Falcon-enabled OS into eMMC, or let me know if I am missing any required steps or configurations?
Thanks in advance for your support.
Falcon Mode is not incompatible with Secure Boot
BUT
On lf-6.12.20-2.0.0-secure, you cannot enable Secure Boot together with Falcon Mode using the provided Yocto flow
About 0001-imx8m-reset-ethernet-phy-in-spl.patch
For i.MX8MP EVK → strongly recommended
Not strictly required if you don't use Ethernet during early boot
Hi Yiping Wang,
Thank you for your response.
I have a couple of additional questions for clarification. According to the information provided, the branch lf-6.12.20-2.0.0-secure supports Falcon Mode v2, but Secure Boot is marked as not yet supported.
Since Secure Boot is a requirement for my i.MX8MP platform, will Falcon Mode work correctly if I use this branch, or is Falcon Mode incompatible when Secure Boot is enabled?
For the i.MX8MP EVK, do I need to apply the patch 0001-imx8m-reset-ethernet-phy-in-spl.patch, or is it optional depending on the use case?
lf-6.6.36-2.1.0-secure yourself. The public nxp-imx-support/meta-imx-fastboot - GitHub repository already shows a lf-6.12.20-2.0.0-secure branch.As per this image i found in NXP forum it seems that flashing eMMC using the UUU tool may not be supported in this case. Could you please suggest the appropriate method to flash an eMMC device with a Falcon-enabled OS?
In your previous reply, you suggested using the following command:
Fail HID(W): LIBUSB_ERROR_TIMEOUT (-7) (20.07s)
Could you please guide me on the correct flashing procedure or any alternative tools or steps required for flashing eMMC with Falcon mode enabled?
I verified the following commands on IMX95FRDM, there is no problem, please refer to my log.
C:\Users\nxa22585>C:\Users\nxa22585\Downloads\i.mx95\uuu.exe -lsusb
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.243-0-g230f1b1
Connected Known USB Devices
Path Chip Pro Vid Pid BcdVersion Serial_no
====================================================================
2:4 MX95 SDPS: 0x1FC9 0x015D 0x0002 61F49AAB2DCB4DDF
C:\Users\nxa22585>C:\Users\nxa22585\Downloads\i.mx95\uuu.exe -b emmc_all C:\Users\nxa22585\Downloads\i.mx95\imx-boot-imx95-15x15-lpddr4x-frdm-sd.bin-flash_all C:\Users\nxa22585\Downloads\i.mx95\core-image-minimal-imx8mnevk.rootfs.wic
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.243-0-g230f1b1
Success 1 Failure 0
1:2-61F49AAB 8/ 8 [Done ] FB: done
2:4-61F49AAB 3/ 3 [=================100%=================] SDPV: jump -scanlimited 0x800000
C:\Users\nxa22585>
In previous reply you gave a reference command for IMX95FRDM is that falcon enabled?
Here you can find what i was done in Yocto - IMX8MP
1) meta-imx-fastboot - lf-6.12.20-2.0.0-secure - Github_Link
2) Added this meta to my source - Github_Link
3) And followed all the instruction gave by AN14641 document.
4)Bitbake commands that i followed:
bitbake -c clean linux-imx && bitbake -c clean imx-boot && bitbake -c clean u-boot-imx && bitbake -c clean imx-atf && bitbake -c clean imx-image-core
bitbake -c compile linux-imx && bitbake -c compile imx-boot && bitbake -c compile u-boot-imx && bitbake -c compile imx-atf && bitbake -c compile imx-image-core
bitbake linux-imx && bitbake imx-boot && bitbake u-boot-imx && bitbake imx-atf && bitbake imx-image-core
5)
CASE 1: sudo ./uuu -b emmc_all imx-image-core-imx8mpevk.rootfs-20260617095251.wic
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.243-5-g124d086
Success 0 Failure 0
1:2-152E1000 1/ 1 [=================100%=================] SDPS: boot -scanterm -f /home/smurugan8/YOCTO/LWT/image/imx-image-core-imx8mpevk.rootfs-20260617095251.wic -scanlimited 0x800000
CASE 2:
sudo ./uuu -b emmc_all imx-boot-imx8mpevk-sd.bin-flash_evk imx-image-core-imx8mpevk.rootfs-20260617095251.wic
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.243-5-g124d086
Success 0 Failure 1
1:2-152E1000 1/ 1 [HID(W): LIBUSB_ERROR_TIMEOUT (-7) ] SDPS: boot -scanterm -f imx-boot-imx8mpevk-sd.bin-flash_evk -scanlimited 0x800000
IMPORTANT : I NEED TO FLASH A FALCON ENABLED OS INTO eMMC
Please note uuu is only used to program images to emmc, it doesn't check the content of your images.
I suspect there is problem with your uuu command itself.
Where did you download uuu?
Please download the latest UUU from https://github.com/nxp-imx/mfgtools/releases
Please download the Windows version UUU to do verification.
Hi yipingwan
I also tried using the UUU tool on Windows, but I am seeing the same result—it still does not work for flashing eMMC. I have attached the UUU -log.
However, when I flash the same Falcon-enabled OS to an SD card, it boots and works correctly. This confirms that the image itself and the Falcon configuration are valid.
My question is:
Could you please advise on the supported or reliable procedure for flashing eMMC in this scenario?
Please execute the following command with your Windows version UUU and send the result to me to do more investigation.
uuu.exe -b emmc_all imx-boot-imx8mpevk-sd.bin-flash_evk imx-image-core-imx8mpevk.rootfs-20260617095251.wic
Please try the following command
uuu.exe -b emmc_all C:\Users\vvdn\Sanjiv\Falcon\imx-boot-imx8mpevk-sd.bin-flash_evk C:\Users\vvdn\Sanjiv\Falcon\imx-image-multimedia-imx8mpevk.rootfs-20260624074743.wic
Then send the result to me again.
Here you can find the output,
PS C:\Users\vvdn\Sanjiv\uuu_source-uuu_1.5.243\uuu-uuu_1.5.243\uuu> .\uuu.exe -b emmc_all C:\Users\vvdn\Sanjiv\Falcon\imx-boot-imx8mpevk-sd.bin-flash_evk C:\Users\vvdn\Sanjiv\Falcon\imx-image-multimedia-imx8mpevk.rootfs-20260624074743.wic
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.243-0-g230f1b1
Success 0 Failure 1
1:3-152E1000 1/ 1 [HID(W): LIBUSB_ERROR_TIMEOUT (-7) ] SDPS: boot -scanterm -f C:\Users\vvdn\Sanjiv\Falcon\imx-b...
I above you can find the log of UUU,
Command=> .\uuu.exe -b emmc C:\Users\vvdn\Sanjiv\Falcon\imx-boot-imx8mpevk-sd.bin-flash_evk C:\Users\vvdn\Sanjiv\Falcon\imx-image-multimedia-imx8mpevk.rootfs-20260624074743.wic
But it is not working in eMMC , Same Image will work in SD Card
I verified on IMX8MP_EVK target board, there is no problem to program emmc, please refer to my following log.
C:\Users\nxa22585>C:\Users\nxa22585\Downloads\i.mx95\uuu.exe -b emmc_all C:\Users\nxa22585\Downloads\i.mx95\imx-boot-imx8mpevk-sd.bin-flash_evk C:\Users\nxa22585\Downloads\i.mx95\core-image-minimal-imx8mnevk.rootfs.wic
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.243-0-g230f1b1
Success 1 Failure 0
2:4-0F0B9800 8/ 8 [Done ] FB: done
C:\Users\nxa22585>
Please extracted my image from the attached file, and only execute the following command.
uuu.exe -b emmc imx-boot-imx8mpevk-sd.bin-flash_evk
If it still fails, it seems there is problem with EMMC itself on your target board.
You could use the following emmc command to check whether you could write something to emmc in u-boot.
Usage:
mmc read addr blk# cnt
mmc write addr blk# cnt
mmc erase blk# cnt
Please only try whether you can write a default boot image to emmc with UUU.
Please send /home/smurugan8/YOCTO/LWT/image/falcon_mode/imx-boot-imx8mpevk-sd.bin-flash_evk to me.
I will do verification on my target board.
Hi @Sanjiv_Mns
The meta-secure-boot Yocto layer is not implemented for the 6.12.20 BSP. Since the meta-imx-fastboot layer depends on the meta-secure-boot, the branch lf-6.12.20-2.0.0-secure does not implement secure boot.
The 0001-imx8m-reset-ethernet-phy-in-spl.patch patch is mandatory if you need to use the Ethernet interfaces in Linux. It resets the PHYs, without which the Linux driver cannot initialize the interfaces.
Please find the attachment .
Hi @yipingwang ,
I have done the commands which you gave in previous reply, here you can find the command logs & Boot logs
COMMAND LOGS:
sudo ./uuu -b emmc_all /home/smurugan8/YOCTO/LWT/image/default/imx-boot-imx8mpevk-sd.bin-flash_evk /home/smurugan8/YOCTO/LWT/image/default/imx-image-multimedia-imx8mpevk.rootfs-20260622071640.wic
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.243-5-g124d086
Success 1 Failure 0
1:1-152E1000 8/ 8 [Done ] FB: done
sudo ./uuu -b emmc /home/smurugan8/YOCTO/LWT/image/default/imx-boot-imx8mpevk-sd.bin-flash_evk /home/smurugan8/YOCTO/LWT/image/falcon_mode/imx-boot-imx8mpevk-sd.bin-flash_evk
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.243-5-g124d086
Success 1 Failure 0
1:1-152E1000 7/ 7 [Done ] FB: Done
BOOT LOGS:
U-Boot SPL 2025.04-g44898b9f3cfe-dirty (Sep 03 2025 - 09:56:50 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 4000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0: RNG instantiated
Normal Boot
Trying to boot from MMC2
spl_load_image_fat: error reading image kernel-atf-dtb.itb, err - -5
spl_load_image_fat: error reading image u-boot-atf.itb, err - -5
Error: -2
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###
Hi @Sanjiv_Mns
Falcon Mode images works on both SD and eMMC. To flash a Falcon image on eMMC/SD you need to:
1. Build the default bootloader. In a clean Yocto environment, run: bitbake imx-boot. Make sure the meta-imx-fastboot layer is not added at this step.
This will generate the tmp/deploy/images/imx8mp-lpddr4-evk/imx-boot-imx8mp-lpddr4-evk-sd.bin-flash_evk default bootloader.
2. Build the falcon mode bootloader and the falcon mode image. Add the meta-imx-fastboot layer to your BBLAYERS.
bitbake imx-boot
This command will generate the tmp/deploy/images/imx8mp-lpddr4-evk/imx-boot-imx8mp-lpddr4-evk-sd.bin-flash_evk_dual_bootloader falcon bootloader. This bootloader contains only the SPL, without the U-Boot proper. When the meta-imx-fastboot layer is added, the *_dual_bootloader is generated. See layer.conf.
bitbake imx-image-multimedia
This will generate the tmp/deploy/images/imx8mp-lpddr4-evk/imx-image-multimedia-imx8mp-lpddr4-evk.rootfs.wic.zst image.
3. Use UUU to flash the image on the eMMC. UUU is the only tool available to flash images on the eMMC.
uuu -b emmc_all imx-boot-imx8mp-lpddr4-evk-sd.bin-flash_evk imx-image-multimedia-imx8mp-lpddr4-evk.rootfs.wic.zst
uuu -b emmc imx-boot-imx8mp-lpddr4-evk-sd.bin-flash_evk imx-boot-imx8mp-lpddr4-evk-sd.bin-flash_evk_dual_bootloader
Please remove bld-xwayland build folder to rebuild images.
$ rm -rf bld-xwayland
$ MACHINE=imx8mpevk DISTRO=fsl-imx-xwayland source ./imx-setup-release.sh -b bld-xwayland
$ bitbake-layers add-layer ../sources/meta-imx-fastboot
Please add the following line in bld-xwayland/conf/local.conf
FALCON_KERNEL_BOOTARGS:mx8mp-generic-bsp = "console=ttymxc1,115200 root=/dev/mmcblk2p2 rootwait rw quiet"
Then rebuild images:
$ bitbake imx-boot
$ bitbake core-image-minimal
uuu.exe -b emmc_all imx-boot-imx8mpevk-sd.bin-flash_evk core-image-minimal-imx8mpevk.rootfs.wic
uuu.exe -b emmc imx-boot-imx8mpevk-sd.bin-flash_evk imx-boot-imx8mpevk-sd.bin-flash_evk_falcon
Please refer to my verification log:
U-Boot SPL 2025.04-g9383f8387dc7-dirty (Jun 04 2025 - 09:48:20 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 4000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0: RNG instantiated
Normal Boot
Trying to boot from MMC2
Failed to find node!, err: -11!
Failed to find node!, err: -11!
NOTICE: Do not release JR0 to NS as it can be used by HAB
NOTICE: BL31: v2.12.0(release):lf-6.12.20-2.0.0-dirty
NOTICE: BL31: Built : 08:15:07, May 9 2025
[ 0.324123] imx8mp-ldb ldb-display-controller: Failed to create device link (0x180) with 32e90000.lcd-controller
[ 0.395104] : mipi_csis_imx8mp_phy_reset, No remote pad found!
[ 0.514210] imx8mp-ldb ldb-display-controller: Failed to create device link (0x180) with 1-004c
[ 0.576883] imx8mp-ldb ldb-display-controller: Failed to create device link (0x180) with 1-004c
[ 0.625848] ov5640 1-003c: ov5640_write_reg: error: reg=3008, val=42
[ 0.632862] ov5640 1-003c: ov5640_write_reg: error: reg=3103, val=11
[ 0.639669] ov5640 1-003c: ov5640_read_reg: error: reg=3108
[ 0.645268] ov5640 1-003c: failed to power on
[ 0.661389] imx8mp-ldb ldb-display-controller: Failed to create device link (0x180) with phy-lvds
[ 0.694937] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e60000 to encoder DSI-41: -19
[ 0.706570] imx_sec_dsim_drv 32e60000.mipi_dsi: Failed to attach bridge: 32e60000.mipi_dsi
[ 0.714859] imx_sec_dsim_drv 32e60000.mipi_dsi: failed to bind sec dsim bridge: -19
NXP i.MX Release Distro 6.12-walnascar imx8mpevk ttymxc1
imx8mpevk login: root
root@imx8mpevk:~#
Please use the following commands to program images to the target board with UUU.
unzstd <image_name>-[secure-boot]-<machine_name>.rootfs.wic.zst uuu -b emmc_all <default_bootloader> <image_name>-<machine_name>.rootfs.wic uuu -b emmc <default_bootloader> <falcon_mode_bootloader>
The first parameter is the default bootloader, falcon mode bootloader is only specified in the second parameter of the second uuu command.
Hi @yipingwang & @elena_popa
Thank you so much for your support