[RFC] mx6cuboxi: Enable OF_CONTROL and DM in SPL

Walter Lozano walter.lozano at collabora.com
Wed Feb 5 14:04:42 CET 2020


Hi Baruch,

Thanks for your comments. My replay below.

On 4/2/20 10:41, Baruch Siach wrote:
> Hi Walter,
>
> Thanks for the patch.
>
> One comment below.
>
> On Wed, Jan 29, 2020 at 10:58:07AM -0300, Walter Lozano wrote:
>> Make an additional step to add full DM support to mx6cuboxi, including its support for SPL
>>
>> With this new configuration SPL image is 50 KB, higher than the
>> 38 KB from the previous version, but it still under the 68 KB limit.
>>
>> Signed-off-by: Walter Lozano <walter.lozano at collabora.com>
>> ---
>>   arch/arm/dts/imx6qdl-hummingboard2-emmc-som-v15-u-boot.dtsi | 4 ++++
>>   configs/mx6cuboxi_defconfig                                 | 3 +++
>>   2 files changed, 7 insertions(+)
>>
>> diff --git a/arch/arm/dts/imx6qdl-hummingboard2-emmc-som-v15-u-boot.dtsi b/arch/arm/dts/imx6qdl-hummingboard2-emmc-som-v15-u-boot.dtsi
>> index d302b2e275..b1364a0bbf 100644
>> --- a/arch/arm/dts/imx6qdl-hummingboard2-emmc-som-v15-u-boot.dtsi
>> +++ b/arch/arm/dts/imx6qdl-hummingboard2-emmc-som-v15-u-boot.dtsi
>> @@ -34,3 +34,7 @@
>>   &usdhc1 {
>>   	status = "disabled";
>>   };
>> +
>> +&usdhc2 {
>> +	u-boot,dm-pre-reloc;
>> +};
> Have you tested boot from eMMC?
>
> You would most likely need to add &usdhc3 to SPL DT for that.
Good point. I haven't tested booting from eMMC as I can only boot from 
SD because of eFuse settings. However after re thinking it should be 
still possible to test it by keeping SPL on SD and placing U-Boot on eMMC.

Regards,

Walter
>
> baruch
>
>> diff --git a/configs/mx6cuboxi_defconfig b/configs/mx6cuboxi_defconfig
>> index 23ce485f43..ae8d920260 100644
>> --- a/configs/mx6cuboxi_defconfig
>> +++ b/configs/mx6cuboxi_defconfig
>> @@ -24,6 +24,7 @@ CONFIG_USE_PREBOOT=y
>>   CONFIG_PREBOOT="if hdmidet; then usb start; setenv stdin  serial,usbkbd; setenv stdout serial,vga; setenv stderr serial,vga; else setenv stdin  serial; setenv stdout serial; setenv stderr serial; fi;"
>>   CONFIG_BOUNCE_BUFFER=y
>>   CONFIG_BOARD_EARLY_INIT_F=y
>> +CONFIG_SPL_SEPARATE_BSS=y
>>   CONFIG_SPL_FS_EXT4=y
>>   CONFIG_SPL_I2C_SUPPORT=y
>>   CONFIG_SPL_WATCHDOG_SUPPORT=y
>> @@ -36,6 +37,7 @@ CONFIG_CMD_CACHE=y
>>   CONFIG_CMD_EXT4_WRITE=y
>>   # CONFIG_SPL_PARTITION_UUIDS is not set
>>   CONFIG_OF_CONTROL=y
>> +CONFIG_SPL_OF_CONTROL=y
>>   CONFIG_DEFAULT_DEVICE_TREE="imx6dl-hummingboard2-emmc-som-v15"
>>   CONFIG_OF_LIST="imx6dl-hummingboard2-emmc-som-v15 imx6q-hummingboard2-emmc-som-v15"
>>   CONFIG_MULTI_DTB_FIT=y
>> @@ -44,6 +46,7 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y
>>   CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
>>   CONFIG_NET_RANDOM_ETHADDR=y
>>   CONFIG_DM=y
>> +CONFIG_SPL_DM=y
>>   CONFIG_DWC_AHSATA=y
>>   CONFIG_DM_GPIO=y
>>   CONFIG_DM_MMC=y


More information about the U-Boot mailing list