IPQ806x HW boot select NOR(SPI) or NAND(EMMC)

Hello everyone!

Could you please tell me if anyone has a practice of choosing the order of bootloader(u-boot) loading on ipq806x processors?
It is necessary to load the bootloader from NOR(SPI).
The router board is soldered in such a way that NAND(EMMC) is booted first.
I can't find the datasheet for ipq8064

Could anyone tell me how to achieve this?

Thanks in advance!

have a look how it's done on the WRX36 - https://openwrt.org/toh/dynalink/dl-wrx36#return_to_stock, scroll back ½ page, the optional 12th step.

there it's USB, then flash, you could try to do something similar.

In my version, USB is not provided at the board development level.
Also, JTAG is absent on the board.
I added a 16MB SPI memory chip to the board.
The chip is visible through the stock bootloader, which is loaded from NAND.
The stock u-boot is limited to loading from SPI.
I wrote U-Boot for this processor on the SPI flash.
But EMMC (NAND flash) will boot first.
I don't have a programmer for EMMC.

But in general, I want to set up booting from SPI,
I think it's possible since it's provided by the board.

Thank you!