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);
}
Solved! Go to Solution.
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.
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.
Take a look at configs/gwventana_nand_defconfig for an example of config that uses SPL and NAND on mx6.
Hi mus
nxp software releases described on below link do not support spl uboot,
this may be posted on uboot mail list.
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!
-----------------------------------------------------------------------------------------------------------------------