i.MX8 external burn

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX8 external burn

255 Views
efio
Contributor III

Hello,

I'm working on bringing up a custom board with an i.MX 8M Nano processor. Our setup doesn't include an SD card; instead, we're using external QSPI flash and eMMC. We have access to a J-Link base burner.

I'm seeking guidance on the following:

  1. What's the best method to flash the eMMC or QSPI flash?
  2. I understand that using UUU (Universal Update Utility) requires setting the BOOT_MODE pins to USB Serial Download. However, our board lacks a DIP switch to change the boot mode to QSPI or eMMC. How can we proceed?
  3. When using UUU, the process reaches 100% but then appears to hang. Is this normal behavior?
  4. Given our hardware configuration, what are our options for flashing and booting?

Any insights or recommendations would be greatly appreciated. Thank you for your help!

0 Kudos
Reply
3 Replies

138 Views
efio
Contributor III

Anyone?

0 Kudos
Reply

206 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

 

  • We have support in the Yocto build configuration to create a boot image for the QSPI flash. See more details in the IMX_YOCTO_PROJECT_USERS_GUIDE.pdf  in chapter 5.5.
    The boot image is intended to go into the QSPI flash and the rootfs goes into the bigger eMMc or SD card.

  • You can use uuu.exe to program the boot image into the QSPI flash. If you have uuu in the final image folder of the Yocto build, then you can do it this way:
    uuu.exe -b qspi qspi_bootloader_image​

     

  • If you put the files together in a "discrete way" the command could like this:
    uuu.exe  imx-boot-imx8mnevk-fspi.bin-flash_evk_flexspi  qspi_bootloader_image​​
      
             \ u-boot image used as programming manager /   \ image to program /

    In fact if you use the build in script (-b qspi), then it's doing the same thing.

  • There are other ways to program the QSPI, you could boot from eMMC/SD card and stop in u-boot and program the QSPI from there.

 

Regards

 

0 Kudos
Reply

160 Views
efio
Contributor III

Hi,

Thank you for the answer.

I'm encountering an issue while using UUU (Universal Update Utility) with our custom board.

While I can successfully download U-Boot to the device, I'm facing problems with USB device probing. Here are the details:

  1. We're not using USB-C, and we're following the U-Boot configurations mentioned in the UUU PDF.
  2. When attempting to boot from USB for UUU, I get the following error:

Fastboot: Normal
Boot from USB for uuu
Hit any key to stop autoboot: 0
my print ** index: 0
my print Device is NULL
USB init failed: 15

The driver being used is uboot-lf_v2020.04/drivers/usb/gadget/udc/udc-uclass.c.

My questions are:

  1. Is this the correct driver to use with UUU?
  2. If not, what is the appropriate driver, and how can I enable it?
  3. I've tried various options, but udc-uclass.c is always used. Are there specific configurations I should be looking at?

Any guidance on resolving this USB device probing issue would be greatly appreciated.

Thank you for your help!

0 Kudos
Reply