From b4fa62784ff3573966ba4a184178beac5ebf10aa Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Wed, 13 Sep 2023 20:45:42 -0500 Subject: [PATCH] change-gateware: more verbose Signed-off-by: Robert Nelson --- rootfs/etc/beagleboard/gateware/change-gateware.sh | 4 ++-- rootfs/etc/microchip/update-gateware.sh | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rootfs/etc/beagleboard/gateware/change-gateware.sh b/rootfs/etc/beagleboard/gateware/change-gateware.sh index 4b7ffe9..c794aa9 100644 --- a/rootfs/etc/beagleboard/gateware/change-gateware.sh +++ b/rootfs/etc/beagleboard/gateware/change-gateware.sh @@ -7,8 +7,8 @@ then then if [ -e $1/mpfs_dtbo.spi ] then - cp $1/mpfs_dtbo.spi /lib/firmware/mpfs_dtbo.spi - cp $1/mpfs_bitstream.spi /lib/firmware/mpfs_bitstream.spi + cp -v $1/mpfs_dtbo.spi /lib/firmware/mpfs_dtbo.spi + cp -v $1/mpfs_bitstream.spi /lib/firmware/mpfs_bitstream.spi . /etc/microchip/update-gateware.sh else echo "No device tree overlay file found." diff --git a/rootfs/etc/microchip/update-gateware.sh b/rootfs/etc/microchip/update-gateware.sh index 573f93f..ccc292f 100644 --- a/rootfs/etc/microchip/update-gateware.sh +++ b/rootfs/etc/microchip/update-gateware.sh @@ -29,6 +29,7 @@ read -rsp $'Press any key to continue...\n' -n1 key dtbo_ls=$(ls -l /lib/firmware/mpfs_dtbo.spi) dtbo_size=$(echo $dtbo_ls | cut -d " " -f 5) +echo "Writing mpfs_dtbo.spi to /dev/mtd0" /usr/sbin/mtd_debug write /dev/mtd0 0x400 $dtbo_size /lib/firmware/mpfs_dtbo.spi > /dev/zero # Fake the presence of a golden image for now.