iMX6ul-EVK: u-boot in qspi

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

iMX6ul-EVK: u-boot in qspi

跳至解决方案
1,695 次查看
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?

标签 (1)
0 项奖励
1 解答
859 次查看
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 项奖励
2 回复数
859 次查看
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 项奖励
860 次查看
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 项奖励