I try to boot from SPI NOR connected to ECSPI2 interface on EVK board. I successfully prepared dtb file to activate spinor in Linux (5.4.24). After some patches in kernel module for CS0 (GPIO) I have working mtd device.
I installed U-boot into spi nor using dd on offset 0x400. I used working flash.bin build for sd.
On EVK board I set dip switches for ecspi boot on spi2 cs0. I can watch expected 12MHz clock on SCK and from duration of transaction I calculated that system loads about 180kB of data.
But no activity on serial console and system hangs.
I modified boot data in IVT to shorten loading data. I can see on oscilloscope, transaction is shorter -> boot rom parse IVT and boot data.
I modified U-boot and add some GPIO up/down into very early stages to watch activity on oscilloscope. My boot loader runs even on correct address (7e1000) but if processor runs some code placed more than 16kB from start it hangs.
It looks like boot rom loads only part of image.
Any help?