From patchwork Mon Nov 15 18:09:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 1769 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 2CE373F0D5 for ; Mon, 15 Nov 2021 19:09:13 +0100 (CET) Received: by mail-ed1-f70.google.com with SMTP id v10-20020aa7d9ca000000b003e7bed57968sf3520022eds.23 for ; Mon, 15 Nov 2021 10:09:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1636999753; cv=pass; d=google.com; s=arc-20160816; b=eD3ywvd7ods3Lho6kH5Yo08t7cqsO8yb6mY2R65xm8SISnk8dzqs8kjP3MDUQ7gMQI ffUrU7AmNMUSXZuWl3vyijMDUbKGjYGXCJHdG77t2AHTbnEb+VeWeSmv7FOwwlA6Tk9N umLOhLqIcjOG2Atoye+IVoH5+YWZkDQcU+1UIVBi+U/o4nWtcL299Lr0mERMO2QvPVh3 D74fAaHLOM27/f/A1uKTH/HvJkV+PHrmFjzryu4S6Cz+MJ0zz1PBdQ9Kzof2ItJfs8Cg eCun+4yKYXhBcszGLzlJaNnKFz9/NBVIOgUjxPPqyO3BHZPqOp6ZtcmrEXqLL+U160XU tCWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=15gkkXzs7jHbATMX6e+Go5MLVrWEh3y/f73+NFMVpwc=; b=HN0I337lorew1wLrQEGWzRNpY5O4xMuECt7fzN0u7O1mv6+TOrZTwI4gb3q52tbH4E tco3Y5taU0fEs8mbKMNMdCNq+qdju1z74Lotyqlxf+p5kVp/915ETw6l3beXFH1ekkCT AM/QTTXBQa6Egu+oNPGaZFYG05/nFad/v2/YzYCUQTVo4xS5csHcq+++jcDwU/yHWPRa yRBXO2GmURIJ4EAX9wUBSP/jNYis/0/UptCM80MzUFdBPfrkTJ8skw2Qg/V8baGpYpNL HdoXlHu8ovVVwMTuU5Lq3woYT0SU80Djx44pBVdop8X39KDpTlgO1TaBnKrFcUKYKzpf nkVA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pFT0jzvz; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=15gkkXzs7jHbATMX6e+Go5MLVrWEh3y/f73+NFMVpwc=; b=lx2u9mnURde4I13F88gW0Bi3f2SNOk0vY0LaFg9zv4gPgj6Gwm77+rqXRxljXYHysI e+yY6XJxT9TV6nrD1kqInvX5nzCPj3VEcOXp8XK5ME6MB0/4E4psMHjCs6hDQSILxgNb ZAPLtfKLeUza4CxATx2PPy+DsWrVpfJD/HXd4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=15gkkXzs7jHbATMX6e+Go5MLVrWEh3y/f73+NFMVpwc=; b=FAlJ+x4RuuFtPDjZKbYI9Yo1yy/5xebhe9TiVluWspC5ZMe+7UFopgO4lO5DgbZcMe gHHsF3M+yXBpiG+GXXga9/UWI5cJLxcakUZaK3wBAfWekGymWGYwxTnXyS4LxOkUbBpA +Hy9qWfOm7zZqODalk7Ms9xdQPuLbZ6VeMZb0RB1I7MS61nn30/ep8HPL77B3gfCrem3 Y7LW3jzoDKrFIEjV3CnXglsFxA+p145lx9ea+doWZZJzuXA66thKmRoc4XWWRw4MqFks jSsL1evVHp9ft9MXRQs/zDxYwRpCNF7Bse/oK0ZIQbZga+pI6ZOO2gJRzeBgs+F/x5J+ bSZA== X-Gm-Message-State: AOAM5317gxWyPNdjok8qjMwprThfN/NgFqW5gNk7ZbNd9XQdVbozV1uF +330CP9tm9Fyo3b0q4Gyj2kKa+E8 X-Google-Smtp-Source: ABdhPJyfGId1q6cOiVaAIyMi67Kn7si3org1tm5GQYxu13r0Qcu1JZRv9jMw+TMJQJJ+V1dzwqlQUg== X-Received: by 2002:aa7:c78f:: with SMTP id n15mr910416eds.344.1636999753036; Mon, 15 Nov 2021 10:09:13 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:c944:: with SMTP id h4ls36816edt.1.gmail; Mon, 15 Nov 2021 10:09:12 -0800 (PST) X-Received: by 2002:a05:6402:2686:: with SMTP id w6mr887905edd.141.1636999751967; Mon, 15 Nov 2021 10:09:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636999751; cv=none; d=google.com; s=arc-20160816; b=f297XA8YkOQtxYj76WZYwgjiL4tb9YUOQSH2yO6Kg2sJGARM9KQBrPCv1BZtf6RlMN m2yoQep6J9Uj+/vwBv2lOjZEYZn2BI+O96SlR+6LUz8sZH3mHkvccCIeHWxL74U6vL7V gvki4rrIhDCOVVaXHV/QUR5Pj6QkIZhMtxACQPDwQRtyMtu0R1Ski4MdNG9aWyypFnzI jcP9ujEyAyFkeyekK83XQ5B3ZdnVp2Umw63n1QxYwF5RmKw39eCMsT9gkPh7QxTilWEE IAaWwfusdL0TIOAOcr+xf1hP32OUqHl+TLdxdJz3d6R6NIxDyvMrd/t3fY+b5/bXsa4Y 9YpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=CDsuXCb9iRLqjfOU0QiKR+SENor/AmFlHMkEIum045I=; b=O0EP2RAy5FSfR6mn3wPV89oXKLAIBZPc3NFhfZiJ7/6DNMzvROnNtuqXQBXb2115uE AjD1eHDwwC4kYPv/fs+PS2pLKJAXlNJqGcbrR3QB5GdvVm8347lbN8uI8yy9BtmZ4PT6 uMB/e45Z/islBFVMW+HzJPQzv9yQsdYJmL8M1vRPHhIPE7x7AlF6yNU8k2DlDAMbHt2Y iZ5A7qNtKMpwDW3E7ygBgsLFoeoAE/czfWJgGnxkzeUuAwGKxlowhzCN5XEQ5upuVQ+H bUee4cTMkywGVaBjIuLXnJwL74RwaAjCQk7XU8G0ZQuj5f5USzl9uW4bb5co8yki/qnn ElNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pFT0jzvz; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@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 mp3sor8702835ejc.60.2021.11.15.10.09.11 for (Google Transport Security); Mon, 15 Nov 2021 10:09:11 -0800 (PST) Received-SPF: pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:906:b854:: with SMTP id ga20mr1188637ejb.308.1636999751641; Mon, 15 Nov 2021 10:09:11 -0800 (PST) Received: from panicking.amarulasolutions.com ([2.196.210.5]) by smtp.gmail.com with ESMTPSA id lv19sm7282132ejb.54.2021.11.15.10.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Nov 2021 10:09:11 -0800 (PST) From: Michael Trimarchi To: Ariel D'Alessandro Cc: linux-amarula@amarulasolutions.com, Anthony Brandon Subject: [PATCH 2/2] configs: imx8mn_bsh_smm_s2: Add nand enviroment support Date: Mon, 15 Nov 2021 19:09:07 +0100 Message-Id: <20211115180907.74178-2-michael@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211115180907.74178-1-michael@amarulasolutions.com> References: <20211115180907.74178-1-michael@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: michael@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pFT0jzvz; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Re-arrange the partition size and strip them out. nandboot should have a space to hold two copies of imx-boot. 8mb for each part it's more then enough to handle both size. smm is a secondary boot offset of 4M. Signed-off-by: Michael Trimarchi --- configs/imx8mn_bsh_smm_s2_defconfig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configs/imx8mn_bsh_smm_s2_defconfig b/configs/imx8mn_bsh_smm_s2_defconfig index 68730b90da..5ff842ebdd 100644 --- a/configs/imx8mn_bsh_smm_s2_defconfig +++ b/configs/imx8mn_bsh_smm_s2_defconfig @@ -8,6 +8,7 @@ CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_NR_DRAM_BANKS=1 CONFIG_ENV_SIZE=0x2000 +CONFIG_ENV_OFFSET=1800000 CONFIG_DM_GPIO=y CONFIG_DEFAULT_DEVICE_TREE="imx8mn-bsh-smm-s2" CONFIG_SPL_TEXT_BASE=0x912000 @@ -16,6 +17,7 @@ CONFIG_SPL_SERIAL=y CONFIG_SPL_DRIVERS_MISC=y CONFIG_SPL_SYS_MALLOC_F_LEN=0x2000 CONFIG_SPL=y +CONFIG_ENV_OFFSET_REDUND=1900000 CONFIG_SPL_IMX_ROMAPI_LOADADDR=0x48000000 CONFIG_DISTRO_DEFAULTS=y CONFIG_SYS_LOAD_ADDR=0x40480000 @@ -40,9 +42,12 @@ CONFIG_CMD_USB=y CONFIG_CMD_USB_MASS_STORAGE=y CONFIG_CMD_MTDPARTS=y CONFIG_MTDIDS_DEFAULT="nand0=gpmi-nand" -CONFIG_MTDPARTS_DEFAULT="gpmi-nand:64m(nandboot),16m(nandfit),32m(nandkernel),1m(nanddtb),8m(nandtee),-(nandrootfs)" +CONFIG_MTDPARTS_DEFAULT="gpmi-nand:8m(nandboot),16m(nandkernel),2m(ubootenv),1m(nanddtb),8m(nandtee),-(nandrootfs)" CONFIG_OF_CONTROL=y CONFIG_SPL_OF_CONTROL=y +CONFIG_ENV_IS_NOWHERE=y +CONFIG_ENV_IS_IN_NAND=y +CONFIG_SYS_REDUNDAND_ENVIRONMENT=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y # CONFIG_NET is not set