iMX6ul-EVK: u-boot in qspi

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX6ul-EVK: u-boot in qspi

Jump to solution
1,655 Views
jimbrooke
Contributor II

Hi,

I don't seem to be able to figure out how to get one of the NXP-provided u-boot images to load from the qspi on the i.MX6ul-EVK.  I'm trying to use u-boot-imx6ulevk_qspi1.imx that's included with the L4.1.15-1.0.0_ga mfg-tools package.

I am able to load this u-boot image via imx_usb_loader, and get to a u-boot prompt while running out of RAM.  I then issue commands to retrieve the u-boot-imx6ulevk_qspi1.imx image via tftp and write it to qspi:

tftp $loadaddr /tftpboot/u-boot-imx6ulevk_qspi1.imx

sf probe 0

sf erase 0 80000

sf write $loadaddr 400 40000

When I reset the board, I don't get any u-boot output on the console.  Any suggestions?  Am I using the correct u-boot image for the EVK?  The IVT offset is 0x400 in QSPI?

I have the boot-mode switches at On-Off (Internal boot) and the boot device switches all Off (QSPI).

Any ideas?

Labels (1)
0 Kudos
1 Solution
819 Views
igorpadykov
NXP Employee
NXP Employee

Hi Jim

0x400 is used for writing QuadSPI Configuration Parameters

sect.8.6.3 QuadSPI Configuration Parameters i.MX6UL Reference Manual

http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6ULRM.pdf
(file qspi-nor-micron-n25q256a-config in Mfg Tools/..Profiles/Linux/OS Firmware/files)
then uboot is programmed at 0x1000 offset. One can check commands in
mfgtool2-yocto-mx-evk-qspi-nor-n25q256a.vbs, ucl2.xml scripts
and writing qspi using mfg tool (run vbs script). 

http://www.nxp.com/webapp/Download?colCode=IMX6_L4.1.15_1.1.0_MFG_TOOL&appType=license&location=null... 

In general one can write qspi using Mfg Tools then read and save QuadSPI Configuration Parameters

to file using uboot (please refer to attached Linux Guide), then use this file with imx_usb_loader.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
819 Views
jimbrooke
Contributor II

Thank Igor,

I've been fooled a few times by this documentation where "SPI EEPROM" does not include QSPI, and QSPI == NOR.

I just wrote a quick C program to convert the qspi-nor-micron-n25q256a-config into a 512-byte binary file to place at 0x400.  I moved u-boot to 0x1000 and everything works great.

Thank you again for your quick reply

mh

0 Kudos
820 Views
igorpadykov
NXP Employee
NXP Employee

Hi Jim

0x400 is used for writing QuadSPI Configuration Parameters

sect.8.6.3 QuadSPI Configuration Parameters i.MX6UL Reference Manual

http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6ULRM.pdf
(file qspi-nor-micron-n25q256a-config in Mfg Tools/..Profiles/Linux/OS Firmware/files)
then uboot is programmed at 0x1000 offset. One can check commands in
mfgtool2-yocto-mx-evk-qspi-nor-n25q256a.vbs, ucl2.xml scripts
and writing qspi using mfg tool (run vbs script). 

http://www.nxp.com/webapp/Download?colCode=IMX6_L4.1.15_1.1.0_MFG_TOOL&appType=license&location=null... 

In general one can write qspi using Mfg Tools then read and save QuadSPI Configuration Parameters

to file using uboot (please refer to attached Linux Guide), then use this file with imx_usb_loader.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos