AqaraGateway icon indicating copy to clipboard operation
AqaraGateway copied to clipboard

M1S AQARA lumi.gateway.acn008 support

Open Cigareoc opened this issue 1 year ago • 22 comments

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

Cigareoc avatar Sep 27 '24 17:09 Cigareoc

Use item Hub E1

niceboygithub avatar Sep 27 '24 23:09 niceboygithub

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

Cigareoc avatar Sep 28 '24 04:09 Cigareoc

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

niceboygithub avatar Oct 16 '24 00:10 niceboygithub

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

niceboygithub avatar Oct 16 '24 23:10 niceboygithub

For m1S aqara gateway is different board

Cigareoc avatar Oct 17 '24 04:10 Cigareoc

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.

Cigareoc avatar Oct 17 '24 04:10 Cigareoc

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

niceboygithub avatar Oct 17 '24 07:10 niceboygithub

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

Cigareoc avatar Oct 17 '24 09:10 Cigareoc

Uploading IMG_0192.jpeg…

Cigareoc avatar Oct 17 '24 09:10 Cigareoc

IMG_0195 IMG_0194

Cigareoc avatar Oct 17 '24 09:10 Cigareoc

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

niceboygithub avatar Oct 17 '24 15:10 niceboygithub

Password for root changed by root

Cigareoc avatar Oct 17 '24 16:10 Cigareoc

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?

Cigareoc avatar Oct 18 '24 12:10 Cigareoc

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

wohdek21 avatar Oct 23 '24 17:10 wohdek21

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

maxim-barwich avatar Oct 25 '24 08:10 maxim-barwich

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 #

Cigareoc avatar Oct 25 '24 09:10 Cigareoc

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.

maxim-barwich avatar Oct 25 '24 11:10 maxim-barwich

You use wrong curl

niceboygithub avatar Oct 25 '24 14:10 niceboygithub

You use wrong curl

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

maxim-barwich avatar Oct 25 '24 18:10 maxim-barwich