Skip to contentSkip to conversation

Fixes and simplification to omap3_pandora boot configuration

PATCH New Vagrant Cascadian 3 participants 7 messages Aug 29, 2016 – Sep 7, 2016

lore
Share & tools
lore
#0 lore raw

cover Fixes and simplification to omap3_pandora boot configuration

First patch fixes the syntax used for loading a boot script from mmc.

The second patch makes use of the "load" command provided by CONFIG_CMD_FS_GENERIC.

Vagrant Cascadian (2):
omap3_pandora: Fix mmc loading of autoboot script to use correct
syntax.
omap3_pandora: Switch to using "load" command to load the autoboot
script.

 include/configs/omap3_pandora.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Signature · 1 line
2.9.3
#1 lore raw

PATCH 1/2 omap3_pandora: Fix mmc loading of autoboot script to use correct syntax.

fatload/ext2load both require that the device and partition be specified after specifying the device type. Specify the first partition on mmc device 0, which is the only mmc device currently configured on the pandora.

---

 include/configs/omap3_pandora.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/configs/omap3_pandora.h +2 -2
index 380ec12..6ff9375 100644
@@ -93,8 +93,8 @@
 	"mtdparts=" MTDPARTS_DEFAULT "\0" \
 
 #define CONFIG_BOOTCOMMAND \
-	"if mmc rescan && fatload mmc1 0 ${loadaddr} autoboot.scr || " \
-			"ext2load mmc1 0 ${loadaddr} autoboot.scr; then " \
+	"if mmc rescan && fatload mmc 0:1 ${loadaddr} autoboot.scr || " \
+			"ext2load mmc 0:1 ${loadaddr} autoboot.scr; then " \
 		"source ${loadaddr}; " \
 	"fi; " \
 	"ubi part boot && ubifsmount ubi:boot && " \
Signature · 1 line
2.9.3
#2 lore raw

PATCH 1/2 omap3_pandora: Fix mmc loading of autoboot script to use correct syntax.

Quoted 6 lines · Vagrant Cascadian

fatload/ext2load both require that the device and partition be specified after specifying the device type. Specify the first partition on mmc device 0, which is the only mmc device currently configured on the pandora.

Quoted 23 lines

---

 include/configs/omap3_pandora.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/configs/omap3_pandora.h +2 -3
index 380ec12..6ff9375 100644
@@ -93,8 +93,8 @@
        "mtdparts=" MTDPARTS_DEFAULT "\0" \
 
 #define CONFIG_BOOTCOMMAND \
-       "if mmc rescan && fatload mmc1 0 ${loadaddr} autoboot.scr || " \
-                       "ext2load mmc1 0 ${loadaddr} autoboot.scr; then " \
+       "if mmc rescan && fatload mmc 0:1 ${loadaddr} autoboot.scr || " \
+                       "ext2load mmc 0:1 ${loadaddr} autoboot.scr; then " \
                "source ${loadaddr}; " \
        "fi; " \
        "ubi part boot && ubifsmount ubi:boot && " \
--

2.9.3

#3 lore raw

PATCH 1/2 omap3_pandora: Fix mmc loading of autoboot script to use correct syntax.

In reply to Vagrant Cascadian
Quoted 7 lines · Vagrant Cascadian

fatload/ext2load both require that the device and partition be specified after specifying the device type. Specify the first partition on mmc device 0, which is the only mmc device currently configured on the pandora.

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: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160907/8b71d4c7/attachment.sig>
#4 lore raw

PATCH 2/2 omap3_pandora: Switch to using "load" command to load the autoboot script.

In reply to Vagrant Cascadian

CONFIG_CMD_FS_GENERIC is enabled; use it to load the autoboot script, rather than first attempting with fatload and falling back to ext2load.

---

 include/configs/omap3_pandora.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
include/configs/omap3_pandora.h +1 -2
index 6ff9375..0d733bd 100644
@@ -93,8 +93,7 @@
 	"mtdparts=" MTDPARTS_DEFAULT "\0" \
 
 #define CONFIG_BOOTCOMMAND \
-	"if mmc rescan && fatload mmc 0:1 ${loadaddr} autoboot.scr || " \
-			"ext2load mmc 0:1 ${loadaddr} autoboot.scr; then " \
+	"if mmc rescan && load mmc 0:1 ${loadaddr} autoboot.scr; then " \
 		"source ${loadaddr}; " \
 	"fi; " \
 	"ubi part boot && ubifsmount ubi:boot && " \
Signature · 1 line
2.9.3
#5 lore raw

PATCH 2/2 omap3_pandora: Switch to using "load" command to load the autoboot script.

Quoted 5 lines · Vagrant Cascadian

CONFIG_CMD_FS_GENERIC is enabled; use it to load the autoboot script, rather than first attempting with fatload and falling back to ext2load.

Quoted 22 lines

---

 include/configs/omap3_pandora.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
include/configs/omap3_pandora.h +1 -3
index 6ff9375..0d733bd 100644
@@ -93,8 +93,7 @@
        "mtdparts=" MTDPARTS_DEFAULT "\0" \
 
 #define CONFIG_BOOTCOMMAND \
-       "if mmc rescan && fatload mmc 0:1 ${loadaddr} autoboot.scr || " \
-                       "ext2load mmc 0:1 ${loadaddr} autoboot.scr; then " \
+       "if mmc rescan && load mmc 0:1 ${loadaddr} autoboot.scr; then " \
                "source ${loadaddr}; " \
        "fi; " \
        "ubi part boot && ubifsmount ubi:boot && " \
--

2.9.3

#6 lore raw

PATCH 2/2 omap3_pandora: Switch to using "load" command to load the autoboot script.

In reply to Vagrant Cascadian
Quoted 6 lines · Vagrant Cascadian

CONFIG_CMD_FS_GENERIC is enabled; use it to load the autoboot script, rather than first attempting with fatload and falling back to ext2load.

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: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160907/ba2fc7bd/attachment.sig>