From patchwork Mon Nov 15 11:59:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 1763 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 77A2C3F0D5 for ; Mon, 15 Nov 2021 12:59:44 +0100 (CET) Received: by mail-lf1-f71.google.com with SMTP id f11-20020ac24e4b000000b004001e7ea61csf6682907lfr.6 for ; Mon, 15 Nov 2021 03:59:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1636977583; cv=pass; d=google.com; s=arc-20160816; b=jfY/imDYSv6i3qFBoi4O/9bmUkje3Co3ROauv2qolimW+39YuDHz8QSunR9349QHA/ /YobXv5I2rKrhw+faC1YGhiLQbRYejqm+hZxOD1GmEU0gcTFxpAlaT4SvTV260pFAFi3 QKidBHBvR1ux/qcYKlmGbvTFyrvDOMVV69v+Pv6SP97jTOrVMk1Pr12zmwt3N/Ppw2Bt VVBTe9Q7i+xXH/6SjxGWwPKDpauBPLTpXOJIGkfiAoSu3oDbP4iYbMgX2KxSfxwwegcx 6oaJaVYP5aRv56+H9ArAG7fQZxQxKAmOmxjwDOKwqTq6jTF1z2leT6hkuGma0Z36y3gE Dhzw== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=x6yMsbmd3HTa7A112uSg3PHNGwXMCtvuIJRmxscZcHs=; b=FCxsMOL4Q9it4F8OhPp19OzSsc4i63h3PI2E/31+6QDvh+1L7zDycAf2yZF4X4x/oX KyWBb+yK/IEpYOqly7UyJiqraJUkqL9kuljpkIjU8ZMZVNF1Za/Ved0IXnRxGTjeUP7P QpPkTdngMkGc3fMUuY6Qy8/lrI99vRzn0B0Aqo17kphWzhgvXiVVR4397pMnYJFR9Eh7 tlV7MjyczyJ6JGrNcUW4VmzQ0BWIfqlt8EZkrr7m2QeNADpRUzfTq5Cd7dDP2IPD8xNT 52zVjkT4z5wB7t5bTxhRkPSf58Jjj5KRltUmVxm2CcE1trPgszVSRLdXxgHozx6h2MOE /bsA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WTm7uEv3; 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:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=x6yMsbmd3HTa7A112uSg3PHNGwXMCtvuIJRmxscZcHs=; b=dJe6+YM9rMULF6e6wi3ZvjyapeXxjpn8FWi7Jk8MhO6S693NfFLGlAI4egLsbxEPXx JqgtBaJGREkiGqInD9xIHAbou/H60Mag8D/jBNkA35PAe/TRVRhzGfdkTlHAYYnqHzH6 G8k1SixOJMq2KR9ouaFBYxcQSEg1UQoXi10+8= 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: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=x6yMsbmd3HTa7A112uSg3PHNGwXMCtvuIJRmxscZcHs=; b=bO09Vgx52U0AAvfV5ZAMSpLYm7rwCf5pubMWgz8oTAzCzYpWbfo4A2hjpfMMhpaMXe Hhrf9/k1izN/kT0zn6Dz4GKMQoU6Q3Doy9IUFRinFtns5YaZbwXq265GT8vt9FA+P48p vbViu6R1Ov28C0201eCeQoaoQdnKhh5sgOdmY4KJzbvVUcU+1j9OnBexRbs4SMgIINkd d240ZR6nin9Z/DOgLgmmeAzFi6ZUQdzkIkFSpv6A6eLQ1Fmgzrq19TqfH2GRDz4juvOC b2hG2KtxRcJ02uhLa4s0QJ102XaXBrY76DOVMjLNmaOq8AmxxBHaPiwvDtcTsTXz5TDN JoMg== X-Gm-Message-State: AOAM532hV+RNDwk/IJPvNcUoqA7DRvT3p63jgQhpsfK0I1QIU7j4+B5x wk/87RVZ3egXtCfczCKx26dWzHqW X-Google-Smtp-Source: ABdhPJwi6hOXFNh3ZVDT3O3B6CRFf4bbaXz+zsbcB/r7Hg9UiXiusaQeQljobM1fPJDK7fewnnDhow== X-Received: by 2002:a05:6512:3195:: with SMTP id i21mr34582656lfe.50.1636977583636; Mon, 15 Nov 2021 03:59:43 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6512:2610:: with SMTP id bt16ls270449lfb.2.gmail; Mon, 15 Nov 2021 03:59:42 -0800 (PST) X-Received: by 2002:ac2:5f6d:: with SMTP id c13mr33725196lfc.501.1636977582455; Mon, 15 Nov 2021 03:59:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636977582; cv=none; d=google.com; s=arc-20160816; b=byfC4mQv8r8Fha4S29GW0n46PvnFzzc7WWufYijNPrOjCKP/57gV/bJdX7iZl5EM8H E/FrVxFUKR6Y7Bjf7z7WxwbDq+yJvxCr6xjq7j6NPviQAcsWpRE/L55QtHOraG6ALe3v kfazUrmpw6l84bGi8tx/AI3rEK2FQCwkHMJo4gbcfrBjNloZgRO4hep7ufeOqqe+se0I ngqZtHpwaMWRFxdm7fosWfNPt5N9Ic6axJChxC/k/r389pRfbgmLTvzxvK5yj1QWLLhE EKqzjU6i4AXfpSwM77xKcKLVk/0PxhnUyMljq6xdXBXObzvoWnoYWtJtmNBXavfYwisv 0Tlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=uAdMuOeJTSjffw9W6NkRohcasMyOT7xt2Cm+YxLTMx4=; b=NnPud6OJDTSEPt5d36/DP9Vjep8gl6XZPO5JM1y0N+F+dcIvGsgRfw49wBdvR+cQlr ynwEMZCDjhwaSGT8xw6DdsX2735bWuhNUfEPvOsr9AcfRCnjbX4sB/2tjrAdWmaqFD1C fxCatwCbnV3fP43hjnSWcRvFpKoeLVYRvvkyv0zDLuPd2sBnBwYN/U+afJfwpjiYBKHa iSFYlz3uXlRqEgtN5hsT5s+ey4wyhFdNPrBWa/NSQkOzFMqy4owXkrGtMyMqqWmJO6yC PUhTr7YYkwDHj6KPzza1tK8EWvgBewfjXJly3SAXoIjBeWJSCEj6Tz6qGfWqg1vQWAF2 FsZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WTm7uEv3; 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 y5sor3358065lfa.70.2021.11.15.03.59.41 for (Google Transport Security); Mon, 15 Nov 2021 03:59:41 -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:a05:6512:1289:: with SMTP id u9mr25997242lfs.273.1636977581544; Mon, 15 Nov 2021 03:59:41 -0800 (PST) Received: from panicking.amarulasolutions.com ([2.196.210.5]) by smtp.gmail.com with ESMTPSA id p12sm1386276lfa.265.2021.11.15.03.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Nov 2021 03:59:40 -0800 (PST) From: Michael Trimarchi To: Ariel D'Alessandro Cc: linux-amarula@amarulasolutions.com, Anthony Brandon Subject: [PATCH 1/2] configs: imx8mn_bsh_smm_s2: Add nand enviroment support Date: Mon, 15 Nov 2021 12:59:37 +0100 Message-Id: <20211115115938.33697-1-michael@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 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=WTm7uEv3; 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. 16mb for each part it's more then enough to handle both size. Move the nandkernel in the second half and allocate space for nand enviroment partitions 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..89a5c6b77c 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=0x5000000 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=5100000 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:32m(nandboot),32m(nandkernel),16m(nandfit),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