Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp46886lqb; Thu, 23 May 2024 10:19:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJpZKxEejTIvTKDB6oJOFylK5gIvmtDlCKr5zirM4jVyJysCWm9UNeo7JL+fyhT7oSxdsOGjXA4MHWIE/OV1C8YT6s5afeUw9LTmFr5w== X-Google-Smtp-Source: AGHT+IGT+gH1razVQDGZU6DztZ953nTfPFxQZt/zIuql4W20SWIFseLiTR+bfGlYtH2gHWC/noBG X-Received: by 2002:a05:620a:24c9:b0:792:b952:eace with SMTP id af79cd13be357-794aa7ebaefmr14538085a.17.1716484761105; Thu, 23 May 2024 10:19:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716484761; cv=pass; d=google.com; s=arc-20160816; b=zg5Uyrfx9gauzpuuM5YVRyjXuu32lazbiz2hjO/EFAuF3G+RMypWvOI7p7erKmUHHq LgM+s2hkVnm+PmPotdT2nw5HZNYOJx+hUCqHY656wD/zwzMLLWXXtqgrTNodlT6msQB0 SgiOJAuYrSwdlR/eTqWRfrbiFiz7I+C6HFNeGm3tS1ouQXNt2jgqOfxCoZPgYEVagaz4 AGdn1jcQVDYPYf0QZ3/PNfzFzr0khmTzkDxET280VQ3J2+MSL4U+MC7PIqU2WbiKV16w mMjWC1iWQaGloYup3YwsPeyfdb35RXmgu54Q/mA/UVAiF+bggc3nXXv3U6kxm1pWVl8k yE0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=+Ta2jNkRpZUf8cR3CbSoBhJLjM5SlewpEAM0Rhg+alQ=; fh=vQGXqNc02fQYT7/cxmnnuIwMSzmUlTBh6nhB2hlqMrM=; b=xLkPREwZj3XZy/W4hUre3XiT9Pi8oMamxioTOOz073Wg5BchmNDTbOwT4zMHS1yuGg rhb7Di9A9sEQ3nosTC6iQyvG/F4YJQMxQMeGXkmlm9FFMspAGjQFnhveMn37zjD8Xv7s zoOU4TIB08OLzWxbVTm5oSz/i7PjaugBxK1NQ1YKBT4i/mWA5iyVM9M/8BH7e/8Yf6OY Y2sJrOzLB7MxEQFID5Afrm/9eoZFoTfVpiuJ4ccmSLk1zig2SUVBFK7tuABfRui60ZCV iHXp2zdWAuZnYt4sUXnK89Ascvw47pehyYwAMM1SXo/uYfHux5eTJWBxU/gj0ZU9GL28 LqPw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BNGa4RW1; 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-187830-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187830-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794a7311abasi106027585a.348.2024.05.23.10.19.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 10:19:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187830-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BNGa4RW1; 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-187830-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187830-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id BF6611C212DF for ; Thu, 23 May 2024 17:19:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC334433A2; Thu, 23 May 2024 17:19:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="BNGa4RW1" Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) (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 83989537FF for ; Thu, 23 May 2024 17:19:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716484755; cv=none; b=BzwRxQty1Fi5VahDRKhtdTDkfTa6EXNpNA1I7rBxW+QXCVluTdV2bTszD94EH0O/Sd7S11goLfVzUPh9MjcoLjIr/ButGrvdxN3tf4kkgESZafgok03xY3S5tdiYEnZBKHNIZE6DgtIGS/LS91yI1VB8k21R6m0ILYeeA33jrro= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716484755; c=relaxed/simple; bh=DVnE5XXFyKqacmVrhhH8fswgU1m18DxHHd6q0OWNAvo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=G+YSKX2aCzCntA3gMZ0RcT+WKspm20raKj2ZSIxfTXuyB+QqiGyk9sKJXa1PnESj5JkBRxh6i0tw0lQF0+6Y00uf6064udaV96lwyhVVj/lezDsO5mh0pwbY+Teg1kadBYtxwX/zvENxV+WDb9JR9Sy2RBhOOn2C2wKsBE1RZPA= 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=BNGa4RW1; arc=none smtp.client-ip=209.85.219.53 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-qv1-f53.google.com with SMTP id 6a1803df08f44-6a8691d736cso16032466d6.0 for ; Thu, 23 May 2024 10:19:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1716484752; x=1717089552; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+Ta2jNkRpZUf8cR3CbSoBhJLjM5SlewpEAM0Rhg+alQ=; b=BNGa4RW1xwwfDOv0Op7iSciIqli7m028tR2dfhuTRSBqP25+Xy6ytUPHJfl8EE6sga LW9smymZjOzFWUdwws7tNMF4jI5R19xKlB8HI7bmThA2ZtJ3w5tbrRuNTYagqIWkql3E 5z0aJB/KoJKTB6eZogEl7c938zcoFSiw0NyGw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716484752; x=1717089552; h=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=+Ta2jNkRpZUf8cR3CbSoBhJLjM5SlewpEAM0Rhg+alQ=; b=nitMltIZsJFQBS0E2/uuc7bEuEI17N7yyBTSJG/VyLFH379sYcD+6hkB8BK3R6YnFK 3vjkfEQBCD+TK0twklXms5oe71Ec6rzYUsybrszYdFk7Jp0uYothjqDe7ZgJIJouUfQ0 aEzoYZhXIWB33D4DgVe6zwC/ZnmHM9IybZbvy/jSBcd8tbBUaCorAQoqPDKpxjMcJZIZ oP2hwO5XgXlTO+hJLFEN1WYpuFeII9oa60meWPvAiUmTdyaZ6rd12Fk/WgMMkjqDb9Z0 L1QSyY8yzCXdgB8LyEX3w+UEF26cGCdYjHh/cTRi9fT0kANHir6d6P6RFxrjT4ZR8Kop U9CQ== X-Forwarded-Encrypted: i=1; AJvYcCW7TnFo2ZvefuXQNVBU6Gwwa5ih2NUG5KMDI6y/6Oh+qGj1vd8P1wvkzs/mrLZ2gxRRS1RO54MaB0PGMr0scErSgMnh0OTyC+lYoQu0 X-Gm-Message-State: AOJu0Yz87BtENiZPYVD4+YRNfA95zBusBndBToaIMoE3ZoASpimRCujx BHAYNgagfRT1hVuaIfcK6H1JwHpMRW2xrxrNR+9AifwGA8NOGYejrddUn2F0AfJCxCkNH9+cNPG UdSCnvKLV7mOMy53nex4sR4U9d+W3V2bYsRtn X-Received: by 2002:a05:6214:2b9c:b0:6ab:9a03:ff96 with SMTP id 6a1803df08f44-6ab9cfbe9d3mr1298086d6.7.1716484752442; Thu, 23 May 2024 10:19:12 -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: <20240521065107.30371-2-wenst@chromium.org> From: Simon Glass Date: Thu, 23 May 2024 11:19:01 -0600 Message-ID: Subject: Re: [PATCH 1/2] scripts/make_fit: Drop fdt image entry compatible string To: Chen-Yu Tsai Cc: 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" Hi Chen-Yu, On Tue, 21 May 2024 at 00:51, Chen-Yu Tsai wrote: > > 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 cannot find it after a short search. 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, not 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, compress): > 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, compress): > 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 = compress_data(inf, compress) > -- > 2.45.0.215.g3402c0e53f-goog > Regards, Simon