From nobody Sat Feb 7 06:20:41 2026 Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.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 CCF8325F96D for ; Tue, 6 Jan 2026 16:28:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767716884; cv=none; b=YOhEz3ce0cQ3ue9McETGdM9T0/aIE4c1J3uFCWix5lSBz3+V3iQVtjaS7tqIsH0WOuxLWrCiLU4A1v6iqzyZ+06Ge3P0B0bYL4oz2E7wWpI04Hs1YMjop26m4KmWlurUm1q2Pw9gSuU32EHOYhMOlIjvTtc37QXq78UExxy8US4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767716884; c=relaxed/simple; bh=dANt1IxVBpejBPX1GyE+hxJwTnKsLrEyXQVIM/d+pnQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZXM+a5y0x3aNAKk3QjXuO2Y4p7tpMLmS3ZQrLG8AH6+Ne2QoyYzse3cjt7EiZ99aaYbOussl9feBUUt39J/tpZc2wtbrukrHmjQOuDm8q2rjWGudIaHVeeMHqGgyD5rjLcWNjB7myp1mQChmDa8eFndJTdYG9LlpNTRaBf7gAX0= 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=SAdAdfF8; arc=none smtp.client-ip=209.85.210.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="SAdAdfF8" Received: by mail-ot1-f52.google.com with SMTP id 46e09a7af769-7c7aee74dceso491883a34.2 for ; Tue, 06 Jan 2026 08:28:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1767716882; x=1768321682; 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=SAdAdfF82ItFP53vpze7FRhd9MZ1xGXSS+yFQcCxGOXjJaA8duXWAO93tOL2v/uvGk FIX7UARZggLFHolKC5OuYsIFl75cVz4FCzswaHKgXTDkduLJj7zIY+tJIajXrQn0Uzrw YG3kw8OxyqBTgLA7+biddZdMHPphAG1zY7D5s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767716882; x=1768321682; 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=SXzJIduqGnrRx8WamYD877CDhO8NX6YN91R1tXR0wxBjOWgTqaPKeTv09t6ftCD/AD ZKjs7GnH/F2oeLg7v6OWYH/M5gyBctBeyPStYBZ5mxJdHO1HokhieWI0+Ici69m7GnIG x34QK/hN/wrK3s7qGrwumuACVNOPxmX0PIybe9Sf40OuZyTMCUqwVVJytak3No4FPWMa YRCTxp4qqCFV+AU1pVvZGenGJ+sXpIhilSP8hBijev48q7nir/RvjFUd4/usmGCxUHch 0G+4iH0yinsI6UUn+Om3QKvaKMEc+U1gHn2IPYGEhLkptuKN8sF0pRXBIf8Vu0vtsRZm H3BQ== X-Forwarded-Encrypted: i=1; AJvYcCX3WnagB8U7FfywV9cm2ilGa+oy/kX56xSvhgneR/aqWP4+ZZwFjs7UjRGs87y1hK6HdH/oSrOdUnd8Z24=@vger.kernel.org X-Gm-Message-State: AOJu0YyP8oASZZTCEUo8a05a93D2B3Ftf5WsP6o4BHHlbJ6zGcg87ig8 22M7k7UvE5t+Mz/TEfz0oV00sHVRA8jPie8pSK+yWXZFJCLFuoRToYLoALi4dq6OxA== X-Gm-Gg: AY/fxX6myhxAk5dWdQL/7LsK09JdI94aQnh/yDf9jjgcIIhyhLKjpBY2KaHDu0Z5olm 5yAlu2Qtkr2CZGf7AYbGb0fOlSMusAiwiPVbEtjGKVvpfCkGtn3zUnLZOj5W04KbNFg8s2AvGll WOv9czITlNZhZP1kI/MmzlNKjqwSAuzcS8QPVRC/ILUWpwbPaE46pHr1tD30UFuBwOOUEnTcAKF 9Jhy6CPllpVFLwN9gzgHDkxDgDec9PxnWY0ZwXsJUx5kDLX+3w3+KM42wnCZHaF+podNhG/k6jZ IBNvNibLRD6CMqBZqVCt6RvZeJmWRrD7U4VcDLGOIGB2V0HaZI9QVpo6BwfqGp+nkONQknrFmC8 qNH3yQd8PAX2qox6TcBBKXpScHCJ5JkyBIhscWD68s8ZWoTvFqQfmr6y3HIZkKtwShLf3tt0AF4 LxHoj+ X-Google-Smtp-Source: AGHT+IHGVWR+o96TRxTuXQ/F0UqzqBMP6VrRhont/V7m3XjqYj+I6OqdMsB67tcwk8vgU3JBwJdygQ== X-Received: by 2002:a05:6830:2647:b0:78a:5183:8f6a with SMTP id 46e09a7af769-7ce46710f3cmr1799055a34.28.1767716881755; Tue, 06 Jan 2026 08:28:01 -0800 (PST) Received: from chromium.org ([73.34.74.121]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7ce478af8b2sm1630951a34.15.2026.01.06.08.27.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jan 2026 08:28:00 -0800 (PST) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , =?UTF-8?q?J=20=2E=20Neusch=C3=A4fer?= , Masahiro Yamada , Ahmad Fatoum , Nicolas Schier , Tom Rini , Chen-Yu Tsai , Simon Glass , Nicolas Schier , linux-kernel@vger.kernel.org Subject: [PATCH v9 1/6] scripts/make_fit: Speed up operation Date: Tue, 6 Jan 2026 09:27:31 -0700 Message-ID: <20260106162738.2605574-2-sjg@chromium.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260106162738.2605574-1-sjg@chromium.org> References: <20260106162738.2605574-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