Skip to contentSkip to conversation

am335x_evm.h: unsed CONFIG_BOOTDELAY

PATCH New Tom Rini 3 participants 11 messages Dec 10, 2015 – Mar 15, 2016

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/3 am335x_evm.h: unsed CONFIG_BOOTDELAY

Now that ti_armv7_common.h uses config_distro_defaults.h we don't need to include it again and then undef CONFIG_BOOTDELAY

---
 include/configs/am335x_evm.h |    4 ----
 1 file changed, 4 deletions(-)
include/configs/am335x_evm.h +0 -4
index c51db8c..cf6a606 100644
@@ -18,10 +18,6 @@
 
 #include <configs/ti_am335x_common.h>
 
-/* Don't override the distro default bootdelay */
-#undef CONFIG_BOOTDELAY
-#include <config_distro_defaults.h>
-
 #ifndef CONFIG_SPL_BUILD
 #ifndef CONFIG_FIT
 # define CONFIG_FIT
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH 1/3 am335x_evm.h: unsed CONFIG_BOOTDELAY

Quoted 4 lines · Tom Rini

Now that ti_armv7_common.h uses config_distro_defaults.h we don't need to include it again and then undef CONFIG_BOOTDELAY

Applied to u-boot/master, thanks!

Signature · 8 lines
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/20160114/9f55a48d/attachment.sig>
author
#2 lore raw

PATCH 2/3 ti_armv7_common.h: Add CONFIG_CMD_EXT4_WRITE

In reply to Tom Rini

Given that with config_distro_defaults.h we always have ext4 read support, add in write support.

---
 include/configs/ti_armv7_common.h |    1 +
 1 file changed, 1 insertion(+)
include/configs/ti_armv7_common.h +1 -0
index 2087eb19..199612b 100644
@@ -283,5 +283,6 @@
 #endif
 
 #include <config_distro_defaults.h>
+#define CONFIG_CMD_EXT4_WRITE
 
 #endif	/* __CONFIG_TI_ARMV7_COMMON_H__ */
Signature · 1 line
1.7.9.5
author
#3 lore raw

PATCH 2/3 ti_armv7_common.h: Add CONFIG_CMD_EXT4_WRITE

Quoted 4 lines · Tom Rini

Given that with config_distro_defaults.h we always have ext4 read support, add in write support.

Applied to u-boot/master, thanks!

Signature · 8 lines
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/20160114/e74af9b0/attachment.sig>
author
#4 lore raw

PATCH 3/3 omap4_panda: Convert to config_distro_bootcmd.h

In reply to Tom Rini

Based on the am335x_evm conversion, switch to config_distro_bootcmd for mmc and pxe. Tested with Fedora 23.

---
 include/configs/ti_omap4_common.h |   51 ++++++++++++++++++++-----------------
 1 file changed, 27 insertions(+), 24 deletions(-)
include/configs/ti_omap4_common.h +27 -24
index 08130eb..8b6c065 100644
@@ -82,6 +82,32 @@
 /*
  * Environment setup
  */
+#define BOOTENV_DEV_LEGACY_MMC(devtypeu, devtypel, instance) \
+	"bootcmd_" #devtypel #instance "=" \
+	"setenv mmcdev " #instance"; "\
+	"setenv bootpart " #instance":2 ; "\
+	"run mmcboot\0"
+
+#define BOOTENV_DEV_NAME_LEGACY_MMC(devtypeu, devtypel, instance) \
+	#devtypel #instance " "
+
+#define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
+	#devtypel #instance " "
+
+#define BOOT_TARGET_DEVICES(func) \
+	func(MMC, mmc, 0) \
+	func(LEGACY_MMC, legacy_mmc, 0) \
+	func(MMC, mmc, 1) \
+	func(LEGACY_MMC, legacy_mmc, 1) \
+	func(PXE, pxe, na) \
+	func(DHCP, dhcp, na)
+
+#define CONFIG_BOOTCOMMAND \
+	"run findfdt; " \
+	"run distro_bootcmd"
+
+#include <config_distro_bootcmd.h>
+
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	DEFAULT_LINUX_BOOT_ENV \
 	DEFAULT_MMC_TI_ARGS \
