[U-Boot] i.MX6: u-boot,dm-pre-reloc block U-Boot

Lokesh Vutla lokeshvutla at ti.com
Tue May 9 14:19:00 UTC 2017



On Tuesday 09 May 2017 04:35 PM, Jagan Teki wrote:
> Hi All,
> 
> I'm trying to add SPL_OF_CONTROL for i.MX6UL, with usdhc1 and gpio1
> nodes are marking as "u-boot,dm-pre-reloc" like

Did you try "u-boot,dm-spl" instead?


> 
> --- a/arch/arm/dts/imx6ul.dtsi
> +++ b/arch/arm/dts/imx6ul.dtsi
> @@ -129,6 +129,7 @@
>         };
> 
>         soc {
> +               u-boot,dm-pre-reloc;
>                 #address-cells = <1>;
>                 #size-cells = <1>;
>                 compatible = "simple-bus";
> @@ -180,6 +181,7 @@
>                 };
> 
>                 aips1: aips-bus at 02000000 {
> +                       u-boot,dm-pre-reloc;
>                         compatible = "fsl,aips-bus", "simple-bus";
>                         #address-cells = <1>;
>                         #size-cells = <1>;
> @@ -405,6 +407,7 @@
>                         };
> 
>                         gpio1: gpio at 0209c000 {
> +                               u-boot,dm-pre-reloc;
>                                 compatible = "fsl,imx6ul-gpio",
> "fsl,imx35-gpio";
>                                 reg = <0x0209c000 0x4000>;
>                                 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
> @@ -724,6 +727,7 @@
>                 };
> 
>                 aips2: aips-bus at 02100000 {
> +                       u-boot,dm-pre-reloc;
>                         compatible = "fsl,aips-bus", "simple-bus";
>                         #address-cells = <1>;
>                         #size-cells = <1>;
> @@ -781,6 +785,7 @@
>                         };
> 
>                         usdhc1: usdhc at 02190000 {
> +                               u-boot,dm-pre-reloc;
>                                 compatible = "fsl,imx6ul-usdhc",
> "fsl,imx6sx-usdhc";
>                                 reg = <0x02190000 0x4000>;
>                                 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
> 
> SPL is loading fine from MMC but block the U-Boot that means we can't
> see U-Boot log on console.

Any chance you can try enabling early debug? Since enabling pre-reloc is
going for a toss, I guess your malloc size is going for a toss. Can you
try increasing initial malloc size?

Thanks and regards,
Lokesh

> 
> But with un-marking "u-boot,dm-pre-reloc" from 'aips1' node and build
> u-boot works fine, and the same can unallocated gpio1 in during SPL
> bind.
> 
> thanks!
> 


More information about the U-Boot mailing list