All of lore.kernel.org
 help / color / mirror / Atom feed
* [RESEND PATCH 0/4] imx8mn_bsh_smm_s2: fix NAND booting
@ 2022-06-26 10:05 Dario Binacchi
  2022-06-26 10:05 ` [RESEND PATCH 1/4] configs: imx8mn_bsh_smm_s2: add NAND driver Dario Binacchi
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Dario Binacchi @ 2022-06-26 10:05 UTC (permalink / raw)
  To: u-boot
  Cc: Fabio Estevam, Stefano Babic, Amarula patchwork, Dario Binacchi,
	Ariel D'Alessandro, Michael Trimarchi


The series contains all the patches required by the BSH smm s2 board for
booting from NAND and properly mounting the UBI rootfs.


Dario Binacchi (4):
  configs: imx8mn_bsh_smm_s2: add NAND driver
  configs: imx8mn_bsh_smm_s2: add UBI commands
  configs: imx8mn_bsh_smm_s2: remove console from bootargs
  configs: imx8mn_bsh_smm_s2: add mtdparts to bootargs

 configs/imx8mn_bsh_smm_s2_defconfig | 6 ++++++
 include/configs/imx8mn_bsh_smm_s2.h | 3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)

-- 
2.32.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [RESEND PATCH 1/4] configs: imx8mn_bsh_smm_s2: add NAND driver
  2022-06-26 10:05 [RESEND PATCH 0/4] imx8mn_bsh_smm_s2: fix NAND booting Dario Binacchi
@ 2022-06-26 10:05 ` Dario Binacchi
  2022-06-28 22:54   ` Tom Rini
  2022-06-26 10:05 ` [RESEND PATCH 2/4] configs: imx8mn_bsh_smm_s2: add UBI commands Dario Binacchi
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 9+ messages in thread
From: Dario Binacchi @ 2022-06-26 10:05 UTC (permalink / raw)
  To: u-boot
  Cc: Fabio Estevam, Stefano Babic, Amarula patchwork, Dario Binacchi,
	Michael Trimarchi, Ariel D'Alessandro

It allows to boot from NAND.

Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---

 configs/imx8mn_bsh_smm_s2_defconfig | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configs/imx8mn_bsh_smm_s2_defconfig b/configs/imx8mn_bsh_smm_s2_defconfig
index 49f425300151..08f52e50609b 100644
--- a/configs/imx8mn_bsh_smm_s2_defconfig
+++ b/configs/imx8mn_bsh_smm_s2_defconfig
@@ -30,8 +30,10 @@ CONFIG_SPL_BOARD_INIT=y
 CONFIG_SPL_BOOTROM_SUPPORT=y
 CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
 CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x300
+CONFIG_SPL_DMA=y
 CONFIG_SPL_I2C=y
 CONFIG_SPL_MTD_SUPPORT=y
+CONFIG_SPL_NAND_SUPPORT=y
 CONFIG_SPL_POWER=y
 CONFIG_SPL_WATCHDOG=y
 CONFIG_SYS_PROMPT="> "
@@ -65,6 +67,9 @@ CONFIG_SYS_NAND_USE_FLASH_BBT=y
 CONFIG_NAND_MXS=y
 CONFIG_NAND_MXS_DT=y
 CONFIG_SYS_NAND_ONFI_DETECTION=y
