I want to set imx6q-sdb board boot from spi flash, and I weld a chip (25P32) on U14of imx6q-sdb board.
And I can use sf command to detect/erase/write the Norflash successfully.
=> tftp bootrom.bin
Using FEC device
TFTP from server 192.168.1.101; our IP address is 192.168.1.10
Filename 'bootrom.bin'.
Load address: 0x12000000
Loading: #############################
468.8 KiB/s
done
Bytes transferred = 419852 (6680c hex)
=> sf probe
SF: Detected M25P32 with page size 256 Bytes, erase size 64 KiB, total 4 MiB
=> sf erase 0 50000
SF: 327680 bytes @ 0x0 Erased: OK
=> sf write 12000000 0 6680c
SF: 419852 bytes @ 0x0 Written: OK
And I turn on the DIP 5, and DIP 6 of SW6.
But now CPU can not boot from SPI-flash.
And the bootloader I used can work on SD card successfully.
Thank you.