wz_mini_hacks/README.md

117 lines
5.5 KiB
Markdown
Raw Normal View History

2022-03-30 06:06:53 +00:00
# wz_mini_hacks
2022-04-13 06:26:15 +00:00
### v3/PANv2 devices ONLY
2022-03-30 06:06:53 +00:00
2022-04-13 06:26:15 +00:00
Run whatever firmware you want on your cameras and have root access to the device. This is in early stages of testing, use CAUTION if you are unsure of what you are doing. No support whatsoever is offered with this release.
2022-04-13 04:13:18 +00:00
**Do not contact the manufacturer for information or support, they will not be able to assist you!**
### Related Projects:
2022-04-13 06:26:15 +00:00
* wz_mini_debian: run full debian in a chroot, on the camera!
* wz_mini_utils: various statically compiled binaries for use with the camera (mipsel)
2022-04-13 04:13:18 +00:00
## Features
2022-04-13 04:13:18 +00:00
* No modification is done to the system. **_Zero!_**
* Custom kernel loads all required files from micro-sd card
2022-04-13 06:26:15 +00:00
* Wireguard, and ipv6 support enabled
* Supports the following USB Ethernet adapters:
* ASIX AX88xxx Based USB 2.0 Ethernet Adapters
* ASIX AX88179/178A USB 3.0/2.0 to Gigabit Ethernet
* Realtek RTL8152 Based USB 2.0 Ethernet Adapters
2022-04-13 04:13:18 +00:00
* Easy uninstall, just remove files from micro-sd card, or don't use a micro-sd card at all!
* Add your own changes to run at boot into the script on the micro sd card located at /media/mmc/run_mmc.sh, mount nfs, run ping, whatever you want
* Ability to update to the latest stable or beta firmware, this mod should survive updates as long as the bootloader remains the same
* Ability to block remote AND app initiated firmware updates
2022-04-13 06:26:15 +00:00
* Works on ANY firmware release (so far!)
2022-04-13 04:13:18 +00:00
* DNS Spoofing or Telnet mod are *not* required prior to installation
2022-04-13 07:00:31 +00:00
* *NEW* Installation-Free! Put files on the micro sd card and wait for the unit to boot!
2022-04-13 06:26:15 +00:00
* PAN v2 now supported
2022-04-13 07:00:31 +00:00
* Inspired by HclX and WyzeHacks! Bless you for all your work! You are the master!
2022-03-30 06:06:53 +00:00
2022-04-13 19:59:04 +00:00
## Coming Soon
* USB gadget support, connect the camera directly to a supported router to get an internet connection, no USB Ethernet Adapter required.
2022-04-05 16:40:59 +00:00
## Prerequisites
2022-04-13 04:13:18 +00:00
* Person
* Computer
* Micro-SD Card is required!
2022-04-05 16:40:59 +00:00
2022-03-30 06:06:53 +00:00
## Setup
2022-04-13 04:13:18 +00:00
1. git clone the repo or download the repo zip
2022-04-03 04:44:06 +00:00
2. copy all the files inside of SD_ROOT to your micro sd card
2022-03-30 06:06:53 +00:00
2022-04-03 04:44:06 +00:00
## Installation
2022-04-13 06:26:15 +00:00
1. Turn off the camera
2. Insert the micro sd memory card into the camera
3. Turn on the camera
2022-04-13 04:13:18 +00:00
4. The camera will boot, then you may connect via the IP address of your device using SSH, port 22. username is root password is WYom2020. It may take a few minutes for the device to finish booting and connect to wifi, then launch the SSH server. Be patient.
## Removal
1. Delete the files you copied to the memory card. The next time you boot the camera, you will return to stock firmware.
2022-04-03 04:44:06 +00:00
## Customization
Edit run_mmc.sh, this is a script stored on the micro sd card that is run when the camera boots. You can change the hostname of the camera, mount NFS, add ping commands, anything you like.
---
2022-04-13 19:59:04 +00:00
**DO NOT ENABLE FIRMWARE UPDATES, CURRENTLY THERE IS A BOOTLOADER BUG WHICH RESULTS IN A BROKEN SYSTEM. currently set to true by default.**
To disable automatic firmware updates, edit run_mmc.sh in the wz_mini directory on your micro sd card,
change:
```
DISABLE_FW_UPGRADE="false"
```
to:
```
DISABLE_FW_UPGRADE="true"
2022-04-13 04:13:18 +00:00
```
2022-04-13 19:59:04 +00:00
If a remote or app update is initiated, the camera will reboot due to the failure of the update. The firmware update should not proceed again for some time, or at all.
2022-04-13 04:13:18 +00:00
---
To enable USB Ethernet Adapter support,
change:
```
ENABLE_USB_ETH="false"
```
to:
```
ENABLE_USB_ETH="true"
```
2022-04-14 08:35:27 +00:00
the next time you boot your camera, make sure your USB Ethernet Adapter is connected to the camera and ethernet. The camera has to be setup initially with Wi-Fi for this to work. After setup, Wi-Fi is no longer needed, as long as you are using the USB Ethernet Adapter. Note that using USB Ethernet disables the onboard Wi-Fi.
2022-04-05 16:40:59 +00:00
## Latest Updates
2022-04-14 08:35:27 +00:00
* 04-14-22: Possible memory leak with some USB adapters used, added 128MB swap file and logic as workaround to prevent oom killing
2022-04-13 19:59:04 +00:00
* 04-13-22: Firmware updates are disabled by default, there is a bug in the bootloader that corrupts the kernel partition requiring the re-flash of the camera if an update is processed and the memory card is removed before next boot. The bootloader proceeds to copy the partitions and the system will not boot unless re-flashed. pending investigation.
* 04-12-22: Updated, custom kernel loads all required items from micro sd card. System modification no longer needed.
2022-04-05 16:40:59 +00:00
* 04-05-22: Update readme to indicate that telnet mod nor DNS spoofing is required for installation, and add pre-requisites section.
* 04-02-22: Update to automatic install method, remove manual install.
2022-04-03 04:44:06 +00:00
2022-03-30 06:06:53 +00:00
## WARNING
```
AS WITH ANY UNSUPPORTED SYSTEM MODIFICATIONS, USING THIS MAY LEAD TO A DEVICE BRICK
IF YOU DON'T KNOW WHAT YOU ARE DOING ( HAVEN'T BRICKED MY DEVICE YET! ) PLEASE
BE AWARE THAT NO ONE ON THE INTERNET IS RESPONSIBLE FOR ANY DAMAGE TO YOUR
UNIT. ANY PROBLEMS WILL BE CONSIDERED USER ERROR OR ACTS OF WHATEVER GOD YOU BELIEVE IN.
2022-03-30 06:25:21 +00:00
USE AT YOUR OWN RISK. NO WARRANTY OF ANY KIND IS EXPRESSED OR IMPLIED.
DO NOT USE THIS SOFTWARE IF YOU ARE NOT CONFIDENT IN RESTORING YOUR DEVICE FROM A FAILED STATE.
2022-03-30 06:06:53 +00:00
```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
2022-04-03 04:44:06 +00:00
## Thank You
2022-04-13 04:13:18 +00:00
Thank you to everyone who is passionate about Wyze products for making the devices popular, and thank you to Wyze for producing them. Sign up for CamPlus, show some love and support to the company.
2022-04-03 04:44:06 +00:00
2022-04-13 04:13:18 +00:00
Thanks for HclX for WyzeHacks! https://github.com/HclX/WyzeHacks/
Thank you mnakada for his atomcam_tools fork! https://github.com/mnakada/atomcam_tools
Thank you bakueikozo for his atomcam_tools repo! https://github.com/bakueikozo/atomcam_tools
Thank you to virmaior for the atomcam_tools tip!