Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2500805lqb; Tue, 28 May 2024 01:33:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUL1GIC9xpM9W4HuB8bJwY06ghyBEOLYA6In3ygIs+e7XaBEUcHvIBoqYASk1fmUiDetvZKJFy57W/FsY2D7we0/35R1XFL08dhZawHYA== X-Google-Smtp-Source: AGHT+IHSKvUxMn0xOOqbHr2JMu7j+dhPeswaLFXEd4slqig8IgtZRhlPkoGRUHBTJTQLVQFBpikk X-Received: by 2002:aa7:9a83:0:b0:6f8:b260:ae9b with SMTP id d2e1a72fcca58-6f8f42af272mr11552809b3a.27.1716885196572; Tue, 28 May 2024 01:33:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716885196; cv=pass; d=google.com; s=arc-20160816; b=JT0QbBAAd5mQdOqdvQZKVlYIcAq/4dGcp3oB43vuvZSkdzFW4Zy/Dhh8kChMyZsR2M v1p7snCGu+8EW43hqwrdTpM7TbkbjwAsb7s86QWlHFDQZ/eXHnhzKKtq23qFLNuIzf5P s0qzGM59OEW3bFVqxc3GpAiyhTdMcx64JQWOkiCen7JHDo3sbVN6E/nqA5XXs0qOuT2j ohjY1NXVpkjoBuMc0tW2aqz0EJi0YRH6LxziSMFZGTHrAXzUb5nNYIrov9K072b2ZOkl rXJqrka0Y1Y4n4pSwSlGV6BpoiTkNtSAtOSG3/BgU2tslYBpxu9AD6Lhr/bzJIt1U1rn P7/w== 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=VFYUpzA6pM4m4rSYWLPXboECnNuEYZJwJD08pfbA3OU=; fh=w0q6P+Afs4Y9d6OlnlTJ8O/2yZJ1iO+KXnMvDSCzp9A=; b=cZ0MWZzNCQ9SBPyFAcjzaKQp6d/T5/3KY4G54Mas4Oqvbi6rMi8h23NjlzPg3lYqot k0vVc1II6BORX2Z4O4g15//j2guZ5s6HgIVbQR/JvlYTW+a8WL1inWd1jd5VBghLno89 5wln6s48zxB/utZHDGZIBbUN9XaS8Z7C9d9gmpUSk18da1GiyxK07jwh27+Lh2c5Y9De krOZABY/gSTQykz2JvTgm6iOCOv3j+HrJ6ti+ng1DoruSvVa433iVsHx2863m+WzcgF+ bRMSMB7R/twgSrGf0B3yT6N3uENh3olmKJXp96Y870xq3CL4ADNx9jNGalZWNklvMF1H EAxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UqJUxAKv; 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-191933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191933-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 d2e1a72fcca58-6f8fd4e2859si7568897b3a.294.2024.05.28.01.33.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 01:33:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191933-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=UqJUxAKv; 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-191933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191933-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 C2FEAB22FE8 for ; Tue, 28 May 2024 08:31:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0694713C903; Tue, 28 May 2024 08:31:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="UqJUxAKv" Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 4080B17580 for ; Tue, 28 May 2024 08:31:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716885094; cv=none; b=ZPY32d1q2xFFCbJPbfX1A/5EwbbI9aoDao/3el0d7m0nBZa38W4IVhawGmNARPEMTzjZO7gomiacFnGh8fRaR8WQQ10+2cek5g0YH/6hasq02iyefhMGXweoJgTgfDbucMSxS4tspEamgzSc3SBFlzme6ai+NSICtmeCjTh7gjM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716885094; c=relaxed/simple; bh=RwuBIHtznA/hyz21dAojIRc65YO6rBNxlBTR+bfBkPE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=tivV1AH0XDeeNJZoxQ/NPsKn6PrnqEtL7vWqigjyg9we28Ygnc8r88wdTkDwQA03j9SZTZVkaeeC0OSFgvh2JWAEnSjajjhptFnKU9Llf7divZvJO4u8mx8bi4eDJZF+0ZqEsXC4OZfQNQY7Du2mXnFlyu8kdhNkrmHwhCGhx+s= 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=UqJUxAKv; arc=none smtp.client-ip=209.85.167.46 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-lf1-f46.google.com with SMTP id 2adb3069b0e04-523b20e2615so621327e87.1 for ; Tue, 28 May 2024 01:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1716885089; x=1717489889; 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=VFYUpzA6pM4m4rSYWLPXboECnNuEYZJwJD08pfbA3OU=; b=UqJUxAKvcLc2rP0LgjEH/YAVRMqxXFE3VoI0lwJX3xnUvsGV5E4xP1lxqE+650JZFA njdZHi1r8pkjB6x1khZMlxu0dp7eSmXYiSM6sC0ecaEJTMfoU+OJ3kR5y6rtFSrDG/VC 7amcOcsis1jcS1vYzaogAtFGdsBxWgSdpc3so= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716885089; x=1717489889; 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=VFYUpzA6pM4m4rSYWLPXboECnNuEYZJwJD08pfbA3OU=; b=PUalTN4tCy2TrRyYRX9dACxxQ+IBAVEcjphIkvSTsMttMQyG5re4e0CrGbZrBabcrX 2NOSsRxSEXyYIpEj+51F4LWTYGNqU1ZI/xel39WzYpM+vixKx8/SFT7F1f7b42wS/pQO BG62w4itw0slz3Zayu5nOT9epqlVNLDrnJZRHFAn+YdhTG/YOl4evCnOj0HlCD8mwGfO 8LVHCE55RGhtgcg7LUyHhzwxmwOO28eOjDJD0Gt1yelwwuCmHSCeydmbeYNKl+bOUn10 qn8hbaOuxj7isQczhBsp9/kRbBrimS9m2QD9fWUGcN4UvbK8e6sh8zLb/N3tkKpL8HWI cJkw== X-Forwarded-Encrypted: i=1; AJvYcCUaSL7bBydZ2PkKgeJQAbo0vu8c+VPmBMRR84fZcNFApXC2mBD9D0imsJaT3JJRJ90btR8krIRz6LGPwMYfYqcg2EBJnepwF7PUnEnQ X-Gm-Message-State: AOJu0Yy6SUBZvERIOtInMKWL2Nem8UV+1ESXw5GsXtheeBVIWU2UvDxc +SWN2L98nyM+uX7JsCg4IoefIvMNW7LhRUXReWQsHmT4aGSw7i629sytJm9zfW6nzgHgHUwzPjT hQCotXNAVv/xrNukF17IzI43M3tom46kadeGpzHH0ZTBDgds= X-Received: by 2002:a19:e04b:0:b0:51e:245a:8ed3 with SMTP id 2adb3069b0e04-529646de3d0mr7018224e87.28.1716885089209; Tue, 28 May 2024 01:31:29 -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: Chen-Yu Tsai Date: Tue, 28 May 2024 16:31:18 +0800 Message-ID: Subject: Re: [PATCH 1/2] scripts/make_fit: Drop fdt image entry compatible string To: Simon Glass 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 On Fri, May 24, 2024 at 9:01=E2=80=AFPM Simon Glass wrot= e: > > 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 = wrote: > > > > > > 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 w= rote: > > > > > > > > > > > > According to the FIT image spec, the compatible string in the f= dt image > > > > > > > > > > Can you please add a link to where it says this in the spec? I ca= nnot > > > > > 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 loadin= g 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 mentio= n > > > 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/s= ource/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. I sent a pull request on GitHub. The mailing list seemed very empty. ChenYu > > > > 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, = 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 outpu= t_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, compr= ess): > > > > > > 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, compr= ess): > > > > > > 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