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 3232BC433FE for ; Thu, 17 Nov 2022 13:23:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D10868521F; Thu, 17 Nov 2022 14:23:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="VJlZOf+F"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 24E3185224; Thu, 17 Nov 2022 14:23:18 +0100 (CET) Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (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 667E98511B for ; Thu, 17 Nov 2022 14:23:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanga2@gmail.com Received: by mail-qt1-x835.google.com with SMTP id l15so1019872qtv.4 for ; Thu, 17 Nov 2022 05:23:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=sNe3vTagYDh8mhLO6y9jbc4aOjDngNzbUnMqM5N+u9E=; b=VJlZOf+FkvPEqyVYHawbCowS46P40fjBVPqG9odW+2Aztf/HLSNqlFbMMwv0D+XYCx 0me+3QRu59ocsw1/vaUFuYaCFgOH1aPd2Ri5wpzQjs8qDqypLZ2EWq/yqG4ztxRpt4/n 2kfnL3U0slC1kihb0H9RjH8dk+yLQOjaIbpu7ycUdKOMpllE5sQOjvrth4uHrn6w9FRc y5w+BS+BC7bS9c0Jqff9qXxYR/0jA8waj7mQeaY0tcI5ZiSJtpzBNL+aakI5d8IFCnJh d/YCh/kcJ+wYeY0jSJm4qAOxKSRurfceJMGUd78JKej6yUHdux4WLBaYksvnT8dMCsun tZAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sNe3vTagYDh8mhLO6y9jbc4aOjDngNzbUnMqM5N+u9E=; b=Kx1/nU7KXO+SzzXf6O/HqvulYZJN35KXy1CdfLCD6H1k0XykieDYuG6XTGohmvWpdM 9gYFlLoj/7LiylvWmeFMYscsgM4nuySKILsbL/XkflUQxZBB5WHJ7UJ0AcFE4WNqeZou nNhpsCMS1Jsvu7F7O9oqXz68CViwRC+ZY+XbWZ7vs8V+bGRwu+FY68c5Hg7bSH+TRzbF vWSunAK6PYyY40YhUqjGMlfGhrLLvyVmMADmAC4uSiDsgxS1ABaeHNqy9d/Io3MAPAUC jDgPXzikGttU91VzuWrW2P4ZTu6UJmKPLtzsRXiSV47ozkjDnNE4F5Bi0IO9cHlVnHb6 7ItA== X-Gm-Message-State: ANoB5plHXU1CFz9oP+OyzELraeBiaHPtdKl7NHDBBMjbUMWi9rGV649C KXPZYLYK4eHLGPfP0bv+7oE= X-Google-Smtp-Source: AA0mqf5Hf/jnN0vrobOJzWhu4zKNIi5F8ecJY+ED5y/PEDLutoy+WAfq1T60y+n6d9G+nd9c7ucfDA== X-Received: by 2002:a05:622a:8cf:b0:3a4:ef5c:c69d with SMTP id i15-20020a05622a08cf00b003a4ef5cc69dmr2106099qte.194.1668691394115; Thu, 17 Nov 2022 05:23:14 -0800 (PST) Received: from [192.168.1.201] (pool-173-73-95-180.washdc.fios.verizon.net. [173.73.95.180]) by smtp.gmail.com with ESMTPSA id do53-20020a05620a2b3500b006eec09eed39sm447596qkb.40.2022.11.17.05.23.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Nov 2022 05:23:13 -0800 (PST) Message-ID: Date: Thu, 17 Nov 2022 08:23:13 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v2 2/2] tools: mkimage: add new image type "flat_dt_legacy" Content-Language: en-US To: Marc Kleine-Budde Cc: u-boot@lists.denx.de, embedded@vivavis.com References: <20221031145121.236877-1-mkl@pengutronix.de> <20221031145121.236877-3-mkl@pengutronix.de> <20221116104938.bscob5tuzbtxff2o@pengutronix.de> <9180e35d-97ae-e8e3-52f8-fba8933220c4@gmail.com> <20221117113020.zmnl5xlxiac7j7yh@pengutronix.de> From: Sean Anderson In-Reply-To: <20221117113020.zmnl5xlxiac7j7yh@pengutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 11/17/22 06:30, Marc Kleine-Budde wrote: > On 17.11.2022 00:01:19, Sean Anderson wrote: >> On 11/16/22 05:49, Marc Kleine-Budde wrote: >>> On 31.10.2022 15:51:21, Marc Kleine-Budde wrote: >>>> If the user select the image type "flat_dt" a FIT image will be build. >>>> This breaks the legacy use case of putting a Flat Device Tree into a >>>> legacy u-boot image. >>>> >>>> Add a new image type "flat_dt_legacy" to build a legacy u-boot image >>>> with a "flat_dt" type. >>>> >>>> Link: https://lore.kernel.org/all/20221028155205.ojw6tcso2fofgnhm@pengutronix.de >>>> Signed-off-by: Marc Kleine-Budde >>> >>> Sean, what about this approach compared to adding the new command line >>> parameter? >>> >> >> This is good. Maybe we should just name it fdt? > > There is already the "flat_dt" in boot/image.c, which is the "new" image > type: >> { IH_TYPE_FLATDT, "flat_dt", "Flat Device Tree", }, > [...] >> + { IH_TYPE_FLATDT_LEGACY, "flat_dt_legacy", "Flat Device Tree legacy Image", }, > > I need a legacy image, where the type is set to IH_TYPE_FLATDT. Maybe > "legacy_flat_dt" or "legacy_fdt" would be an appropriate name, too. > > As this string is user facing I think it should have "legacy" in it. fdt_legacy? I just think flat_dt_legacy is quite wordy. --Sean > I think "flat_dt" and "fdt" is just too similar and the user can't see > the difference, IMHO. > >>>> --- a/boot/image.c >>>> +++ b/boot/image.c >>>> @@ -180,6 +180,7 @@ static const table_entry_t uimage_type[] = { >>>> { IH_TYPE_COPRO, "copro", "Coprocessor Image"}, >>>> { IH_TYPE_SUNXI_EGON, "sunxi_egon", "Allwinner eGON Boot Image" }, >>>> { IH_TYPE_SUNXI_TOC0, "sunxi_toc0", "Allwinner TOC0 Boot Image" }, >>>> + { IH_TYPE_FLATDT_LEGACY, "flat_dt_legacy", "Flat Device Tree legacy Image", }, >>>> { -1, "", "", }, >>>> }; > > regards, > Marc >