The answer is simple: I wanted to save 5 euro of SD card on AliExpress, so I decided to write code for a month.. Just kidding..I have 6 Yi cameras..I wanted an easy way to update them all and configure them all together.
- Features
- Supported cameras and Firmware Files
- Getting started
- Unbrick your camera
- Acknowledgments
- Disclaimer
- Donations
This firmware will add the following features:
-
NEW FEATURES
- Ability to load the firmware from a network share (configurable through the recovery http)
- Recovery mode (recovery http when SD is corrupt or network share has issues)
- Ability to share configurations (user chooses which ones) from the network share to have the same configurations applied to all the cameras.
- Native NVR (just make sure your network is fast enough, if you have lots of cameras)
- Control the camera from Home Assistant / MQTT (LED, IR, microphone and more — no cloud)
- Completely redesigned web interface (live view, diagnostics with one-click bug-report bundle, and a UI that knows which options work together — impossible combinations are simply not offered)
- Status LEDs that tell you what the camera is doing (lit from the first seconds of boot, with a different pattern for "no network yet", "still starting" and "recovery" — so a camera that won't come online is no longer just a dark box)
-
v6 Improvements
- Ultra-fast snapshots (hardware-captured JPEGs)
- Simplified file layout
- Minimized flash wear (reduced unnecessary writes introduced by all the previous yi-hack)
- Updated busybox & wpa_supplicant (more secure)
- Easier Timezone management (the camera aligns itself to the timezone set in the Yi app; no more mismatched timestamps)
- Faster configuration saving from web UI
-
v5 FEATURES
- RTSP server - which will allow an RTSP stream of the video while keeping the cloud features enabled (available to all and it is free).
- MQTT - detect motion directly from your home server!
- WebServer - user-friendly stats and configurations.
- SSH server - Enabled by default.
- Telnet server - Disabled by default. Enabled in recovery mode.
- FTP server - Disabled by default.
- Web server - Enabled by default.
- The possibility to change some camera settings (copied from the official app):
- camera on/off
- video saving mode
- detection sensitivity
- status led
- ir led
- rotate
- PTZ support through a web page.
- Snapshot feature
- Proxychains-ng - Disabled by default. Useful if the camera is region-locked.
- The possibility to disable all the cloud features while keeping the RTSP stream.
Currently, this project supports the following cameras:
| Camera | rootfs partition | home partition | Base Firmware | Remarks |
|---|---|---|---|---|
| Yi Home | rootfs_y18 | home_y18 | 1.8.7.0F_201809191400 | Coming later (no hardware) |
| Yi 1080p Home | rootfs_y20 | home_y20 | 2.1.0.0E_201809191630 | Already supported (no releases yet, I'm developing on it) |
| Yi Dome | rootfs_v201 | home_v201 | 1.9.1.0J_201809191135 | Coming later (no hardware) |
| Yi 1080p Dome | rootfs_h20 | home_h20 | 1.9.2.0I_201812141405 | Coming next |
| Yi 1080p Cloud Dome | rootfs_y19 | home_y19 | 1.9.3.0E_201812141519 | Coming next |
| Yi Outdoor | rootfs_h30 | home_h30 | 3.0.0.0D_201809111054 | Coming later (no hardware) |
A higher base firmware number than listed above means this project does not support your camera yet. Get in contact with me and I'll see what I can do.
-
Check that you have a correct Xiaomi Yi camera. (see the section above)
-
Get a microSD card, preferably of capacity 16 GB or less and format it by selecting File System as FAT32.
IMPORTANT: The microSD card must be formatted in FAT32. exFAT formatted microSD cards will not work. I have not formatted any of my 32GB cards to load the firmware. Just copy files directly and it should work.
(Click) How to format microSD cards > 32GB as FAT32 in Windows 10
For microSD cards larger than 32 GB, Windows 10 only gives you the option to format as NTFS or exFAT. You can create a small partition (e.g. 4 GB) on a large microSD card (e.g. 64 GB) to get the FAT32 formatting option.
- insert microSD card into PC card reader
- open Disk Management (e.g. Win+x, k)
- Disk Management: delete all partitions on the microSD card
- right click each partition > "Delete Volume..."
- repeat until there are no partitions on the card
- Disk Management: create a new FAT32 partition
- Right-click on "Unallocated" > "New Simple Volume..."
- Welcome to the New Simple Volume Wizard: click "Next"
- Specify Volume Size: 4096 > "Next"
- Assign Drive Letter or Path: (Any) > "Next"
- Format Partition: Format this volume with the following settings:
- File system: FAT32
- Allocation unit size: Default
- Volume label: Something
- Perform a quick format: ☑
- Disk Management: delete all partitions on the microSD card
You should now have a FAT32 partition on your microSD card that will allow the camera to load the firmware files to update to yi-hack-v6.
Alternative way:
- open cmd with admin permissions
- run diskpart
- type "list disk"
- find your SD card (for example Disk 7)
- type "select disk 7"
- if it has one partition - type "select partition 1". If more - delete all the partitions and then create one
- type "format FS=FAT32 QUICK"
- done. 32GB partition in FAT32.
-
Get the correct firmware files for your camera from the latest baseline release link: https://github.com/LinoBarreca/yi-hack-v6/releases/tag/6.0.1
-
Save both files
rootfs_xxandhome_xx, and theyi-hack-v6folder on the root path of the microSD card.
IMPORTANT: Make sure that the filenames stored on the microSD card are correct and didn't get changed. e.g. The firmware filenames for the Yi 1080p Dome camera must be home_h20 and rootfs_h20.
-
Remove power to the camera, insert the microSD card, and turn the power back ON.
-
The yellow light will come ON and flash for roughly 30 seconds, which means the firmware is being flashed successfully. The camera will boot up.
-
The yellow light will come ON again for the final stage of flashing. This will take up to 2 minutes.
-
Blue light should come ON indicating that your WiFi connection has been successful.
-
Go into the browser and access the web interface of the camera as a website.
IMPORTANT: The default hostname is the one with the QR-CODE on the device. Scan the qrcode with your phone (not the app), you will obtain a text which starts with the letters under the QR.
Access the web interface by entering that text http://<full text in the qr> in a web browser. e.g. http://48USYJ5205FD6E6F
Since 06-Jul-2026 you can also create a DHCP reservation to provide the hostname.
Depending upon your network setup, accessing the web interface with the hostname may not work.
In this case, the IP address of the camera has to be found.
This can be done from the App. Please open the app, and go to the Camera Settings --> Network Info --> IP Address.
Access the web interface by entering the IP address of the camera in a web browser. e.g. http://192.168.1.5
- Done! You are now successfully running yi-hack-v6!
It should not happen, if the instructions are followed correctly. Usually a proper reflash will solve. If you were tinkering and destroyed a partition different from rootfs or homefs by launching a wrong command, extracting the partition from a different camera usually works (unless it's the vd1 which is unique per camera).. So please avoid playing with partitions if you do not have a backup.
Wi-Fi is connected, and the camera responds to ping but I'm not able to connect to the web interface
Verify that you did not forget to upload the yi-hack-v6 folder to the SD card when uploading firmware. If you did, upload it and restart the camera.
Ensure you are using the correct app (Yi Home) to set up the wifi connection. For example, the "Xiaomi Home" app will also generate the correct QR code that will work with your camera for the initial connection, but then after power is removed the settings will be lost.
No pre-releases yet. If you have a camera that I do not own and want to help, please get in contact with me.
Special thanks to the following people and projects, without them yi-hack-v6 wouldn't be possible.
- @alienatedsec https://github.com/alienatedsec/yi-hack-v5
- @TheCrypt0 - https://github.com/TheCrypt0/yi-hack-v4
- @shadow-1 - https://github.com/shadow-1/yi-hack-v3
- @fritz-smh - https://github.com/fritz-smh/yi-hack
- @niclet - https://github.com/niclet/yi-hack-v2
- @xmflsct - https://github.com/xmflsct/yi-hack-1080p
- @dvv - Ideas for the RSTP stream
- @andy2301 - Ideas for the RSTP rtsp and rtsp2301
- @roleoroleo - PTZ Implementation
- @roleoroleo - https://github.com/roleoroleo
I AM NOT RESPONSIBLE FOR ANY USE OR DAMAGE THIS SOFTWARE MAY CAUSE. THIS IS INTENDED FOR EDUCATIONAL PURPOSES ONLY. USE AT YOUR OWN RISK.
...are well accepted and will be used to buy the hardware to extend the firmware to other cameras
Please use SEPA (for Europe) or paypal (international)
Thank you :)

