AqaraM1SM2fw
AqaraM1SM2fw copied to clipboard
Please upload bootloader for the M2 EU version
Hi! Could you please also upload the bootloader for the M2 EU version? I flashed my device with https://github.com/niceboygithub/AqaraM1SM2fw/blob/main/raw/bootloader_1.0.0_0001/bootload_1.0.0_0001.bin, and it stopped booting at all?
Log from PuTTY: uart ok strap:0x412b8ae2 enable spi-nand ROM ver:v1.21, sig:866c151, time:2016.11.04-11:26+0800, CPU(400 MHz), DDR2(533 M Hz)
Found recognized ID, rdid=0x00efaa21 init IP fail(0xffffffff) init ddr ok img sig err ECC_DECODE_FAIL,ecc_start_addr = 0xbfe006e8 img sig err ECC_DECODE_FAIL,ecc_start_addr = 0xbfe006e8 img sig err ECC_DECODE_FAIL,ecc_start_addr = 0xbfe006e8 img sig err load img fail(0xffffffff) s-boot sec sig err fail
https://ufile.io/vidnpnot
Hi! It is booting now, thanks a lot!!! Could you please also upload boot_info by any chance?
Now I am getting the following log via PuTTY: uart ok strap:0x412b8ae2 enable spi-nand ROM ver:v1.21, sig:866c151, time:2016.11.04-11:26+0800, CPU(400 MHz), DDR2(533 M Hz)
Found recognized ID, rdid=0x00efaa21 init IP fail(0xffffffff) init ddr ok img sig ok chksum ok load img ok s-boot sec sig ok decrypt img jump 0xa0000000
SPI Nand ID=00efaa21 SPI Nand die chipsize=0x08000000 byte SPI Nand dienum=1, SPI Nand blocksize=0x00020000 byte, SPI Nand pagesize=0x00000800 byte, SPI Nand oobsize=0x00000040 byte, [rtkn_scan_bbt, line 1812], RBA=51, this->RBA_PERCENT = 5,block_v2r_num=1024 [rtkn_scan_bbt, line 1822] block_v2r_num 00000400 [rtk_scan_v2r_bbt]:678,RBA=00000033,2=00000400, [rtk_scan_v2r_bbt]:684,block_v2r_num=000003cd INFO: Stored BBT in Die 0: block=8 , block_status_p1=0x000000bb load bbt v2r table:0 page:512 [rtk_scan_v2r_bbt] have created v2r bbt table:0 on block 8, just loads it !! check v2r bbt table:0 OK [rtk_nand_scan_bbt, line 393] mem_page_num=1 bbt_page 704 INFO: Stored BBT in Die 0: block=11 , block_status_p1=0x000000bb load bbt table:0 page:704 [rtk_nand_scan_bbt] have created bbt table:0 on block 11, just loads it !! check bbt table:0 OK [dump_BBT] Nand BBT Content Congratulation!! No BBs in this Nand. Realtek Crypto Engine v0.1 =>CPU Wake-up interrupt happen! GISR=09000084
---Realtek RTL8197F boot code at 2020.07.14-20:40+0800 v3.4T-pre2.2 (993MHz) Info: Load boot_info success! == RTL8197 Aqara Gateway bootloader == boot_info: ver:0 kernel: newest:1, curr:1 rootfs: newest:0, curr:1 kernel[0]: sum:0x81ab, size:2233348, fail:3 [1]: sum:0x80bc, size:2233412, fail:3 rootfs[0]: sum:0x64e3, size:9601028, fail:3 [1]: sum:0xfbb5, size:9445444, fail:3 root_sum_check: off watchdog_time: 0 boot_version: 1.0.0_0001 boot_magic: 0000917c priv mode Info: kernel 1 is invalid Info: kernel 0 is invalid Warn: all kernels are invalid !
---Ethernet init Okay! <RealTek>
I tried to flash both rootfs_1 and linuxfs_1 from https://github.com/niceboygithub/AqaraM1SM2fw/tree/main/original/M2_EU/3.3.0_0021_0526 with the flag "Signed firmware" via aqaragateway.exe, but seems like there is an issue with incorrect signature.
boot_info depends on the kernel and rootfs. If you use aqaragateway.exe to flash firmware, it will calculate the checksum of kernel and rootfs then write to boot_info and reset the number of booting failure.
Thanks a lot for your answer!
Hi! Could you please upload a newer version of firmware for M2 EU?
Unfortunately, I am facing continuous reboots after flashing 3.3. Log is the following: uart ok strap:0x412b8ae2 enable spi-nand ROM ver:v1.21, sig:866c151, time:2016.11.04-11:26+0800, CPU(400 MHz), DDR2(533 MHz)
Found recognized ID, rdid=0x00efaa21 init IP fail(0xffffffff) init ddr ok img sig ok chksum ok load img ok s-boot sec sig ok decrypt img jump 0xa0000000
SPI Nand ID=00efaa21 SPI Nand die chipsize=0x08000000 byte SPI Nand dienum=1, SPI Nand blocksize=0x00020000 byte, SPI Nand pagesize=0x00000800 byte, SPI Nand oobsize=0x00000040 byte, [rtkn_scan_bbt, line 1812], RBA=51, this->RBA_PERCENT = 5,block_v2r_num=1024 [rtkn_scan_bbt, line 1822] block_v2r_num 00000400 [rtk_scan_v2r_bbt]:678,RBA=00000033,2=00000400, [rtk_scan_v2r_bbt]:684,block_v2r_num=000003cd INFO: Stored BBT in Die 0: block=8 , block_status_p1=0x000000bb load bbt v2r table:0 page:512 [rtk_scan_v2r_bbt] have created v2r bbt table:0 on block 8, just loads it !! check v2r bbt table:0 OK [rtk_nand_scan_bbt, line 393] mem_page_num=1 bbt_page 704 INFO: Stored BBT in Die 0: block=11 , block_status_p1=0x000000bb load bbt table:0 page:704 [rtk_nand_scan_bbt] have created bbt table:0 on block 11, just loads it !! check bbt table:0 OK [dump_BBT] Nand BBT Content Congratulation!! No BBs in this Nand. Realtek Crypto Engine v0.1 =>CPU Wake-up interrupt happen! GISR=09000084
---Realtek RTL8197F boot code at 2020.07.14-20:40+0800 v3.4T-pre2.2 (993MHz)
Info: Load boot_info success!
== RTL8197 Aqara Gateway bootloader ==
boot_info: ver:0
kernel: newest:0, curr:0
rootfs: newest:0, curr:1
kernel[0]: sum:0x80bc, size:2233412, fail:0
[1]: sum:0x80bc, size:2233412, fail:2
rootfs[0]: sum:0xfba6, size:9445444, fail:3
[1]: sum:0xfba6, size:9445444, fail:0
root_sum_check: off
watchdog_time: 0
boot_version: 1.0.0_0001
boot_magic: 0000917c
priv mode
Info: loading kernel 0 ... size 2233412
Info: checking kernel 0 ...
Success!
Info: rootfs 0 is invalid
Info: loading rootfs 1 ... Done
Info: checking rootfs 1 ... Info: checking rootfs 1 ...
rootfs check Success
Info: select rootfs 1
cmdline:root=/dev/mtdblock7 console=ttyS0,38400
Info: booting...
Jump to image start=0x80a00000...
decompressing kernel:
Uncompressing Linux... done, booting the kernel.
done decompressing kernel.
start address: 0x804e4f10
[ 0.000000] Linux version 3.10.90 (liaozhaobao@compilex64-ipg) (gcc version 4.9.4 20151028 (prerelease) (Realtek MSDK-4.9.4p1 Build 2648) ) #15 Wed Sep 1 21:01:47 CST 2021
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019385 (MIPS 24Kc)
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x03ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x03ffffff]
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping off. Total pages: 4088
[ 0.000000] Kernel command line: root=/dev/mtdblock7 console=ttyS0,38400
[ 0.000000] PID hash table entries: 256 (order: -4, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 1, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 0, 16384 bytes)
[ 0.000000] Writing ErrCtl register=00000008
[ 0.000000] Readback ErrCtl register=00000008
[ 0.000000] Memory: 57488k/65536k available (5043k kernel code, 8048k reserved, 1243k data, 240k init, 0k highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:192
[ 0.000000] Realtek GPIO IRQ init
[ 0.000000] Calibrating delay loop... 660.68 BogoMIPS (lpj=3303424)
[ 0.070000] pid_max: default: 32768 minimum: 301
[ 0.080000] Mount-cache hash table entries: 2048
[ 0.090000] NET: Registered protocol family 16
[ 0.100000] <<<<<Register PCI Controller>>>>>
[ 0.120000] Do MDIO_RESET
[ 0.150000] 40MHz
[ 0.510000] PCIE -> Cannot LinkUP
[ 0.520000] INFO: initializing USB devices ...
[ 0.570000] enable port 0 two port enable
[ 0.730000] patch new usb phy para for 40M OSC
[ 1.270000] Realtek GPIO controller driver init
[ 1.280000] INFO: initializing i2c devices ...
[ 1.290000] INFO: registering sheipa spi device
[ 1.310000] bio: create slab
hostname: Aqara-Hub-M2-2D2D type: lumi.gateway.iragl7, model: AH_M2_BLE Jan 1 00:00:09 mDNSResponder: mDNSResponder (Engineering Build) (May 12 2021 15:43:36) starting Jan 1 00:00:09 mDNSResponder: Unable to parse DNS server list. Unicast DNS-SD unavailable Jan 1 00:00:09 mDNSResponder: mDNSPlatformSourceAddrForDest: connect 1.1.1.1 failed errno 128 (Network is unreachable) Jan 1 00:00:09 mDNSResponder: WARNING: mdnsd continuing as root because user "nobody" do[ 9.570000] store_tty0_enable buf=disable [ 9.570000] , count=8 es not exist [ 14.370000] genirq: Flags mismatch irq 79. 00000083 (gpiolib) vs. 00000082 (wps btn) [ 16.130000] WlanSupportAbility = 0x3 [ 16.140000] [ODM_software_init] [ 16.140000] [97F] Bonding Type 97FS, PKG1 [ 16.140000] [97F] RFE type 0 PHY paratemters: DEFAULT [ 16.140000] clock 40MHz [ 16.140000] load efuse ok [ 16.140000] rom_progress: 0x200006f [ 16.140000] rom_progress: 0x400006f [ 16.210000] [GetHwReg88XX][PHY_REG_PG_8197Fmp_Type0] size [ 16.230000] [GetHwReg88XX][PHY_REG_PG_8197Fmp_Type0] [ 16.450000] [GetHwReg88XX][rtl8197Ffw] [ 16.460000] [GetHwReg88XX][rtl8197Ffw size] [ 16.900000] [97F] Default BB Swing=30 uart ok strap:0x412b8ae2 enable spi-nand ROM ver:v1.21, sig:866c151, time:2016.11.04-11:26+0800, CPU(400 MHz), DDR2(533 MHz)
Found recognized ID, rdid=0x00efaa21 init IP fail(0xffffffff) init ddr ok img sig ok chksum ok load img ok s-boot sec sig ok decrypt img jump 0xa0000000
I uploaded, but I am not sure that what it can help for you.
Thanks a lot! I will try.