@@ -120,30 +146,7 @@
 		"if test $fdtfile = undefined; then " \
 			"echo WARNING: Could not determine device tree to use; fi; \0" \
 	"loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \
-
-#define CONFIG_BOOTCOMMAND \
-	"run findfdt; " \
-	"mmc dev ${mmcdev}; if mmc rescan; then " \
-		"echo SD/MMC found on device ${mmcdev};" \
-		"if run loadbootscript; then " \
-			"run bootscript; " \
-		"else " \
-			"if run loadbootenv; then " \
-				"run importbootenv; " \
-			"fi;" \
-			"if test -n ${uenvcmd}; then " \
-				"echo Running uenvcmd ...;" \
-				"run uenvcmd;" \
-			"fi;" \
-		"fi;" \
-		"if run loadimage; then " \
-			"run loadfdt;" \
-			"run mmcboot; " \
-		"fi; " \
-		"if run loaduimage; then " \
-			"run uimageboot;" \
-		"fi; " \
-	"fi"
+	BOOTENV
 
 /*
  * Defines for SPL
Signature · 1 line
1.7.9.5
#5 lore raw

PATCH 3/3 omap4_panda: Convert to config_distro_bootcmd.h

Quoted 23 lines · Tom Rini

Based on the am335x_evm conversion, switch to config_distro_bootcmd for mmc and pxe. Tested with Fedora 23.

---
 include/configs/ti_omap4_common.h |   51 ++++++++++++++++++++-----------------
 1 file changed, 27 insertions(+), 24 deletions(-)
include/configs/ti_omap4_common.h +7 -0
index 08130eb..8b6c065 100644
@@ -82,6 +82,32 @@
 /*
  * Environment setup
  */
+#define BOOTENV_DEV_LEGACY_MMC(devtypeu, devtypel, instance) \
+       "bootcmd_" #devtypel #instance "=" \
+       "setenv mmcdev " #instance"; "\
+       "setenv bootpart " #instance":2 ; "\
+       "run mmcboot\0"
+
+#define BOOTENV_DEV_NAME_LEGACY_MMC(devtypeu, devtypel, instance) \

include/configs/ti_omap4_common.h line 101

Quoted 10 lines
include/configs/ti_omap4_common.h +10 -0
+       #devtypel #instance " "
+
+#define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
+       #devtypel #instance " "
+
+#define BOOT_TARGET_DEVICES(func) \
+       func(MMC, mmc, 0) \
+       func(LEGACY_MMC, legacy_mmc, 0) \
+       func(MMC, mmc, 1) \
+       func(LEGACY_MMC, legacy_mmc, 1) \

I don't remember the panda having a 2nd mmc card slot, are there other omap4's with this feature?

Regards,

Signature · 2 lines
Robert Nelson
https://rcn-ee.com/
#6 lore raw

PATCH 3/3 omap4_panda: Convert to config_distro_bootcmd.h

Quoted 29 lines · Robert Nelson
Quoted 28 lines · Tom Rini

Based on the am335x_evm conversion, switch to config_distro_bootcmd for mmc and pxe. Tested with Fedora 23.

---
 include/configs/ti_omap4_common.h |   51 ++++++++++++++++++++-----------------
 1 file changed, 27 insertions(+), 24 deletions(-)
include/configs/ti_omap4_common.h +12 -0
index 08130eb..8b6c065 100644
@@ -82,6 +82,32 @@
 /*
  * Environment setup
  */
+#define BOOTENV_DEV_LEGACY_MMC(devtypeu, devtypel, instance) \
+       "bootcmd_" #devtypel #instance "=" \
+       "setenv mmcdev " #instance"; "\
+       "setenv bootpart " #instance":2 ; "\
+       "run mmcboot\0"
+
+#define BOOTENV_DEV_NAME_LEGACY_MMC(devtypeu, devtypel, instance) \
+       #devtypel #instance " "
+
+#define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
+       #devtypel #instance " "
+
Quoted 8 lines

include/configs/ti_omap4_common.h line 101

Quoted 5 lines
include/configs/ti_omap4_common.h +5 -0
+#define BOOT_TARGET_DEVICES(func) \
+       func(MMC, mmc, 0) \
+       func(LEGACY_MMC, legacy_mmc, 0) \
+       func(MMC, mmc, 1) \
+       func(LEGACY_MMC, legacy_mmc, 1) \

I don't remember the panda having a 2nd mmc card slot, are there other omap4's with this feature?

ahh the omap4-sdp did, since this is ti_omap4_common.h that's fine..

Regards,

Signature · 2 lines
Robert Nelson
https://rcn-ee.com/
author
#7 lore raw

PATCH 3/3 omap4_panda: Convert to config_distro_bootcmd.h

Quoted 39 lines · Robert Nelson
Quoted 29 lines · Robert Nelson
Quoted 28 lines · Tom Rini

Based on the am335x_evm conversion, switch to config_distro_bootcmd for mmc and pxe. Tested with Fedora 23.

---
 include/configs/ti_omap4_common.h |   51 ++++++++++++++++++++-----------------
 1 file changed, 27 insertions(+), 24 deletions(-)
include/configs/ti_omap4_common.h +12 -0
index 08130eb..8b6c065 100644
@@ -82,6 +82,32 @@
 /*
  * Environment setup
  */
+#define BOOTENV_DEV_LEGACY_MMC(devtypeu, devtypel, instance) \
+       "bootcmd_" #devtypel #instance "=" \
+       "setenv mmcdev " #instance"; "\
+       "setenv bootpart " #instance":2 ; "\
+       "run mmcboot\0"
+
+#define BOOTENV_DEV_NAME_LEGACY_MMC(devtypeu, devtypel, instance) \
+       #devtypel #instance " "
+
+#define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
+       #devtypel #instance " "
+
Quoted 8 lines