+CONFIG_SYS_NAND_U_BOOT_LOCATIONS=y
+CONFIG_SYS_NAND_U_BOOT_OFFS=0xD8000
+CONFIG_SYS_NAND_U_BOOT_OFFS_REDUND=0x4058000
 CONFIG_PHYLIB=y
 CONFIG_PHY_NXP_TJA11XX=y
 CONFIG_DM_ETH=y
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [RESEND PATCH 2/4] configs: imx8mn_bsh_smm_s2: add UBI commands
  2022-06-26 10:05 [RESEND PATCH 0/4] imx8mn_bsh_smm_s2: fix NAND booting Dario Binacchi
  2022-06-26 10:05 ` [RESEND PATCH 1/4] configs: imx8mn_bsh_smm_s2: add NAND driver Dario Binacchi
@ 2022-06-26 10:05 ` Dario Binacchi
  2022-06-28 22:54   ` Tom Rini
  2022-06-26 10:05 ` [RESEND PATCH 3/4] configs: imx8mn_bsh_smm_s2: remove console from bootargs Dario Binacchi
  2022-06-26 10:05 ` [RESEND PATCH 4/4] configs: imx8mn_bsh_smm_s2: add mtdparts to bootargs Dario Binacchi
  3 siblings, 1 reply; 9+ messages in thread
From: Dario Binacchi @ 2022-06-26 10:05 UTC (permalink / raw)
  To: u-boot
  Cc: Fabio Estevam, Stefano Babic, Amarula patchwork, Dario Binacchi,
	Michael Trimarchi, Ariel D'Alessandro

imx8mn_bsh_smm_s2 uses ubifs rootfs, UBI commands are required to flash
it.

Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---

 configs/imx8mn_bsh_smm_s2_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configs/imx8mn_bsh_smm_s2_defconfig b/configs/imx8mn_bsh_smm_s2_defconfig
index 08f52e50609b..f8c75a2b237e 100644
--- a/configs/imx8mn_bsh_smm_s2_defconfig
+++ b/configs/imx8mn_bsh_smm_s2_defconfig
@@ -43,6 +43,7 @@ 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_CMD_UBI=y
 CONFIG_OF_CONTROL=y
 CONFIG_SPL_OF_CONTROL=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [RESEND PATCH 3/4] configs: imx8mn_bsh_smm_s2: remove console from bootargs
  2022-06-26 10:05 [RESEND PATCH 0/4] imx8mn_bsh_smm_s2: fix NAND booting Dario Binacchi
  2022-06-26 10:05 ` [RESEND PATCH 1/4] configs: imx8mn_bsh_smm_s2: add NAND driver Dario Binacchi
  2022-06-26 10:05 ` [RESEND PATCH 2/4] configs: imx8mn_bsh_smm_s2: add UBI commands Dario Binacchi
@ 2022-06-26 10:05 ` Dario Binacchi
  2022-06-28 22:54   ` Tom Rini
  2022-06-26 10:05 ` [RESEND PATCH 4/4] configs: imx8mn_bsh_smm_s2: add mtdparts to bootargs Dario Binacchi
  3 siblings, 1 reply; 9+ messages in thread
From: Dario Binacchi @ 2022-06-26 10:05 UTC (permalink / raw)
  To: u-boot
  Cc: Fabio Estevam, Stefano Babic, Amarula patchwork, Dario Binacchi,
	Michael Trimarchi, Ariel D'Alessandro

The Linux kernel device tree already specifies the device to be used for
boot console output with a stdout-path property under /chosen.

Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---

 include/configs/imx8mn_bsh_smm_s2.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/configs/imx8mn_bsh_smm_s2.h b/include/configs/imx8mn_bsh_smm_s2.h
index 098f23b206d1..1eff8c43701c 100644
--- a/include/configs/imx8mn_bsh_smm_s2.h
+++ b/include/configs/imx8mn_bsh_smm_s2.h
@@ -16,7 +16,7 @@
 #define NANDARGS \
 	"mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \
 	"mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
-	"nandargs=setenv bootargs console=${console} " \
+	"nandargs=setenv bootargs " \
 		"${optargs} " \
 		"root=${nandroot} " \
 		"rootfstype=${nandrootfstype}\0" \
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [RESEND PATCH 4/4] configs: imx8mn_bsh_smm_s2: add mtdparts to bootargs
  2022-06-26 10:05 [RESEND PATCH 0/4] imx8mn_bsh_smm_s2: fix NAND booting Dario Binacchi
                   ` (2 preceding siblings ...)
  2022-06-26 10:05 ` [RESEND PATCH 3/4] configs: imx8mn_bsh_smm_s2: remove console from bootargs Dario Binacchi
@ 2022-06-26 10:05 ` Dario Binacchi
  2022-06-28 22:54   ` Tom Rini
  3 siblings, 1 reply; 9+ messages in thread
From: Dario Binacchi @ 2022-06-26 10:05 UTC (permalink / raw)
  To: u-boot
  Cc: Fabio Estevam, Stefano Babic, Amarula patchwork, Dario Binacchi,
	Michael Trimarchi, Ariel D'Alessandro

Passing the mtdparts environment variable to the Linux kernel is
required to properly mount the UBI rootfs.

Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>

---

 include/configs/imx8mn_bsh_smm_s2.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/configs/imx8mn_bsh_smm_s2.h b/include/configs/imx8mn_bsh_smm_s2.h
index 1eff8c43701c..d09c2ab01610 100644
--- a/include/configs/imx8mn_bsh_smm_s2.h
+++ b/include/configs/imx8mn_bsh_smm_s2.h
@@ -18,6 +18,7 @@
 	"mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
 	"nandargs=setenv bootargs " \
 		"${optargs} " \
+		"mtdparts=${mtdparts} " \
 		"root=${nandroot} " \
 		"rootfstype=${nandrootfstype}\0" \
 	"nandroot=ubi0:root rw ubi.mtd=nandrootfs\0" \
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [RESEND PATCH 1/4] configs: imx8mn_bsh_smm_s2: add NAND driver
  2022-06-26 10:05 ` [RESEND PATCH 1/4] configs: imx8mn_bsh_smm_s2: add NAND driver Dario Binacchi
@ 2022-06-28 22:54   ` Tom Rini
  0 siblings, 0 replies; 9+ messages in thread
From: Tom Rini @ 2022-06-28 22:54 UTC (permalink / raw)
  To: Dario Binacchi
  Cc: u-boot, Fabio Estevam, Stefano Babic, Amarula patchwork,
	Michael Trimarchi, Ariel D'Alessandro

[-- Attachment #1: Type: text/plain, Size: 359 bytes --]

On Sun, Jun 26, 2022 at 12:05:15PM +0200, Dario Binacchi wrote:

> It allows to boot from NAND.
> 
> Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com>
> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [RESEND PATCH 2/4] configs: imx8mn_bsh_smm_s2: add UBI commands
  2022-06-26 10:05 ` [RESEND PATCH 2/4] configs: imx8mn_bsh_smm_s2: add UBI commands Dario Binacchi
@ 2022-06-28 22:54   ` Tom Rini
  0 siblings, 0 replies; 9+ messages in thread
From: Tom Rini @ 2022-06-28 22:54 UTC (permalink / raw)
  To: Dario Binacchi
  Cc: u-boot, Fabio Estevam, Stefano Babic, Amarula patchwork,
	Michael Trimarchi, Ariel D'Alessandro

[-- Attachment #1: Type: text/plain, Size: 409 bytes --]

On Sun, Jun 26, 2022 at 12:05:16PM +0200, Dario Binacchi wrote:

> imx8mn_bsh_smm_s2 uses ubifs rootfs, UBI commands are required to flash
> it.
> 
> Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com>
> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [RESEND PATCH 3/4] configs: imx8mn_bsh_smm_s2: remove console from bootargs
  2022-06-26 10:05 ` [RESEND PATCH 3/4] configs: imx8mn_bsh_smm_s2: remove console from bootargs Dario Binacchi
@ 2022-06-28 22:54   ` Tom Rini
  0 siblings, 0 replies; 9+ messages in thread
From: Tom Rini @ 2022-06-28 22:54 UTC (permalink / raw)
  To: Dario Binacchi
  Cc: u-boot, Fabio Estevam, Stefano Babic, Amarula patchwork,
	Michael Trimarchi, Ariel D'Alessandro

[-- Attachment #1: Type: text/plain, Size: 469 bytes --]

On Sun, Jun 26, 2022 at 12:05:17PM +0200, Dario Binacchi wrote:

> The Linux kernel device tree already specifies the device to be used for
> boot console output with a stdout-path property under /chosen.
> 
> Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com>
> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [RESEND PATCH 4/4] configs: imx8mn_bsh_smm_s2: add mtdparts to bootargs
  2022-06-26 10:05 ` [RESEND PATCH 4/4] configs: imx8mn_bsh_smm_s2: add mtdparts to bootargs Dario Binacchi
@ 2022-06-28 22:54   ` Tom Rini
  0 siblings, 0 replies; 9+ messages in thread
From: Tom Rini @ 2022-06-28 22:54 UTC (permalink / raw)
  To: Dario Binacchi
  Cc: u-boot, Fabio Estevam, Stefano Babic, Amarula patchwork,
	Michael Trimarchi, Ariel D'Alessandro

[-- Attachment #1: Type: text/plain, Size: 441 bytes --]

On Sun, Jun 26, 2022 at 12:05:18PM +0200, Dario Binacchi wrote:

> Passing the mtdparts environment variable to the Linux kernel is
> required to properly mount the UBI rootfs.
> 
> Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com>
> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-06-28 22:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-26 10:05 [RESEND PATCH 0/4] imx8mn_bsh_smm_s2: fix NAND booting Dario Binacchi
2022-06-26 10:05 ` [RESEND PATCH 1/4] configs: imx8mn_bsh_smm_s2: add NAND driver Dario Binacchi
2022-06-28 22:54   ` Tom Rini
2022-06-26 10:05 ` [RESEND PATCH 2/4] configs: imx8mn_bsh_smm_s2: add UBI commands Dario Binacchi
2022-06-28 22:54   ` Tom Rini
2022-06-26 10:05 ` [RESEND PATCH 3/4] configs: imx8mn_bsh_smm_s2: remove console from bootargs Dario Binacchi
2022-06-28 22:54   ` Tom Rini
2022-06-26 10:05 ` [RESEND PATCH 4/4] configs: imx8mn_bsh_smm_s2: add mtdparts to bootargs Dario Binacchi
2022-06-28 22:54   ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.