changes for SPL TPL u-boot

This commit is contained in:
2020-04-10 10:01:36 +02:00
parent 2b0c9e3fcc
commit dad7ec2e57
2 changed files with 21 additions and 22 deletions

View File

@@ -3,14 +3,12 @@ flash_uboot() {
echo "Do you want to do this now? [y|N]"
read -r shouldwe
if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then
dd if=/boot/idbloader.img of=/dev/mmcblk0 seek=64 conv=notrunc
dd if=/boot/uboot.img of=/dev/mmcblk0 seek=16384 conv=notrunc
dd if=/boot/trust.img of=/dev/mmcblk0 seek=24576 conv=notrunc
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
else
echo "You can do this later by running:"
echo "# dd if=/boot/idbloader.img of=/dev/mmcblk0 seek=64 conv=notrunc"
echo "# dd if=/boot/uboot.img of=/dev/mmcblk0 seek=16384 conv=notrunc"
echo "# dd if=/boot/trust.img of=/dev/mmcblk0 seek=24576 conv=notrunc"
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"
fi
}