[U-Boot] [PATCH] warp7: Adjust CONFIG_MMCROOT for booting a mainline kernel

Fabio Estevam festevam at gmail.com
Thu Aug 25 23:01:14 CEST 2016


On Thu, Aug 25, 2016 at 5:56 PM, Otavio Salvador
<otavio.salvador at ossystems.com.br> wrote:

> Well ...
>
> warp7: Select secure boot
>
> In order to boot NXP 4.1.15 we need to boot in secure mode.
>
> So enable the variable CONFIG_ARMV7_BOOT_SEC_DEFAULT by default.
>
> Signed-off-by: Breno Lima <breno.lima at nxp.com>
>
> From Breno, sent to the mailing list, does fix this and so it does work.

No, this is only available in u-boot-fslc.

>
>> To better handle NXP kernel I can add a 'warp7_secure_defconfig' and
>> then do like this
>> to handle the mmcroot:
>>
>> --- a/include/configs/warp7.h
>> +++ b/include/configs/warp7.h
>> @@ -113,7 +113,11 @@
>>
>>  #define CONFIG_SYS_MMC_ENV_DEV         0
>>  #define CONFIG_SYS_MMC_ENV_PART                0
>> -#define CONFIG_MMCROOT                 "/dev/mmcblk2p2"
>> +#ifdef CONFIG_ARMV7_BOOT_SEC_DEFAULT
>> +#define CONFIG_MMCROOT                 "/dev/mmcblk2p2" /* NXP kernel */
>> +#else
>> +#define CONFIG_MMCROOT                 "/dev/mmcblk1p2" /* Mainline kernel */
>> +#endif
>
> Someone using mainline kernel is expected to know how to set mmcroot
> variable or so. I would not include this patch at all.

This would be a bad customer experience. Much better when things work
out of the box.


More information about the U-Boot mailing list