From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 263FCC433EF for ; Tue, 26 Oct 2021 13:35:10 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 50BE760EB4 for ; Tue, 26 Oct 2021 13:35:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 50BE760EB4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A9E928352A; Tue, 26 Oct 2021 15:35:05 +0200 (CEST) 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="brntxsAo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5D2D180F1A; Tue, 26 Oct 2021 15:34:50 +0200 (CEST) Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) (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 422F4833E3 for ; Tue, 26 Oct 2021 15:34:46 +0200 (CEST) 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-qk1-x734.google.com with SMTP id bk35so808802qkb.6 for ; Tue, 26 Oct 2021 06:34:46 -0700 (PDT) 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=IIEvGnTjNuJXIMfd2uV7R6pnnrgNO+897OelaZrKEGI=; b=brntxsAovc8bs2N4L9dssX62XL3Q6LKhUmfkWk7u5jix3uWIjqV2Y+EKCzSWoeAEW0 RJdFDesjJ0K0ut+SZxtEOAr7Xmi6Hojy+/I916zcVCFdUBZry+JOAij+kPOYdrTi0VoF k5YCjXGN60pXlk/wOlHXCLWsPNPQwhH3ZDqho= 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=IIEvGnTjNuJXIMfd2uV7R6pnnrgNO+897OelaZrKEGI=; b=kA4wsZ3PVMX++3wRy9JYteLcTgtJBhY4iRieTKLpZKbG+naa3ZAd2i0DNLOaPZzk7R p8Dvyx5MSx4LeTm+wHJgcQlf9mWSJfyj7kR5viLsIQ3tz28Av5A3FHPP2X85c4xv05H6 IIf3x6pA0ViGvKflNP/ZyWQzXqLCTmtm+HhQuS6ZGhXaJIllwGwgyVPq39ICZDsKY6cf q+Woa9DcvFVukypl62HaQho4uhEN6xwDStIV0CzWpW1oXKrtAK1egysLaaoRsQ/3NSKH 31PheShJmuZ9Zg66TfBCTZ/LNcfM4+A6+37EFa/rceWzU87gCkF/jNLA+/z7SCf84Iix kMEw== X-Gm-Message-State: AOAM533/vnkiCHlomEuSnIT7JM5neiwGVMlT9lRFFg7hRIXpblsvTCLI 1dEIoM3w6jHMBAtOpHFdgmeUVg== X-Google-Smtp-Source: ABdhPJzwFEIWhZlCtR2cMNrOJK1L13POcMY3Mb0ElxOwMqZbyW4DDG81cgbIyS/BNRIG8OtQpNfBbw== X-Received: by 2002:a37:b4c2:: with SMTP id d185mr19025950qkf.504.1635255284650; Tue, 26 Oct 2021 06:34:44 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-9d55-b872-362e-0c9f.res6.spectrum.com. [2603:6081:7b01:cbda:9d55:b872:362e:c9f]) by smtp.gmail.com with ESMTPSA id o14sm11738310qtv.91.2021.10.26.06.34.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Oct 2021 06:34:44 -0700 (PDT) Date: Tue, 26 Oct 2021 09:34:42 -0400 From: Tom Rini To: Marek Vasut Cc: u-boot@lists.denx.de, Fabio Estevam , Jaehoon Chung , Peng Fan , Stefano Babic Subject: Re: [PATCH v2] env: mmc: Add support for redundant env in both eMMC boot partitions Message-ID: <20211026133442.GG8284@bill-the-cat> References: <20211017172336.47710-1-marex@denx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="oFbHfjnMgUMsrGjO" Content-Disposition: inline In-Reply-To: <20211017172336.47710-1-marex@denx.de> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean --oFbHfjnMgUMsrGjO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 17, 2021 at 07:23:36PM +0200, Marek Vasut wrote: > Currently the MMC environment driver supports storing redundant environme= nt > only in one eMMC partition at different offsets. This is sub-optimal, sin= ce > if this one boot partition is erased, both copies of environment are lost. > Since the eMMC has two boot partitions, add support for storing one copy = of > environment in each of the two boot partitions. >=20 > To enable this functionality, select CONFIG_SYS_REDUNDAND_ENVIRONMENT to > indicate redundant environment should be used. Set CONFIG_SYS_MMC_ENV_PART > to 1 to indicate environment should be stored in eMMC boot partition. Set > CONFIG_ENV_OFFSET equal to CONFIG_ENV_OFFSET_REDUND, and both to the offs= et > from start of eMMC boot partition where the environment should be located. >=20 > Signed-off-by: Marek Vasut > Cc: Fabio Estevam > Cc: Jaehoon Chung > Cc: Peng Fan > Cc: Stefano Babic Applied to u-boot/master, thanks! --=20 Tom --oFbHfjnMgUMsrGjO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmF4A/IACgkQFHw5/5Y0 tyzvegv+N8QDtgpZ+JapVH7zRtAz5vuSrGokZ2KWxjVb0SHjUxCgO3OnQYrVK9YZ Km5j16DHclYU5CBn7wTFVjAUac9KBKsoOsI7Ci9/IzYj5NuvNIGIpFvOqTkTZHPO jWT+Nib0pHYXsm1SQKwIKo2B+4mSoNlN5RlTqH3nkgax9TyIsDvvQDFlYFHguKMi SkYCB//PY8XmTqNU5EJUO0DzvR31tmfLhbv2nJwKt6us48XcNSPiHkSXhRIz78zq A9QGdozj2sNAdJM4PQ804Zpc8Xe8xihWpTKIq5sr5TQJFTsj6Rij+unL/IyNuRKg EVgjToIOFnZCsZoPOoNzg3/8BUnwum53TBrszJnH2AnkmP5+52qoXXwGftwE6kuK dc1sKGKwgYBzNPfgV0nVTYs5XwG0JwaBr5prjFY68/39kBBxfpmjd++0RVyJ266y v+XixbhVqAQE8zMMw7E0Psqm5Mkl6IIEUBX7oe9OEr6fmM14STQh5TwnpIKIaQDG Hnk2bafm =32Oc -----END PGP SIGNATURE----- --oFbHfjnMgUMsrGjO--