Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp353993lqb; Thu, 23 May 2024 23:30:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV2S9GuXdiQniKKuPa4X05HcXtR6ltIaRvXJivIctwmfoX8Ga61kHOMO+UQuBEVPilz1Zf6KCcruvm81scazMZ7MjWgpfSZykZdrnsB/g== X-Google-Smtp-Source: AGHT+IGKp/mSS1QsvXldzkSGBZ0DZiXSmeePk9pinGws/H6vfFpMCeGMFq/k9W/SICJxA55/DRPP X-Received: by 2002:a05:622a:44e:b0:43a:ccb4:ea5e with SMTP id d75a77b69052e-43fa74317f4mr68254591cf.6.1716532214765; Thu, 23 May 2024 23:30:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716532214; cv=pass; d=google.com; s=arc-20160816; b=NjMhwAl79jZor7k1b7bhAQog7ZeBMvQkyAXA3QK9Sj/6ftEuPh4lI+XhtxHQm2H4p4 p/gEXKdSq+S/qsA2ErA7zuILrMtq6cfrGLUmzzMa11R0SHIK5VsQc3pZ/PoeLRd3mUZL w7b+4bQKputGE3Awn6mETrdbxa979d0GogkXMQMfeCQO6xd4F8AGnA73aYIWXzzDvEd4 T5iwi7GnbnrnAYrzkXn5yEm3E+SndzUuPIinJkkEmsHozCldVVrwWE0nI6jeJkH7YkMz TG+iLeKhA8qhD73W3D/c/wYF+y1kO6yp0VaHdgrt8rNK+LdaTGwUrVURYEaWYY6t1nk1 l9WQ== 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=JjZCA4a/oaOIu2JpjOcwxpVrFRIIv9mWByhFL++utuc=; fh=SoAM/0GZriW805NL1s9Pa2uHGUi2RyJHZ2W7H//j6cw=; b=wnshhnlG7LfKLlEMagsoDP+B0iMmrErZqR2vUEwI4mSo6UPScBEsaY69taMYLSD2ez kd1trdsJRKepglCG9yGw5R2IiTXnaRdOXKCw2gBVf8yKKiM8A/mVIgo7RqTChMkieK8j qWIL1sff27mmREm5Yss9781dgPVEzim7kUlA+abkByN+TaBRyngd79bRZLrqFQpoLHrx FS49AwKTH0+AAf4H7Fmst9AUK4LNoB4pCv/MLnKYBCxJ9ogOrckPdtt3LD/UtTXxcnye TzaWc1alMqLLm2uI8+GEK7gjSuXAD42rdERmePYNbfOQzedWswOYHLdRULCQOfz3K60j LmHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EMaqoDX1; 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-188356-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188356-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fb16c480csi11968791cf.118.2024.05.23.23.30.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 23:30:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188356-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EMaqoDX1; 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-188356-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188356-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 700191C20E54 for ; Fri, 24 May 2024 06:30:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 96F58128376; Fri, 24 May 2024 06:30:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="EMaqoDX1" Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 02C6239FF4 for ; Fri, 24 May 2024 06:30:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716532207; cv=none; b=Xtpe37M9CElz2wsP++iJ9yQzO96UiQrbBDUFGnMfx9hhJ9GNWtD22FD7gKfKScB9PuEVwVC1fNyXqSkNdhjGTUqqGuLKQOxchrbsQoxbk6cD1IO8A9Bgc42wk2TG0JKZ6gz1nleAQXyYOK3cmSslTIcvrVRW+69q6dndPeIAIK4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716532207; c=relaxed/simple; bh=adRMVZFOo8n4Lp8qXFwp7T0+eBAt1CyOUUEMa8+WtOc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=mcpLv0zmghRl58ozrdhN4/Dj56uziB9wvd5pdRG3ZgfpvmE6P/6JVzSiKCHiG8gaU2MHU2wRtNw4mLjNgtdRXM6Nt1DJ5nMs9rOG9R+PeIR92pfIfxnjkrh3Wojep82uwip6Lu/NBTGUpqFJCOO9enHQFEInRAsSc24LYnrTq2s= 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=EMaqoDX1; arc=none smtp.client-ip=209.85.167.54 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-f54.google.com with SMTP id 2adb3069b0e04-529644ec0ebso632652e87.3 for ; Thu, 23 May 2024 23:30:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1716532204; x=1717137004; 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=JjZCA4a/oaOIu2JpjOcwxpVrFRIIv9mWByhFL++utuc=; b=EMaqoDX11p4cKH4gCU3Z749DdDiG9Rtmm8wNCpjak/AXaNb2RmlA8W0NacxF1Hnksb SEs7uzvxjjZwaMLmEnACFTe6/wOtfvo+zZrAWgiw8y1XCM+cXpy+D2/QXLqwpWn/IYZA 0JK2fsHGF+6/NuL/cMAQ2RnOMJxNiYpOuPbl4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716532204; x=1717137004; 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=JjZCA4a/oaOIu2JpjOcwxpVrFRIIv9mWByhFL++utuc=; b=OhuDBQvambC10xYo35k+G82cGhMvmO7HErjZwZoVRUfCsKaFusbjN1QlVjDstpvvQr izELuqwfJIOL4QQlkaINqTaZb1bhrs7DvJ6lcIzUqWDeVggl4dOGKbl+cba8ToJCCG/o 1dTDnwoJ/41zh2yTaBjBNQ22/zSZPdAbv+PlKhNvfJGCAaxbFZJrL8XGTqxin3DYNsEB 7XZiukJgYlhutU1UjvoHMnD92Ws0hwWTXE6k7rB3PzBqAlF4K605PkwhSA4ESMz6qOx9 JOWZTmSigGk27pn1FiuBZuEcFHh93DmQCaferhr3EFYJhKkV6SSEQp2akBZ5G+M6Q0dL 2+Bg== X-Forwarded-Encrypted: i=1; AJvYcCUpE+M1Dz0IvJ9EsNvWRYQJ+4AXpELQ2+jhgs3JbyX6sJcRXiMpngA5r2GwunHK1zuYq6ZneTr617AXkIIwRTRHb4T34C29leAGh2QQ X-Gm-Message-State: AOJu0YzwUGZ/F00w0YEDPzVMmOfpcLU4HHiljem5V+MKKHPSbN/RqQJ/ 3wACLvAgnflvXN+76FQpFYCyxROLNwcH/SUIjAjwRrdw0S4LbO1tm1vmOFz2gx7cmQoByJoJdHL W0QbYxkxT5JbHzuLrod95Q3qb3Ju8eLAkW8t/ X-Received: by 2002:ac2:5a09:0:b0:51d:9f10:71b7 with SMTP id 2adb3069b0e04-52965c2f877mr816173e87.28.1716532204095; Thu, 23 May 2024 23:30:04 -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: Fri, 24 May 2024 14:29:53 +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 Hi Simon, On Fri, May 24, 2024 at 1:38=E2=80=AFAM Simon Glass wrot= e: > > 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 wrote= : > > > > > > > > According to the FIT image spec, the compatible string in the fdt i= mage > > > > > > 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 im= age." > > > > 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/sourc= e/chapter2-source-file-format.rst?plain=3D1#L343 It looks like it was copied from U-boot directly. 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 output_dt= b. > > > > > > > > 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