summaryrefslogtreecommitdiff
path: root/sys/arch/beagle
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2010-07-10 20:55:15 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2010-07-10 20:55:15 +0000
commit54b9545c9b0c9cdbb109eccb2b711066dce73467 (patch)
treeb9b664305eebf597b3339bb7d1adcde5be674847 /sys/arch/beagle
parent1a019f7d5fee2cc39b76fb4c3807e2f2bf3d77e6 (diff)
Add a bootstrap loader, this allow u-boot to auto-boot from the media
without modifying the u-boot environment.
Diffstat (limited to 'sys/arch/beagle')
-rw-r--r--sys/arch/beagle/stand/boot.scr/Makefile10
-rw-r--r--sys/arch/beagle/stand/boot.scr/boot.cmd1
2 files changed, 11 insertions, 0 deletions
diff --git a/sys/arch/beagle/stand/boot.scr/Makefile b/sys/arch/beagle/stand/boot.scr/Makefile
new file mode 100644
index 00000000000..8d033dfd984
--- /dev/null
+++ b/sys/arch/beagle/stand/boot.scr/Makefile
@@ -0,0 +1,10 @@
+PROG = boot.scr
+SRCS =
+
+.SUFFIXES: .cmd .scr
+
+.cmd.scr:
+ mkuboot -t script -a arm -o linux $< $@
+
+
+.include <bsd.prog.mk>
diff --git a/sys/arch/beagle/stand/boot.scr/boot.cmd b/sys/arch/beagle/stand/boot.scr/boot.cmd
new file mode 100644
index 00000000000..67b954b1d10
--- /dev/null
+++ b/sys/arch/beagle/stand/boot.scr/boot.cmd
@@ -0,0 +1 @@
+fatload mmc 0 0x82800000 bsd.umg; bootm 0x82800000