All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@arm.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 1/5] sunxi: a64: Enable FIT Signature
Date: Fri, 15 Dec 2017 15:31:51 +0000	[thread overview]
Message-ID: <d3f9e444-2720-369a-9c1d-59ec623a6241@arm.com> (raw)
In-Reply-To: <CAD6G_RQSS4c6X-sHk1obmXeUx683bpWMsYcvq-EgD24P_wwqHg@mail.gmail.com>

Hi,

On 15/12/17 15:05, Jagan Teki wrote:
> On Fri, Dec 15, 2017 at 8:06 PM, Andre Przywara <andre.przywara@arm.com> wrote:
>> Hi,
>>
>> On 15/12/17 13:41, Maxime Ripard wrote:
>>> On Thu, Dec 14, 2017 at 02:03:12PM +0530, Jagan Teki wrote:
>>>> On Wed, Dec 13, 2017 at 9:09 PM, Maxime Ripard
>>>> <maxime.ripard@free-electrons.com> wrote:
>>>>> On Wed, Dec 13, 2017 at 11:33:02AM +0530, Jagan Teki wrote:
>>>>>> From: Jagan Teki <jagannadh.teki@gmail.com>
>>>>>>
>>>>>> Enable FIT_SIGNATURE for sunxi a64.
>>>>>>
>>>>>> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
>>>>>> ---
>>>>>> Changes for v3:
>>>>>> - Move imply outside block
>>>>>> Changes for v2:
>>>>>> - Use imply instead of select
>>>>>>
>>>>>>  arch/arm/mach-sunxi/Kconfig | 1 +
>>>>>>  1 file changed, 1 insertion(+)
>>>>>>
>>>>>> diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig
>>>>>> index 1fededd..05e2d47 100644
>>>>>> --- a/arch/arm/mach-sunxi/Kconfig
>>>>>> +++ b/arch/arm/mach-sunxi/Kconfig
>>>>>> @@ -179,6 +179,7 @@ config MACH_SUN50I
>>>>>>       select SUNXI_DRAM_DW_32BIT
>>>>>>       select FIT
>>>>>>       select SPL_LOAD_FIT
>>>>>> +     imply FIT_SIGNATURE
>>>>>
>>>>> I'm really not sure we should force it by default. How much code size
>>>>> is it adding?
>>>>
>>>> Why we need to consider u-boot size? (because it may cross the loader2 size?)
>>>> Here is the delta of u-boot elf
>>>
>>> The same reason than anything else on our arm64 builds lately: we have
>>> a u-boot binary too big for the size compared to our environment offset.
>>
>> I agree, and aside from that I don't see how this is useful:
>> - We don't *need* this for Allwinner boards.
> 
> why? can you elaborate?

I guess *you* have to present why we would need it. Fact is it happily
runs without it, it's just some optional feature. Most users which rely
on the defconfig don't have a need for this. If someone wants to use it,
enabling this is the config is their least problem.

>> - It is not usable without some more setup (which that other doc patch
>> describes).
> 
> doc patch is rejected since we have redundant docs on the same topic.

I know ;-)
As mentioned above, for this feature to be useful you have to go through
quite some other steps, so there is no reason for it to be enabled by
default.

>> - As Maxime mentioned, this is not very helpful on it's own, due to it
>> inherent vulnerability without a protected SPL as well.
>> - No other boards seems to set FIT_SIGNATURE.
> 
> I'm mentioning this again, please check the other platforms as well
> this is verified-boot not secure-boot, other platforms will do use
> same.

Sure, but none of them sets this unconditionally in their Kconfig. And
given that most users are totally happy with an unsigned firmware for
their Allwinner board ...

You could market it as some upsell of your product ;-)

Cheers,
Andre.

  reply	other threads:[~2017-12-15 15:31 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-13  6:03 [U-Boot] [PATCH v3 1/5] sunxi: a64: Enable FIT Signature Jagan Teki
2017-12-13  6:03 ` [U-Boot] [PATCH v3 2/5] sunxi: arm64: Increase CONFIG_SYS_BOOTM_LEN to 32MB Jagan Teki
2017-12-13 15:34   ` Maxime Ripard
2017-12-13  6:03 ` [U-Boot] [PATCH v3 3/5] docs: Document verified-boot for sunxi a64 Jagan Teki
2017-12-13 15:38   ` Maxime Ripard
2017-12-13 16:11     ` Jagan Teki
2017-12-14  9:07       ` Maxime Ripard
2017-12-13 15:59   ` Quentin Schulz
2017-12-13 16:16     ` Jagan Teki
2017-12-13 16:25       ` Andre Przywara
2017-12-13 16:35         ` Jagan Teki
2017-12-13 16:47           ` Andre Przywara
2017-12-14  1:28             ` Tom Rini
2017-12-13  6:03 ` [U-Boot] [PATCH v3 4/5] docs: README.sunxi: Move sunxi64 documentation Jagan Teki
2017-12-13 15:38   ` Maxime Ripard
2017-12-13 16:21     ` Jagan Teki
2017-12-13 16:12   ` Andre Przywara
2017-12-14  1:30     ` Tom Rini
2017-12-13  6:03 ` [U-Boot] [PATCH v3 5/5] docs: README.sunxi: Move nand documentation Jagan Teki
2017-12-13 15:39 ` [U-Boot] [PATCH v3 1/5] sunxi: a64: Enable FIT Signature Maxime Ripard
2017-12-13 16:08   ` [U-Boot] [linux-sunxi] " Peter Korsgaard
2017-12-14  8:16     ` Jagan Teki
2017-12-14  8:51       ` Peter Korsgaard
2017-12-14  8:33   ` [U-Boot] " Jagan Teki
2017-12-15 13:41     ` Maxime Ripard
2017-12-15 14:36       ` Andre Przywara
2017-12-15 15:05         ` Jagan Teki
2017-12-15 15:31           ` Andre Przywara [this message]
2017-12-15 15:02       ` Jagan Teki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d3f9e444-2720-369a-9c1d-59ec623a6241@arm.com \
    --to=andre.przywara@arm.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.