From 6fbf822e2167a8b60ca570133277fc2b345b0f6e Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Oct 24 2016 20:33:58 +0000 Subject: rename rpi firmware script --- diff --git a/rpi-firmware-update b/rpi-firmware-update new file mode 100755 index 0000000..fe44b88 --- /dev/null +++ b/rpi-firmware-update @@ -0,0 +1,28 @@ +#!/bin/bash + +# ensure sudo user +if [ "$(whoami)" != "root" ] ; then + echo "Error: This script requires 'sudo' privileges in order to write to disk & mount media." + exit 1 +fi + +echo +echo "= This will update U-Boot and the " +echo "= Raspberry Pi Firmware to the latest." +UBOOT=$(rpm -q uboot-images-armv7) +FW=$(rpm -q bcm283x-firmware) +echo +echo "= Uboot: $UBOOT" +echo "= Firmware: $FW" +mount /dev/mmcblk0p1 /boot/fw +# copy uboot +cp -rp /usr/share/uboot/rpi_2/u-boot.bin /boot/fw/rpi2-u-boot.bin +cp -rp /usr/share/uboot/rpi_3_32b/u-boot.bin /boot/fw/rpi3-u-boot.bin + +# copy fw +cp -rfp /usr/share/bcm283x-firmware/* /boot/fw/ +umount /boot/fw +echo +echo "== Complete!" +echo + diff --git a/rpi-uboot-update b/rpi-uboot-update deleted file mode 100755 index fe44b88..0000000 --- a/rpi-uboot-update +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -# ensure sudo user -if [ "$(whoami)" != "root" ] ; then - echo "Error: This script requires 'sudo' privileges in order to write to disk & mount media." - exit 1 -fi - -echo -echo "= This will update U-Boot and the " -echo "= Raspberry Pi Firmware to the latest." -UBOOT=$(rpm -q uboot-images-armv7) -FW=$(rpm -q bcm283x-firmware) -echo -echo "= Uboot: $UBOOT" -echo "= Firmware: $FW" -mount /dev/mmcblk0p1 /boot/fw -# copy uboot -cp -rp /usr/share/uboot/rpi_2/u-boot.bin /boot/fw/rpi2-u-boot.bin -cp -rp /usr/share/uboot/rpi_3_32b/u-boot.bin /boot/fw/rpi3-u-boot.bin - -# copy fw -cp -rfp /usr/share/bcm283x-firmware/* /boot/fw/ -umount /boot/fw -echo -echo "== Complete!" -echo -