I used the below items for the booting from Quad SPI-NOR.
- MFGTool Script, ucl2.xml
<!-- U-boot -->
<CMD state="Updater" type="push" body="send" file="files/u-boot-imx6sxsabresd_qspi2.imx" ifdev="MX6SX">Sending u-boot.bin</CMD>
<CMD state="Updater" type="push" body="$ dd if=$FILE of=/dev/mtd0 bs=1k seek=4">write U-Boot to NOR flash</CMD>
<!-- burn the kernel: -->
<CMD state="Updater" type="push" body="send" file="files/zImage">Sending kernel zImage</CMD>
<CMD state="Updater" type="push" body="$ dd if=$FILE of=/dev/mtd0 bs=1M seek=10">write kernel to NOR flash</CMD>
<!-- burn DTB -->
<CMD state="Updater" type="push" body="send" file="files/zImage-imx6sx-sdb.dtb">Sending DTB Image</CMD>
<CMD state="Updater" type="push" body="$ dd if=$FILE of=/dev/mtd0 bs=1M seek=8">write DTB to NOR flash</CMD>
- u-boot environment
setenv loadaddr 0x80800000
setenv fdt_addr 0x83000000
setenv consoleinfo 'console=ttymxc0,115200'
setenv rootfsinfo 'root=/dev/mmcblk0p2 rootwait rw'
setenv displayinfo 'video=mxcfb0:dev=lcd,if=RGB565'
setenv special 'uart_at_osc'
setenv bootargsset 'setenv bootargs ${consoleinfo} ${rootfsinfo} ${displayinfo} ${special}'
setenv bootcmd 'run bootargsset; sf probe; sf read ${loadaddr} 0xA00000 0x2000; sf read ${fdt_addr} 0x800000 0x800; bootz ${loadaddr} - ${fdt_addr}'
But Kernel was not operated with the below log.
- Booting Log
SF: Detected N25Q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
SF: 8192 bytes @ 0xa00000 Read: OK
SF: 2048 bytes @ 0x800000 Read: OK
Kernel image @ 0x80800000 [ 0x000000 - 0x549dd0 ]
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Using Device Tree in place at 83000000, end 8300ef36
No gpc device node -11, force to ldo-enable.
Starting kernel ...