SHA256
1
0
forked from pool/u-boot
u-boot/beagle-bootscr.patch
Stephan Kulow 6da0a2e4f7 Accepting request 130043 from Base:System
- remove Marvell sources as they are non-free licensed (bnc#773824)

- fix ext2 support for origen
- add origen-spl.bin for origen

- merge u-boot-tools

- add ext2 support by default in mx53loco

- add support for mx53loco

- remove u-boot-omap3beagle 

- bump to 2012.04.01
  - fixes bug in cmdline parsing

- add calxeda highbank support

- autoload boot.scr on beagle, so we can boot again

- remove Marvell sources as they are non-free licensed (bnc#773824)

- fix ext2 support for origen
- add origen-spl.bin for origen

- merge u-boot-tools

- add ext2 support by default in mx53loco

- add support for mx53loco

OBS-URL: https://build.opensuse.org/request/show/130043
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/u-boot?expand=0&rev=6
2012-08-07 06:24:10 +00:00

39 lines
1.2 KiB
Diff

From 7ac25bef0f5d49410705e5e576c114bb2bdf7a2d Mon Sep 17 00:00:00 2001
From: Alexander Graf <agraf@suse.de>
Date: Thu, 12 Jul 2012 14:51:05 +0200
Subject: [PATCH] OMAP: Add autorun support for boot.scr
Signed-off-by: Alexander Graf <agraf@suse.de>
diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
index c4df587..afbe2b3 100644
--- a/include/configs/omap3_beagle.h
+++ b/include/configs/omap3_beagle.h
@@ -273,6 +273,9 @@
"loadramdisk=ext2load mmc ${mmcdev} ${rdaddr} ramdisk.gz\0" \
"loaduimagefat=ext2load mmc ${mmcdev} ${loadaddr} uImage\0" \
"loaduimage=ext2load mmc ${mmcdev}:2 ${loadaddr} /boot/uImage\0" \
+ "loadbootscript=ext2load mmc ${mmcdev} ${loadaddr} boot.scr\0" \
+ "bootscript=echo Running bootscript from mmc${mmcdev} ...; " \
+ "source ${loadaddr}\0" \
"mmcboot=echo Booting from mmc ...; " \
"run mmcargs; " \
"bootm ${loadaddr}\0" \
@@ -304,9 +307,13 @@
"echo Running uenvcmd ...;" \
"run uenvcmd;" \
"fi;" \
- "if run loaduimage; then " \
- "run mmcboot;" \
- "fi;" \
+ "if run loadbootscript; then " \
+ "run bootscript; " \
+ "else " \
+ "if run loaduimage; then " \
+ "run mmcboot; " \
+ "fi; " \
+ "fi; " \
"fi;" \
"run nandboot;" \