Thingino Firmware
=================

Non-intrusive installation on Wyze Cam 2 or Wyze Cam Pan 1
----------------------------------------------------------

Prepare four SD cards, or you can reuse the same card.

### Card 1: Flash Upgraded Stock Bootloader

1. Format the first SD card to FAT32.
2. Copy content of the `card1/` directory to the card.
3. Insert the card into the camera.
4. Press the SETUP button, and power on the camera
   maintaning pressure for about five more seconds.
   The camera will upgrade bootloader to the one that
   can load a custom kernel.

### Card 2: Flash Factory Firmware

1. Format the second SD card to FAT32.
2. Copy content of the `card2/` directory to the card.
3. Insert the card into the camera.
4. Power on the camera and let it flash the factory firmware
   (Wyze v2 4.9.8.1002) onto the device.
   Once the process is complete, the device will reboot.

### Card 3: Flash Boot and Backup Kernel

1. Format the next SD card to FAT32.
2. Copy content of the `card3/` directory to the card.
3. Insert the card into the camera.
4. Power on the camera and let it detect the hardware, back up
   the stock firmware, and erase the bootloader partition
   preparing the camera for flashing [Thingino firmware][1]
   over USB port using [Cloner][2] tool.
5. Save a copy of `WYZE_BACKUP_xxxxxx/`
   directory containing a dump of all stock firmware partitions.
6. Check `SENSOR_VER`, `SOC_VERSION` and `WIFI_MODULE` files
   in the backup to determine your camera hardware configuration.

### Card 4: Flash Thingino

1. Format the last card to FAT32.
2. Download a corresponding firmware binary from Thingino website
   and place it on the card as autoupdate-full.bin
3. Insert the card into the camera.
4. Power up the camera and wait for the firmware to flash. It should
   take about two and a half minutes. When it's done, you'll hear a click.
5. Check for a new wireless network on your tablet of phone. It's called
   THINGINO-xxxx where xxxx is the camera's new MAC address.
   Connect to the network and open http://thingino.local/ in your browser.
6. After flashing the firmware, [configure access to your wireless network][3].

[1]: https://thingino.com/
[2]: https://thingino.com/cloner
[3]: https://github.com/themactep/thingino-firmware/wiki/Configuring-Wi%E2%80%90Fi-Access
