Message ID | 20250520085436.925901-2-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCQ4XFG47UFRB4MGWHAQMGQECQBBCRQ@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 9191F3F332 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 20 May 2025 10:55:14 +0200 (CEST) Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-3a3561206b3sf1589343f8f.2 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 20 May 2025 01:55:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1747731314; cv=pass; d=google.com; s=arc-20240605; b=audlFKTVQLP0bkQ9Fm4tG09JZynz2JP9OeMP29G8ocUQGOits4th5Z5N71mZdImjD9 pTPt8HQRrgnFz7oAnAgeG0JxTc0EnAFyclBGkdq1VtIdLmUg+BvoezdOcvfmIzoga5It Tr1I0mT1HsEiMPRO4tPcL5SheqVaLtEigdTnnKJGH36drrIJYeC0UVnVjSA9fDHrUZ84 vhKqxywKOnIS81O0Rpff47zccs5DGvKYxS0toO/nXx3w7S7GDkCsNnoqjCMXrTFWfVbY cnlvfSbsaSzgWsQUWPEADi94am88bxfmdTkrr05jRs9r8/ebhgKoJbckNXIgYO0DeFk1 BSqw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=lhoKLzCgfS0uNRy0gUqbItSnBG+9n/ItkCLvmtF5uPw=; fh=wfAAHlShye23QccoB0OBeLmslArLUh4wozPqZp7ckUk=; b=ffO2NlOL301G2C8GRKpNgYRmxxitWL/1xj4c2diC6DK4BahNwnIYJMTVaKghi95pmb wc1SJ0hckb21Gyf1gLs8f1EJtIBy99vJPONzgtYpolM/v0KKVKearMR178sRyeYh7J9N 6b8ld5FLKgv+NJBT1vYGYihP20Fx6paWvxkTuHeg5ESdcNGOuNd+KDKR73QrF/INjt8f YosmIBQ2IiLkPEVxSfXCyvzP7jlFWw9uZKTkAdpw1XmBV7YaljqlZKm4M4EW7egyonKc ZtgATBMkCVPQpZUW+Z1VWxamaNmyOEdEi4qDd4tWOt6YcSZChByF/eWaATn4e5D9FoTd 9hDQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VBVVWgbZ; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1747731314; x=1748336114; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=lhoKLzCgfS0uNRy0gUqbItSnBG+9n/ItkCLvmtF5uPw=; b=D6BUtcIA5QcY0Oh91BZs7Yvy+gORgbk1RLN4/GXSQVWZaSNA4J1s34X3kSbnUqDpv9 N6p98zxXvmvoLaPJTfgPGjtGWBZdhroQqos8vpd17MygYuHQOGhtkrq6m4Aw8r8malI9 iRBLb4AJ1hj2jFktHY0xs6kAWtrnU9RAOQ4IA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747731314; x=1748336114; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lhoKLzCgfS0uNRy0gUqbItSnBG+9n/ItkCLvmtF5uPw=; b=vKIF9ghz4jw9f+vZXn+zLW81INJO6OIkizVLLdlTxBKmovCT+TLLSm7gLZ00UyFwJ+ SNUEvvSKlIziOWLhojeFIqCTVvjg2daTqz2caiCVnbIclmUYiXxgE/UD7FliyA+JBoro U3U/Prypf4JsL2J6XMAQ+R9lwe1FqYLj2Y836huJybijzigHeNwh/SaA6yWyrszgLnwW LZd91F1BebQ0NSKQXgBwgwXPWX5IdsRcuEi2JaqmWlDa67BsIRr7NOZQPXYWRg94Njy+ tGzp+5AoHojsfcEEJte4Z1VITWuRUrMY//ucvrymvlcrO2yaCcxsIC7h38ILW27s9mQo 7JXQ== X-Forwarded-Encrypted: i=2; AJvYcCUIBhMVxbQwZ3Pf7q/vuWkV4nwX3ZtI4qnSD6K69RnmXnInAmjhrSF2nZvV+dsF5KjK3e2PZ/YMeFIfeh2W@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Ywj0B7Cik6b+c9NhF+Yt+OyjfhuVSgTDLOZCGYQlQcBSDm4vgr9 q133KmM36Yv7ORFQd18O9wxfbYlOUTf6uGhVNf1RHWkSKlDAo7PUk2DXGRZ66fFStyTBMQ== X-Google-Smtp-Source: AGHT+IHm5ixfpbJccvc5MVHBP64NwXw5dFLUQQxgZeuTvSzdZvZRxDDOOGWVvNEOiBLdoMcUiD4DCA== X-Received: by 2002:adf:a448:0:b0:3a0:b294:cce9 with SMTP id ffacd0b85a97d-3a35c83ee0amr9643338f8f.23.1747731313898; Tue, 20 May 2025 01:55:13 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=AVT/gBEVyuJXSogPcoKqwH60uDf4Q1qB+nxvDddz7JbyFlGtAg== Received: by 2002:a05:600c:3d05:b0:43d:1776:2ebe with SMTP id 5b1f17b1804b1-442f878ecd3ls19589775e9.2.-pod-prod-08-eu; Tue, 20 May 2025 01:55:12 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWZ3KG2gEuqgvTSY01XED8xZkRbK0ALSoFuOACT/pTBlQUu0HzMLae7wtSaa9UGyE7A0blP1szTmpX2h+Vr@amarulasolutions.com X-Received: by 2002:a05:600c:c0d2:20b0:43c:f597:d589 with SMTP id 5b1f17b1804b1-442fda2e7d3mr82674845e9.27.1747731311835; Tue, 20 May 2025 01:55:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747731311; cv=none; d=google.com; s=arc-20240605; b=LahA/tJfFgBQK7mp0nwLYmWVl9GT6iecKXnSY/BsCYmoEtqQ/XjMzGz3eKQfSJpAM8 PKOEsqTgNiL+ujmi85QsFg2exzAfDbncGKyPtPLf6E/7u0N9rHIaG8HS7EAsWir3F5Kz t2jIWE2COdic9RyOpKNltXlKXkv+XM0lFCuU961AFq0pHkNEEARpeMqCABIZMnnpi7Au 65Yc0TnDZlLxfaHNKXw+4a3pPLHgxhp7K8DmOS4k8HB4Bw/yF59mH8QdHWM5ISjPM8Tz sGttysNE0pHBuBL74mheQYMdPk4rC/RS+Xl8Zp8gcvY5fEATcRdy/4Xx5DL79pHEOkQ3 xXzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=NiQKVm5u89cdiqENo+fYKwV1flBpvFBWTrud/HFbHr4=; fh=UbOSDUyyaVGhY+iwOflF2g/Dq5ZY7qIayogx/Vd0Ed0=; b=XQRgWPzbjAReduMv5gH2gjoKcSK+0LyU8l+hnS82e6dqIfoQRh3LQ/8FFZ5EVfvwTM Ohr5o0caH08KwQB4TdvFqec61pBwXjzq1nFXIBTYRbxx7EuSWf9q/L1OuFaGfItwp1Hp lW23DHjim8zhQgus33XrCi/6IwbcHDC9J6ZFUUqC6RBtE1y3xEoj6QlJJFswope8eJxi G850fCf7aO2kubRXUL+MBmsoEP8vtkAwLrfbluid99C4NesihmKPWffpWsZznVdLgwFM ejzIy2ku2LzUbvUEYs6kAoXsBz5b8iHGZqn9k7CKcBiQF84Hc1qUlOFJzhPfzcFNFPnR fb0w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VBVVWgbZ; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 5b1f17b1804b1-442fd5a819esor34750845e9.9.2025.05.20.01.55.11 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Tue, 20 May 2025 01:55:11 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCWG9e9QVy0C2pKP6eZKHh/qup2pPgPkXhhwT5SM5YjXDkxLVathZY1nKyIMOJ8bYZwq+4JLSDQGesIa4Q3s@amarulasolutions.com X-Gm-Gg: ASbGncs+EkuuLbwotkASYfpgbJonV3rBDkSeUwY1drSH3ZHXYPft6k+EaFYUHU1N3db z+pP0sjhULX9D8E+SdyhYHbGy0mKnWFaWHg8nYmelszW3Jt7sWjLu8lRCvmVNH+t0ZXbqik3/U+ Esd8y11c+wn8FV7/+Ev7v62dLzPLb0oXSFk55lSjWRNuaiFWuuDrI9AmEf8305LUHk+pjxdQisZ U+oN7+sWUhVpjHhFy/chE5A03xGea3D/7QJPeIvG3nw7eWxT0kchZ4zGRjxHzNSWa7aSrrkaR1f B1YZ9dAfRcxayXf7o43bJyDAEVuDirOq/Kkb7065P7XLaCFCQe/GzxIPPucYe1h4FYIGwBQ93r4 IXLogY+C9rJFce/d/DzbYJ2MyHQ== X-Received: by 2002:a05:600c:1553:b0:43d:17f1:2640 with SMTP id 5b1f17b1804b1-442fd665728mr131599885e9.26.1747731311416; Tue, 20 May 2025 01:55:11 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.. ([2.196.40.47]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-447f6f062fcsm21541315e9.15.2025.05.20.01.55.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 May 2025 01:55:11 -0700 (PDT) From: Dario Binacchi <dario.binacchi@amarulasolutions.com> To: u-boot@lists.denx.de Cc: Sven Dembiann <Sven.Dembianny@bshg.com>, linux-amarula@amarulasolutions.com, michael@amarulasolutions.com, Simon Holesch <simon.holesch@bshg.com>, Dario Binacchi <dario.binacchi@amarulasolutions.com>, Anshul Dalal <anshuld@ti.com>, Greg Malysa <malysagreg@gmail.com>, Jerome Forissier <jerome.forissier@linaro.org>, Masahiro Yamada <yamada.masahiro@socionext.com>, Nathan Barrett-Morrison <nathan.morrison@timesys.com>, Oliver Gaskell <Oliver.Gaskell@analog.com>, Peng Fan <peng.fan@nxp.com>, Quentin Schulz <quentin.schulz@cherry.de>, Sean Anderson <seanga2@gmail.com>, Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com>, Trevor Woerner <twoerner@gmail.com> Subject: [PATCH v3 1/5] spl: Kconfig: support U-Boot load from raw NAND Date: Tue, 20 May 2025 10:54:16 +0200 Message-ID: <20250520085436.925901-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250520085436.925901-1-dario.binacchi@amarulasolutions.com> References: <20250520085436.925901-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VBVVWgbZ; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
diff --git a/common/spl/Kconfig b/common/spl/Kconfig index aa3a85eea54d..77cf04d38ed0 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -974,6 +974,21 @@ config SPL_NAND_SUPPORT This enables the drivers in drivers/mtd/nand/raw as part of an SPL build. +config SPL_NAND_RAW_U_BOOT_USE_SECTOR + bool "NAND raw mode: by sector" + depends on SPL_NAND_SUPPORT + select SPL_LOAD_BLOCK + help + Use sector number for specifying U-Boot location on NAND in + raw mode. + +config SPL_NAND_RAW_U_BOOT_SECTOR + hex "Address on the NAND to load U-Boot from" + depends on SPL_NAND_RAW_U_BOOT_USE_SECTOR + help + Address on the NAND to load U-Boot from, when the NAND is being used + in raw mode. Units: NAND disk sectors (1 sector = 512 bytes). + config SPL_NAND_RAW_ONLY bool "Support to boot only raw u-boot.bin images" depends on SPL_NAND_SUPPORT
Commit 2a00d73d081a ("spl: mmc: Try to clean up raw-mode options") breaks the boot of the BSH SMM S2 board. As stated in the commit itself, "Some boards use this value even though MMC is not enabled in SPL, for example imx8mn_bsh_smm_s2". Support load of the U-Boot image from raw NAND sector. This is equivalent to load from MMC raw sector. Fixes: 2a00d73d081a ("spl: mmc: Try to clean up raw-mode options") Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- (no changes since v2) Changes in v2: - Add SPL_NAND_RAW_U_BOOT_USE_SECTOR and SPL_NAND_RAW_U_BOOT_SECTOR common/spl/Kconfig | 15 +++++++++++++++ 1 file changed, 15 insertions(+)