Skip to content

Latest commit

 

History

History
98 lines (72 loc) · 4.39 KB

README.md

File metadata and controls

98 lines (72 loc) · 4.39 KB

Custom firmware for Yi home 1080p 6FUS 4.5.0 version (only)

This firmware is completely based on the work done by TheCrypt0 https://github.com/TheCrypt0/yi-hack-v4 It's a clone made only for Yi Home 1080p with fw 4.5.0 based on MStar platform.

I have no time to support the project, so feel free to clone/fork this git and modify it as you want.

RTSP Server

I'm working on a fully functional RTSP implementation, inspired by the following topic:

The RTSP server code derives from live555 - http://www.live555.com/ and from the archive rtsp2303_srcbin_20170414-1630.zip posted in the link above. At this moment it works but sometimes the video crashes.

Known issue.

I recently changed the way to read the video stream, now I go directly to the kernel driver memory. The quality has improved. Test in progress!

Table of Contents

Features

This firmware contains the following features. Apart from RTSP, snapshot and ONVIF, all the features are copied from the TheCrypt0 project.

  • FEATURES
    • RTSP server - allows a RTSP stream of the video (high or low resolution) but without audio.
      • rtsp://IP-CAM/ch0_0.h264 (high res)
      • rtsp://IP-CAM/ch0_1.h264 (low res)
    • ONVIF server - standardized interfaces for IP cameras.
    • Snapshot service - allows to get a jpg with a web request. Gets the latest idr frame from the buffer and converts it to jpg (latest idr frame = no real time).
    • MQTT - Motion detection through mqtt protocol.
    • Web server - web configutation interface (port 8080).
    • SSH server - dropbear
    • Telnet server - busybox
    • FTP server
    • Authentication for HTTP, RTSP and ONVIF server.
    • Watermark removed
    • The possibility to disable all the cloud features.

Supported cameras

Currently this project supports only the following camera:

  • Yi 1080p Home 6FUS with firmware 4.5.0.0A_201902261502, 4.5.0.0B_201909041616 or 4.5.0.0C_201910080934.

This firmware is based on 4.5.0.0C and completely overwrite the original firmware. So, USE AT YOUR OWN RISK.

Getting Started

  1. Check that you have a correct Xiaomi Yi camera.

  2. Get a microSD card, 16gb or less, and format it by selecting File System as FAT32.

  3. Save both files (home_y203c and sys_y203c) on root path of microSD card.

  4. Remove power to the camera, insert the microSD card, turn the power back ON.

  5. 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.

  6. The yellow light will come ON again for the final stage of flashing. This will take up to 2 minutes.

  7. Blue light should come ON indicating that your WiFi connection has been successful (if not disable using app).

  8. Go in the browser and access the web interface of the camera as a website (http://IP-CAM:8080). Find the IP address using your mobile app (Camera Settings --> Network Info --> IP Address). If the mobile app can't be paired, you may look for the IP on your router's portal (see connected devices).

  9. Done.

Build your own firmware

If you want to build your own firmware, clone this git and compile using a linux machine. Quick explanation:

  • Download and install the SDK for MStar platform: the file name is "MStar MSC3XX SDK.zip" (Google is your friend).
  • Prepare the system installing all the necessary packages.
  • Copy home and rootfs partition files to ./stock_firmware/yi_home_1080p
  • ./scripts/init_sysroot.all.sh
  • ./scripts/compile.sh
  • ./scripts/pack_fw.all.sh

Acknowledgments

Special thanks to the following people.


DISCLAIMER

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.