Re: [Suit] CBOR and Firmware Word Alignment
Rønningstad, Øyvind <Oyvind.Ronningstad@nordicsemi.no> Thu, 28 June 2018 06:59 UTC
Return-Path: <Oyvind.Ronningstad@nordicsemi.no>
X-Original-To: suit@ietfa.amsl.com
Delivered-To: suit@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 71B60130DC2 for <suit@ietfa.amsl.com>; Wed, 27 Jun 2018 23:59:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.02
X-Spam-Level:
X-Spam-Status: No, score=-1.02 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FROM_EXCESS_BASE64=0.979, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nordicsemi.no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r7MQPzDA2unD for <suit@ietfa.amsl.com>; Wed, 27 Jun 2018 23:59:12 -0700 (PDT)
Received: from ironport01.nordicsemi.no (mx01.nordicsemi.no [194.19.86.146]) (using TLSv1.2 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8EF3F12F295 for <suit@ietf.org>; Wed, 27 Jun 2018 23:59:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nordicsemi.no; l=16467; s=default; t=1530169151; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=HoJVZfc/yKYZXv4cIGQQ5jJbms16FtHmZxuWy4dG7Q4=; b=VLG1A57zcW+Xh6A9AyVCKqOlQTnWvzRX0jyIz5wdHE77OtXiqgai+YID cqJ8L92Kvbf6HXx/eTZfxnIMFs+XAaRzF6vyCkD8slr9k5AW7OJfZpvMT S5mlx232XbUPX0qKPnZzqK93h2CQVHTqB9oPVKjpiYLO6dXqatzWhgWYf E=;
X-IronPort-AV: E=Sophos; i="5.51,282,1526335200"; d="scan'208,217"; a="11133113"
From: "Rønningstad, Øyvind" <Oyvind.Ronningstad@nordicsemi.no>
To: Carsten Bormann <cabo@tzi.org>
CC: Michael Richardson <mcr+ietf@sandelman.ca>, suit <suit@ietf.org>
Thread-Topic: [Suit] CBOR and Firmware Word Alignment
Thread-Index: AQHUDXpqlZOfRiTqM06CKoHAYhbheKRzD3eAgACY7TD///x1gIABmbHQ
Date: Thu, 28 Jun 2018 06:59:06 +0000
Message-ID: <88b73191a7344beab90cf6e6aa831db1@nordicsemi.no>
References: <5DF0B5F0-85E2-4681-9581-E28A3F0A5446@intrinsic-id.com> <19378.1530055961@localhost> <de4c2bdc8e944f6691591ddd71fb6736@nordicsemi.no> <45FFC315-6D5A-4E08-BE4C-0DE2DEBA3C19@tzi.org>
In-Reply-To: <45FFC315-6D5A-4E08-BE4C-0DE2DEBA3C19@tzi.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [192.9.200.83]
Content-Type: multipart/alternative; boundary="_000_88b73191a7344beab90cf6e6aa831db1nordicsemino_"
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/suit/8kwwpEmTSEvzDE2P5XuDNcDvRkE>
Subject: Re: [Suit] CBOR and Firmware Word Alignment
X-BeenThere: suit@ietf.org
X-Mailman-Version: 2.1.26
Precedence: list
List-Id: Software Updates for Internet of Things <suit.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/suit>, <mailto:suit-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/suit/>
List-Post: <mailto:suit@ietf.org>
List-Help: <mailto:suit-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/suit>, <mailto:suit-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 28 Jun 2018 06:59:16 -0000
Definitely. I’m not entirely convinced we need a container format though. The order of blobs in the stream could be implicit, and size information is already present in the manifests. From: Carsten Bormann [mailto:cabo@tzi.org] Sent: 27. juni 2018 10:27 To: Rønningstad, Øyvind <Oyvind.Ronningstad@nordicsemi.no> Cc: Michael Richardson <mcr+ietf@sandelman.ca>; suit <suit@ietf.org> Subject: Re: [Suit] CBOR and Firmware Word Alignment So what is the container format for delivering manifest and image? You could solve the problem there. (eg, round up before spending the next thing.) Sent from mobile On 27. Jun 2018, at 08:46, Rønningstad, Øyvind <Oyvind.Ronningstad@nordicsemi.no<mailto:Oyvind.Ronningstad@nordicsemi.no>> wrote: -----Original Message----- From: Suit [mailto:suit-bounces@ietf.org] On Behalf Of Michael Richardson Sent: 27. juni 2018 01:33 To: suit <suit@ietf.org<mailto:suit@ietf.org>> Subject: Re: [Suit] CBOR and Firmware Word Alignment Paul Lambert <paul.lambert@intrinsic-id.com<mailto:paul.lambert@intrinsic-id.com>> wrote: Has any thought gone into word alignment issues? Many platforms require firmware or other data objects to be word aligned. It waould be especially desirable to have large objects (like the firmware) be packaged such that the data does not have to be copied to a new location just to ensure word alignment. Word alignment would also facilitate in-place decryption of the firmeare. AFAIK, the firmware image is not *in* the manifest, so the actual firmware alignment does not depend upon any feature of the manifest. The firmware image can be put anywhere one likes. I find it unlikely that the manifest contents will need any specific alignment for a bulk operation. If so, it's small enough to copy around the place. Over on the mcuboot list, it seems that they currently putting their image TLV at the end of the firmware image, and they will place the manifest there. That would seem to align the firmware image nicely. In some cases it makes sense to concatenate the payload after the manifest to simplify delivery, In which case I think it would be useful to have the option of padding. There could be a bstr padding entry at the end of the manifest, or maybe a padding extension. _______________________________________________ Suit mailing list Suit@ietf.org<mailto:Suit@ietf.org> https://www.ietf.org/mailman/listinfo/suit
- Re: [Suit] CBOR and Firmware Word Alignment Carsten Bormann
- Re: [Suit] CBOR and Firmware Word Alignment
- Re: [Suit] CBOR and Firmware Word Alignment Michael Richardson
- Re: [Suit] CBOR and Firmware Word Alignment Carsten Bormann
- [Suit] CBOR and Firmware Word Alignment Paul Lambert
- Re: [Suit] CBOR and Firmware Word Alignment David Brown
- Re: [Suit] CBOR and Firmware Word Alignment