Trying to boot i.MX6SX with SPL from NAND

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Trying to boot i.MX6SX with SPL from NAND

ソリューションへジャンプ
3,072件の閲覧回数
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,374件の閲覧回数
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,375件の閲覧回数
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,374件の閲覧回数
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,374件の閲覧回数
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 件の賞賛
返信