imx6dl uboot plugin mode can't boot

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

imx6dl uboot plugin mode can't boot

1,093 Views
kshengyang
Contributor I

Hi ALL

    we want to bring up imx6dl with uboot plugin mode,uboot code from freescale official git repository uboot-imx,branch is imx_v2015.04_4.1.15_1.0.0_ga.use defconfig is configs/mx6qsabreauto_defconfig.boot mode is emmc.

     when we try uboot DCD mode, burn u-boot.imx into emmc boot partition, uboot booting sucessful. Then I uncomment

include/configs/mx6sabre_common.h Line 19 #define CONFIG_USE_PLUGIN,make plugin mode work,and compile u-boot.imx,burn to emmc, uboot can't boot.

     DDR was calibrated,and calibration data already fill to mx6dl.cfg and plugin.S macro imx6dlsabreauto_ddr_setting.

     I add a macro to output clk on GPIO0 to debug:     

.macro imx6_pll2_clko1
ldr r0, =IOMUXC_BASE_ADDR
ldr r1, =0x0
str r1, [r0, #0x20C]

ldr r0, =CCM_BASE_ADDR
ldr r1, =0x81
str r1, [r0, #0x060]
.endm         

In arch/arm/include/asm/arch-mx6/mx6_plugin.S

when call imx6_pll2_clko1 after imx6q_qos_setting like:

 imx6_ddr_setting

imx6_clock_gating
imx6_qos_setting
imx6_pll2_clko1

I can measure the waveform

when call when call imx6_pll2_clko1 after after_calling_rom___pu_irom_hwcnfg_setup like:

after_calling_rom___pu_irom_hwcnfg_setup:

imx6_pll2_clko1

can't measure the waveform.

     Attachment is my my u-boot.imx.

     Anyone knows why plugin uboot can't boot? 

Labels (1)
0 Kudos
4 Replies

755 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ksheng

unfortunately rom sources are not available, seems rom does not expect customer
codes in that place of plugin return procedure.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

755 Views
kshengyang
Contributor I

Hi igorpadykov

I try to boot this uboot in differrent emmc boot configure.

When set emmc in normal speed,8 bit SDR boot mode,plugin uboot can boot normally.

When set emmc in fast spped,8 bit DDR boot mode, plugin uboot can't boot.

Does plugin uboot support emmc fastboot mode? or should I config something in plugin?

Ths 

0 Kudos

517 Views
disheng
Contributor III

Hello, may I ask how you solve the problem? Thank you

0 Kudos

755 Views
igorpadykov
NXP Employee
NXP Employee

emmc in fast speed 8 bit DDR boot mode may fail due to noise issues

please check suggestions on https://community.nxp.com/thread/332110 

~igor

0 Kudos