Closed martyanov1990 closed 2 years ago
connect to xiaomi app for solderless root and downgrade or use via homekit controller.
connect to xiaomi app for solderless root and downgrade or use via homekit controller.
In this case the aqara n100 zigbee does not work.
you can go back to aiot after downgrade. in 3.4.2+ they removed root entry point for aiot. btw: don't downgrade with m1s cn files. m1s eu use signed rootfs.
you can go back to aiot after downgrade. in 3.4.2+ they removed root entry point for aiot. btw: don't downgrade with m1s cn files. m1s eu use signed rootfs.
Can you tell me where to get the Files for eu?
you can extract rootfs/kernel with 7zip or strip 0x68 bytes header and extract with tar. make sure your hub is lumi.gateway.aeu01 and you know what you are doing if you don't want to solder or worse.
you can extract rootfs/kernel with 7zip or strip 0x68 bytes header and extract with tar. make sure your hub is lumi.gateway.aeu01 and you know what you are doing if you don't want to solder or worse.
Can you write how to flash it? I know how to solder, maybe through uart and Aqaragateway.exe will be easier?
3.4.2 is removing the post_init.sh
The fast way is using Aqaragateway.exe to downgrade. But the save way to using soft_hack to downgrade without open the case.
1. Switch to xiaomi home mode in 3.4.2
2. use [soft_hack](https://gist.github.com/zvldz/1bd6b21539f84339c218f9427e022709) to enable telnet
3. downgrade the fw to 3.4.0.
fw_manager.sh -u -n [firmeware_file]
4. add to HA by AqaraGateway
5. telnet to gateway and lock post_init.sh by using the following command
chattr +i /data/scripts/post_init.sh
6. switch to Aqara Home Mode.
7. lock the firmware update by using the following command
mkdir -p /data/ota_dir
touch /data/ota_dir/lumi_fw.tar
chattr +i /data/ota_dir/lumi_fw.tar
3.4.2 is removing the post_init.sh
The fast way is using Aqaragateway.exe to downgrade. But the save way to using soft_hack to downgrade without open the case.
1. Switch to xiaomi home mode in 3.4.2 2. use [soft_hack](https://gist.github.com/zvldz/1bd6b21539f84339c218f9427e022709) to enable telnet 3. downgrade the fw to 3.4.0. fw_manager.sh -u -n [firmeware_file] 4. add to HA by AqaraGateway 5. telnet to gateway and lock post_init.sh by using the following command chattr +i /data/scripts/post_init.sh 6. switch to Aqara Home Mode. 7. lock the firmware update by using the following command mkdir -p /data/ota_dir touch /data/ota_dir/lumi_fw.tar chattr +i /data/ota_dir/lumi_fw.tar
download firmware to /data/ with curl. make sure you have enough empty space and check md5sum before downgrade. should be b405c3d649695206e3cc8ee6e23be1ed.
fw_manager.sh -u -n
Such commands?
mkdir /data/bin cd /data/bin wget -O /data/bin/curl "http://master.dl.sourceforge.net/project/mgl03/bin/curl?viasf=1"; chmod +x /data/bin/curl /data/bin/curl -s -k -L -o /data/scripts/20220329120721_lumi.gateway.aeu01_AIOT_V3.4.0_0004.0616_20220328_3be1ed.bin https://cdn.aqara.com/cdn/opencloud-product/mainland/product-firmware/prd/lumi.gateway.aeu01/20220329120721_lumi.gateway.aeu01_AIOT_V3.4.0_0004.0616_20220328_3be1ed.bin; chmod a+x /data/bin/20220329120721_lumi.gateway.aeu01_AIOT_V3.4.0_0004.0616_20220328_3be1ed.bin fw_manager.sh -u -n 20220329120721_lumi.gateway.aeu01_AIOT_V3.4.0_0004.0616_20220328_3be1ed.bin
before you do something it is always recommended to do full backup and send with nc/ftp.
you can use http (not https) to download with wget directly. check with df before how much space you have. you may need ~26mb for firmware and tar extraction.
wget -O /data/downgrade.bin http://cdn.aqara.com/cdn/opencloud-product/mainland/product-firmware/prd/lumi.gateway.aeu01/20220329120721_lumi.gateway.aeu01_AIOT_V3.4.0_0004.0616_20220328_3be1ed.bin
fw_manager.sh -u -n /data/downgrade.bin
before you do something it is always recommended to do full backup and send with nc/ftp.
you can use http (not https) to download with wget directly. check with df before how much space you have. you may need ~26mb for firmware and tar extraction.
wget -O /data/downgrade.bin http://cdn.aqara.com/cdn/opencloud-product/mainland/product-firmware/prd/lumi.gateway.aeu01/20220329120721_lumi.gateway.aeu01_AIOT_V3.4.0_0004.0616_20220328_3be1ed.bin fw_manager.sh -u -n /data/downgrade.bin
All manipulations after a full reset (10 times pressed the button). How can I clear more memory?
mv /data/downgrade.bin /tmp/
fw_manager.sh -u -n /tmp/downgrade.bin
mv /data/downgrade.bin /tmp/ fw_manager.sh -u -n /tmp/downgrade.bin
Still doesn't want to.
maybe it is better to unpack/flash only rootfs not whole firmware (less space needed). wait for @niceboygithub he will guide you.
download firmware bin to /tmp directly.
/data/bin/curl -s -k -L -o /tmp/downgrade.bin https://cdn.aqara.com/cdn/opencloud-product/mainland/product-firmware/prd/lumi.gateway.aeu01/20220329120721_lumi.gateway.aeu01_AIOT_V3.4.0_0004.0616_20220328_3be1ed.bin;
fw_manager.sh -u -n /tmp/downgrade.bin
It still complains about the checksum.
hub is in miot mode so fw expects miot ota and runs fw_miot_unpack, not fw_unpack. maybe he should use custom fw_manager.sh patched for this.
The fw of M1S eu is signed. The update command is “fw_manager.sh -u -s downgrade.bin”
sorry for forgot that.
The fw of M1S eu is signed. The update command is “fw_manager.sh -u -s downgrade.bin”
sorry for forgot that.
Now it swears at the signature.
Can you try this command?
setprop persist.sys.cloud aiot
fw_manager.sh -u -n /tmp/downgrade.bin
It worked. But I can't lock the files. On chattr +i /data/scripts/post_init.sh -sh: chattr: not found.
Great! Everything works. Thank you all very much. I will now write instructions for future generations and close the issues.
Hello. Can you tell me, support for the Eu version is planned? Before version 3.4.2_0008, everything worked. Accidentally updated and it does not work.