diff options
author | VG <vg@devys.org> | 2016-11-06 20:04:54 +0100 |
---|---|---|
committer | VG <vg@devys.org> | 2016-11-06 20:04:54 +0100 |
commit | cf0edd94c05a9fc0c609758016a697c24dd913a0 (patch) | |
tree | 568d7345b0d6e438769c4f2ef1b7ecdb66576259 /rpi2-debian-stdkernel/other_boot_files | |
parent | fb6fa99c0da96a45d458b2ffa0b9b2fe8890ac36 (diff) | |
download | debootstrap-scripts-cf0edd94c05a9fc0c609758016a697c24dd913a0.tar.gz debootstrap-scripts-cf0edd94c05a9fc0c609758016a697c24dd913a0.tar.bz2 debootstrap-scripts-cf0edd94c05a9fc0c609758016a697c24dd913a0.zip |
add other debootstrap scripts and older instructions
Diffstat (limited to 'rpi2-debian-stdkernel/other_boot_files')
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 |