U-Boot 2013.01 and support for Macronix MX66L2G45G

Hi!

I am looking into the possibility for replacing our 256MByte QSPI Flash type Micron MT25QL02 with a similar size MX66L2G45G from Macronix. The U-Boot version I am running is rather old … 2013.01 from Rocketboard, with various modifications based on our needs.

I have done what I consider the necessary adaptions to enable detection of the MX66L2G45G, but SPL does not “see” a valid U-Boot where - in the the MT25QL02 case - everything works smooth.

Attaching some DEBUG output here:
U-Boot SPL (QSPI CS#0) 2013.01.01-KS800 (Jan 27 2022 - 15:14:27)
BOARD : Altera SOCFPGA Cyclone V Board
CLOCK: EOSC1 clock 25000 KHz
CLOCK: EOSC2 clock 25000 KHz
CLOCK: F2S_SDR_REF clock 0 KHz
CLOCK: F2S_PER_REF clock 0 KHz
CLOCK: MPU clock 700 MHz
CLOCK: DDR clock 400 MHz
CLOCK: UART clock 100000 KHz
CLOCK: MMC clock 50000 KHz
CLOCK: QSPI clock 350000 KHz
RESET: COLD
INFO : Watchdog enabled
SDRAM: Initializing MMR registers

… then a lot of SDRAM-stuff…before finally

INFO: DMA BASE Address = 0xffe01000
SDRAM: ECC initialized successfully with 7995 ms
Setup interrupt controller… IRQ SP at 0x00000000 with size 0x00000400
SDRAM: ECC Enabled
boot device - 2
spi_setup_slave: bus 0 cs 0 max_hz 50MHz mode 3
spi_claim_bus: bus:0 cs:0
cadence_qspi_apb_chipselect : chipselect 0 decode 0
cadence_qspi_apb_config_baudrate_div: ref_clk 350000000Hz sclk 50000000Hz Div 0x3
cadence_qspi_apb_config_baudrate_div: ref_clk 350000000Hz sclk 1000000Hz Div 0xf
cadence_qspi_apb_config_baudrate_div: ref_clk 350000000Hz sclk 50000000Hz Div 0x3
SF: Read data capture delay calibrated to 3 (0 - 6)
SF: Got idcodes
SF: Detected MX66L2G45G with page size 65536, total: 268435456
spi_claim_bus: bus:0 cs:0
cadence_qspi_apb_chipselect : chipselect 0 decode 0
cadence_qspi_apb_config_baudrate_div: ref_clk 350000000Hz sclk 50000000Hz Div 0x3
mkimage signature not found - ih_magic = ffffffff
spi_claim_bus: bus:0 cs:0
cadence_qspi_apb_chipselect : chipselect 0 decode 0
cadence_qspi_apb_config_baudrate_div: ref_clk 350000000Hz sclk 50000000Hz Div 0x3
Jumping to U-Boot
Bad image with no CRC. Image possibly erased

ERROR ### Please RESET the board

Obviously; “mkimage signature not found - ih_magic = ffffffff” but unsure why it cant be read/found.

Any hints and tips are appreciated.

Thanks.

/Eldor