Skip to content

Instantly share code, notes, and snippets.

@wltechblog
Last active January 22, 2025 10:50
Show Gist options
  • Save wltechblog/bcc30aca647ee8eac5cb80c6b7368b98 to your computer and use it in GitHub Desktop.
Save wltechblog/bcc30aca647ee8eac5cb80c6b7368b98 to your computer and use it in GitHub Desktop.
SD card firmware flash for Wuuk Y0510
#!/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
@wltechblog
Copy link
Author

this didnt work for me. i ordered the wuuk as you recommended, and nothing seems to work. any advise?

Jump on our Discord for help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment