Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M1S AQARA lumi.gateway.acn008 support #304

Open
Cigareoc opened this issue Sep 27, 2024 · 21 comments
Open

M1S AQARA lumi.gateway.acn008 support #304

Cigareoc opened this issue Sep 27, 2024 · 21 comments

Comments

@Cigareoc
Copy link

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
Copy link
Owner

Use item Hub E1

@Cigareoc
Copy link
Author

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

@niceboygithub
Copy link
Owner

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

@Cigareoc
Copy link
Author

@niceboygithub
Copy link
Owner

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
Copy link
Author

For m1S aqara gateway is different board

@Cigareoc
Copy link
Author

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
Copy link
Owner

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

@Cigareoc
Copy link
Author

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

@Cigareoc
Copy link
Author

Cigareoc commented Oct 17, 2024

Uploading IMG_0192.jpeg…

@Cigareoc
Copy link
Author

IMG_0195
IMG_0194

@niceboygithub
Copy link
Owner

niceboygithub commented Oct 17, 2024

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
Copy link
Author

Password for root changed by root

@Cigareoc
Copy link
Author

@Cigareoc
Copy link
Author

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
Copy link

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

@maxim-barwich
Copy link

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
Copy link
Author

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
Copy link

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
Copy link
Owner

You use wrong curl

@maxim-barwich
Copy link

You use wrong curl

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants