Anyone else that is still stuck like me FYI the fix-pan file was updated recently (GitHub - agent86ix/wyze-cam-pan-sd-flash-fix). Correct me if I’m wrong but you shouldn’t have to edit either .SH file. flash_bootloader.sh doesn’t have a mountpoint listed anymore and upgraderun.sh has both mount points scripted:
flash_bootloader.sh:
#!/bin/sh
set -e
BACKUP_DIR=$1
echo “Using backup directory: $BACKUP_DIR”
echo “Changing to upgrade directory.”
cd /tmp/Upgrade
echo “Verifying file integrity.”
md5sum -c wyzecam_v2_stock_bootloader.bin.md5
echo “Backing up current bootloader.”
dd if=/dev/mtd0 of=$BACKUP_DIR/wyze-cam-pan-fix-old-bootloader.bin
echo “Erasing bootloader flash.”
flash_eraseall /dev/mtd0
echo “Installing replacement bootloader.”
dd if=wyzecam_v2_stock_bootloader.bin of=/dev/mtd0
reboot
upgraderun.sh:
#!/bin/sh
set -e
if [ -d “/media/mmcblk0p1/” ]
then
BACKUP_DIR=/media/mmcblk0p1/
elif [ -d “/media/mmc/” ]
then
BACKUP_DIR=/media/mmc/
else
BACKUP_DIR=mount | grep mmc | grep -v -e /root -e /etc -e /bin | cut -d ' ' -f 3
fi
if [ ! -d $BACKUP_DIR ]
then
exit 1
fi
sh /tmp/Upgrade/flash_bootloader.sh $BACKUP_DIR &> $BACKUP_DIR/wyze-cam-pan-fix.log