aboutsummaryrefslogtreecommitdiffstats
path: root/rpi2-debian-stdkernel/other_boot_files
diff options
context:
space:
mode:
Diffstat (limited to 'rpi2-debian-stdkernel/other_boot_files')
-rw-r--r--rpi2-debian-stdkernel/other_boot_files/boot.scr25
-rw-r--r--rpi2-debian-stdkernel/other_boot_files/config.txt6
-rw-r--r--rpi2-debian-stdkernel/other_boot_files/ubuntu.pref3
-rw-r--r--rpi2-debian-stdkernel/other_boot_files/ubuntu.sources4
-rwxr-xr-xrpi2-debian-stdkernel/other_boot_files/update-boot-uimage.sh3
-rwxr-xr-xrpi2-debian-stdkernel/other_boot_files/vg-copy-rpi13
6 files changed, 54 insertions, 0 deletions
diff --git a/rpi2-debian-stdkernel/other_boot_files/boot.scr b/rpi2-debian-stdkernel/other_boot_files/boot.scr
new file mode 100644
index 0000000..f1ec9f8
--- /dev/null
+++ b/rpi2-debian-stdkernel/other_boot_files/boot.scr
@@ -0,0 +1,25 @@
+# u-boot commands, this file must be compiled with mk-image (or use
+# update-boot-uimage.sh)
+
+#setenv machid 0x00000c42
+
+# set the fdtfile according to your board model
+#setenv fdtfile bcm2709-rpi-2-b.dtb
+#setenv fdtfile bcm2835-rpi-b-rev2.dtb
+setenv fdtfile bcm2836-rpi-2-b.dtb
+
+mmc dev 0
+#ext4load mmc 0:2 ${kernel_addr_r} vmlinuz
+fatload mmc 0:1 ${kernel_addr_r} kernel.img
+#ext4load mmc 0:2 ${ramdisk_addr_r} initrd.img
+fatload mmc 0:1 ${fdt_addr_r} ${fdtfile}
+setenv bootargs earlyprintk console=ttyAMA0,115200n8 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait noinitrd
+#bootz ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
+bootz ${kernel_addr_r} - ${fdt_addr_r}
+#bootz ${kernel_addr_r}
+
+#mmc dev 0
+#ext4load mmc 0:2 0x01000000 vmlinuz
+#fatload mmc 0:1 0x00000100 bcm2835-rpi-b-rev2.dtb
+#setenv bootargs earlyprintk console=ttyAMA0,115200n8
+#bootz 0x01000000 - 0x00000100
diff --git a/rpi2-debian-stdkernel/other_boot_files/config.txt b/rpi2-debian-stdkernel/other_boot_files/config.txt
new file mode 100644
index 0000000..62e6fd5
--- /dev/null
+++ b/rpi2-debian-stdkernel/other_boot_files/config.txt
@@ -0,0 +1,6 @@
+enable_uart=1
+device_tree_address=0x100
+device_tree_end=0x8000
+kernel=u-boot.bin
+dtparam=i2c_arm=on
+dtparam=spi=on
diff --git a/rpi2-debian-stdkernel/other_boot_files/ubuntu.pref b/rpi2-debian-stdkernel/other_boot_files/ubuntu.pref
new file mode 100644
index 0000000..844bf1c
--- /dev/null
+++ b/rpi2-debian-stdkernel/other_boot_files/ubuntu.pref
@@ -0,0 +1,3 @@
+Package: *
+Pin: origin "ports.ubuntu.com"
+Pin-Priority: 100
diff --git a/rpi2-debian-stdkernel/other_boot_files/ubuntu.sources b/rpi2-debian-stdkernel/other_boot_files/ubuntu.sources
new file mode 100644
index 0000000..a8a167d
--- /dev/null
+++ b/rpi2-debian-stdkernel/other_boot_files/ubuntu.sources
@@ -0,0 +1,4 @@
+Types: deb
+URIs: http://ports.ubuntu.com
+Suites: yakkety yakkety-updates
+Components: main universe
diff --git a/rpi2-debian-stdkernel/other_boot_files/update-boot-uimage.sh b/rpi2-debian-stdkernel/other_boot_files/update-boot-uimage.sh
new file mode 100755
index 0000000..838e411
--- /dev/null
+++ b/rpi2-debian-stdkernel/other_boot_files/update-boot-uimage.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+# Place the relevant set of boot commands into boot.scr
+mkimage -A arm -O linux -T script -C none -n boot.scr -d boot.scr boot.scr.uimg
diff --git a/rpi2-debian-stdkernel/other_boot_files/vg-copy-rpi b/rpi2-debian-stdkernel/other_boot_files/vg-copy-rpi
new file mode 100755
index 0000000..a8eb53e
--- /dev/null
+++ b/rpi2-debian-stdkernel/other_boot_files/vg-copy-rpi
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -eux
+rootsource=$(findmnt -fno source -T /)
+firmwaresource=$(findmnt -fno source -T /boot/firmware/)
+if ! test x"$rootsource" = x"$firmwaresource"; then
+ cp --dereference /vmlinuz /boot/firmware/vmlinuz \
+ || cp --dereference /vmlinuz.old /boot/firmware/vmlinuz
+ cp --dereference /initrd.img /boot/firmware/initrd.img \
+ || cp --dereference /initrd.img.old /boot/firmware/initrd.img
+ ls -lah /vmlinuz /initrd.img > /boot/firmware/versions.txt \
+ || ls -lah /vmlinuz.old /initrd.img.old > /boot/firmware/versions.txt
+fi
+exit 0