Trying to boot i.MX6SX with SPL from NAND

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

Trying to boot i.MX6SX with SPL from NAND

跳至解决方案
3,026 次查看
mus
Contributor III

We successfully compiled uBoot after adding the SPL related functions to our custom board file, which is copied from the sabresd. Using the mfg_tool everything is written to NAND, but when booting, there is no console. Same UART iomux settings work if the board boots directly to uboot.imx, but no console output when booting to SPL. 

Below is the init for SPL. How do we debug this? Is there a tutorial to follow to add SPL properly for i.MX6SX and write all to NAND? Does uBoot from git.freescale.com support SPL building for NAND?

void board_init_f(ulong dummy)
{
     /* setup AIPS and disable watchdog */
     arch_cpu_init();

     //ccgr_init();

     /* iomux */
     board_early_init_f();

     /* setup GP timer */
     timer_init();

     /* UART clocks enabled and gd valid - init serial console */
     preloader_console_init();
     puts("SPL\n");

     /* DDR initialization */
     //spl_dram_init();

     /* Clear the BSS. */
     memset(__bss_start, 0, __bss_end - __bss_start);

     /* load/boot image from boot device */
     board_init_r(NULL, 0);
}‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
标签 (2)
标记 (4)
0 项奖励
回复
1 解答
2,328 次查看
mus
Contributor III

 igorpadykov‌ I believe NXP uBoot supports SPL. It is all over the code.

FabioEstevam‌ Our problem was not the defconfig of uBoot, but to build SPL, we didn't issue the correct make command.

Now, SPL is compiled and booting from NAND.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,329 次查看
mus
Contributor III

 igorpadykov‌ I believe NXP uBoot supports SPL. It is all over the code.

FabioEstevam‌ Our problem was not the defconfig of uBoot, but to build SPL, we didn't issue the correct make command.

Now, SPL is compiled and booting from NAND.

0 项奖励
回复
2,328 次查看
fabio_estevam
NXP Employee
NXP Employee

Take a look at configs/gwventana_nand_defconfig for an example of config that uses SPL and NAND on mx6.

0 项奖励
回复
2,328 次查看
igorpadykov
NXP Employee
NXP Employee

Hi mus

nxp software releases described on below link do not support spl uboot,

this may be posted on uboot mail list.

i.MX Software|NXP 

U-Boot Info Page 

some third party uboot releases support spl:

VAR-SOM-MX6 NAND Flash Burning - Variscite Wiki 

http://www.amber-lab.com/wiki/amber-board-tutorials/u-boot-for-var-som-mx6/ 

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

0 项奖励
回复