Last active
August 22, 2024 16:32
-
-
Save wltechblog/bcc30aca647ee8eac5cb80c6b7368b98 to your computer and use it in GitHub Desktop.
SD card firmware flash for Wuuk Y0510
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# WUUK Y0510 https://amzn.to/4dFlKv1 | |
# | |
# Instructions | |
# | |
# Note: If we increase uboot beyond 256k this needs to be adjusted. | |
# Build thingino firmware, up to make pack_full, or grab full firmware file from github releases | |
# -- UPDATE -- | |
# There are now 2 versions of this camera. Most use the sc4336p sensor, a few have the sc401ai sensor. | |
# if you install the sc4336p file and don't have video, grab the sc401ai file, rename it to autoupdate-full.bin, | |
# remove autoupdate-full.done, and reboot the camera to flash the new one. | |
# ------------ | |
# Copy full thingio image to sd as /autoupdate-full.bin | |
# Put this script on sd as /FACTORY/factory_install.sh | |
# Insert SD card and power on camera, wait about 10 minutes, it will reboot a few times along the way. | |
mount -t vfat /dev/mmcblk0p1 /mnt | |
if [ ! -f /mnt/autoupdate-full.bin ] | |
then | |
echo "Missing update file, aborting" | |
exit | |
fi | |
echo "Extracing uboot" | |
dd if=/mnt/autoupdate-full.bin of=/mnt/u-boot-t31x.bin bs=1k count=256 | |
if [ -f /mnt/u-boot-t31x.bin ] && [ -f /mnt/autoupdate-full.bin ] | |
then | |
rm -f /mnt/autoupdate-full.done | |
echo "Flashing uboot" | |
flashcp /mnt/u-boot-t31x.bin /dev/mtd0 | |
echo "Rebooting" | |
reboot | |
else | |
echo "Files missing, not flashing" | |
fi |
Script updated to fix a sanity check that wasn't sane !
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for your prompt reply,
That's exactly what I have in the microSD card, I tried 3 different sandisk cards, still getting the same error. Maybe the cameras that I have is patched or has different software or bootloader on it, I am attaching full boot log.