include/configs/ti_omap4_common.h line 101

Quoted 5 lines
include/configs/ti_omap4_common.h +5 -0
+#define BOOT_TARGET_DEVICES(func) \
+       func(MMC, mmc, 0) \
+       func(LEGACY_MMC, legacy_mmc, 0) \
+       func(MMC, mmc, 1) \
+       func(LEGACY_MMC, legacy_mmc, 1) \

I don't remember the panda having a 2nd mmc card slot, are there other omap4's with this feature?

Quoted 1 line

ahh the omap4-sdp did, since this is ti_omap4_common.h that's fine..

Even better, we'll pretend I did it right to start with :)

Signature · 8 lines
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/20151211/a2bf86b4/attachment.sig>
author
#8 lore raw

PATCH 3/3 omap4_panda: Convert to config_distro_bootcmd.h

In reply to Robert Nelson
Quoted 29 lines · Robert Nelson
Quoted 28 lines · Tom Rini

Based on the am335x_evm conversion, switch to config_distro_bootcmd for mmc and pxe. Tested with Fedora 23.

---
 include/configs/ti_omap4_common.h |   51 ++++++++++++++++++++-----------------
 1 file changed, 27 insertions(+), 24 deletions(-)
include/configs/ti_omap4_common.h +12 -0
index 08130eb..8b6c065 100644
@@ -82,6 +82,32 @@
 /*
  * Environment setup
  */
+#define BOOTENV_DEV_LEGACY_MMC(devtypeu, devtypel, instance) \
+       "bootcmd_" #devtypel #instance "=" \
+       "setenv mmcdev " #instance"; "\
+       "setenv bootpart " #instance":2 ; "\
+       "run mmcboot\0"
+
+#define BOOTENV_DEV_NAME_LEGACY_MMC(devtypeu, devtypel, instance) \
+       #devtypel #instance " "
+
+#define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
+       #devtypel #instance " "
+
Quoted 8 lines

include/configs/ti_omap4_common.h line 101

Quoted 5 lines
include/configs/ti_omap4_common.h +5 -0
+#define BOOT_TARGET_DEVICES(func) \
+       func(MMC, mmc, 0) \
+       func(LEGACY_MMC, legacy_mmc, 0) \
+       func(MMC, mmc, 1) \
+       func(LEGACY_MMC, legacy_mmc, 1) \

I don't remember the panda having a 2nd mmc card slot, are there other omap4's with this feature?

Ah, good spotting, oops, will fix in v2.

Signature · 8 lines
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/20151211/e13cc819/attachment.sig>
author
#9 lore raw

PATCH 3/3 omap4_panda: Convert to config_distro_bootcmd.h

In reply to Tom Rini
Quoted 4 lines · Tom Rini

Based on the am335x_evm conversion, switch to config_distro_bootcmd for mmc and pxe. Tested with Fedora 23.

Applied to u-boot/master, thanks!

Signature · 8 lines
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/20160114/72f85721/attachment.sig>
#10 lore raw

PATCH 3/3 omap4_panda: Convert to config_distro_bootcmd.h

In reply to Tom Rini
Quoted 9 lines · Tom Rini

Based on the am335x_evm conversion, switch to config_distro_bootcmd for mmc and pxe. Tested with Fedora 23.

---
 include/configs/ti_omap4_common.h |   51 ++++++++++++++++++++-----------------
 1 file changed, 27 insertions(+), 24 deletions(-)
include/configs/ti_omap4_common.h +0 -0

[snip]

Quoted 9 lines
include/configs/ti_omap4_common.h +0 -9
-#define CONFIG_BOOTCOMMAND \
-       "run findfdt; " \
-       "mmc dev ${mmcdev}; if mmc rescan; then " \
-               "echo SD/MMC found on device ${mmcdev};" \
-               "if run loadbootscript; then " \
-                       "run bootscript; " \
-               "else " \
-                       "if run loadbootenv; then " \
-                               "run importbootenv; " \

include/configs/ti_omap4_common.h line 142

Quoted 10 lines
include/configs/ti_omap4_common.h +0 -10
-                       "fi;" \
-                       "if test -n ${uenvcmd}; then " \
-                               "echo Running uenvcmd ...;" \
-                               "run uenvcmd;" \
-                       "fi;" \
-               "fi;" \
-               "if run loadimage; then " \
-                       "run loadfdt;" \
-                       "run mmcboot; " \
-               "fi; " \

This breaks legacy boot on pandaboard here. In Buildroot we have the kernel + dtb in partition 0:2 and no custom boot script, which used to be handled by the loadimage stuff, but that is no longer called.

Signature · 1 line
Bye, Peter Korsgaard