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

Excuse me? How to update the modified firmware? #5

Closed
xztxy opened this issue Feb 24, 2021 · 3 comments
Closed

Excuse me? How to update the modified firmware? #5

xztxy opened this issue Feb 24, 2021 · 3 comments
Labels
question Further information is requested

Comments

@xztxy
Copy link

xztxy commented Feb 24, 2021

I downloaded your firmware, but I don't know how to operate it. Can you give me a detailed procedure?

@niceboygithub
Copy link
Owner

which gateway do you use?
If M1S, you can enable telnetd. Then login by telnet, use fw_date to flash modified firmware.
If M2, you need to wire out the UART. Then use aqaraway.exe to flash it.

@niceboygithub niceboygithub added the question Further information is requested label Mar 3, 2021
@sergeiKokorin
Copy link

sergeiKokorin commented Jun 4, 2021

which gateway do you use?
If M1S, you can enable telnetd. Then login by telnet, use fw_date to flash modified firmware.
If M2, you need to wire out the UART. Then use aqaraway.exe to flash it.

I also cannot flash the M1S. I tried to connect via UART and nothing came of it through aqaraway.exe. And how to enable telnetd and how to run fw_date I cannot understand. Maybe there are detailed instructions? my hub has been updated to firmware 3.2.6_0014.0517 and now it cannot update via the standard AQARA 3.2.6_0014.0524 application. another question is it possible to change the region from EU to CN

@niceboygithub
Copy link
Owner

niceboygithub commented Jun 5, 2021

I also cannot flash the M1S. I tried to connect via UART and nothing came of it through aqaraway.exe. And how to enable telnetd and how to run fw_date I cannot understand. Maybe there are detailed instructions?

I remember that you enable telnet of gateway first, then use fw_update to flash custom firmware
To enable telnet, you can use the way 2 or way 3 in the website
Or you can use this integration. Just put M1S in Mija home and find out the token of gateway.

If you switch Aqara home, you need to flash custom firmware.
You need to download Putty.
Open putty, choose Telnet as connection type, then enter the ip of M1S.
Next step is to login with the username 'admin'.

If you get '#' prompt, enter the following command.

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/linux.bin https://github.com/niceboygithub/AqaraM1SM2fw/blob/main/original/M1S/3.2.4_0014.0520_mi_fw_ver_3.1.3_0011/linux_3.2.4_0014.0520_mi_fw_ver_3.1.3_0011.bin
fw_update /tmp/linux.bin
/tmp/curl -s -k -L -o /tmp/rootfs.bin https://github.com/niceboygithub/AqaraM1SM2fw/blob/main/modified/M1S/3.2.4_0014.0520_mi_fw_ver_3.1.3_0011/rootfs_3.2.4_0014.0520_mi_fw_ver_3.1.3_0011_modification.bin
fw_update /tmp/rootfs.bin

Then enter 'reboot' to reset gateway. After reset, you can switch M1S to Aqara home mode.

my hub has been updated to firmware 3.2.6_0014.0517 and now it cannot update via the standard AQARA 3.2.6_0014.0524 application.

M1S firmware 3.2.6 was removed by Xiaomi, so I did not get it before removed.
Use above the instructions, you can downgrade the firmware.

another question is it possible to change the region from EU to CN

What you meaning? Do you mean the region of Mija Home app?

@xztxy xztxy closed this as completed Jun 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants