niceboygithub / AqaraM1SM2fw

Aqara Gateway M1S (ZHWG15LM) , P3(KTBL12LM), H1(QBCZWG11LM), M2 (ZHWG12LM) Firmwares
165 stars 28 forks source link

Upgrading the firmware via fw_update is invalid #9

Closed miniknife88 closed 2 years ago

miniknife88 commented 3 years ago

M1s: 3.2.4_0014.0520 M2: 3.2.4_0010.0520

The firmware version has not changed after the upgrade is complete

niceboygithub commented 3 years ago

which commands you use?

miniknife88 commented 3 years ago

Upload firmware to gateway tmp directory,use: fw_update ./linux_3.2.7_0018_0524.bin fw_update ./rootfs_3.2.7_0018_0524_modification.bin reboot

Display firmware version: 3.2.7_0018.0515 IMG_2928

niceboygithub commented 3 years ago

I update the readme for flash M2 firmware for your reference.

https://github.com/niceboygithub/AqaraGateway#flash-m2-custom-firmware-method

miniknife88 commented 3 years ago

Follow the readme to flash the firmware, can't upgrade to 3.2.7_0018.0524 # fw_update ./linux.bin Info: Open ./linux.bin, size: 2233364 Info: Firmware type: Linux1 Info: data_sum: 8040 Info: Upgrade linux bank 0 Info: Write to /dev/mtdblock4, size:2233348 ... Process: 100% Done Info: Verify ... Process: 100% Success

# fw_update ./rootfs.bin Info: Open ./rootfs.bin, size: 9435156 Info: Firmware type: Root1 Info: data_sum: 0a89 Info: Upgrade rootfs bank 0 Info: Write to /dev/mtdblock5, size:9435140 ... Process: 100% Done Info: Verify ... Process: 100% Success

niceboygithub commented 3 years ago

fw_update said the flash is success. What is your mean that can’t upgrade?

miniknife88 commented 3 years ago

The firmware version in aqarahome has not changed

niceboygithub commented 3 years ago

Did you upgrade Aqara Home to latest? Maybe it is bug of Aqara cloud service.

miniknife88 commented 3 years ago

aqarahome version is the latest:2.3.11

z-x-f commented 3 years ago

Me too. aqara home app version: V2.3.12 M2 firmware 3.2.8_0006.0508 to 3.2.8_0006.0526.
fw_update said the flash is success. After restart ,The firmware version in aqarahome has not changed.

niceboygithub commented 3 years ago

You need to upgrade zigbee firmware.

update bt firmware.

run_ble_dfu.sh /dev/ttyS1 full.gbl 125 1

update zigbee firmware

zigbee_msnger zgb_ota ControlBridge.bin
miniknife88 commented 3 years ago

update zigbee firmware error:

`zigbee ota(ver: v1.0.0) firing up, built at Mar 17 2021 10:29:17; Author: liang.
wang@aqara.com connect localhost:1883 {"cmd":"write","id":2408,"did":"lumi.0","source":"","params":[{"res_name":"8.0.2
089","value":{"file_name":"./ControlBridge.bin","version":"V3.78"}}]}

on_connect result=0 ota zigbee coordinator failed, errno =8 `

niceboygithub commented 3 years ago

update zigbee firmware error:

`zigbee ota(ver: v1.0.0) firing up, built at Mar 17 2021 10:29:17; Author: liang. wang@aqara.com connect localhost:1883 {"cmd":"write","id":2408,"did":"lumi.0","source":"","params":[{"res_name":"8.0.2 089","value":{"file_name":"./ControlBridge.bin","version":"V3.78"}}]}

on_connect result=0 ota zigbee coordinator failed, errno =8 `

Use absolute path

miniknife88 commented 3 years ago

update zigbee firmware success,but firmware version in aqarahome has not changed.

niceboygithub commented 3 years ago

update zigbee firmware success,but firmware version in aqarahome has not changed.

What the version in gateway and in aqara home?

miniknife88 commented 3 years ago

All use the latest version of firmware,after upgrading: M2: 3.2.8_0006.0515 M1S: 3.2.8_0009.0519