U-Boot FASTBOOT flash commands for QSPI storage for iMX8M Nano EVK board

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

U-Boot FASTBOOT flash commands for QSPI storage for iMX8M Nano EVK board

545 Views
skbansal222
Contributor I

Hello,

I have generated the bootloader image for QSPI storage (32MB) for my iMX8M Nano EVK board using this command:
make SOC=iMX8MN flash_evk_flexspi

I got flash.bin in folder iMX8M/flash.bin. This image is build with IVT Header.

I want to download this image from host PC to target board using u-boot's fastboot.

But the operation is not successful and there is an error on device side and host side:

Device Side:
u-boot=> fastboot usb 0
Starting download of 1440960 bytes
..........
downloading of 1440960 bytes finished
cannot get the partion info for fbmisc
fastboot_get_lock_stat: error in get mmc part
Not support flash command for current device 255

Host Side:
$ sudo fastboot flash bootloader iMX8M/flash.bin
target reported max download size of 1073741824 bytes
sending 'bootloader' (1407 KB)...
OKAY [ 0.346s]
writing 'bootloader'...
FAILED (remote: failed to flash device)
finished. total time: 0.360s
$


This procedure works well for SD or eMMC storage but not for QSPI storage.

Is fastboot not supported for QSPI NOR flash Storage ?

If there is any patch that needs to be applied in uboot-imx's code to make it work for QSPI storage, please share it.


Thanks,
Saurabh

Labels (1)
0 Kudos
Reply
1 Reply

529 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Yes, it is not supported by default, you may use fastboot and use uboot command to download uboot. Is the same procedure we have for UUU tool.

https://github.com/nxp-imx/mfgtools/blob/master/uuu/qspi_burn_loader.lst

Best regards/Saludos,
Aldo.

0 Kudos
Reply