SPL not compiling for imx6ul.

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

SPL not compiling for imx6ul.

1,373 次查看
sachindhoundiya
Contributor II

hello all,

I have down loaded u-boot from uboot-imx.git - Freescale i.MX u-boot Tree 

when i compile u-boot source by configure: make mx6ul_14x14_evk_defconfig it generate u-boot.bin and from that by using command u-boot.imx is generated. But this u-boot is not working on board so i found that first SPL has to be build and both SPL and U-boot.imx will boot the board from U-Boot build not creating u-boot.imx .

Problem :

While compiling my SPL script.

/*===================================================*/

#!/bin/bash

source /opt/fsl-imx-x11/3.14.52-1.1.1/environment-setup-cortexa7hf-vfp-neon-poky-linux-gnueabi 

make distclean

make mrproper

make mx6ul_14x14_evk_spl_defconfig

make all

*/===============================================*/

After compiling other file it will stuck in compiling soft_spi_legacy.c

//////+++++  Error are as below  +++++//////

drivers/spi/soft_spi_legacy.c: In function 'spi_claim_bus':
drivers/spi/soft_spi_legacy.c:87:3: warning: implicit declaration of function 'SPI_SCL' [-Wimplicit-function-declaration]
SPI_SCL(1);
^
drivers/spi/soft_spi_legacy.c: In function 'spi_xfer':
drivers/spi/soft_spi_legacy.c:150:3: warning: implicit declaration of function 'SPI_SDA' [-Wimplicit-function-declaration]
SPI_SDA(tmpdout & 0x80);
^
drivers/spi/soft_spi_legacy.c:151:3: error: 'SPI_DELAY' undeclared (first use in this function)
SPI_DELAY;
^
drivers/spi/soft_spi_legacy.c:151:3: note: each undeclared identifier is reported only once for each function it appears in
drivers/spi/soft_spi_legacy.c:157:13: error: 'SPI_READ' undeclared (first use in this function)
tmpdin |= SPI_READ;
^
make[1]: *** [drivers/spi/soft_spi_legacy.o] Error 1
make: *** [drivers/spi] Error 2

how to get solved this  problem i found in many file where SPI_READ , SPI_SDA , SPI_CLK function are in u-boot code but can't find that solution.

thanks in advance.

标签 (2)
0 项奖励
回复
1 回复

831 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Sachin

nxp does not use spl uboot for i.MX6 processors, one can try some third party

releases like below

ventana/bootloader – Gateworks 

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

0 项奖励
回复