From nobody Mon Feb 9 21:37:36 2026 Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.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 8A54E31A553 for ; Sat, 27 Dec 2025 14:22:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766845340; cv=none; b=mzhoWpEQvlAOBOGNnKl+K8ZueT1P88nWraGT7vAMkZcPpf14+ZyOuaT6EzrhcD803IEGIgYeVptiTOIfw3EcKfW30jEXJzeT+vOCwfT+2j5im+WVqTkdvrTLV7Q+RmT/r0XWH6aGkdm1sUvP1zXl1lflFJwgCtesQclaVZI6uZc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766845340; c=relaxed/simple; bh=dANt1IxVBpejBPX1GyE+hxJwTnKsLrEyXQVIM/d+pnQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EGVwjXseFj4JwkSQ49XGvAzH/I3M1zOecOldG6TyoBHnI9GonIiywYp2Mje4pC/FoD86gnpYcMKyX5Ezn83qo1UT1Bp+08miAd483UWsNJKCAAewqZjy7WMqGsYjc2MXEdslxszrd7AAgIGF+ciXCeKkEBbNnTXq9Oio3MMhdk8= 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=cc+uzldL; arc=none smtp.client-ip=209.85.210.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="cc+uzldL" Received: by mail-ot1-f46.google.com with SMTP id 46e09a7af769-7c7545310b8so3928184a34.1 for ; Sat, 27 Dec 2025 06:22:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1766845337; x=1767450137; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CLsfEOgWDExJ3WhLf4sg7dIsOWS7vuQUYkgDX6My13A=; b=cc+uzldLhh/cYO86wQVb/K6jVUffLoleSeDvZXrLrDuDPFUqm1Ivxt4DZ389F77eGX HsKcJ2zesEB9TbuQwtwyVpa45CH9eFRgrI5dKembkrRRCYwV58+M6wDZdYuk6cL3nJmu tegZuBRw6qDpZgT4N7JPK13fwKjFvpJfcLQwE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766845337; x=1767450137; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=CLsfEOgWDExJ3WhLf4sg7dIsOWS7vuQUYkgDX6My13A=; b=UOg3oXOgTNifwVqKizVo2Cvkp03Bw1ohEhNeI89gMu+qhbyGS9ul0LzcddFTGGv5Xx svgTAlWA+i37ersVivhdzB6X3kGCeNSoljvItmKv36a7+TzhRiDUmx2RBH3diNXYZH1b EYFg9we5U6bgcM/LFcQMwDZSIRgpIp8VdCt6UG59e0hBaIwXt5fIvL/Hbtb1c9xTwZKT v1mHXHEtqgUQ8KCyEPjjp6x7++RC5V+6+oaIo7Z3ga35vTfuhLTrmZDJz8xl9Pd6v8aC WYJJN8ewHySpGoThwinFvZ7F55KXESQBC7wrpLAZOWVwmVqb9CSJFdVadjV3p4198NIW X3Gw== X-Forwarded-Encrypted: i=1; AJvYcCUvl8GqhcpNxFaDmdHmlDfcvFggZ96gGVX5jhkt4/NMuea5g57gf2WCFKRs3kBe3RvJd+wAu4BQmjmEXQM=@vger.kernel.org X-Gm-Message-State: AOJu0YwO+83LCTX56HQbf+n1oGcOy2MxgAwMKS7lE/j3szAIjkK/bH7t cu/pJ3I2pxZJLYX120YP1IEL2DQNwu4OVfhOku7g6yjCL14jYdUPF5ZtKRPYisRzBw== X-Gm-Gg: AY/fxX6iwt58vvWQcnpGKMAsW7gVoxnlWj1XmBNe+LPBVfoN7SZi7vL5cKThnYM45F9 9EIl9pcrCyCd4IHzPzt3wr3d7f7IvDXq1w+BXsyExy7dRDJQu2KsOl4rUGLvi6KgJOJkOwFfJbL aCQUvzbK2AUPQo4c15CHU5NklvJVVnJ2iX7GhygE/fhBQB/eVOxTRjd3WBMVs/0BETtq8I11sBR m3/sJr7LOJxXX+N/xrJzy+hux7mv5E6mu3dEciFLxsqR8TJ3XN4X+sl3JGYKAkYHPVlTvSwZY/d y7kw3N/yjIQjm6JLUwmJhVafn7ACux3xA2a1x6ojBs1KqcmEz4lmJ05W9EjEuzILDCRqrXRIHI7 dtPugpxgVlffSOy0jA53Chvms787AoJVNeuqwWA/sTC/VJFaGz4khQxU0XK6maXVIAcedOoZ7aL 3Hb/OE X-Google-Smtp-Source: AGHT+IERloq1wbu6MMPNkQSZUoJASFP8MfNfOubJP/R1dV7qustFVakA5w7Kz2wH7QU+n8t6pVo8uw== X-Received: by 2002:a05:6830:4c0e:b0:7c7:827f:872f with SMTP id 46e09a7af769-7cc66a5a9d7mr15858241a34.37.1766845337511; Sat, 27 Dec 2025 06:22:17 -0800 (PST) Received: from chromium.org ([73.34.74.121]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7cc66727e11sm17352660a34.3.2025.12.27.06.22.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Dec 2025 06:22:15 -0800 (PST) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: Masahiro Yamada , Chen-Yu Tsai , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Nicolas Schier , =?UTF-8?q?J=20=2E=20Neusch=C3=A4fer?= , Ahmad Fatoum , Tom Rini , Simon Glass , Nicolas Schier , linux-kernel@vger.kernel.org Subject: [PATCH v8 1/6] scripts/make_fit: Speed up operation Date: Sat, 27 Dec 2025 07:21:45 -0700 Message-ID: <20251227142200.2241198-2-sjg@chromium.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251227142200.2241198-1-sjg@chromium.org> References: <20251227142200.2241198-1-sjg@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The kernel is likely at least 16MB so we may as well use that as a step size when reallocating space for the FIT in memory. Pack the FIT at the end, so there is no wasted space. This reduces the time to pack by an order of magnitude, or so. Signed-off-by: Simon Glass Reviewed-by: Nicolas Schier Reviewed-by: Ahmad Fatoum Tested-by: Chen-Yu Tsai --- (no changes since v3) Changes in v3: - Move the ramdisk chunk into the correct patch scripts/make_fit.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/make_fit.py b/scripts/make_fit.py index 1683e5ec6e67..0f5e7c4b8aed 100755 --- a/scripts/make_fit.py +++ b/scripts/make_fit.py @@ -98,7 +98,7 @@ def setup_fit(fsw, name): fsw (libfdt.FdtSw): Object to use for writing name (str): Name of kernel image """ - fsw.INC_SIZE =3D 65536 + fsw.INC_SIZE =3D 16 << 20 fsw.finish_reservemap() fsw.begin_node('') fsw.property_string('description', f'{name} with devicetree set') @@ -299,7 +299,9 @@ def build_fit(args): finish_fit(fsw, entries) =20 # Include the kernel itself in the returned file count - return fsw.as_fdt().as_bytearray(), seq + 1, size + fdt =3D fsw.as_fdt() + fdt.pack() + return fdt.as_bytearray(), seq + 1, size =20 =20 def run_make_fit(): --=20 2.43.0