This firmware is based on the yi-hack-Allwinner project. https://github.com/roleoroleo/yi-hack-Allwinner
It's a clone made for Sonoff camera based on Goke platform.
This firmware doesn't overwrite the original one, simply it add some features. For example: RTSP stream is provided through the sonoff original application.
Thanks to @EpicLPer for writing the hack guide for this cam: https://github.com/EpicLPer/Sonoff_GK-200MP2-B_Dump
I have no time to support the project, so feel free to clone/fork this git and modify it as you want.
- Contributing
- Features
- Performance
- Supported cameras
- Getting started
- Build your own firmware
- Unbricking
- Acknowledgments
- Donation
- Disclaimer
See CONTRIBUTING
This firmware contains the following features.
- FEATURES
- ONVIF server (with support for h264 stream, snapshot, ptz, presets, events and WS-Discovery) - standardized interfaces for IP cameras.
- Snapshot service - allows to get a jpg (1920x1080) with a web request.
- MQTT - Motion detection through mqtt protocol.
- Web server - web configuration interface (port 8080).
- SSH server - dropbear.
- FTP server.
- Authentication for HTTP, RTSP and ONVIF server.
- Management of motion detect events and videos through a web page.
- PTZ support through a web page.
- Goto and set presets through a web page.
- The possibility to disable all the cloud features.
- Swap File on SD
- Online firmware upgrade.
- Load/save/reset configuration.
The performance of the cam is not so good (CPU, RAM, etc...). If you enable all the services you may have some problems. Disable cloud is recommended to save resources.
If you notice problems and you have a SD to waste, try to enable swap file.
Currently this project supports only GK-200MP2B camera with firmware version V2524.1.245build20191030.
USE AT YOUR OWN RISK.
Do not try to use this fw on an another model
-
Check that you have a correct Sonoff camera.
-
Get a microSD card, 16gb or less, and format it by selecting FAT32 File System.
-
Get the correct firmware file from the releases section (https://github.com/roleoroleo/sonoff-hack/releases).
-
Decompress the file (tgz format) on root path of microSD card.
-
Remove power to the camera, insert the microSD card, turn the power back ON.
-
Wait a minute.
-
Go in the browser and access the web interface of the camera as a website (http://IP-CAM:8080). Find the IP address on your router's portal (see connected devices).
-
Don't remove the microSD card (yes this hack requires a dedicated microSD card).
-
Done.
If you want to build your own firmware, clone this git and compile it using a linux machine. Quick explanation:
- Download and install the toolchain I compiled.
- Prepare the system installing all the necessary packages.
- Clone this git.
- git submodule update --init
- ./scripts/compile.sh
- ./scripts/pack_fw.all.sh
If your camera doesn't start, no panic. This hack is not a permanent change, remove your SD card and the cam will come back to the original state.
Special thanks to the following people for the previous projects I started from.
- @EpicLPer - https://github.com/EpicLPer/Sonoff_GK-200MP2-B_Dump
- @TheCrypt0 - https://github.com/TheCrypt0/yi-hack-v4
- All the people who worked on the previous projects "yi-hack".
If you like this project, you can buy me a beer :)
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.