AnsweredAssumed Answered

Trying to boot i.MX6SX with SPL from NAND

Question asked by mus on Mar 13, 2018
Latest reply on Mar 14, 2018 by mus

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 support SPL building for NAND?


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


     /* iomux */

     /* setup GP timer */

     /* UART clocks enabled and gd valid - init serial console */

     /* DDR initialization */

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

     /* load/boot image from boot device */
     board_init_r(NULL, 0);