[U-Boot] [PATCH v3 3/3] sunxi: add support for Lichee Pi Zero

André Przywara andre.przywara at arm.com
Thu Feb 16 01:32:19 UTC 2017


On 14/02/17 07:36, Maxime Ripard wrote:
> On Mon, Feb 13, 2017 at 04:12:04PM +0800, Icenowy Zheng wrote:
>>
>> 2017年2月13日 15:17于 Maxime Ripard <maxime.ripard at free-electrons.com>写道:
>>>
>>> Hi, 
>>>
>>> On Sat, Feb 11, 2017 at 07:11:02PM +0800, Icenowy Zheng wrote: 
>>>> @@ -0,0 +1,13 @@ 
>>>> +CONFIG_ARM=y 
>>>> +CONFIG_ARCH_SUNXI=y 
>>>> +# CONFIG_ARMV7_NONSEC is not set 
>>>
>>> Why? It doesn't have Trustzone? 
>>
>> The CPU has Secure mode, but no TrustZone Peripheral Controller,
>> neither SMP.
> 
> Still, booting in HYP and having PSCI sounds like a good idea.

Yes, so without this option Linux will run in secure state, if I am not
mistaken, which is discouraged. Instead we should enter Linux in
(non-secure) HYP mode [1], which will allow KVM, for instance. So I'd
recommend to remove this last line.
Whether we need PSCI on an UP system is a separate question, I don't
know from the top of my head if ARM(32) uses it for suspend/resume. But
anyway this is not implemented in U-Boot's PSCI implementation, IIRC.
So for just disabling PSCI we could use:

+# CONFIG_ARMV7_PSCI is not set

Cheers,
Andre.

[1] http://lxr.free-electrons.com/source/Documentation/arm/Booting#L188



More information about the U-Boot mailing list