* [PATCH v2 0/2] Use the complete 512kb (4 blocks) nand partition reserved for u-boot
@ 2022-02-03 17:41 Marcel Ziswiler
2022-02-03 17:41 ` [PATCH v2 1/2] colibri-imx6ull: improve env badblock management Marcel Ziswiler
2022-02-03 17:41 ` [PATCH v2 2/2] colibri-imx7: " Marcel Ziswiler
0 siblings, 2 replies; 4+ messages in thread
From: Marcel Ziswiler @ 2022-02-03 17:41 UTC (permalink / raw)
To: u-boot
Cc: Heiko Schocher, Stephan Gerhold, Oleksandr Suvorov,
Sebastian Reichel, Fabio Estevam, Harm Berntsen,
Philippe Schenker, Weijie Gao, Stefano Babic, Linus Walleij,
Hannes Schmelzer, NXP i . MX U-Boot Team, Stefan Roese,
Simon Glass, Max Krummenacher, Michal Simek, Marcel Ziswiler
From: Marcel Ziswiler <marcel.ziswiler@toradex.com>
environment instead of just the first block, this allows the module
to have a working environment even if 3 blocks are bad.
Changes in v2:
- Re-based on top of today's master taking our recent addition of the
eMMC SKU into account.
- Just remove stale eMMC environment comment after Kconfig move.
Francesco Dolcini (2):
colibri-imx6ull: improve env badblock management
colibri-imx7: improve env badblock management
include/configs/colibri-imx6ull.h | 5 +++--
include/configs/colibri_imx7.h | 5 +++++
2 files changed, 8 insertions(+), 2 deletions(-)
--
2.34.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 1/2] colibri-imx6ull: improve env badblock management
2022-02-03 17:41 [PATCH v2 0/2] Use the complete 512kb (4 blocks) nand partition reserved for u-boot Marcel Ziswiler
@ 2022-02-03 17:41 ` Marcel Ziswiler
2022-02-20 9:08 ` sbabic
2022-02-03 17:41 ` [PATCH v2 2/2] colibri-imx7: " Marcel Ziswiler
1 sibling, 1 reply; 4+ messages in thread
From: Marcel Ziswiler @ 2022-02-03 17:41 UTC (permalink / raw)
To: u-boot
Cc: Heiko Schocher, Stephan Gerhold, Oleksandr Suvorov,
Sebastian Reichel, Fabio Estevam, Harm Berntsen,
Philippe Schenker, Weijie Gao, Stefano Babic, Linus Walleij,
Hannes Schmelzer, NXP i . MX U-Boot Team, Stefan Roese,
Simon Glass, Max Krummenacher, Michal Simek, Francesco Dolcini,
Marcel Ziswiler
From: Francesco Dolcini <francesco.dolcini@toradex.com>
Use the complete 512kb (4 blocks) nand partition reserved for u-boot
environment instead of just the first block, this allows the module to
have a working environment even if 3 blocks are bad.
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
---
Changes in v2:
- Re-based on top of today's master taking our recent addition of the
eMMC SKU into account.
- Just remove stale eMMC environment comment after Kconfig move.
include/configs/colibri-imx6ull.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/configs/colibri-imx6ull.h b/include/configs/colibri-imx6ull.h
index 787fe33941..91f0f953a1 100644
--- a/include/configs/colibri-imx6ull.h
+++ b/include/configs/colibri-imx6ull.h
@@ -140,8 +140,9 @@
(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
/* environment organization */
-
-/* Environment in eMMC, before config block at the end of 1st "boot sector" */
+#if defined(CONFIG_ENV_IS_IN_NAND)
+#define CONFIG_ENV_RANGE (4 * CONFIG_ENV_SIZE)
+#endif
#ifdef CONFIG_TARGET_COLIBRI_IMX6ULL_NAND
/* NAND stuff */
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 2/2] colibri-imx7: improve env badblock management
2022-02-03 17:41 [PATCH v2 0/2] Use the complete 512kb (4 blocks) nand partition reserved for u-boot Marcel Ziswiler
2022-02-03 17:41 ` [PATCH v2 1/2] colibri-imx6ull: improve env badblock management Marcel Ziswiler
@ 2022-02-03 17:41 ` Marcel Ziswiler
1 sibling, 0 replies; 4+ messages in thread
From: Marcel Ziswiler @ 2022-02-03 17:41 UTC (permalink / raw)
To: u-boot
Cc: Heiko Schocher, Stephan Gerhold, Oleksandr Suvorov,
Sebastian Reichel, Fabio Estevam, Harm Berntsen,
Philippe Schenker, Weijie Gao, Stefano Babic, Linus Walleij,
Hannes Schmelzer, NXP i . MX U-Boot Team, Stefan Roese,
Simon Glass, Max Krummenacher, Michal Simek, Francesco Dolcini,
Marcel Ziswiler
From: Francesco Dolcini <francesco.dolcini@toradex.com>
Use the complete 512kb (4 blocks) nand partition reserved for u-boot
environment instead of just the first block, this allows the module
to have a working environment even if 3 blocks are bad.
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
---
(no changes since v1)
include/configs/colibri_imx7.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/configs/colibri_imx7.h b/include/configs/colibri_imx7.h
index faf27ba4fa..92e24ea8c6 100644
--- a/include/configs/colibri_imx7.h
+++ b/include/configs/colibri_imx7.h
@@ -180,6 +180,11 @@
#define CONFIG_SYS_INIT_SP_ADDR \
(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
+/* environment organization */
+#if defined(CONFIG_ENV_IS_IN_NAND)
+#define CONFIG_ENV_RANGE (4 * CONFIG_ENV_SIZE)
+#endif
+
#ifdef CONFIG_TARGET_COLIBRI_IMX7_NAND
/* NAND stuff */
#define CONFIG_SYS_MAX_NAND_DEVICE 1
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 1/2] colibri-imx6ull: improve env badblock management
2022-02-03 17:41 ` [PATCH v2 1/2] colibri-imx6ull: improve env badblock management Marcel Ziswiler
@ 2022-02-20 9:08 ` sbabic
0 siblings, 0 replies; 4+ messages in thread
From: sbabic @ 2022-02-20 9:08 UTC (permalink / raw)
To: Marcel Ziswiler, u-boot
> From: Francesco Dolcini <francesco.dolcini@toradex.com>
> Use the complete 512kb (4 blocks) nand partition reserved for u-boot
> environment instead of just the first block, this allows the module to
> have a working environment even if 3 blocks are bad.
> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
=====================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-02-20 9:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-03 17:41 [PATCH v2 0/2] Use the complete 512kb (4 blocks) nand partition reserved for u-boot Marcel Ziswiler
2022-02-03 17:41 ` [PATCH v2 1/2] colibri-imx6ull: improve env badblock management Marcel Ziswiler
2022-02-20 9:08 ` sbabic
2022-02-03 17:41 ` [PATCH v2 2/2] colibri-imx7: " Marcel Ziswiler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox