All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [u-boot][ 0/3] am43xx/am33xx NAND fixes and am43xx_evm NAND boot
@ 2015-06-05  9:42 Roger Quadros
  2015-06-05  9:42 ` [U-Boot] [u-boot][ 1/3] am335x_evm: am44xx_evm: dra7xx_evm: nand: Fix file-system partition name Roger Quadros
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Roger Quadros @ 2015-06-05  9:42 UTC (permalink / raw)
  To: u-boot

Hi,

These are some NAND boot cleanups and NAND boot support for am43xx_evm.

cheers,
-roger

Roger Quadros (2):
  am335x_evm: am44xx_evm: dra7xx_evm: nand: Fix file-system partition
    name
  am335x_evm: nand: Fix boot from NAND

Tom Rini (1):
  am43xx_evm: Enable NAND boot

 include/configs/am335x_evm.h |  8 ++++----
 include/configs/am43xx_evm.h | 26 +++++++++++++++++++++++---
 include/configs/dra7xx_evm.h |  2 +-
 3 files changed, 28 insertions(+), 8 deletions(-)

-- 
2.1.4

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

* [U-Boot] [u-boot][ 1/3] am335x_evm: am44xx_evm: dra7xx_evm: nand: Fix file-system partition name
  2015-06-05  9:42 [U-Boot] [u-boot][ 0/3] am43xx/am33xx NAND fixes and am43xx_evm NAND boot Roger Quadros
@ 2015-06-05  9:42 ` Roger Quadros
  2015-06-05 12:48   ` Tom Rini
  2015-06-13  2:10   ` [U-Boot] [U-Boot, u-boot, " Tom Rini
  2015-06-05  9:42 ` [U-Boot] [u-boot][ 2/3] am335x_evm: nand: Fix boot from NAND Roger Quadros
  2015-06-05  9:43 ` [U-Boot] [u-boot][ 3/3] am43xx_evm: Enable NAND boot Roger Quadros
  2 siblings, 2 replies; 10+ messages in thread
From: Roger Quadros @ 2015-06-05  9:42 UTC (permalink / raw)
  To: u-boot

We almost always use UBIFS for user accessible NAND file systems and
the UBIFS file system might contain more than one volume within the
single NAND partition. The last NAND partition is therefore more
appropriately named as "NAND.file-system" instead of "NAND.rootfs"

The Linux kernel (as of v3.16) also uses "NAND.file-system" to name the
last NAND partition. This patch makes the partition name consistent
between u-boot and the kernel.

Signed-off-by: Roger Quadros <rogerq@ti.com>
---
 include/configs/am335x_evm.h | 2 +-
 include/configs/am43xx_evm.h | 2 +-
 include/configs/dra7xx_evm.h | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index 8da3325..1c6cbd7 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -248,7 +248,7 @@
 					"128k(NAND.u-boot-env)," \
 					"128k(NAND.u-boot-env.backup1)," \
 					"8m(NAND.kernel)," \
-					"-(NAND.rootfs)"
+					"-(NAND.file-system)"
 #define CONFIG_SYS_NAND_U_BOOT_OFFS	0x000c0000
 #undef CONFIG_ENV_IS_NOWHERE
 #define CONFIG_ENV_IS_IN_NAND
diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h
index d4f4c23..482a99a 100644
--- a/include/configs/am43xx_evm.h
+++ b/include/configs/am43xx_evm.h
@@ -378,7 +378,7 @@
 					"256k(NAND.u-boot-env)," \
 					"256k(NAND.u-boot-env.backup1)," \
 					"7m(NAND.kernel)," \
-					"-(NAND.rootfs)"
+					"-(NAND.file-system)"
 #define CONFIG_SYS_NAND_U_BOOT_OFFS	0x00180000
 /* NAND: SPL related configs */
 #ifdef CONFIG_SPL_NAND_SUPPORT
diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h
index 77edc21..9133a0d 100644
--- a/include/configs/dra7xx_evm.h
+++ b/include/configs/dra7xx_evm.h
@@ -248,7 +248,7 @@
 					"128k(NAND.u-boot-env)," \
 					"128k(NAND.u-boot-env.backup1)," \
 					"8m(NAND.kernel)," \
-					"-(NAND.rootfs)"
+					"-(NAND.file-system)"
 #define CONFIG_SYS_NAND_U_BOOT_OFFS	0x000c0000
 /* NAND: SPL related configs */
 #ifdef CONFIG_SPL_NAND_SUPPORT
-- 
2.1.4

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

* [U-Boot] [u-boot][ 2/3] am335x_evm: nand: Fix boot from NAND
  2015-06-05  9:42 [U-Boot] [u-boot][ 0/3] am43xx/am33xx NAND fixes and am43xx_evm NAND boot Roger Quadros
  2015-06-05  9:42 ` [U-Boot] [u-boot][ 1/3] am335x_evm: am44xx_evm: dra7xx_evm: nand: Fix file-system partition name Roger Quadros
@ 2015-06-05  9:42 ` Roger Quadros
  2015-06-05 12:48   ` Tom Rini
  2015-06-13  2:10   ` [U-Boot] [U-Boot, u-boot, " Tom Rini
  2015-06-05  9:43 ` [U-Boot] [u-boot][ 3/3] am43xx_evm: Enable NAND boot Roger Quadros
  2 siblings, 2 replies; 10+ messages in thread
From: Roger Quadros @ 2015-06-05  9:42 UTC (permalink / raw)
  To: u-boot

Use the correct partition names from with the Device Tree blob
and the kernel is picked up. Also use partition name instead of
number for the root filesystem in the kernel boot arguments.

Signed-off-by: Roger Quadros <rogerq@ti.com>
---
 include/configs/am335x_evm.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index 1c6cbd7..a5f1f06 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -54,12 +54,12 @@
 		"${optargs} " \
 		"root=${nandroot} " \
 		"rootfstype=${nandrootfstype}\0" \
-	"nandroot=ubi0:rootfs rw ubi.mtd=9,2048\0" \
+	"nandroot=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048\0" \
 	"nandrootfstype=ubifs rootwait=1\0" \
 	"nandboot=echo Booting from nand ...; " \
 		"run nandargs; " \
-		"nand read ${fdtaddr} u-boot-spl-os; " \
-		"nand read ${loadaddr} kernel; " \
+		"nand read ${fdtaddr} NAND.u-boot-spl-os; " \
+		"nand read ${loadaddr} NAND.kernel; " \
 		"bootz ${loadaddr} - ${fdtaddr}\0"
 #else
 #define NANDARGS ""
-- 
2.1.4

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

* [U-Boot] [u-boot][ 3/3] am43xx_evm: Enable NAND boot
  2015-06-05  9:42 [U-Boot] [u-boot][ 0/3] am43xx/am33xx NAND fixes and am43xx_evm NAND boot Roger Quadros
  2015-06-05  9:42 ` [U-Boot] [u-boot][ 1/3] am335x_evm: am44xx_evm: dra7xx_evm: nand: Fix file-system partition name Roger Quadros
  2015-06-05  9:42 ` [U-Boot] [u-boot][ 2/3] am335x_evm: nand: Fix boot from NAND Roger Quadros
@ 2015-06-05  9:43 ` Roger Quadros
  2015-06-05 12:48   ` Tom Rini
  2015-06-13  2:10   ` [U-Boot] [U-Boot,u-boot,3/3] " Tom Rini
  2 siblings, 2 replies; 10+ messages in thread
From: Roger Quadros @ 2015-06-05  9:43 UTC (permalink / raw)
  To: u-boot

From: Tom Rini <trini@ti.com>

Enable booting from NAND on the am437xx-evm.

Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
---
 include/configs/am43xx_evm.h | 24 ++++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)

diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h
index 482a99a..fce34fa 100644
--- a/include/configs/am43xx_evm.h
+++ b/include/configs/am43xx_evm.h
@@ -295,13 +295,15 @@
 			"setenv fdtfile am437x-idk-evm.dtb; fi; " \
 		"if test $fdtfile = undefined; then " \
 			"echo WARNING: Could not determine device tree; fi; \0" \
+	NANDARGS \
 	NETARGS \
 	DFUARGS \
 
 #define CONFIG_BOOTCOMMAND \
 	"run findfdt; " \
 	"run mmcboot;" \
-	"run usbboot;"
+	"run usbboot;" \
+	NANDBOOT \
 
 #endif
 
@@ -390,6 +392,24 @@
 #define CONFIG_SYS_NAND_SPL_KERNEL_OFFS	0x00300000 /* kernel offset */
 #define CONFIG_CMD_SPL_WRITE_SIZE	CONFIG_SYS_NAND_BLOCK_SIZE
 #endif
-#endif /* !CONFIG_NAND */
+#define NANDARGS \
+	"mtdids=" MTDIDS_DEFAULT "\0" \
+	"mtdparts=" MTDPARTS_DEFAULT "\0" \
+	"nandargs=setenv bootargs console=${console} " \
+		"${optargs} " \
+		"root=${nandroot} " \
+		"rootfstype=${nandrootfstype}\0" \
+	"nandroot=ubi0:rootfs rw ubi.mtd=NAND.file-system,4096\0" \
+	"nandrootfstype=ubifs rootwait=1\0" \
+	"nandboot=echo Booting from nand ...; " \
+		"run nandargs; " \
+		"nand read ${fdtaddr} NAND.u-boot-spl-os; " \
+		"nand read ${loadaddr} NAND.kernel; " \
+		"bootz ${loadaddr} - ${fdtaddr}\0"
+#define NANDBOOT			"run nandboot; "
+#else /* !CONFIG_NAND */
+#define NANDARGS
+#define NANDBOOT
+#endif /* CONFIG_NAND */
 
 #endif	/* __CONFIG_AM43XX_EVM_H */
-- 
2.1.4

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

* [U-Boot] [u-boot][ 1/3] am335x_evm: am44xx_evm: dra7xx_evm: nand: Fix file-system partition name
  2015-06-05  9:42 ` [U-Boot] [u-boot][ 1/3] am335x_evm: am44xx_evm: dra7xx_evm: nand: Fix file-system partition name Roger Quadros
@ 2015-06-05 12:48   ` Tom Rini
  2015-06-13  2:10   ` [U-Boot] [U-Boot, u-boot, " Tom Rini
  1 sibling, 0 replies; 10+ messages in thread
From: Tom Rini @ 2015-06-05 12:48 UTC (permalink / raw)
  To: u-boot

On Fri, Jun 05, 2015 at 12:42:20PM +0300, Roger Quadros wrote:

> We almost always use UBIFS for user accessible NAND file systems and
> the UBIFS file system might contain more than one volume within the
> single NAND partition. The last NAND partition is therefore more
> appropriately named as "NAND.file-system" instead of "NAND.rootfs"
> 
> The Linux kernel (as of v3.16) also uses "NAND.file-system" to name the
> last NAND partition. This patch makes the partition name consistent
> between u-boot and the kernel.
> 
> Signed-off-by: Roger Quadros <rogerq@ti.com>

Reviewed-by: Tom Rini <trini@konsulko.com>

-- 
Tom

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

* [U-Boot] [u-boot][ 2/3] am335x_evm: nand: Fix boot from NAND
  2015-06-05  9:42 ` [U-Boot] [u-boot][ 2/3] am335x_evm: nand: Fix boot from NAND Roger Quadros
@ 2015-06-05 12:48   ` Tom Rini
  2015-06-13  2:10   ` [U-Boot] [U-Boot, u-boot, " Tom Rini
  1 sibling, 0 replies; 10+ messages in thread
From: Tom Rini @ 2015-06-05 12:48 UTC (permalink / raw)
  To: u-boot

On Fri, Jun 05, 2015 at 12:42:21PM +0300, Roger Quadros wrote:

> Use the correct partition names from with the Device Tree blob
> and the kernel is picked up. Also use partition name instead of
> number for the root filesystem in the kernel boot arguments.
> 
> Signed-off-by: Roger Quadros <rogerq@ti.com>

Reviewed-by: Tom Rini <trini@konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150605/db1a1788/attachment.sig>

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

* [U-Boot] [u-boot][ 3/3] am43xx_evm: Enable NAND boot
  2015-06-05  9:43 ` [U-Boot] [u-boot][ 3/3] am43xx_evm: Enable NAND boot Roger Quadros
@ 2015-06-05 12:48   ` Tom Rini
  2015-06-13  2:10   ` [U-Boot] [U-Boot,u-boot,3/3] " Tom Rini
  1 sibling, 0 replies; 10+ messages in thread
From: Tom Rini @ 2015-06-05 12:48 UTC (permalink / raw)
  To: u-boot

On Fri, Jun 05, 2015 at 12:43:46PM +0300, Roger Quadros wrote:

> From: Tom Rini <trini@ti.com>
> 
> Enable booting from NAND on the am437xx-evm.
> 
> Signed-off-by: Tom Rini <trini@ti.com>
> Signed-off-by: Roger Quadros <rogerq@ti.com>

Reviewed-by: Tom Rini <trini@konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150605/57e385c5/attachment.sig>

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

* [U-Boot] [U-Boot, u-boot, 1/3] am335x_evm: am44xx_evm: dra7xx_evm: nand: Fix file-system partition name
  2015-06-05  9:42 ` [U-Boot] [u-boot][ 1/3] am335x_evm: am44xx_evm: dra7xx_evm: nand: Fix file-system partition name Roger Quadros
  2015-06-05 12:48   ` Tom Rini
@ 2015-06-13  2:10   ` Tom Rini
  1 sibling, 0 replies; 10+ messages in thread
From: Tom Rini @ 2015-06-13  2:10 UTC (permalink / raw)
  To: u-boot

On Fri, Jun 05, 2015 at 12:42:20PM +0300, Roger Quadros wrote:

> We almost always use UBIFS for user accessible NAND file systems and
> the UBIFS file system might contain more than one volume within the
> single NAND partition. The last NAND partition is therefore more
> appropriately named as "NAND.file-system" instead of "NAND.rootfs"
> 
> The Linux kernel (as of v3.16) also uses "NAND.file-system" to name the
> last NAND partition. This patch makes the partition name consistent
> between u-boot and the kernel.
> 
> Signed-off-by: Roger Quadros <rogerq@ti.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150612/0a733d9c/attachment.sig>

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

* [U-Boot] [U-Boot, u-boot, 2/3] am335x_evm: nand: Fix boot from NAND
  2015-06-05  9:42 ` [U-Boot] [u-boot][ 2/3] am335x_evm: nand: Fix boot from NAND Roger Quadros
  2015-06-05 12:48   ` Tom Rini
@ 2015-06-13  2:10   ` Tom Rini
  1 sibling, 0 replies; 10+ messages in thread
From: Tom Rini @ 2015-06-13  2:10 UTC (permalink / raw)
  To: u-boot

On Fri, Jun 05, 2015 at 12:42:21PM +0300, Roger Quadros wrote:

> Use the correct partition names from with the Device Tree blob
> and the kernel is picked up. Also use partition name instead of
> number for the root filesystem in the kernel boot arguments.
> 
> Signed-off-by: Roger Quadros <rogerq@ti.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150612/20a76d58/attachment.sig>

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

* [U-Boot] [U-Boot,u-boot,3/3] am43xx_evm: Enable NAND boot
  2015-06-05  9:43 ` [U-Boot] [u-boot][ 3/3] am43xx_evm: Enable NAND boot Roger Quadros
  2015-06-05 12:48   ` Tom Rini
@ 2015-06-13  2:10   ` Tom Rini
  1 sibling, 0 replies; 10+ messages in thread
From: Tom Rini @ 2015-06-13  2:10 UTC (permalink / raw)
  To: u-boot

On Fri, Jun 05, 2015 at 12:43:46PM +0300, Roger Quadros wrote:

> From: Tom Rini <trini@ti.com>
> 
> Enable booting from NAND on the am437xx-evm.
> 
> Signed-off-by: Tom Rini <trini@ti.com>
> Signed-off-by: Roger Quadros <rogerq@ti.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150612/8face66a/attachment.sig>

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

end of thread, other threads:[~2015-06-13  2:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-05  9:42 [U-Boot] [u-boot][ 0/3] am43xx/am33xx NAND fixes and am43xx_evm NAND boot Roger Quadros
2015-06-05  9:42 ` [U-Boot] [u-boot][ 1/3] am335x_evm: am44xx_evm: dra7xx_evm: nand: Fix file-system partition name Roger Quadros
2015-06-05 12:48   ` Tom Rini
2015-06-13  2:10   ` [U-Boot] [U-Boot, u-boot, " Tom Rini
2015-06-05  9:42 ` [U-Boot] [u-boot][ 2/3] am335x_evm: nand: Fix boot from NAND Roger Quadros
2015-06-05 12:48   ` Tom Rini
2015-06-13  2:10   ` [U-Boot] [U-Boot, u-boot, " Tom Rini
2015-06-05  9:43 ` [U-Boot] [u-boot][ 3/3] am43xx_evm: Enable NAND boot Roger Quadros
2015-06-05 12:48   ` Tom Rini
2015-06-13  2:10   ` [U-Boot] [U-Boot,u-boot,3/3] " 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.