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 A20EDC00140 for ; Mon, 8 Aug 2022 16:10:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DCB9884822; Mon, 8 Aug 2022 18:10:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (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="Bgmv2W4u"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D4823848E7; Mon, 8 Aug 2022 18:10:33 +0200 (CEST) Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) (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 80E568418B for ; Mon, 8 Aug 2022 18:10:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82b.google.com with SMTP id cr9so3556520qtb.13 for ; Mon, 08 Aug 2022 09:10:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=xE26RBrfRHO+YPTM51eq9VoBZvSZxlsSf0GQnVUREbM=; b=Bgmv2W4uaMse5A/LHqFSod+/cS7Outff7yZrP4f1GDs2yiyXm1ngKXbCYU1BGNHF8F Zat73zv6Ad0XnJi3SBnK8s97+Pn7XUWY70CGcaGb49DcLzkSWVhDwGhAhLIYRxi6/4Sg JIuUx5UDNYnZsqqVv6YBwy5EuiSrDy7GYc2Vw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=xE26RBrfRHO+YPTM51eq9VoBZvSZxlsSf0GQnVUREbM=; b=5Q4URC4olY+NJmgsxthaG8+JB+NUK3cP43MnUaRfYjzjbbOGsfbgqXWCcpRH4IAn/s 58tOB3+0023h2fpBWqHr1y4JIFgbEm/4tUeHawzQjRtjju5rxC/3VZ6HWmkThqB2jRQH SNFCyvQtFO0pHDG2/yYt6PzoHuYmZJXngWc/boFOOj/0OQlHmXzaex4EjKfp+CSTFgCM x8NMvt+K0h1ah0sv82ZfAmyTy0GsQwUKT2LWz6AUISBbh3EEVsR7hNaxf0cJNoGKtgQJ J50ah7qLxLKzhzQewchEyPcMSsaSFGOQyFpzdKJxan+hvh8wpTS9x6TE04JOyP0lEqV4 /few== X-Gm-Message-State: ACgBeo2owEaGKwbU0udagtX+56MRD64N9aEbiAKYeZKZB+fbo4Ncnv7C O26EGeaHsAaeV52btFSwNU3Nsw== X-Google-Smtp-Source: AA6agR5Lc/49LChOH1fTK91GK+ALSu06dx13T6cIcbGkNFg/uw/pJ9sgvloq9tb5otzx2NfF5yHHAg== X-Received: by 2002:a05:622a:1350:b0:31f:1cb2:926d with SMTP id w16-20020a05622a135000b0031f1cb2926dmr16941186qtk.279.1659975030303; Mon, 08 Aug 2022 09:10:30 -0700 (PDT) Received: from bill-the-cat (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id fv13-20020a05622a4a0d00b00342eff84177sm4438672qtb.29.2022.08.08.09.10.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Aug 2022 09:10:29 -0700 (PDT) Date: Mon, 8 Aug 2022 12:10:27 -0400 From: Tom Rini To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Simon Glass , u-boot@lists.denx.de Subject: Re: [PATCH] distroboot: ubifs: Add support for specifying UBI header offset Message-ID: <20220808161027.GU1146598@bill-the-cat> References: <20220807190422.20157-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uuk8tUkmTnqvQ5kB" Content-Disposition: inline In-Reply-To: <20220807190422.20157-1-pali@kernel.org> 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.6 at phobos.denx.de X-Virus-Status: Clean --uuk8tUkmTnqvQ5kB Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 07, 2022 at 09:04:22PM +0200, Pali Roh=E1r wrote: > Some UBI partitions may use non-standard UBI header offset. For attaching > these UBI partitions it is required to pass second argument with offset to > "ubi part" command. >=20 > Therefore extend distroboot to allow specifying additional optional 6th > argument with UBI header offset. This offset is set in new distroboot > variable ${bootubioff} which may be used by distroboot script to e.g. > properly pass this value to linux kernel command line for proper mounting > of rootfs by kernel. This variable is set to empty string (cleared) when > UBI header offset is not specified into distroboot BOOT_TARGET_DEVICES > macro. >=20 > Usage of helper macro BOOTENV_DEV_UBIFS_BOOTUBIOFF in this change is there > as a type check. It ensures that in BOOT_TARGET_DEVICES macro was specifi= ed > UBIFS func with either 5 or 6 arguments. If not then cpp throws compile > error. >=20 > Signed-off-by: Pali Roh=E1r Reviewed-by: Tom Rini --=20 Tom --uuk8tUkmTnqvQ5kB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmLxNXMACgkQFHw5/5Y0 tywdoAv8C5x9hmJxB64Y1KSTmGbG8GyCAKFGUOpTSTFjFj/Rik5Igk9BaELvvNLT zQn8xrfmLLYKYffjwyTMek/9hqlsYWkvi82slnipNEK4704WngD4BvH4KVwp5fLZ RFIIH1/g+ae4da/FFGowlGlTCWNmcZvH/HhnA5ZXWSYVGKb7zr98KIgs0LIj+i9B 7HLWdi97aIF+JY6nKTPupx/sK8njH6ZmHLnk7BS+OgY3NrOjgpKa/0E4cZgUowsH UFHfRk1HbssTmcaJO3rJMAJws1m1M4q0ViXoGfKpa7ToYIWA3EI3GVuFcU8uAoC8 2JluEsHcdEznfzcRkIw4qyDNNYPZRrslX+51AkphL4pMgSa5qynkBqCGuKH9PT9P s6UKV+3d/bnmcotBZ99Ne3CwjHrUOcaCIHCJOxsFM+YCMvFvJgKpvznEGJ/SDSh5 LPyT8+VZG+a94vV5sCV2M3GJdhZiSiSldlpMdlEW6PnKmWMDCOgkWjXPbgMcq8Ph YXlsBsSa =CpzC -----END PGP SIGNATURE----- --uuk8tUkmTnqvQ5kB--