niceboygithub
niceboygithub
Please use HomeKit or Aqara app to set alarm mode
Add post_init.sh and add the line "asetprop persist.sys.model lumi.gateway.XXX" in post_init.sh Note: lumi.gateway.XXX is the model of M1S EU
What is the model? lumi.gateway.XXX
The failure is from building c-ares ``` In file included from third_party/cares/cares/src/lib/ares_sysconfig_mac.c:64: In file included from /System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkConfiguration.h:30: In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60: In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:17: In file included...
The tool is your hand. You can press the button 5-2-2-2-2-2 to enable the telnet. The password is empty. After login in, you can flash the firmware which is enabled...
Why you want get root on it?
I can not see the SoC from picture, it shall be on the other side. - But by my experience, the UART pin may be the following picture 
Can you share the firmware of M300? You can use this [tool ](https://github.com/niceboygithub/python-aiot)to get ota firmware url if avaiable.
Thanks for sharing. I may get one M300 later. I will check it after got.
1. Unsquashfs rootfs 2. add telnetd in /etc/init.d/rcS 3. replace the mosquitto which support public port 1883 4. mksquashfs