Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5D67BFF8860 for ; Mon, 27 Apr 2026 14:00:07 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 182278435C; Mon, 27 Apr 2026 15:59:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=kernel-space.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=kernel-space.org header.i=@kernel-space.org header.b="NxngMQnR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 40E8383AA9; Mon, 27 Apr 2026 15:59:09 +0200 (CEST) Received: from mail.kernel-space.org (unknown [IPv6:2a03:4000:b:d08:14a9:1bff:fedc:75ad]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E3FAD84314 for ; Mon, 27 Apr 2026 15:59:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=kernel-space.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=angelo@kernel-space.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-space.org; s=s1; t=1777298341; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cqiW7F5L32aqGiHflzNfoQaJq++7ftwHlN773GU5rGY=; b=NxngMQnRWVjtPcruIatd3EONmabjjmF7nhNfDK6OKyn6WNexS7fOXJXwort/JXc2wnWuuX b+J/XtU548XenAYr1O3Z7755zG7/8HxTHrfqz5x9CpkyMPMKA8+07cjCPiGN0V9Bg5Y0XG Ox3aljatXdoTjaBBI+b096oUfT69Zu8= Received: from archlinux ( [2a07:7e81:7daa:0:62cf:84ff:feee:627]) by oreshnik (OpenSMTPD) with ESMTPSA id 0e44a936 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 27 Apr 2026 13:59:01 +0000 (UTC) From: Angelo Dureghello To: trini@konsulko.com Cc: visitorckw@gmail.com, u-boot@lists.denx.de, sjg@chromium.org, Angelo Dureghello Subject: [PATCH v2 9/9] m68k: set proper u-boot image size for initial boot Date: Mon, 27 Apr 2026 15:58:54 +0200 Message-ID: <20260427135854.18496-9-angelo@kernel-space.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260427135854.18496-1-angelo@kernel-space.org> References: <20260427135854.18496-1-angelo@kernel-space.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean There is a value of 256K hardcoded as u-boot image size. This produce bank tty as soon as the image size grows over the limit. Fix it by using value preset by CONFIG_SYS_MONITOR_LEN. Signed-off-by: Angelo Dureghello --- arch/m68k/cpu/mcf5445x/start.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/m68k/cpu/mcf5445x/start.S b/arch/m68k/cpu/mcf5445x/start.S index f0264671d38..ae0e7c35d87 100644 --- a/arch/m68k/cpu/mcf5445x/start.S +++ b/arch/m68k/cpu/mcf5445x/start.S @@ -114,7 +114,7 @@ vector192_255: /* Image header: chksum 4 bytes, len 4 bytes, img dest 4 bytes */ asm_sbf_img_hdr: .long 0x00000000 /* checksum, not yet implemented */ - .long 0x00040000 /* image length */ + .long CONFIG_SYS_MONITOR_LEN /* image length */ .long CONFIG_TEXT_BASE /* image to be relocated at */ asm_dram_init: @@ -292,7 +292,6 @@ asm_dspi_rd_status: move.b (%a3), %d1 rts #endif /* CONFIG_CF_SBF */ - #ifdef CONFIG_SYS_NAND_BOOT /* copy 4 boot pages to dram as soon as possible */ /* each page is 996 bytes (1056 total with 60 ECC bytes */ -- 2.54.0