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 */
/* 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 */