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