Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp58409lqb; Thu, 23 May 2024 10:38:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVkKShztP2bEiu6drsc6veKWGRgnjKhVlC1tqyjTFZ53hJ2nu80f+5lGTtrpWvWquaOjGJQ7UAl7SP2LHpgJtcftwlZOaelNGBB+HToQw== X-Google-Smtp-Source: AGHT+IG0/sVFvyOqTXJeOd7Qcgt8uax2cBwWaspQDy9isUC1GeacQobIeJ1wr16lyAao72rzdyiU X-Received: by 2002:a05:620a:1726:b0:790:c18f:5d94 with SMTP id af79cd13be357-794a08fbca1mr490335185a.4.1716485933885; Thu, 23 May 2024 10:38:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716485933; cv=pass; d=google.com; s=arc-20160816; b=cso0Aw+vj0Gtyy9JMo728m/0ZFz6nuscKnbZkCCt91GLKVpreBgM7PKGf24GEX0Bln eoWBQHWXz/n+8PqUzM0UhshLX2DZrnqrmzu0gfrouh9o7ZqTXKy/nU1JJm9K2vbk9Rb+ 3vpRhPbNvPvmsKz2Br6QSp1Bsrx8Tp1Wvctigx6AhUvTIISBlfHG0HxrQ+HtV6FA1Gdd 7kARuB4rUP9UDO4zw2X3wt993e9ugLbzlC/GvnA+Gmq4Y2ky3uCbdFjolnQRSevEQ4ck 0lLOa3wAJpa0/Sv3iluinX2ZHpV0NHizXZBW3Yp+0WW/7spC473AiRYxr74kT4cUV7kc el9Q== 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=6V7pd3riIwcFxlFCmDZlVupOcyB0VJETE06xBJZgKWg=; fh=lS5DQTf9DCVys9MI8o9jzVbhO/GZpAczMDQGK6Q/Qi8=; b=ExP7ly+wu7pULpvdsaoHPz6/lDlFKfOiF4FC7BSAfwoFnjjGCqtK/DFHgdOZloFSL8 syFl4AKX8PDfo9O/TOu0Lj0UCsNeEYJLFYUdYfgmay+I3RfPJhhT6VhegkkWAlvMb8/5 O86Z978cjm7yvmqWe9cUEsSG9s9hvbpVdKcNjbae98tn6pJeCj+iNFtvm83jC5c8txOh IJ560XHxtxQ3kc8JIFANcGR7/i4pg09ODPw2xcAumioU++OfvKUNxB4wKh1t4nB/JK6b AT+DHsK7xKU/kgfSG3BbLBGLyqi1wkXhsF/eeFPoN8irFHNYQZM2oR36B6t2mQtRbhnn Qykg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=C8+1TTu2; 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-187836-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187836-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-792bf336bf2si204903085a.440.2024.05.23.10.38.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 10:38:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187836-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=C8+1TTu2; 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-187836-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187836-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 5E3181C2128E for ; Thu, 23 May 2024 17:38:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 45C0C6E60F; Thu, 23 May 2024 17:38:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="C8+1TTu2" Received: from mail-qv1-f52.google.com (mail-qv1-f52.google.com [209.85.219.52]) (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 B6E1221362 for ; Thu, 23 May 2024 17:38:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716485925; cv=none; b=lkesziN9VNUnjNSlRyJyy+RsYSkW+4dzH+IxSoz8fKG3VNLQ+s47P9qDBWT+BQITAJ2im9LzwU79boA4Yz/fSNDve02++YsobpFfrUcwhaqDg4WA6wZC8fEv0n0jKk6wnlclcrusw4szGb0w42Q8+HXolr20OS6Tk5LzDEs3fik= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716485925; c=relaxed/simple; bh=pnw9VeQPGfJdSLKumcNoyt5s/XJHQHU8QW0nMsUL9ZI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=pajqn6MxkAV1Grxdzyr/GJDlDTX+93OeiPkHvBaIfvDbqouDvlSW2oHaOkorO9Yy16Y3znkHKdR/q37mU441d1wW2ruakBgjWNEQwfaciSt01Ih1tZ6iRhcmJTHpXh4mqiBaW0PwUvud3XbUR1lOPXxpdKgnn8v8mntIZ2dLRg8= 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=C8+1TTu2; arc=none smtp.client-ip=209.85.219.52 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-f52.google.com with SMTP id 6a1803df08f44-6ab8e80775eso8613186d6.1 for ; Thu, 23 May 2024 10:38:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1716485922; x=1717090722; 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=6V7pd3riIwcFxlFCmDZlVupOcyB0VJETE06xBJZgKWg=; b=C8+1TTu25RP6qCQoMsz8BmmuXlLHXiCoTwUenKCZVTtarHdH0s+D0DgRKd14drgnoc fg1qNRwq7uVjWyXq+Yo9s1Q0r+qd/4i+ujh6I1hh1SQ/ZjQo/GWhMjDv1QFbqf/K7GNb 71XO61yEBm0jGcmTdR1YFwIaBYZ1FXDQKxfOI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716485922; x=1717090722; 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=6V7pd3riIwcFxlFCmDZlVupOcyB0VJETE06xBJZgKWg=; b=flROJirkPQvEXIVGZEojU7qrq/Rn7NPwNaNIWqCkjmwQQQXJBgCrVzm2G82xKAq0u6 z7H9TQFIE+ZcxYGhMZe2mrBJ1p2n80B696a5x3/UezZduwl0dtqr0BiWijv2Q5Zfm36q 1WRh01Wxc+HY/e6O8SBPPF96v7QQ639j2Wcv7XdHkIpp5zcv/kZl9DVttInOH1k7eyO2 4OlyHWJ7ljrNR7REvNt1yXr7Cuk6/ognMVfF/ctNgueh/z5n1g0Cz0PlF4mWZZlyns4Z 8wdu8UXBqkhZIV2YsXcucXhym9AmaVYAJkiIHjOzY+2zrOmwcgFVo9xE/5e3AMi3bA5y fTsA== X-Forwarded-Encrypted: i=1; AJvYcCX47mgPmSBtwJnmlls85Txyc2cXFPb4QPap9MjMsOD1NWviFgPvp3VFRKmbz0XVW2VDIZ+y+5ch5B8yeBEI+aJoyTqnlnKZHurJuPg8 X-Gm-Message-State: AOJu0YwypenXGYl4AIhUoZu0qkELMHWjA5idstuE1tgPLaRpAY7SRdAt gAIeFX82yj4sCRvksU08fdzqYAmb9f0Tz3qizK0gpyyfmZsCj2rQXrM22YxD1JT1s1vNYmKCWoZ 5K4UhQK+91gsGQ6lORg5tb5AIe0sm9/KMiPdr X-Received: by 2002:a05:6214:519a:b0:6ab:8b8c:61ef with SMTP id 6a1803df08f44-6ab8f5faedbmr47040786d6.31.1716485922659; Thu, 23 May 2024 10:38:42 -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: Thu, 23 May 2024 11:38:31 -0600 Message-ID: Subject: Re: [PATCH 1/2] scripts/make_fit: Drop fdt image entry compatible string To: wens@kernel.org Cc: Chen-Yu Tsai , 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 Thu, 23 May 2024 at 11:30, Chen-Yu Tsai wrote: > > On Fri, May 24, 2024 at 1:19=E2=80=AFAM Simon Glass wr= ote: > > > > 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 ima= ge > > > > Can you please add a link to where it says this in the spec? I cannot > > 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 imag= e." > > 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. 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, not th= e > > > 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 =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