aboutsummaryrefslogtreecommitdiff
path: root/files/boot/uboot.mkimage
diff options
context:
space:
mode:
authorJan Wagner <mail@jwagner.eu>2016-03-12 16:07:25 +0100
committerJan Wagner <mail@jwagner.eu>2016-03-12 16:07:25 +0100
commit4aa8ac6985680eb12ba5c82422ecc50e2bb55447 (patch)
treea85e15805b773c5218ccb0a279490c98eec41e81 /files/boot/uboot.mkimage
parent80185bd93dd9eecb1b41ef8ac9a186aff19ab33e (diff)
downloadrpi2-gen-image-4aa8ac6985680eb12ba5c82422ecc50e2bb55447.tar.gz
rpi2-gen-image-4aa8ac6985680eb12ba5c82422ecc50e2bb55447.tar.bz2
rpi2-gen-image-4aa8ac6985680eb12ba5c82422ecc50e2bb55447.zip
spliting more files, fix-uboot, fix-fbturbo, fix-locale
Diffstat (limited to 'files/boot/uboot.mkimage')
-rw-r--r--files/boot/uboot.mkimage11
1 files changed, 11 insertions, 0 deletions
diff --git a/files/boot/uboot.mkimage b/files/boot/uboot.mkimage
new file mode 100644
index 0000000..cd71de6
--- /dev/null
+++ b/files/boot/uboot.mkimage
@@ -0,0 +1,11 @@
+# Tell Linux that it is booting on a Raspberry Pi2
+setenv machid 0x00000c42
+
+# Save these changes to u-boot's environment
+saveenv
+
+# Load the existing Linux kernel into RAM
+fatload mmc 0:1 ${kernel_addr_r} kernel7.img
+
+# Boot the kernel we have just loaded
+bootz ${kernel_addr_r}