Trying to boot i.MX6SX with SPL from NAND

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

Trying to boot i.MX6SX with SPL from NAND

Jump to solution
2,027 Views
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);
}‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
Labels (2)
Tags (4)
0 Kudos
1 Solution
1,329 Views
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.

View solution in original post

0 Kudos
3 Replies
1,330 Views
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 Kudos
1,329 Views
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 Kudos
1,329 Views
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 Kudos