From patchwork Tue Nov 16 13:39:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 1773 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id AD8C43F158 for ; Tue, 16 Nov 2021 14:39:15 +0100 (CET) Received: by mail-ed1-f72.google.com with SMTP id i19-20020a05640242d300b003e7d13ebeedsf4702302edc.7 for ; Tue, 16 Nov 2021 05:39:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1637069955; cv=pass; d=google.com; s=arc-20160816; b=ac5MVlfv//U0qwieL98Aq9XsbPucVFE5RMLZjpK3pMY68GapCqZIT1tds5iUXPLTE+ WJgJC7lkQX/b9/jB0kMjkjJp2vqmQb/qIPvWGFtUrgpd3iaEeX2ReqjG+wNYlLEE20NZ JCqSd7JVEPkjqK72kMEJbm2YQdI7riNKVNhBol3xlmncR2v/bb/S9wmvyLtrW7WpbkhJ Mr6/gEsoSLtjnS7rNPoVlo5eb2H5rsS1/4dWQs9g6WWzLRj59nzfYcTJoBIClmxFK8UZ 6iTYDaqDah662YF8ZEmyBZyz4iXnfLB9jGYYUqe6Rje09tpTUol5JRXUHlf3ohLUv2lh /bMw== 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=YhCSeGbTmOcbmCGD5UDM/EaKG6Wqz4EkkSxv5vJyQvw=; b=InCZsqNYABkddXxYV2FxHTIvgGrYQ9a33JNDOSEzc5+YBfJfwYiCOBLP9fjk6wOIEX rm3a7inBtpq/VH6SV1ShOyhiJiwVyc7IVQll5G8qy6EN8lKkDAW8Y0u63PM9aRuz5DL2 TIYebvgV7mBIk2hJB1aAGx00LZHnk7KqzR2gUYGXXNdC9B9d7gg5/MuZZ4N3Ix94V82z 2cpzip6WXMZ1s/MQ4Z3UhR3eOvIHc0AIFhBziLmoCag6oUofJH296qr6p83lhvMUUFul cj+kxOfYXQUBtjhXCreEW9Tg57wDK1UoisWRtn6pztIY8yRdPGyEFdChDUANn3OeULoV iIyw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ARy0vR1a; 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=YhCSeGbTmOcbmCGD5UDM/EaKG6Wqz4EkkSxv5vJyQvw=; b=XUPp5JKi5znnZGlfKzXIpcVkfUcCnKaXCd6LNWSsRTijLvwW3ohtbUN/2+OTFUH1ra pfQysT6/+DxLKKT8tDa5qwLtTj1dvFUk7QMxyBBSgoUW2EN8U9j41bRqMEEsfshG0Wne Bw4u4WGPbLOyu34IuHauJLf2weSmlvEiGgPl0= 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=YhCSeGbTmOcbmCGD5UDM/EaKG6Wqz4EkkSxv5vJyQvw=; b=60wbsMePhx24rd8WGw3t2T7uMyZPh3ANH0jKtNgxocMEOQObGZLrJALa8NMoGD9hVl CMzBeQ61/lABj65e9/2rFC8+5gnXHRZxrIBX4lNW4uauAcXeZCQvpkQXuCCKAI0Rdy5N hYIR7YeWGCmAnnhK8hv95xGwr0+vJUB17przQS+ej+YEpSeYbmUy9ILTcxRKQekHD8QI 99p4jL3ul3cZDZ8rWAs3mhV2YCQ18i/0tfH7eDNqaYds/24ciD8FRGRcQqCLn6P2sYWa 8YNlq9MOZ84HmukZ3VdUzHzgkXR1BhjivVcwMAMCse7r4heEsD5UVizWv0o6cUpegqvc nsJQ== X-Gm-Message-State: AOAM533MkKq0mrIO1q9BDkRIJmJiXNMO6a5Yy4/ZDaEXmIjRjMKWZ5tN POpeAuKm6eyJ4Go/0IVyqcGH48e4 X-Google-Smtp-Source: ABdhPJzbV/Cs2PBpd7KxKuIzHz4vALY5efKNPRPpaL9EMCEU4Kr80YSOYL7IGAJZoK0AqwtF5Qfvqw== X-Received: by 2002:a17:907:96a9:: with SMTP id hd41mr10317482ejc.413.1637069955420; Tue, 16 Nov 2021 05:39:15 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:907:7e93:: with SMTP id qb19ls5184124ejc.4.gmail; Tue, 16 Nov 2021 05:39:14 -0800 (PST) X-Received: by 2002:a17:906:ad89:: with SMTP id la9mr9888640ejb.178.1637069954261; Tue, 16 Nov 2021 05:39:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637069954; cv=none; d=google.com; s=arc-20160816; b=js9a+z4tp+IUUiLMUhUX/gNbbKwm76pxq8YW2TObjMj2OhOUOHIS6neFVi6Et8Kano KTUHLtXb02WQWedtmViTkvPKk8yAnC+Cb/ZXJP16X8AikxlTiejElT9hRfmKeyu/Ax03 RuxVaB9XEMtCyBbZUxBoxVFB8o8KoAIlKhSSmGQLD9Bmv1z0lrJbEEY97mHI2rEeXMSG oFoZkur4p5fRFSe9Sv3JqZvwpHWlOrSqGyhp1zLhiQR/KjD9KHSggz36NlfnzmNgIcn/ xmoTHW8TF7qYlCKAwsY7yOaT7KWuYGun9LYrZl0IpFk+0SYkqCqJ8b366lv0cTqDyw9N Qo0w== 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=AG4BVj7tuiCtZGzw5R7o1G3JHsmLK8FMyurFTrTaHK8=; b=CPsEHoF45Z+aoDO0uIfG0Nb6kJq8hB0PCZj8RVWByWOXwNS06IRt+sm7Rfd6wSRM4E R5qabdLaZAB/u/8u5noAwxI25rbuaoTniEvQXv24kIVznPzGZbk11y+GkFfP6SC+Ee1H B2Kd0CUwc7PzAyCTpWgDnxyRlDIcf6muazX1csrXw0qpJGc0Cye19U9Qzhf27kdvEQ3m wIHqIDnJ9vMWj8jgTyoxRCtZplelF/EuNU+OJchc4S0Qt11YBoyCwNRrMXRRaAfJP4RH uKysNuQpF88wYguHVRLKsaXiF8ligSHkxOAQ6y0Gcub5QIhg8TNkW1e+M3TvM7l6YL2b Q0og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ARy0vR1a; 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 z22sor6711692edb.20.2021.11.16.05.39.14 for (Google Transport Security); Tue, 16 Nov 2021 05:39:14 -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:a50:ee96:: with SMTP id f22mr2535451edr.77.1637069953891; Tue, 16 Nov 2021 05:39:13 -0800 (PST) Received: from panicking.amarulasolutions.com ([2.196.210.5]) by smtp.gmail.com with ESMTPSA id f17sm6386560edf.21.2021.11.16.05.39.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Nov 2021 05:39:13 -0800 (PST) From: Michael Trimarchi To: Ariel D'Alessandro Cc: linux-amarula@amarulasolutions.com, Anthony Brandon Subject: [PATCH] configs: imx8mn_bsh_smm_s2: Add nand enviroment support Date: Tue, 16 Nov 2021 14:39:09 +0100 Message-Id: <20211116133909.158867-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=ARy0vR1a; 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..7a841e0b05 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=0x800000 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=0x900000 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),2m(ubootenv),16m(nandkernel),1m(nanddtb),-(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