Open dmitriy-sqrt opened 2 years ago
Its looks very nice and 2 EFR32MG21 modules for BT and one for Zigbee so cant loading one RCP firmware on the Zigbee module and you can running BT + Zigbee and Open Thread at the same time over Ethernet :-))
Hope you can getting the root password and looking little more in the Linux tuya is using and how the hardware is configured.
The SOC have 3 comports ttys0 = consolle and ttys1 and 2 plus one ch341 that is likely used for Zigbee module or for one extra USB console.
Sadly for now i cant unpack\unsquashfs dumped partitions. I've tried using unsquashfs version 4.5.1
but get an error for:
Reading a different endian SQUASHFS filesystem on rootfs_v2.bin
FATAL ERROR: Can't find a valid SQUASHFS superblock on rootfs_v2.bin
So its either me dumping in a wrong way, or different unpacking way should be used. I'll attach the dump, in case anyone more experienced wishes to take a look rootfs_v2.bin.zip
the file had endianness issues, I've fixed it, it can now be extracted. @dmitriy-sqrt
password for the 7z file within the zip:
dmitriy-sqrt
Hi, just bought the hub for experiments and was passing by this repo to see if instructions here will still apply for the hub i have.
So i have this version of a gateway:
Examples of aliexpress link: https://www.aliexpress.com/item/4000452898540.html https://www.aliexpress.com/item/1005003190609659.html
This is how the mobo looks like: (its pretty different, you can note it uses RTL8197FS)
And I've started my experiments.
ESC
on the early load steps0000000000000
. And thats pretty expected, the partitions\addresses\offsets might be differentpython dump_flash.py --serial-port /dev/ttyUSB0 --output-file rootfs.bin --start-addr 0x270000 --end-addr 0x640000
sudo unsquashfs rootfs.bin
. Default squashfs version for linux (1:4.4-1) i was using and latest one build from source (4.4 with all compression extensions i could enable) gets me aAlso, the squashfs-tools-ng gets me a
rootfs.bin: reading super block: wrong magic value in super bloc
For now i'm thinking that dumping could go wrong and i have a corrupted img.
Thanks again for the instructions & scripts