Skip to contentSkip to conversation

omap3_beagle: Add boot script support to omap3 beagle board

PATCH In review Guillaume GARDET 2 participants 3 messages Aug 26, 2014 – Sep 4, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 omap3_beagle: Add boot script support to omap3 beagle board

This patch adds boot script support to omap3 beagle board.

---
 include/configs/omap3_beagle.h | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
include/configs/omap3_beagle.h +10 -3
index 644e97f..f25a940 100644
@@ -207,6 +207,9 @@
 		"rootfstype=${ramrootfstype}\0" \
 	"loadramdisk=load mmc ${bootpart} ${rdaddr} ${bootdir}/${ramdisk}\0" \
 	"loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
+	"loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr\0" \
+	"bootscript=echo Running bootscript from mmc${mmcdev} ...; " \
+		"source ${loadaddr}\0" \
 	"loadfdt=run validatefdt; load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \
 	"mmcboot=echo Booting from mmc ...; " \
 		"run mmcargs; " \
@@ -243,9 +246,13 @@
 			"echo Running uenvcmd ...;" \
 			"run uenvcmd;" \
 		"fi;" \
-		"if run loadimage; then " \
-			"run mmcboot;" \
-		"fi;" \
+		"if run loadbootscript; then " \
+			"run bootscript; " \
+		"else " \
+			"if run loadimage; then " \
+				"run mmcboot;" \
+			"fi;" \
+		"fi; " \
 	"fi;" \
 	"run nandboot;" \
 	"setenv bootfile zImage;" \
Signature · 1 line
1.8.4.5
#1 lore raw

PATCH 1/1 omap3_beagle: Add boot script support to omap3 beagle board

Ping.

Guillaume

Le 26/08/2014 10:48, Guillaume GARDET a ?crit :

Quoted 40 lines

This patch adds boot script support to omap3 beagle board.

---
  include/configs/omap3_beagle.h | 13 ++++++++++---
  1 file changed, 10 insertions(+), 3 deletions(-)
include/configs/omap3_beagle.h +10 -3
index 644e97f..f25a940 100644
@@ -207,6 +207,9 @@
  		"rootfstype=${ramrootfstype}\0" \
  	"loadramdisk=load mmc ${bootpart} ${rdaddr} ${bootdir}/${ramdisk}\0" \
  	"loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
+	"loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr\0" \
+	"bootscript=echo Running bootscript from mmc${mmcdev} ...; " \
+		"source ${loadaddr}\0" \
  	"loadfdt=run validatefdt; load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \
  	"mmcboot=echo Booting from mmc ...; " \
  		"run mmcargs; " \
@@ -243,9 +246,13 @@
  			"echo Running uenvcmd ...;" \
  			"run uenvcmd;" \
  		"fi;" \
-		"if run loadimage; then " \
-			"run mmcboot;" \
-		"fi;" \
+		"if run loadbootscript; then " \
+			"run bootscript; " \
+		"else " \
+			"if run loadimage; then " \
+				"run mmcboot;" \
+			"fi;" \
+		"fi; " \
  	"fi;" \
  	"run nandboot;" \
  	"setenv bootfile zImage;" \
#2 lore raw
In reply to Guillaume GARDET
Quoted 4 lines · Guillaume GARDET

This patch adds boot script support to omap3 beagle board.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140904/9e709e38/attachment.pgp>