Skip to content

Latest commit

 

History

History
79 lines (58 loc) · 3.34 KB

install_cfw.md

File metadata and controls

79 lines (58 loc) · 3.34 KB

Installation of the microSD bootloader

  1. Download the CFW-Binary for your Camera

    Name SHA3-256
    Xioami Dafang d45826d5b471564366b3b9435509df7e8a2c0720656ea2b4bcac6dd0b42cc3eb
    Xioami Xiaofang T20
    Wyzecam V2
  2. Format your microSD to FAT. NTFS, EXFAT etc. won't work.

  3. Put it to microSD and rename it to "demo.bin". There should be no other files on the microSD! This is really important and it won't work if there are any other files on there.

  4. Shutdown the Dafang camera, remove the power cable and plug the microSD into the Dafang

  5. Hold the setup button on the Dafang camera

  6. Plug in the USB power cable

  7. Wait until the firmware has finished flashing (like 2 minutes). Disconnect the power as soon as the base starts moving.

  8. Remove the microSD and try to start the Dafang camera

  9. You should see the blue led shining up for 5 seconds (not blinking) before the base starts moving. If not, something went wrong. You should try another microSD. Start over from step 1.

Installation of the new Firmware

  1. Clone the repository from github. If you are on windows download the repository as zip file.
  2. Copy everything from "firmware_mod" folder into the root of the microSD

It should look like this:

E:/
├── bin
├── config
├── run.sh
├── scripts
└── www

  1. Copy config/wpa_supplicant.conf.dist to config/wpa_supplicant.conf
  2. Modify the file config/wpa_supplicant.conf on the microSD to match your wifi-settings
  3. Insert the microSD and start the camera.

Updating the microsd-bootloader

Usually, its not required to update the microsd-bootloader. However, if you are using the original Firmware, you may be interessted in the new Version. You can just update trough the MI-Home App.

If you are on original Firmware below 5.5.200, you will have to "reflash" the microsd-bootloader afterwards If you are on original Firmware 5.5.200 and update to 5.5.243, the bootloader wont be affected.

Updating Firmware

If you already have a current custom firmware with custom bootloader installed, you only need to update the content of the microSD

  1. Backup your wpa_config/wpa_supplicant.conf
  2. Remove all files from the microSD
  3. Put everything from "firmware_mod" folder into the root of the microSD
  4. Copy the backed up wpa_supplicant.conf from step 1 back into the config folder

Uninstallation

Remove the "run.sh" file from microSD.

Community Tips

  1. Use microSD cards smaller than 1GB such as 512MB and overwrite the same cards to minimize variations.
  2. If the bootloader step is not working, double check the microSD card again for files or folders created by the stock firmware (sometimes if your timing is off with the Setup press the camera will create a time stamp related folder that needs to be deleted before trying again).
  3. Make a note of the MAC for the camera and if possible set up DHCP to assign a specific IP address that can be monitored visually in DHCP logs.
  4. Start with fewer entries in your wpa_supplicant.conf to isolate WiFi issues.
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1

network={
	ssid="enteryourssidherebutrememebertokeepthequotes"
	psk="enteryourpasswordherebutremembertokeepthequotes"
  key_mgmt=WPA-PSK
}