summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordrahn <drahn@openbsd.org>2010-07-10 20:55:14 +0000
committerdrahn <drahn@openbsd.org>2010-07-10 20:55:14 +0000
commit755a60b9946b1d2fa0bf38437906d1cd8158bf17 (patch)
tree3b6b0511311527d30d1c0b6b39ed61896d25aa40
parentRemove debug print left in on last commit. (diff)
downloadwireguard-openbsd-755a60b9946b1d2fa0bf38437906d1cd8158bf17.tar.xz
wireguard-openbsd-755a60b9946b1d2fa0bf38437906d1cd8158bf17.zip
Add a bootstrap loader, this allow u-boot to auto-boot from the media
without modifying the u-boot environment.
-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