Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 88277C433F5 for ; Thu, 3 Feb 2022 18:19:26 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 51DD483090; Thu, 3 Feb 2022 19:19:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="l7clL7pf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 772C583388; Thu, 3 Feb 2022 19:19:23 +0100 (CET) Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DE70681DCA for ; Thu, 3 Feb 2022 19:19:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf2b.google.com with SMTP id s6so3257512qvv.11 for ; Thu, 03 Feb 2022 10:19:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=GoK7RWf3YWO8WK9mZkXHnEFeg4fBsJWlsrpiqfV/oFM=; b=l7clL7pfC0Ue4tKh4qXnSl8oZ/Q0uy6IiDuvN+kOdJYWzBtoafm56e0Qq0eoSherLM p8SwAqWVyChHc4dCuIRykG0FYtRddgzUVBtaxCSkp1eE2dzGImvqIwi5OqheUyVFAveb 4G6MRlCoe2VFG0Wgq077JljA80e8im7HcYg34= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=GoK7RWf3YWO8WK9mZkXHnEFeg4fBsJWlsrpiqfV/oFM=; b=EKhMExMT3TRAYPV7fFzdHiLqTbMFNLbrlDrLQGrAUNFHah6Y1YRackxQcNuOvNVwkG o9X5zUpvyJM46bfSA01rc8FDaqwBxNVu0UQ8Za0H+11NwrCFi26wYcy9uVRNKn+YfiIZ LQ0mv64G0csorAGsg6imkSA+sLoGHNwMjI7Gg944xuRyO7sHphbjGJT8NIp9eXJjSMVz LgvIZO7kqCrWgFbdIYZbG7tPeTwzP2Hvaqmsue1grg6ayn0pGwBG1mTW0f4w+81S1jSp ppIyvz2Pb0rM1MUAPvrbtVgUElqopvGA6pfNWL7HWrwkj7SoSAYHZRCAvymltiiTkmyP xtFw== X-Gm-Message-State: AOAM531UYgcPNDsIhZnCL81NG1cjCnCzjaua06Q6oGRAhUIfhevMoItG FWXkmYbmgRhaJq0sjMHcfbVtVw== X-Google-Smtp-Source: ABdhPJx4BpdeouwM3DnTVGDfLoLORLEQFG8u7Ghu5hlwGZcHZphCZaqSLlL8jpx8932F7beg/21Hwg== X-Received: by 2002:a05:6214:20ad:: with SMTP id 13mr32108619qvd.40.1643912359716; Thu, 03 Feb 2022 10:19:19 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-2ef0-5dff-fedb-a8ba.res6.spectrum.com. [2603:6081:7b01:cbda:2ef0:5dff:fedb:a8ba]) by smtp.gmail.com with ESMTPSA id o1sm15634488qkp.49.2022.02.03.10.19.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Feb 2022 10:19:19 -0800 (PST) Date: Thu, 3 Feb 2022 13:19:17 -0500 From: Tom Rini To: Wolfgang Denk Cc: Ying-Chun Liu , u-boot@lists.denx.de, "Ying-Chun Liu (PaulLiu)" Subject: Re: [RFC 0/2] A/B firmware update based in eMMC boot partition. Message-ID: <20220203181917.GX7515@bill-the-cat> References: <20220125135535.224061-1-grandpaul@gmail.com> <3678646.1643121809@gemini.denx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0w3sVzSwLDVzzp/e" Content-Disposition: inline In-Reply-To: <3678646.1643121809@gemini.denx.de> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean --0w3sVzSwLDVzzp/e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 25, 2022 at 03:43:29PM +0100, Wolfgang Denk wrote: > Dear Ying-Chun Liu, >=20 > In message <20220125135535.224061-1-grandpaul@gmail.com> you wrote: > > > > I've implemented A/B firmware update based on eMMC hw partitions. > > Normally we have 2 boot partitions on eMMC. One is active and another > > is inactive. We can then flash the firmware to the inactive one and > > make it active. >=20 > We have been doing software updates using U-Boot scripts etc. for > many, many years. But during that time a large number of > restrictions and shortcomings became clear. [snip] I just want to chime in here and agree with the overall point that Wolfgang is making. There are a number of update schemes that handle firmware (to whatever level can be safely done) and I see U-Boot's role here as to support these mechanisms as easily and cleanly as possible (so, watchdog, bootcount, etc, etc) but to not implement a specific scheme directly. --=20 Tom --0w3sVzSwLDVzzp/e Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmH8HKEACgkQFHw5/5Y0 tyyxaAv/eyYnQKSDcujhrx9u4NtmOerJTKdN6EuxO2W+DuRkWUnPsNN+zN6xikoW MPYH6SkrRkau/PxY8ADt8hPaOXGzhsT3I6LPeRwx1Gq8bnx+P7pcOuSv+9Ez15tl 9yiMniy7G1G/z3QNeEnFmzxnGE2j21WvFlnQJUxSi/s3JC101LNSCBmIRwD3oy0c WdLSQ9q6h27io9uW86rPpjhgY36BoC70rcbRMcW0mpFyA8TH4/SqH1x4zUPt3gIc FsdTrm/vdXR3R9y6uZiXePqVnZyXB/DcVHRnBXofNRcw3gjCm7ue+RIG3qSfYxpX 4OYHN2PinP0CzetYJI433gCUr3KOa/ViBcReuzgpoLIC5mppmti5PSgyZdzNOcVy JFzs2n6wOmyCouu/q/fd5EE75Xlo1vOdow160nnPKuQinXyixSYMbfJVsMM3NLJy rzgjoqybwdoYHNj2n1zOCDPChN62XHiCb8VXvlUgGxxbOWB13CuRu2j9b/FNbxiC yTE4SVzk =i0hi -----END PGP SIGNATURE----- --0w3sVzSwLDVzzp/e--