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 C5E03C28D13 for ; Thu, 25 Aug 2022 13:52:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 22357845B5; Thu, 25 Aug 2022 15:52:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="Dl2ZJi/G"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 85455845C8; Thu, 25 Aug 2022 15:52:27 +0200 (CEST) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 31A3184130 for ; Thu, 25 Aug 2022 15:52:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C4E70B8290E; Thu, 25 Aug 2022 13:52:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C71DC433D6; Thu, 25 Aug 2022 13:52:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661435543; bh=T8DrCawmks8vOO0eH0NwvE6+m/GatjrX589pwCrivJ4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Dl2ZJi/GhITFxoud+oddiFTGKaTkf116jAzDGXa99NanlbXEAaoDzNEmXs/hTeACH 4ozUsGklLAD0T91/BBmpy1XySMWeApUjYNn227QD2UY+2XJT6+ghZRsR41UkkhrZr0 repnJKW+yLIzvf1EcfdTrCnwaS/1I8wZXIieqRLEyJIVTp4KrOwNYCi5C4i+VaaQ9l VtXjtwoTAJEc8UnYDvHnZYUUkywzPCQ9IljFSa9SAGI2MUlYtYwnzL8ez2IbUcbbZk 1/LXFLhJkxofm0j3K0VJ5kuzfGPC89vWkcuxvz+abZRlxNUOq86NBSoBghs5umX+Aa YlcaqnHbILw2Q== Received: by pali.im (Postfix) id 6CD7E742; Thu, 25 Aug 2022 15:52:20 +0200 (CEST) Date: Thu, 25 Aug 2022 15:52:20 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Tom Rini Cc: Simon Glass , u-boot@lists.denx.de Subject: Re: [PATCH] distroboot: ubifs: Add support for specifying UBI header offset Message-ID: <20220825135220.i765o2uyiggcrrdh@pali> References: <20220807190422.20157-1-pali@kernel.org> <20220808161027.GU1146598@bill-the-cat> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220808161027.GU1146598@bill-the-cat> User-Agent: NeoMutt/20180716 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 On Monday 08 August 2022 12:10:27 Tom Rini wrote: > On Sun, Aug 07, 2022 at 09:04:22PM +0200, Pali Rohár 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. > > > > 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. > > > > 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 specified > > UBIFS func with either 5 or 6 arguments. If not then cpp throws compile > > error. > > > > Signed-off-by: Pali Rohár > > Reviewed-by: Tom Rini > > -- > Tom Tom, who can take this patch?