-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #381 from chrisdimich/kirkstone
u-boot-boundary: add Nitrogen8M Mini SMARC and Nitrogen8M Plus SMARC support and fix bootscript
- Loading branch information
Showing
4 changed files
with
233 additions
and
9 deletions.
There are no files selected for viewing
108 changes: 108 additions & 0 deletions
108
...xp/recipes-bsp/u-boot/u-boot-boundary/0001-imx8mp_nitrogen_smarc-add-Mender-support.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
From e5f0cc6d04110043e1a6fc4f35f11a36396914e3 Mon Sep 17 00:00:00 2001 | ||
From: Chris Dimich <chris.dimich@boundarydevices.com> | ||
Date: Tue, 4 Jun 2024 15:09:41 -0700 | ||
Subject: [PATCH 1/2] imx8mp_nitrogen_smarc*: add Mender support | ||
|
||
Signed-off-by: Chris Dimich <chris.dimich@boundarydevices.com> | ||
--- | ||
configs/imx8mp_nitrogen_smarc_2gr0_defconfig | 6 +++++- | ||
configs/imx8mp_nitrogen_smarc_4g_defconfig | 6 +++++- | ||
configs/imx8mp_nitrogen_smarc_8g_defconfig | 6 +++++- | ||
3 files changed, 15 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/configs/imx8mp_nitrogen_smarc_2gr0_defconfig b/configs/imx8mp_nitrogen_smarc_2gr0_defconfig | ||
index 4d4d6e7b661..a51abfe05bb 100644 | ||
--- a/configs/imx8mp_nitrogen_smarc_2gr0_defconfig | ||
+++ b/configs/imx8mp_nitrogen_smarc_2gr0_defconfig | ||
@@ -10,7 +10,7 @@ CONFIG_SPL_LIBCOMMON_SUPPORT=y | ||
CONFIG_SPL_LIBGENERIC_SUPPORT=y | ||
CONFIG_NR_DRAM_BANKS=3 | ||
CONFIG_ENV_SIZE=0x2000 | ||
-CONFIG_ENV_OFFSET=0xffffe000 | ||
+CONFIG_ENV_OFFSET=0x3fe000 | ||
CONFIG_IMX_CONFIG="arch/arm/mach-imx/imx8m/imximage-8mp-lpddr4.cfg" | ||
# CONFIG_SPLASH_SCREEN_PREPARE is not set | ||
CONFIG_DDR_RANK_BITS=0 | ||
@@ -91,6 +91,8 @@ CONFIG_SYS_MMC_ENV_DEV=0 | ||
CONFIG_SYS_MMC_ENV_PART=1 | ||
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y | ||
CONFIG_NET_RANDOM_ETHADDR=y | ||
+CONFIG_BOOTCOUNT_LIMIT=y | ||
+CONFIG_BOOTCOUNT_ENV=y | ||
CONFIG_SPL_DM=y | ||
CONFIG_REGMAP=y | ||
CONFIG_SYSCON=y | ||
@@ -198,6 +200,8 @@ CONFIG_SPLASH_SCREEN_ALIGN=y | ||
CONFIG_VIDEO_BMP_GZIP=y | ||
CONFIG_IMX_WATCHDOG=y | ||
CONFIG_LIBAVB=y | ||
+CONFIG_SYS_REDUNDAND_ENVIRONMENT=y | ||
+CONFIG_ENV_OFFSET_REDUND=0x3fc000 | ||
CONFIG_OF_LIBFDT_OVERLAY=y | ||
CONFIG_MCP230XX_GPIO=y | ||
CONFIG_DM_I2C_GPIO=y | ||
diff --git a/configs/imx8mp_nitrogen_smarc_4g_defconfig b/configs/imx8mp_nitrogen_smarc_4g_defconfig | ||
index 5a299cff161..6ee500a9eb0 100644 | ||
--- a/configs/imx8mp_nitrogen_smarc_4g_defconfig | ||
+++ b/configs/imx8mp_nitrogen_smarc_4g_defconfig | ||
@@ -10,7 +10,7 @@ CONFIG_SPL_LIBCOMMON_SUPPORT=y | ||
CONFIG_SPL_LIBGENERIC_SUPPORT=y | ||
CONFIG_NR_DRAM_BANKS=3 | ||
CONFIG_ENV_SIZE=0x2000 | ||
-CONFIG_ENV_OFFSET=0xffffe000 | ||
+CONFIG_ENV_OFFSET=0x3fe000 | ||
CONFIG_IMX_CONFIG="arch/arm/mach-imx/imx8m/imximage-8mp-lpddr4.cfg" | ||
# CONFIG_SPLASH_SCREEN_PREPARE is not set | ||
CONFIG_DDR_MB=4096 | ||
@@ -90,6 +90,8 @@ CONFIG_SYS_MMC_ENV_DEV=0 | ||
CONFIG_SYS_MMC_ENV_PART=1 | ||
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y | ||
CONFIG_NET_RANDOM_ETHADDR=y | ||
+CONFIG_BOOTCOUNT_LIMIT=y | ||
+CONFIG_BOOTCOUNT_ENV=y | ||
CONFIG_SPL_DM=y | ||
CONFIG_REGMAP=y | ||
CONFIG_SYSCON=y | ||
@@ -197,6 +199,8 @@ CONFIG_SPLASH_SCREEN_ALIGN=y | ||
CONFIG_VIDEO_BMP_GZIP=y | ||
CONFIG_IMX_WATCHDOG=y | ||
CONFIG_LIBAVB=y | ||
+CONFIG_SYS_REDUNDAND_ENVIRONMENT=y | ||
+CONFIG_ENV_OFFSET_REDUND=0x3fc000 | ||
CONFIG_OF_LIBFDT_OVERLAY=y | ||
CONFIG_MCP230XX_GPIO=y | ||
CONFIG_DM_I2C_GPIO=y | ||
diff --git a/configs/imx8mp_nitrogen_smarc_8g_defconfig b/configs/imx8mp_nitrogen_smarc_8g_defconfig | ||
index a6e195a8db1..6d79c1cfcf2 100644 | ||
--- a/configs/imx8mp_nitrogen_smarc_8g_defconfig | ||
+++ b/configs/imx8mp_nitrogen_smarc_8g_defconfig | ||
@@ -10,7 +10,7 @@ CONFIG_SPL_LIBCOMMON_SUPPORT=y | ||
CONFIG_SPL_LIBGENERIC_SUPPORT=y | ||
CONFIG_NR_DRAM_BANKS=3 | ||
CONFIG_ENV_SIZE=0x2000 | ||
-CONFIG_ENV_OFFSET=0xffffe000 | ||
+CONFIG_ENV_OFFSET=0x3fe000 | ||
CONFIG_IMX_CONFIG="arch/arm/mach-imx/imx8m/imximage-8mp-lpddr4.cfg" | ||
# CONFIG_SPLASH_SCREEN_PREPARE is not set | ||
CONFIG_DDR_MB=8192 | ||
@@ -90,6 +90,8 @@ CONFIG_SYS_MMC_ENV_DEV=0 | ||
CONFIG_SYS_MMC_ENV_PART=1 | ||
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y | ||
CONFIG_NET_RANDOM_ETHADDR=y | ||
+CONFIG_BOOTCOUNT_LIMIT=y | ||
+CONFIG_BOOTCOUNT_ENV=y | ||
CONFIG_SPL_DM=y | ||
CONFIG_REGMAP=y | ||
CONFIG_SYSCON=y | ||
@@ -197,6 +199,8 @@ CONFIG_SPLASH_SCREEN_ALIGN=y | ||
CONFIG_VIDEO_BMP_GZIP=y | ||
CONFIG_IMX_WATCHDOG=y | ||
CONFIG_LIBAVB=y | ||
+CONFIG_SYS_REDUNDAND_ENVIRONMENT=y | ||
+CONFIG_ENV_OFFSET_REDUND=0x3fc000 | ||
CONFIG_OF_LIBFDT_OVERLAY=y | ||
CONFIG_MCP230XX_GPIO=y | ||
CONFIG_DM_I2C_GPIO=y | ||
-- | ||
2.43.0 | ||
|
99 changes: 99 additions & 0 deletions
99
...xp/recipes-bsp/u-boot/u-boot-boundary/0002-imx8mm_nitrogen_smarc-add-Mender-support.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
From 914fb9162f3f59c86dcbe2e291cd4a3568f98c57 Mon Sep 17 00:00:00 2001 | ||
From: Chris Dimich <chris.dimich@boundarydevices.com> | ||
Date: Tue, 4 Jun 2024 15:10:23 -0700 | ||
Subject: [PATCH 2/2] imx8mm_nitrogen_smarc*: add Mender support | ||
|
||
Signed-off-by: Chris Dimich <chris.dimich@boundarydevices.com> | ||
--- | ||
configs/imx8mm_nitrogen_smarc_1gch1r0_defconfig | 6 +++++- | ||
configs/imx8mm_nitrogen_smarc_2gr0_defconfig | 6 +++++- | ||
configs/imx8mm_nitrogen_smarc_4g_defconfig | 6 +++++- | ||
3 files changed, 15 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/configs/imx8mm_nitrogen_smarc_1gch1r0_defconfig b/configs/imx8mm_nitrogen_smarc_1gch1r0_defconfig | ||
index e7cf30e7c6b..c5aded64a8a 100644 | ||
--- a/configs/imx8mm_nitrogen_smarc_1gch1r0_defconfig | ||
+++ b/configs/imx8mm_nitrogen_smarc_1gch1r0_defconfig | ||
@@ -12,7 +12,7 @@ CONFIG_NR_DRAM_BANKS=2 | ||
CONFIG_SYS_MEMTEST_START=0x40000000 | ||
CONFIG_SYS_MEMTEST_END=0x40010000 | ||
CONFIG_ENV_SIZE=0x2000 | ||
-CONFIG_ENV_OFFSET=0xffffe000 | ||
+CONFIG_ENV_OFFSET=0x3fe000 | ||
CONFIG_IMX_CONFIG="arch/arm/mach-imx/imx8m/imximage.cfg" | ||
# CONFIG_SPLASH_SCREEN_PREPARE is not set | ||
CONFIG_DDR_CHANNEL_CNT=1 | ||
@@ -97,6 +97,8 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y | ||
CONFIG_SYS_MMC_ENV_PART=1 | ||
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y | ||
CONFIG_NET_RANDOM_ETHADDR=y | ||
+CONFIG_BOOTCOUNT_LIMIT=y | ||
+CONFIG_BOOTCOUNT_ENV=y | ||
CONFIG_NETCONSOLE=y | ||
CONFIG_SPL_DM=y | ||
CONFIG_REGMAP=y | ||
@@ -182,3 +184,5 @@ CONFIG_SPLASH_SCREEN_ALIGN=y | ||
CONFIG_VIDEO_BMP_GZIP=y | ||
CONFIG_IMX_WATCHDOG=y | ||
CONFIG_LIBAVB=y | ||
+CONFIG_SYS_REDUNDAND_ENVIRONMENT=y | ||
+CONFIG_ENV_OFFSET_REDUND=0x3fc000 | ||
diff --git a/configs/imx8mm_nitrogen_smarc_2gr0_defconfig b/configs/imx8mm_nitrogen_smarc_2gr0_defconfig | ||
index 1405dfb4eda..7e10416a2b9 100644 | ||
--- a/configs/imx8mm_nitrogen_smarc_2gr0_defconfig | ||
+++ b/configs/imx8mm_nitrogen_smarc_2gr0_defconfig | ||
@@ -12,7 +12,7 @@ CONFIG_NR_DRAM_BANKS=2 | ||
CONFIG_SYS_MEMTEST_START=0x40000000 | ||
CONFIG_SYS_MEMTEST_END=0x40010000 | ||
CONFIG_ENV_SIZE=0x2000 | ||
-CONFIG_ENV_OFFSET=0xffffe000 | ||
+CONFIG_ENV_OFFSET=0x3fe000 | ||
CONFIG_IMX_CONFIG="arch/arm/mach-imx/imx8m/imximage.cfg" | ||
# CONFIG_SPLASH_SCREEN_PREPARE is not set | ||
CONFIG_DDR_RANK_BITS=0 | ||
@@ -96,6 +96,8 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y | ||
CONFIG_SYS_MMC_ENV_PART=1 | ||
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y | ||
CONFIG_NET_RANDOM_ETHADDR=y | ||
+CONFIG_BOOTCOUNT_LIMIT=y | ||
+CONFIG_BOOTCOUNT_ENV=y | ||
CONFIG_NETCONSOLE=y | ||
CONFIG_SPL_DM=y | ||
CONFIG_REGMAP=y | ||
@@ -181,3 +183,5 @@ CONFIG_SPLASH_SCREEN_ALIGN=y | ||
CONFIG_VIDEO_BMP_GZIP=y | ||
CONFIG_IMX_WATCHDOG=y | ||
CONFIG_LIBAVB=y | ||
+CONFIG_SYS_REDUNDAND_ENVIRONMENT=y | ||
+CONFIG_ENV_OFFSET_REDUND=0x3fc000 | ||
diff --git a/configs/imx8mm_nitrogen_smarc_4g_defconfig b/configs/imx8mm_nitrogen_smarc_4g_defconfig | ||
index e29d2cc8aa1..b0ef33cec5f 100644 | ||
--- a/configs/imx8mm_nitrogen_smarc_4g_defconfig | ||
+++ b/configs/imx8mm_nitrogen_smarc_4g_defconfig | ||
@@ -12,7 +12,7 @@ CONFIG_NR_DRAM_BANKS=2 | ||
CONFIG_SYS_MEMTEST_START=0x40000000 | ||
CONFIG_SYS_MEMTEST_END=0x40010000 | ||
CONFIG_ENV_SIZE=0x2000 | ||
-CONFIG_ENV_OFFSET=0xffffe000 | ||
+CONFIG_ENV_OFFSET=0x3fe000 | ||
CONFIG_IMX_CONFIG="arch/arm/mach-imx/imx8m/imximage.cfg" | ||
# CONFIG_SPLASH_SCREEN_PREPARE is not set | ||
CONFIG_DDR_MB=4096 | ||
@@ -95,6 +95,8 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y | ||
CONFIG_SYS_MMC_ENV_PART=1 | ||
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y | ||
CONFIG_NET_RANDOM_ETHADDR=y | ||
+CONFIG_BOOTCOUNT_LIMIT=y | ||
+CONFIG_BOOTCOUNT_ENV=y | ||
CONFIG_NETCONSOLE=y | ||
CONFIG_SPL_DM=y | ||
CONFIG_REGMAP=y | ||
@@ -180,3 +182,5 @@ CONFIG_SPLASH_SCREEN_ALIGN=y | ||
CONFIG_VIDEO_BMP_GZIP=y | ||
CONFIG_IMX_WATCHDOG=y | ||
CONFIG_LIBAVB=y | ||
+CONFIG_SYS_REDUNDAND_ENVIRONMENT=y | ||
+CONFIG_ENV_OFFSET_REDUND=0x3fc000 | ||
-- | ||
2.43.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters