put compiled files in place, change boot.txt to default

This commit is contained in:
2020-04-11 11:51:51 +00:00
parent 806465108d
commit a80a3afe28
16 changed files with 20 additions and 22 deletions

View File

@@ -1,14 +1,14 @@
flash_uboot() {
echo "A new U-Boot version needs to be flashed onto /dev/mmcblk0."
echo "A new U-Boot version needs to be flashed onto /dev/mmcblk1."
echo "Do you want to do this now? [y|N]"
read -r shouldwe
if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then
dd if=/boot/rksd_loader.img of=/dev/mmcblk0 seek=64 conv=notrunc
dd if=/boot/u-boot.itb of=/dev/mmcblk0 seek=16384 conv=notrunc
dd if=/boot/rksd_loader.img of=/dev/mmcblk1 seek=64 conv=notrunc
dd if=/boot/u-boot.itb of=/dev/mmcblk1 seek=16384 conv=notrunc
else
echo "You can do this later by running:"
echo "# dd if=/boot/rksd_loader.img of=/dev/mmcblk0 seek=64 conv=notrunc"
echo "# dd if=/boot/u-boot.itb of=/dev/mmcblk0 seek=16384 conv=notrunc"
echo "# dd if=/boot/rksd_loader.img of=/dev/mmcblk1 seek=64 conv=notrunc"
echo "# dd if=/boot/u-boot.itb of=/dev/mmcblk1 seek=16384 conv=notrunc"
fi
}
@@ -22,3 +22,5 @@ post_install() {
post_upgrade() {
flash_uboot
}
##lsblk -dnpo name /dev/disk/by-partuuid/785dd377-de81-44f8-8cc9-0dcdc9a5c713