Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp525954lqb; Fri, 24 May 2024 06:03:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUdse0MrfNJwU2z58Cd0w+1soob1o3qMkgRj0A6u+aWf7euaD/oiZ36oehPvqQtfb+y5H8GvlcMJXzO/i/TWEH4W/9caM1QxForiqdR7A== X-Google-Smtp-Source: AGHT+IFq+1v/PiPsP1rREWkWXWqNX+x/yBgY7HkAzLH1xLWdnS5rnBLiav/fIwNIHhBkTFsfW8Kc X-Received: by 2002:a17:90a:f98c:b0:2bd:69a4:b886 with SMTP id 98e67ed59e1d1-2bf5ef1b8femr2733989a91.26.1716555788687; Fri, 24 May 2024 06:03:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716555788; cv=pass; d=google.com; s=arc-20160816; b=LW/mXErVsZA4dZaaCQtznKgEYQhNDVY/SyuiDQuvDjC02Bip0qFsZRjxaHAkDUCoXf iYdxQ2PLibmieMzRs2HkRV/NzOqBsgfASksrL4hY7VK2ZBEcJbCx2Q5TXDvOYScVxO8G isU88PhR7tqR3eAu5vz3K8lGZEtvOfp8r7ejsvaH3QckB1Jawd2FB/dLa2L4JNrMsl4s lmS08odSwljSrOat5BudNAvE0vcEou4ndBerfhbJ5zVL/mRbF343gon9q9u4e2yqLXod 81pldgqNFsEPKqzU1LBsxx7HRgVZ7gOf6l6STZuHOCuh+DkLGBdwbUcxDT7f6cx/lOyh Vdig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=Om5PFd0wycPy9DndNUp2OMWfvO1kKpP8J8RtZYLYNRE=; fh=OTz7E/Uir5+nlaV68lZsbHyLOhT2gZqWJP994NqXexY=; b=XylPx0m6k7RkiFFwRkNJuAIqM3WtJCepnR3KqJvH2sUVITSSE3KNDzFzRAIRIWsBkk udq0SbE8RA6J0EN38Ghl+xLlJTfVE5ZLyoIym8nDFjBxl9Xzq/f0pJQUYY3gJmC94pu9 0faDOxq14zcQ/KuorSE/xInbwfYAGBjP18dGdFtNJfMGV9x61gxdGS7BRlYjvGdU+NWD 7CG5vku5rneGYpTli6aiYdDulL0ts8ZYRYy6izcmlgl40+lUz1K4sv2OA/08ew/bW5G4 MotkCEOZEevh0alz0mo9Bq+Cv9MUjSp2urLVmxAHFis/3VrqbyETon6WmcgDStZ+exgH IeXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SaX4pnE8; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-188705-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188705-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bf5fe36553si1406318a91.99.2024.05.24.06.03.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 06:03:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188705-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SaX4pnE8; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-188705-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188705-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 7CACFB20AE7 for ; Fri, 24 May 2024 13:01:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 55F9D86621; Fri, 24 May 2024 13:01:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="SaX4pnE8" Received: from mail-oo1-f47.google.com (mail-oo1-f47.google.com [209.85.161.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB4E1381BB for ; Fri, 24 May 2024 13:01:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716555681; cv=none; b=kIksL+Ja0tku061XtZzEOxpmjj+q71TljbCQicM9BL0rbOVALJXN/ZpGmEph4iVfDb7W3rXbwVygyZOrntfMyyMEN6SogvMct0mdWKwEQ33Tey9M4wr+ZUfiSQUjKf6itiQlmCEJ/+7g5nyCb5TLQzEbYXRWOy75YPLUYVATt4c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716555681; c=relaxed/simple; bh=tN6XxBkDWgoF2UquDxuqkyQ0zebhpcacvCM6gy5DfEg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=iyfCToHYkR+hB9zofFAzxhPtQLq+SxonTrb4xxWyZJWHciACSeLyLXqqhZcgnLSR5bTEYdtMuTKi6rTHbBte0s0S4IFXBSzQONFnxAagUHEgzIsjhdzUPMwe+4VyaUqofmoWeX3t4bBVRemyRO+APANqnycsLGR7xfFEpuUwNu8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=SaX4pnE8; arc=none smtp.client-ip=209.85.161.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-oo1-f47.google.com with SMTP id 006d021491bc7-5b2cc8c4b8aso4860293eaf.1 for ; Fri, 24 May 2024 06:01:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1716555679; x=1717160479; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Om5PFd0wycPy9DndNUp2OMWfvO1kKpP8J8RtZYLYNRE=; b=SaX4pnE89X5NRKekc5Ie4k6dGdZ5qgF7Kd8AWNcI8HWnfdK/l9jbBM9a2KE0PTTDl4 WRSv0btLJhhfCKyioWN+kra0bUxwf7KA7OSMyMHFWFqWlz6InA0zMs2UL59sf9eDR1tk QeQSGtPC4Ct7dHlSpEi9/Owq7tDhhUH0udyWY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716555679; x=1717160479; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Om5PFd0wycPy9DndNUp2OMWfvO1kKpP8J8RtZYLYNRE=; b=AU75lFVFTDZbvR59vVMNqAe3ZRzlhQlIaEdnC/0zQzyFzMlbDm35ctV5Im7NasIcmh I2Cwkm+BwXTpT2s/uhQxHW5pthHtHBUbP7gQBmXc6DuhWbcoMwG1f17K74JZwkr2IJFq 4ADOageFmqo9VG0LKIKeRkYPPLY8yp8TOjKrX0hLT9n8Daa0nvz++DHO5T9bxj5mMI+g PYCT+HAZ5GCCaM+PLU2pqQ7FtoqKQsVxh+YRRw5T71JVePisjDel2JUqRoF/hWvxIBzF CDu3xkvLOKjPavulZjHwSgfoQUgXbhsatdHzTLcdL18SmJyI/+oLgKARKdACbsRbFdV5 DQxw== X-Forwarded-Encrypted: i=1; AJvYcCVQnvJuxyt8cTS0xl4TWFarAtuxR3gv6VRNJhApztXEH5wr6HEoRiZgLc7J+8EBYRq9KqEC5DB5310p8Y5VL4xqBP4KfTw6dpJg/gE8 X-Gm-Message-State: AOJu0YwzNm0fz8JeImY6/V0Iqhq9m9sr9IJR7xYKzjYxP5MAusilcH6x UJ5R/jmxk1TD+V1lPKlGR2NsRq4s9c7QoQndxfof8ImKOzIgxNa2TVyftCxlidoTP7PyNRh448H ZEQCzTRIpUkp8yQ1eAWUa+HldMDVHYxYTlLej X-Received: by 2002:a05:6358:5328:b0:186:27ce:639c with SMTP id e5c5f4694b2df-197e50cb1efmr304204955d.18.1716555678560; Fri, 24 May 2024 06:01:18 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240521065107.30371-1-wenst@chromium.org> <20240521065107.30371-2-wenst@chromium.org> In-Reply-To: From: Simon Glass Date: Fri, 24 May 2024 07:01:06 -0600 Message-ID: Subject: Re: [PATCH 1/2] scripts/make_fit: Drop fdt image entry compatible string To: Chen-Yu Tsai Cc: wens@kernel.org, Masahiro Yamada , Nathan Chancellor , Nicolas Schier , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi ChenYu, On Fri, 24 May 2024 at 00:30, Chen-Yu Tsai wrote: > > Hi Simon, > > On Fri, May 24, 2024 at 1:38=E2=80=AFAM Simon Glass wr= ote: > > > > Hi ChenYu, > > > > On Thu, 23 May 2024 at 11:30, Chen-Yu Tsai wrote: > > > > > > On Fri, May 24, 2024 at 1:19=E2=80=AFAM Simon Glass wrote: > > > > > > > > Hi Chen-Yu, > > > > > > > > On Tue, 21 May 2024 at 00:51, Chen-Yu Tsai wro= te: > > > > > > > > > > According to the FIT image spec, the compatible string in the fdt= image > > > > > > > > Can you please add a link to where it says this in the spec? I cann= ot > > > > find it after a short search. > > > > > > (Quick reply from my other email before I forget.) > > > > > > From the FIT source file format document, found in U-boot source > > > "doc/usage/fit/source_file_format.rst", or on the website: > > > https://docs.u-boot.org/en/latest/usage/fit/source_file_format.html > > > > > > Under "'/images' node" -> "Conditionally mandatory property", the > > > "compatible" property is described as "compatible method for loading = image." > > > > > > I'll add the reference in the next version. > > > > OK thank you. > > > > There is also a spec version at [1] - it might be worth adding mention > > of this explicitly for the fdt nodes. > > It seems that this is already mentioned? > > See https://github.com/open-source-firmware/flat-image-tree/blob/main/sou= rce/chapter2-source-file-format.rst?plain=3D1#L343 I see that but I am suggesting that it could explicitly mention that the FDT should not have a compatible string for the model...that should only be in the configuration node. > > It looks like it was copied from U-boot directly. Yes mostly it is the same, but there were some changes. It has evolved slowly over the years but the bones of it is stable. Regards, Simon > > > Regards, > ChenYu > > > Regards, > > Simon > > > > [1] https://github.com/open-source-firmware/flat-image-tree/ > > > > > > > > > > > ChenYu > > > > > > > I believe this patch is correct. Since the information is in the > > > > configuration node it does not need to be in the FDT. > > > > > > > > > node or any image node specifies the method to load the image, no= t the > > > > > compatible string embedded in the FDT or used for matching. > > > > > > > > > > Drop the compatible string from the fdt image entry node. > > > > > > > > > > While at it also fix up a typo in the document section of output_= dtb. > > > > > > > > > > Fixes: 7a23b027ec17 ("arm64: boot: Support Flat Image Tree") > > > > > Signed-off-by: Chen-Yu Tsai > > > > > --- > > > > > scripts/make_fit.py | 3 +-- > > > > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > > > > > > > diff --git a/scripts/make_fit.py b/scripts/make_fit.py > > > > > index 3de90c5a094b..263147df80a4 100755 > > > > > --- a/scripts/make_fit.py > > > > > +++ b/scripts/make_fit.py > > > > > @@ -190,7 +190,7 @@ def output_dtb(fsw, seq, fname, arch, compres= s): > > > > > Args: > > > > > fsw (libfdt.FdtSw): Object to use for writing > > > > > seq (int): Sequence number (1 for first) > > > > > - fmame (str): Filename containing the DTB > > > > > + fname (str): Filename containing the DTB > > > > > arch: FIT architecture, e.g. 'arm64' > > > > > compress (str): Compressed algorithm, e.g. 'gzip' > > > > > > > > > > @@ -211,7 +211,6 @@ def output_dtb(fsw, seq, fname, arch, compres= s): > > > > > fsw.property_string('type', 'flat_dt') > > > > > fsw.property_string('arch', arch) > > > > > fsw.property_string('compression', compress) > > > > > - fsw.property('compatible', bytes(compat)) > > > > > > > > > > with open(fname, 'rb') as inf: > > > > > compressed =3D compress_data(inf, compress) > > > > > -- > > > > > 2.45.0.215.g3402c0e53f-goog > > > > > > > > > > > > > Regards, > > > > Simon > > > > > > > > _______________________________________________ > > > > linux-arm-kernel mailing list > > > > linux-arm-kernel@lists.infradead.org > > > > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel