niceboygithub / AqaraGateway

Aqara Gateway/Hub integration for Home Assistant
523 stars 66 forks source link

M1S AQARA lumi.gateway.acn008 support #304

Open Cigareoc opened 1 month ago

Cigareoc commented 1 month ago

good evening! I tried with tera term to clear the password from this guide: https://github.com/niceboygithub/AqaraM1SM2fw/tree/main/tools#gateway-global-tool when I choose the version at the gateway from macro,I follow all the instructions but it stops at wait uart as in the picture,my model is Model: lumi.gateway.acn008 Hardware version: Linux Firmware version: 4.0.5_0003 is this model not supported? 1 2 3 4 5

niceboygithub commented 1 month ago

Use item Hub E1

Cigareoc commented 1 month ago

good morning!!!!not working with e1 6 7

niceboygithub commented 1 month ago

From your log, it did not stop uboot booting. Please attach the log of uboot part.

Cigareoc commented 1 month ago

aqara gateway m2 m1s,h1,p3.log multimode gateway 2,hub e1 log.log

niceboygithub commented 1 month ago

That mean the method of interrupt uboot was removed. Please use another method. Check the repo https://github.com/niceboygithub/AqaraSmartSwitchS1E/blob/master/homeassistant/telnet.md

Cigareoc commented 1 month ago

For m1S aqara gateway is different board

Cigareoc commented 1 month ago

I mean about To interrupt uboot, you need use short CLK pin (pin 6) and GND pin or CS Pin (pin 1) and Vcc pin while uboot reading kernel. Notice: This method is dangerous and it may make S1E become bricked if you are not familiar with the circuit.

niceboygithub commented 1 month ago

M1S (lumi.gateway.acn008) also use the same SoC and SPI NAND as S1E.

Cigareoc commented 1 month ago

without success, I connected according to the instructions, but the password does not clear see log New Text Document.txt

Cigareoc commented 1 month ago

![Uploading IMG_0192.jpeg…]()

Cigareoc commented 1 month ago

IMG_0195 IMG_0194

niceboygithub commented 1 month ago

fwfs is using in S1E

for M1S gen2, you need to other method

please use the following commands

mount -t ramfs ramfs /var; mkdir /var/tmp
cp /etc/init.d/rcS /var/tmp/rcS
sed -i 's/fw_manager.sh -r/echo skip/g' /var/tmp/rcS
/var/tmp/rcS

wait few mintues

passwd -d root
Cigareoc commented 1 month ago

Password for root changed by root

Cigareoc commented 1 month ago

New Text Document (3).txt

Cigareoc commented 1 month ago

i think i openet telnet because i add it in home assistant winth only token and login root,i think,how to update to modified firmware?

wohdek21 commented 4 weeks ago

how did you connected to m1s? Mine doesnt even connect and show terminal at terra term and putty

maxim-barwich commented 3 weeks ago

fwfs is using in S1E

for M1S gen2, you need to other method

please use the following commands

mount -t ramfs ramfs /var; mkdir /var/tmp
cp /etc/init.d/rcS /var/tmp/rcS
sed -i 's/fw_manager.sh -r/echo skip/g' /var/tmp/rcS
/var/tmp/rcS

wait few mintues

passwd -d root

after resetting the password, is it possible to install the modified firmware in this way?

cd /tmp && wget -O /tmp/curl "http://master.dl.sourceforge.net/project/mgl03/bin/curl?viasf=1" && chmod a+x /tmp/curl
/tmp/curl -s -k -L -o /tmp/m1s2_update.sh https://raw.githubusercontent.com/niceboygithub/AqaraCameraHubfw/main/modified/M1S2/m1s2_update.sh
chmod a+x /tmp/m1s2_update.sh && /tmp/m1s2_update.sh
Cigareoc commented 3 weeks ago

fwfs is using in S1E for M1S gen2, you need to other method please use the following commands

mount -t ramfs ramfs /var; mkdir /var/tmp
cp /etc/init.d/rcS /var/tmp/rcS
sed -i 's/fw_manager.sh -r/echo skip/g' /var/tmp/rcS
/var/tmp/rcS

wait few mintues

passwd -d root

after resetting the password, is it possible to install the modified firmware in this way?

cd /tmp && wget -O /tmp/curl "http://master.dl.sourceforge.net/project/mgl03/bin/curl?viasf=1" && chmod a+x /tmp/curl
/tmp/curl -s -k -L -o /tmp/m1s2_update.sh https://raw.githubusercontent.com/niceboygithub/AqaraCameraHubfw/main/modified/M1S2/m1s2_update.sh
chmod a+x /tmp/m1s2_update.sh && /tmp/m1s2_update.sh

Aqara-Hub-M1S-43C3 login: admin Password: Login incorrect Aqara-Hub-M1S-43C3 login: admin Password: Login incorrect Aqara-Hub-M1S-43C3 login: root login: can't chdir to home directory '/home/root' / # cd /tmp && wget -O /tmp/curl "http://master.dl.sourceforge.net/project/mgl03 /bin/curl?viasf=1" && chmod a+x /tmp/curl /tmp/curl -s -k -L -o /tmp/m1s2_update.sh https://raw.githubusercontent.com/niceboygithub/AqaraCameraHubfw/main/modified/M1S2/m1s2_update.sh chmod a+x /tmp/m1s2_update.sh && /tmp/m1s2_update.shConnecting to master.dl.sourceforge.net (216.105.38.12:80) curl 100% |***| 2271k 0:00:00 ETA /tmp # /tmp/curl -s -k -L -o /tmp/m1s2_update.sh https://raw.githubusercontent.c om/niceboygithub/AqaraCameraHubfw/main/modified/M1S2/m1s2_update.sh /tmp/curl: line 1: syntax error: unexpected "(" /tmp # chmod a+x /tmp/m1s2_update.sh && /tmp/m1s2_update.sh chmod: /tmp/m1s2_update.sh: No such file or directory /tmp #

maxim-barwich commented 3 weeks ago

Aqara-Hub-M1S-43C3 login: admin Password: Login incorrect Aqara-Hub-M1S-43C3 login: admin Password: Login incorrect Aqara-Hub-M1S-43C3 login: root login: can't chdir to home directory '/home/root' / # cd /tmp && wget -O /tmp/curl "http://master.dl.sourceforge.net/project/mgl03 /bin/curl?viasf=1" && chmod a+x /tmp/curl /tmp/curl -s -k -L -o /tmp/m1s2_update.sh https://raw.githubusercontent.com/niceboygithub/AqaraCameraHubfw/main/modified/M1S2/m1s2_update.sh chmod a+x /tmp/m1s2_update.sh && /tmp/m1s2_update.shConnecting to master.dl.sourceforge.net (216.105.38.12:80) curl 100% |***| 2271k 0:00:00 ETA /tmp # /tmp/curl -s -k -L -o /tmp/m1s2_update.sh https://raw.githubusercontent.c om/niceboygithub/AqaraCameraHubfw/main/modified/M1S2/m1s2_update.sh /tmp/curl: line 1: syntax error: unexpected "(" /tmp # chmod a+x /tmp/m1s2_update.sh && /tmp/m1s2_update.sh chmod: /tmp/m1s2_update.sh: No such file or directory /tmp #

I myself changed these commands based on M1S Gen1. I changed the paths and names of the script m1s_update.sh

maybe I was wrong. I haven't tried to run it myself yet.

niceboygithub commented 3 weeks ago

You use wrong curl

maxim-barwich commented 3 weeks ago

You use wrong curl

please tell me where the error is. I can't find it