Code Monkey home page Code Monkey logo

openlumi.github.io's People

Contributors

devbis avatar dpolyakov avatar g1k avatar mattdodsonenglish avatar meta11st87 avatar pristavkin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openlumi.github.io's Issues

The ssh server won't start.

Hello! Following the instructions, I got root rights, but the ssh server could not start. After adding the line "/etc/init.d/dropbear start &" to the file " /etc/rc.local" and rebooting, nothing changed. Running the command "/etc/init.d/dropbear start" does not work either.

Also, tried with and without this command: "sed -i "s/#mxc0/mxc0/" /etc/inittab"

Earlier i accidentally managed to start ssh server 1 time somehow, using chaotic commands :D

Model: Aqura Hub: ZHWG11LM V2 (looks exactly like in the manual).

Please, if you can, help.
P.S. Sorry for the English, using translator.

change to router mode

hello i would like to change the mode of my xiaomi gateway from coordinator to router mode

I have seen in openwrt setup ----> zigbee option a button that says convert to router mode but does not complete the function

Erasing PDM ...
00000000 01 80 02 10 02 10 02 19 9b 02 10 02 10 02 10 12 | ................ |
set device type = router
Starting network scan

flash backup image from uboot

Hi,
is there any easy way to restore to back image? (lumi_stock.tar.gz)
using mfgtools is a little overhead because of soldering the usb pins.
it seems like uboot doesn't have an ethernet port, so using tftpboot / nfs to load an image and burn it is not an option right?
currently, i have openwrt, can't i use the web interface to flash the backup firmware?

Device bricked "itself". No option to take action via uart.

Hi there,

My aqara hub turned into openlumi mqtt router stopped working itself - came back from work and it was dead.
I can connect via uart and run basic commands but I have no idea how to bring it back to life... after booting can't enter any command, no permissions to run recovery_mode (failsafe). Below dump from console, could you help somehow? Cheers!

`U-Boot 2016.03 (Nov 07 2017 - 20:11:55 +0800)

CPU: Freescale i.MX6ULL rev1.1 528 MHz (running at 396 MHz)
CPU: Commercial temperature grade (0C to 95C) at 30C
Reset cause: POR
Board: Lumi international Gateway
I2C: ready
DRAM: 256 MiB
NAND: 256 MiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment

Display: TFT43AB (480x272)
Video: LCDIF@0x21c8000 is fused, disable it
In: serial
Out: serial
Err: serial
Net: Ethernet@0x20b4000 is fused, disable it
Board Net Initialization Failed
No ethernet found.

Enter main_loop() Now##

Normal Boot
Hit any key to stop autoboot: 0
=> boot

NAND read: device 0 offset 0x300000, size 0x700000
7340032 bytes read: OK

NAND read: device 0 offset 0xa00000, size 0x100000
1048576 bytes read: OK
Kernel image @ 0x80800000 [ 0x000000 - 0x2abd58 ]

Flattened Device Tree blob at 83000000

Booting using the fdt blob at 0x83000000
Using Device Tree in place at 83000000, end 8300973c
Modify /soc/aips-bus@02000000/tsc@02040000:status disabled
Modify /soc/aips-bus@02100000/lcdif@021c8000:status disabled
Modify /soc/aips-bus@02000000/ethernet@020b4000:status disabled
Modify /soc/aips-bus@02100000/usb@02184200:status disabled
Modify /soc/aips-bus@02000000/spba-bus@02000000/sai@0202c000:status disabled
Modify /soc/aips-bus@02000000/spba-bus@02000000/sai@02030000:status disabled
Modify /soc/aips-bus@02100000/serial@021f4000:status disabled
Modify /soc/aips-bus@02100000/serial@021fc000:status disabled
Modify /soc/aips-bus@02000000/spba-bus@02000000/serial@02018000:status disabled
Modify /soc/aips-bus@02000000/spba-bus@02000000/serial@02024000:status disabled
Modify /soc/aips-bus@02000000/pwm@020f0000:status disabled
Modify /soc/aips-bus@02000000/pwm@020f4000:status disabled
Modify /soc/aips-bus@02000000/pwm@020f8000:status disabled
Modify /soc/aips-bus@02000000/pwm@020fc000:status disabled
Modify /soc/aips-bus@02000000/spba-bus@02000000/ecspi@02010000:status disabled
Modify /soc/aips-bus@02000000/spba-bus@02000000/ecspi@02014000:status disabled
Modify /soc/aips-bus@02100000/i2c@021a8000:status disabled
Modify /soc/aips-bus@02100000/i2c@021f8000:status disabled
Modify /soc/aips-bus@02000000/gpt@020e8000:status disabled
Modify /soc/aips-bus@02000000/epit@020d4000:status disabled
ft_system_setup for mx6
No PMIC found!

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.215 (bis@betelgeuze) (gcc version 7.5.0 (OpenW rt GCC 7.5.0 r11232+24-2a3dbded93)) #0 SMP Tue Jan 19 13:10:02 2021
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instructio n cache
[ 0.000000] OF: fdt: Machine model: Xiaomi Gateway Lumi
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] random: get_random_bytes called from start_kernel+0x88/0x3d8 with crng_init=0
[ 0.000000] percpu: Embedded 14 pages/cpu s26764 r8192 d22388 u57344
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=ttymxc0,115200 ubi.mtd=3 ubi.block=0 ,rootfs root=/dev/ubiblock0_0 rootfstype=squashfs cma=64M mtdparts=gpmi-nand:3m( boot),7m(kernel),1m(dtb),-(ubi)
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 250048K/262144K available (6252K kernel code, 219K rwdata , 1576K rodata, 1024K init, 222K bss, 12096K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0x90800000 - 0xff800000 (1776 MB)
[ 0.000000] lowmem : 0x80000000 - 0x90000000 ( 256 MB)
[ 0.000000] modules : 0x7f000000 - 0x80000000 ( 16 MB)
[ 0.000000] .text : 0x80008000 - 0x8071b2f8 (7245 kB)
[ 0.000000] .init : 0x80900000 - 0x80a00000 (1024 kB)
[ 0.000000] .data : 0x80a00000 - 0x80a36d80 ( 220 kB)
[ 0.000000] .bss : 0x80a36d80 - 0x80a6e6c0 ( 223 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] Switching to timer-based delay loop, resolution 41ns
[ 0.000017] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478 484971ns
[ 0.000056] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.002155] Calibrating delay loop (skipped), value calculated using timer fr equency.. 48.00 BogoMIPS (lpj=240000)
[ 0.002200] pid_max: default: 32768 minimum: 301
[ 0.002478] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.002513] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.003571] CPU: Testing write buffer coherency: ok
[ 0.004149] /cpus/cpu@0 missing clock-frequency property
[ 0.004196] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.004988] Setting up static identity map for 0x80100000 - 0x80100060
[ 0.005297] Hierarchical SRCU implementation.
[ 0.006474] smp: Bringing up secondary CPUs ...
[ 0.006508] smp: Brought up 1 node, 1 CPU
[ 0.006532] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.006548] CPU: All CPU(s) started in SVC mode.
[ 0.019145] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.019634] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma x_idle_ns: 19112604462750000 ns
[ 0.019688] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.019858] pinctrl core: initialized pinctrl subsystem
[ 0.023997] NET: Registered protocol family 16
[ 0.024739] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.040284] vdd3p0: supplied by regulator-dummy
[ 0.041696] cpu: supplied by regulator-dummy
[ 0.042887] vddsoc: supplied by regulator-dummy
[ 0.060248] imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[ 0.134428] mxs-dma 1804000.dma-apbh: initialized
[ 0.136972] SCSI subsystem initialized
[ 0.147907] usbcore: registered new interface driver usbfs
[ 0.148055] usbcore: registered new interface driver hub
[ 0.148206] usbcore: registered new device driver usb
[ 0.150020] i2c i2c-0: IMX I2C adapter registered
[ 0.150071] i2c i2c-0: can't use DMA, using PIO instead.
[ 0.151123] i2c i2c-1: IMX I2C adapter registered
[ 0.151171] i2c i2c-1: can't use DMA, using PIO instead.
[ 0.151689] pps_core: LinuxPPS API ver. 1 registered
[ 0.151716] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giome tti [email protected]
[ 0.151783] PTP clock support registered
[ 0.152516] Advanced Linux Sound Architecture Driver Initialized.
[ 0.154096] Bluetooth: Core ver 2.22
[ 0.154233] NET: Registered protocol family 31
[ 0.154255] Bluetooth: HCI device and connection manager initialized
[ 0.154289] Bluetooth: HCI socket layer initialized
[ 0.154314] Bluetooth: L2CAP socket layer initialized
[ 0.154385] Bluetooth: SCO socket layer initialized
[ 0.162240] clocksource: Switched to clocksource mxc_timer1
[ 0.164690] NET: Registered protocol family 2
[ 0.165820] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.165900] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.165990] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.166177] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.166239] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.166602] NET: Registered protocol family 1
[ 0.177949] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[ 0.197638] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.214975] io scheduler noop registered
[ 0.215013] io scheduler deadline registered (default)
[ 0.229702] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.232257] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 19, base_baud = 5000000) is a IMX
[ 0.241651] imx-sdma 20ec000.sdma: loaded firmware 3.5
[ 0.795083] console [ttymxc0] enabled
[ 0.800786] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 53, base_baud = 5000000) is a IMX
[ 0.811070] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 54, base_baud = 5000000) is a IMX
[ 0.833928] loop: module loaded
[ 0.850399] random: fast init done
[ 0.857145] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xda
[ 0.863654] nand: Macronix MX30LF2G18AC
[ 0.867519] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB siz e: 64
[ 0.876576] gpmi-nand 1806000.gpmi-nand: mode:5 ,failed in set feature.
[ 0.884143] Bad block table found at page 131008, version 0x01
[ 0.890632] Bad block table found at page 130944, version 0x01
[ 0.897339] nand_read_bbt: bad block at 0x000001d20000
[ 0.902654] nand_read_bbt: bad block at 0x00000fec0000
[ 0.907894] 4 cmdlinepart partitions found on MTD device gpmi-nand
[ 0.914142] Creating 4 MTD partitions on "gpmi-nand":
[ 0.919226] 0x000000000000-0x000000300000 : "boot"
[ 0.925800] 0x000000300000-0x000000a00000 : "kernel"
[ 0.932580] 0x000000a00000-0x000000b00000 : "dtb"
[ 0.938812] 0x000000b00000-0x000010000000 : "ubi"
[ 0.950952] gpmi-nand 1806000.gpmi-nand: driver registered.
[ 0.959324] libphy: Fixed MDIO Bus: probed
[ 0.966623] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 0.972592] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 0.978701] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.988753] imx_usb 2184000.usb: 2184000.usb supply vbus not found, using dum my regulator
[ 1.014793] i2c /dev entries driver
[ 1.020568] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[ 1.026955] Bluetooth: HCI UART driver ver 2.3
[ 1.031426] Bluetooth: HCI UART protocol H4 registered
[ 1.036668] Bluetooth: HCI UART protocol BCSP registered
[ 1.042043] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 1.049503] sdhci: Secure Digital Host Controller Interface driver
[ 1.055800] sdhci: Copyright(c) Pierre Ossman
[ 1.060176] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.132057] mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADM A
[ 1.150712] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.160197] vf610-adc 2198000.adc: 2198000.adc supply vref not found, using d ummy regulator
[ 1.182399] NET: Registered protocol family 10
[ 1.194985] Segment Routing with IPv6
[ 1.198845] NET: Registered protocol family 17
[ 1.204927] 8021q: 802.1Q VLAN Support v1.8
[ 1.211358] Registering SWP/SWPB emulation handler
[ 1.224360] Key type encrypted registered
[ 1.245589] asoc-simple-card sound-tfa9882: tfa9882-hifi <-> 2028000.sai mapp ing ok
[ 1.259829] mmc0: new high speed SDIO card at address 0001
[ 1.270024] ubi0: attaching mtd3
[ 3.104415] random: crng init done
[ 3.535655] ubi0: scanning is finished
[ 3.559762] ubi0: attached mtd3 (name "ubi", size 245 MiB)
[ 3.565412] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 3.572346] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 3.579149] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 3.586158] ubi0: good PEBs: 1954, bad PEBs: 6, corrupted PEBs: 0
[ 3.592302] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 12 8
[ 3.599539] ubi0: max/mean erase counter: 179/25, WL threshold: 4096, image s equence number: 849571857
[ 3.608892] ubi0: available PEBs: 0, total reserved PEBs: 1954, PEBs reserved for bad PEB handling: 34
[ 3.619556] mtd: device 4 (rootfs) set to be root filesystem
[ 3.627585] block ubiblock0_0: created from ubi0:0(rootfs)
[ 3.634038] ubi0: background thread "ubi_bgt0d" started, PID 712
[ 3.641775] UBI error: block: can't add 'rootfs' volume, err=-17
[ 3.648993] input: gpio-keys as /devices/soc0/gpio-keys/input/input0
[ 3.655859] hctosys: unable to open rtc device (rtc0)
[ 3.662377] ALSA device list:
[ 3.665367] #0: tfa9882-audio
[ 3.676590] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[ 3.686293] Freeing unused kernel memory: 1024K
[ 4.220749] init: Console is alive
[ 4.224769] init: - watchdog -
[ 5.607713] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 5.647944] Button Hotplug driver version 0.4.1
[ 5.654818] Error: Driver 'gpio-keys' is already registered, aborting...
[ 5.669826] usbcore: registered new interface driver usb-storage
[ 5.679727] Error: Driver 'gpio-keys' is already registered, aborting...
[ 5.687622] kmodloader: 1 module could not be probed
[ 5.693123] kmodloader: - gpio-button-hotplug - 0
[ 5.708487] init: - preinit -
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 10.268063] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 797
[ 10.348520] UBIFS (ubi0:1): recovery needed
[ 10.533798] UBIFS (ubi0:1): recovery completed
[ 10.538411] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "root fs_data"
[ 10.546331] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O u nit sizes: 2048 bytes/2048 bytes
[ 10.556303] UBIFS (ubi0:1): FS size: 230969344 bytes (220 MiB, 1819 LEBs), jo urnal size 11554816 bytes (11 MiB, 91 LEBs)
[ 10.567221] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[ 10.573885] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID B480E 49D-B0FF-4AFF-8AB2-D7EA24210D5F, small LPT model
[ 10.601297] mount_root: switching to ubifs overlay
/etc/preinit: line 358: cat: Permission denied
[ 10.677452] urandom-seed: Seeding with /etc/urandom.seed
/etc/preinit: line 12: cat: Permission denied
/etc/preinit: line 20: uci: Permission denied
/etc/preinit: line 120: grep: Permission denied
`

wifi problem

Когда я ввожу команду /lumi/app/miio/wifi_start.sh
пишется следующее:

bash-4.3# /lumi/app/miio/wifi_start.sh 
ip
Keenetic-595 my-password
wlan0: ERROR while getting interface flags: No such device
killall: /proc lacks process entries (not mounted ?)
wlan0: ERROR while getting interface flags: No such device
Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan0 ; No such device.
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device
Could not read interface wlan0 flags: No such device
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Could not read interface wlan0 flags: No such device
wlan0: Failed to initialize driver interface
udhcpc: SIOCGIFINDEX: No such device
get ip addr :
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.

Что не так?

Gaining Root Access

i tried to gain root access as described and i get some "jibrisch" characters in the terminal when booting up.

I set:
port = /dev/ttyUSB0
flowcontrol none
baudrate 115200
parity none
databits 8
stopbits 1
escape C-a

what am i missing?

SOLVED: by taking a different USB UART

Python build without Bluetooth support

Hello everyone,
I tried to install passive BLE monitor for HASS, but it does not work since python build with no Bluetooth support.
Is it supposed to be so or python may be updated for bluetooth support?
Logs are below:
Mon Dec 13 08:12:37 2021 daemon.err hass[2782]: family=socket.AF_BLUETOOTH, type=socket.SOCK_RAW, proto=socket.BTPROTO_HCI
Mon Dec 13 08:12:37 2021 daemon.err hass[2782]: AttributeError: module 'socket' has no attribute 'AF_BLUETOOTH'

LED & Speaker WITHOUT Zesp32

Any way to use led and speaker without Zesp32? Im using zigbee2mqtt but I would like to use LED and Speaker...

ZiGate don't start on port 9440

After clean install system (mfgtools-19.07.5-20201217), and install domoticz (https://github.com/openlumi/xiaomi-gateway-openwrt/blob/master/domoticz.md) plugin don't start on port 9440.

root@OpenWrt:~ netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1497/uhttpd
tcp 0 0 192.168.8.102:53 0.0.0.0:* LISTEN 1312/dnsmasq
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 1312/dnsmasq
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1345/dropbear
tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN 1976/dropbear
tcp 0 0 :::6144 :::* LISTEN 1834/domoticz
tcp 0 0 :::6600 :::* LISTEN 1700/mpd
tcp 0 0 :::8080 :::* LISTEN 1834/domoticz
tcp 0 0 :::80 :::* LISTEN 1497/uhttpd
tcp 0 0 fe80::6690:c1ff:fe77:9a59:53 :::* LISTEN 1312/dnsmasq
tcp 0 0 ::1:53 :::* LISTEN 1312/dnsmasq
tcp 0 0 :::22 :::* LISTEN 1345/dropbear
udp 0 0 192.168.8.102:53 0.0.0.0:* 1312/dnsmasq
udp 0 0 127.0.0.1:53 0.0.0.0:* 1312/dnsmasq
udp 0 0 fe80::6690:c1ff:fe77:9a59:53 :::* 1312/dnsmasq
udp 0 0 ::1:53 :::* 1312/dnsmasq

2020-12-23 06:25:28.125 Active notification Subsystems: fcm, http (2/13)
2020-12-23 06:25:28.245 Starting shared server on: :::6144
2020-12-23 06:26:28.801 (zigate) DomoticzVersion: 2020.2
2020-12-23 06:31:43.951 (zigate) Debug Mode: 14, We do recommend to leave Verbors to None
2020-12-23 06:31:43.952 (zigate) 'HardwareID':'2'
2020-12-23 06:31:43.953 (zigate) 'HomeFolder':'/etc/domoticz/plugins/Domoticz-Zigate/'
2020-12-23 06:31:43.954 (zigate) 'StartupFolder':'/usr/share/domoticz/'
2020-12-23 06:31:43.955 (zigate) 'UserDataFolder':'/etc/domoticz/'
2020-12-23 06:31:43.956 (zigate) 'Database':'/etc/domoticz/domoticz.db'
2020-12-23 06:31:43.957 (zigate) 'Language':'en'
2020-12-23 06:31:43.958 (zigate) 'Version':'4.11'
2020-12-23 06:31:43.959 (zigate) 'Author':'zaraki673 pipiche38'
2020-12-23 06:31:43.959 (zigate) 'Name':'zigate'
2020-12-23 06:31:43.960 (zigate) 'Address':'0.0.0.0'
2020-12-23 06:31:43.961 (zigate) 'Port':'9999'
2020-12-23 06:31:43.962 (zigate) 'SerialPort':'/dev/ttymxc1'
2020-12-23 06:31:43.963 (zigate) 'Key':'Zigate'
2020-12-23 06:31:43.964 (zigate) 'Mode1':'DIN'
2020-12-23 06:31:43.965 (zigate) 'Mode3':'False'
2020-12-23 06:31:43.966 (zigate) 'Mode4':'9440'
2020-12-23 06:31:43.967 (zigate) 'Mode6':'14'
2020-12-23 06:31:43.968 (zigate) 'DomoticzVersion':'2020.2'
2020-12-23 06:31:43.969 (zigate) 'DomoticzHash':'0'
2020-12-23 06:31:43.970 (zigate) 'DomoticzBuildTime':'1970-01-01 00:00:00'
2020-12-23 06:31:43.970 (zigate) Device count: 0
2020-12-23 06:31:43.971 (zigate) DomoticzVersion: 2020.2

After intall OpenWRT 21 Xiaomi Hub DGNWG05LM not booting

Tried to install the latest version. Today the script install 21.02.5
Nothing succeeded. Everything seems to go right, after installation, the hub is rebooted and the boot ends with the line "reboot: System halted"
I took another script that install 19.07.10 - the same result. The boot log is different, but it doesn't load. One of the installations ended with a cyclic reboot.
I also tried using uuu and mfgtools - it doesn't boot into any!
As a result, I returned the stock through mfgtools - everything works fine. Both Serial and USB are already soldered...
The gateway has Mi firmware 3.4.6_132. Suggests 3.5.9_004. Haven't updated yet...

Serial log: Stoc Mi boot - Install OWRT21 - boot after install
stoc_OWRT_halt.txt

can't gain root/ssh > no more process left

I would like to make a backup before openwrt. On my EU Xiaomi gateway v2.

I have to connect uart to gateway : grd-grd/tx-tx/rx-rx. (when I tried it rx-tx/tx-rx it didn't show anything)

After changing the ROOT passwd, and i reboot, than this will be the end, and not "Input cmd:"
I can't even do anything, just restart manually. So I can't log in to go to the next step

====================================
========== start mi=================
====================================
.
umount: /mnt/.psplash: not mounted
INIT: no more processes left in this runlevel

Stuck after rebooting

I don't have much knowledge with bash, so I will write all my steps.
Tried to get root for my DGNWG05LM with uart.
Paused loading, inserted setenv bootargs "${bootargs} single rw init=/bin/bash" && boot, used passwd to set new password.
Restarted gateway and after loading got INIT: no more processes left in this runlevel.
Found a command that could help me: sed -i "s/#mxc0/mxc0/" /etc/inittab. Again, as my knowledge is bad, I started all over with setenv bootargs "${bootargs}... and passwd.
Entered inittab command and rebooted device. Loading finished with Enter runlevel
When entering any number I get

INIT: Entering runlevel: _entered_number_
INIT: no more processes left in this runlevel

Found how to check file sizes with bash and found out, that inittab size is 0. I don't know if this is important info.
Is it brick now?
Thanks

Gateway seems to crash after booting

Hello,
I have an issue when I boot with bash, the system seems to crash after few seconds.
I can launch 1 command if i go fast but after that no more life.
Can you please help me on this ?

U-Boot 2016.03 (Nov 07 2017 - 20:11:55 +0800)

CPU: Freescale i.MX6ULL rev1.1 528 MHz (running at 396 MHz)
CPU: Commercial temperature grade (0C to 95C) at 34C
Reset cause: POR
Board: Lumi international Gateway
I2C: ready
DRAM: 256 MiB
NAND: 256 MiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment

Display: TFT43AB (480x272)
Video: LCDIF@0x21c8000 is fused, disable it
In: serial
Out: serial
Err: serial
Net: Ethernet@0x20b4000 is fused, disable it
Board Net Initialization Failed
No ethernet found.

Enter main_loop() Now##

Normal Boot
Hit any key to stop autoboot: 0
=> setenv bootargs "${bootargs} single rw init=/bin/bash" && boot

NAND read: device 0 offset 0x300000, size 0x700000
7340032 bytes read: OK

NAND read: device 0 offset 0xa00000, size 0x100000
1048576 bytes read: OK
Kernel image @ 0x80800000 [ 0x000000 - 0x617290 ]

Flattened Device Tree blob at 83000000

Booting using the fdt blob at 0x83000000
Using Device Tree in place at 83000000, end 8300c0e1
Modify /soc/aips-bus@02000000/tsc@02040000:status disabled
Modify /soc/aips-bus@02000000/can@02090000:status disabled
Modify /soc/aips-bus@02000000/can@02094000:status disabled
Modify /soc/aips-bus@02100000/lcdif@021c8000:status disabled
Modify /soc/aips-bus@02100000/pxp@021cc000:status disabled
Modify /soc/aips-bus@02100000/csi@021c4000:status disabled
Modify /soc/aips-bus@02000000/ethernet@020b4000:status disabled
Modify /soc/aips-bus@02100000/usb@02184200:status disabled
Modify /soc/aips-bus@02000000/spba-bus@02000000/sai@0202c000:status disabled
Modify /soc/aips-bus@02000000/spba-bus@02000000/sai@02030000:status disabled
Modify /soc/aips-bus@02100000/serial@021f4000:status disabled
Modify /soc/aips-bus@02100000/serial@021fc000:status disabled
Modify /soc/aips-bus@02000000/spba-bus@02000000/serial@02018000:status disabled
Modify /soc/aips-bus@02000000/pwm@020f0000:status disabled
Modify /soc/aips-bus@02000000/pwm@020f4000:status disabled
Modify /soc/aips-bus@02000000/pwm@020f8000:status disabled
Modify /soc/aips-bus@02000000/pwm@020fc000:status disabled
Modify /soc/aips-bus@02000000/spba-bus@02000000/ecspi@02010000:status disabled
Modify /soc/aips-bus@02000000/spba-bus@02000000/ecspi@02014000:status disabled
Modify /soc/aips-bus@02100000/i2c@021a8000:status disabled
Modify /soc/aips-bus@02100000/i2c@021f8000:status disabled
Modify /soc/aips-bus@02000000/gpt@020e8000:status disabled
Modify /soc/aips-bus@02000000/epit@020d4000:status disabled
ft_system_setup for mx6
No PMIC found!

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.1.15+gb63f3f5 (chenlong@gitlab) (gcc version 5.3.0 (GCC) ) #37 SMP PREEMPT Tue Jun 19 15:28:38 CST 2018
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: Freescale i.MX6 ULL 14x14 EVK Board
[ 0.000000] Reserved memory: failed to allocate memory for node 'linux,cma'
[ 0.000000] cma: Reserved 96 MiB at 0x8a000000
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] PERCPU: Embedded 12 pages/cpu @89da3000 s16908 r8192 d24052 u49152
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=ttymxc0,115200 ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs cma=96M mtdparts=gpmi-nand:3m(boot),7m(kernel),1m(dtb),-(rootfs) single rw init=/bin/bash
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 148920K/262144K available (8035K kernel code, 423K rwdata, 2812K rodata, 540K init, 426K bss, 14920K reserved, 98304K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0x90800000 - 0xff000000 (1768 MB)
[ 0.000000] lowmem : 0x80000000 - 0x90000000 ( 256 MB)
[ 0.000000] pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
[ 0.000000] modules : 0x7f000000 - 0x7fe00000 ( 14 MB)
[ 0.000000] .text : 0x80008000 - 0x80aa01f8 (10849 kB)
[ 0.000000] .init : 0x80aa1000 - 0x80b28000 ( 540 kB)
[ 0.000000] .data : 0x80b28000 - 0x80b91fa0 ( 424 kB)
[ 0.000000] .bss : 0x80b94000 - 0x80bfeb5c ( 427 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Additional per-CPU info printed with stalls.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] mxc_clocksource_init 24000000
[ 0.000000] Switching to timer-based delay loop, resolution 41ns
[ 0.000015] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000057] clocksource mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.002632] Console: colour dummy device 80x30
[ 0.002675] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.002711] pid_max: default: 32768 minimum: 301
[ 0.002947] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.002978] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.004450] CPU: Testing write buffer coherency: ok
[ 0.005010] /cpus/cpu@0 missing clock-frequency property
[ 0.005058] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.005181] Setting up static identity map for 0x80008280 - 0x800082d8
[ 0.041259] Brought up 1 CPUs
[ 0.041299] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.041320] CPU: All CPU(s) started in SVC mode.
[ 0.042539] devtmpfs: initialized
[ 0.064826] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.065779] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.074382] pinctrl core: initialized pinctrl subsystem
[ 0.077215] NET: Registered protocol family 16
[ 0.096089] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.121018] cpuidle: using governor ladder
[ 0.151077] cpuidle: using governor menu
[ 0.195181] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.195223] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.198500] imx6ul-pinctrl 20e0000.iomuxc: Invalid fsl,pins property in node /soc/aips-bus@02000000/iomuxc@020e0000/imx6ul-evk/hoggrp-1
[ 0.199233] imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[ 0.199956] imx6ul-pinctrl 2290000.iomuxc-snvs: initialized IMX pinctrl driver
[ 0.268895] mxs-dma 1804000.dma-apbh: initialized
[ 0.275946] SCSI subsystem initialized
[ 0.277482] usbcore: registered new interface driver usbfs
[ 0.277686] usbcore: registered new interface driver hub
[ 0.277925] usbcore: registered new device driver usb
[ 0.280608] i2c i2c-0: IMX I2C adapter registered
[ 0.280658] i2c i2c-0: can't use DMA
[ 0.282531] i2c i2c-1: IMX I2C adapter registered
[ 0.282581] i2c i2c-1: can't use DMA
[ 0.282914] Linux video capture interface: v2.00
[ 0.283159] pps_core: LinuxPPS API ver. 1 registered
[ 0.283181] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [email protected]
[ 0.283266] PTP clock support registered
[ 0.286058] MIPI CSI2 driver module loaded
[ 0.286790] Advanced Linux Sound Architecture Driver Initialized.
[ 0.288999] Bluetooth: Core ver 2.20
[ 0.289139] NET: Registered protocol family 31
[ 0.289164] Bluetooth: HCI device and connection manager initialized
[ 0.289208] Bluetooth: HCI socket layer initialized
[ 0.289248] Bluetooth: L2CAP socket layer initialized
[ 0.289336] Bluetooth: SCO socket layer initialized
[ 0.291756] Switched to clocksource mxc_timer1
[ 0.319280] NET: Registered protocol family 2
[ 0.321033] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.321140] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.321235] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.321386] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.321454] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.322070] NET: Registered protocol family 1
[ 0.325560] imx rpmsg driver is registered.
[ 0.328329] Bus freq driver module loaded
[ 0.330762] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.349667] VFS: Disk quotas dquot_6.6.0
[ 0.350145] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.354681] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.356514] fuse init (API version 7.23)
[ 0.368180] io scheduler noop registered
[ 0.368232] io scheduler deadline registered
[ 0.368805] io scheduler cfq registered (default)
[ 0.369894] imx-weim 21b8000.weim: Driver registered.
[ 0.375149] lumi_r supply power not found, using dummy regulator
[ 0.377067] lumi_b supply power not found, using dummy regulator
[ 0.378853] lumi_g supply power not found, using dummy regulator
[ 0.381197] MIPI DSI driver module loaded
[ 0.381644] MIPI DSI driver module loaded
[ 0.387674] imx-sdma 20ec000.sdma: no event needs to be remapped
[ 0.387919] imx-sdma 20ec000.sdma: loaded firmware 3.3
[ 0.396091] imx-sdma 20ec000.sdma: initialized
[ 0.398324] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 19, base_baud = 5000000) is a IMX
[ 1.049833] console [ttymxc0] enabled
[ 1.055553] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 217, base_baud = 5000000) is a IMX
[ 1.101689] imx-rng 2284000.rngb: iMX RNG Registered.
[ 1.107561] imx sema4 driver is registered.
[ 1.112065] [drm] Initialized drm 1.1.0 20060810
[ 1.118155] [drm] Initialized vivante 1.0.0 20120216 on minor 0
[ 1.152638] brd: module loaded
[ 1.170190] loop: module loaded
[ 1.174224] pn54x_dev_init-->lumi
[ 1.177765] pn54x_probe
[ 1.180296] pn544 1-0028: FIRM GPIO error getting from OF node
[ 1.187315] pn544 1-0028: CLKREQ GPIO error getting from OF node
[ 1.194396] 1-0028 supply nxp,pn54x-pvdd not found, using dummy regulator
[ 1.201386] 1-0028 supply nxp,pn54x-vbat not found, using dummy regulator
[ 1.208419] 1-0028 supply nxp,pn54x-pmuvcc not found, using dummy regulator
[ 1.215571] 1-0028 supply nxp,pn54x-sevdd not found, using dummy regulator
[ 1.222632] pn54x_probe: request irq_gpio 7
[ 1.226857] pn54x_probe: request ven_gpio 3
[ 1.231533] pn54x_probe : requesting IRQ 35
[ 1.251649] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[ 1.258163] nand: Micron MT29F2G08ABAEAWP
[ 1.262261] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.270740] gpmi-nand 1806000.gpmi-nand: enable the asynchronous EDO mode 5
[ 1.278265] Bad block table found at page 131008, version 0x01
[ 1.284427] Bad block table found at page 130944, version 0x01
[ 1.290679] 4 cmdlinepart partitions found on MTD device gpmi-nand
[ 1.296969] Creating 4 MTD partitions on "gpmi-nand":
[ 1.302119] 0x000000000000-0x000000300000 : "boot"
[ 1.309654] 0x000000300000-0x000000a00000 : "kernel"
[ 1.317307] 0x000000a00000-0x000000b00000 : "dtb"
[ 1.324680] 0x000000b00000-0x000010000000 : "rootfs"
[ 1.333235] gpmi-nand 1806000.gpmi-nand: driver registered.
[ 1.345447] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.352170] ehci-mxc: Freescale On-Chip EHCI Host driver
[ 1.358007] usbcore: registered new interface driver usb-storage
[ 1.364331] usbcore: registered new interface driver usb_ehset_test
[ 1.373387] 2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
[ 1.382653] 2184000.usb supply vbus not found, using dummy regulator
[ 1.397434] mousedev: PS/2 mouse device common for all mice
[ 1.405304] input: 20cc000.snvs:snvs-powerkey as /devices/platform/soc/2000000.aips-bus/20cc000.snvs/20cc000.snvs:snvs-powerkey/input/input0
[ 1.423639] snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc0
[ 1.432827] i2c /dev entries driver
[ 1.439262] IR NEC protocol handler initialized
[ 1.443981] IR RC5(x/sz) protocol handler initialized
[ 1.449083] IR RC6 protocol handler initialized
[ 1.453714] IR JVC protocol handler initialized
[ 1.458298] IR Sony protocol handler initialized
[ 1.463007] IR SANYO protocol handler initialized
[ 1.467760] IR Sharp protocol handler initialized
[ 1.472557] IR MCE Keyboard/mouse protocol handler initialized
[ 1.478439] IR XMP protocol handler initialized
[ 1.489537] imx2-wdt 20bc000.wdog: use WDOG_B to reboot.
[ 1.496034] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[ 1.503522] sdhci: Secure Digital Host Controller Interface driver
[ 1.509756] sdhci: Copyright(c) Pierre Ossman
[ 1.514282] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.521898] /soc/aips-bus@02100000/usdhc@02190000: voltage-ranges unspecified
[ 1.529102] sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
[ 1.539749] sdhci-esdhc-imx 2190000.usdhc: No vmmc regulator found
[ 1.546065] sdhci-esdhc-imx 2190000.usdhc: No vqmmc regulator found
[ 1.592025] mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
[ 1.627176] usbcore: registered new interface driver usbhid
[ 1.633179] usbhid: USB HID core driver
[ 1.638093] vf610-adc 2198000.adc: Debug vf610_adc_proble()
[ 1.644469] 2198000.adc supply vref not found, using dummy regulator
[ 1.651178] vf610-adc 2198000.adc: Debug[0] channels[2]
[ 1.666844] wm8524_i2c_probe:
[ 1.673566] mmc0: new high speed SDIO card at address 0001
[ 1.680073] wm8960 1-001a: Failed to issue reset
[ 1.685172] wm8960: probe of 1-001a failed with error -5
[ 1.694174] fsl-asrc 2034000.asrc: driver registered
[ 1.707321] imx_wm8524_probe:
[ 1.711064] wm8524_probe:
[ 1.715386] imx-wm8524 sound2: wm8524-hifi <-> 2028000.sai mapping ok
[ 1.723644] imx-wm8524 sound2: snd-soc-dummy-dai <-> 2034000.asrc mapping ok
[ 1.731025] imx-wm8524 sound2: wm8524-hifi <-> 2028000.sai mapping ok
[ 1.745134] NET: Registered protocol family 26
[ 1.751968] NET: Registered protocol family 10
[ 1.758865] sit: IPv6 over IPv4 tunneling driver
[ 1.765673] NET: Registered protocol family 17
[ 1.770547] Bluetooth: RFCOMM TTY layer initialized
[ 1.775762] Bluetooth: RFCOMM socket layer initialized
[ 1.780984] Bluetooth: RFCOMM ver 1.11
[ 1.784888] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 1.790235] Bluetooth: BNEP filters: protocol multicast
[ 1.795566] Bluetooth: BNEP socket layer initialized
[ 1.800576] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 1.806593] Bluetooth: HIDP socket layer initialized
[ 1.811607] 8021q: 802.1Q VLAN Support v1.8
[ 1.815925] lib80211: common routines for IEEE802.11 drivers
[ 1.821888] Key type dns_resolver registered
[ 1.828334] cpu cpu0: dev_pm_opp_get_opp_count: device OPP not found (-19)
[ 1.860025] ubi0: attaching mtd3
[ 2.198477] random: nonblocking pool is initialized
[ 2.561343] ubi0: scanning is finished
[ 2.580508] ubi0: attached mtd3 (name "rootfs", size 245 MiB)
[ 2.586474] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 2.593443] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 2.600267] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 2.607322] ubi0: good PEBs: 1956, bad PEBs: 4, corrupted PEBs: 0
[ 2.613608] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 2.620866] ubi0: max/mean erase counter: 43/13, WL threshold: 4096, image sequence number: 1813099077
[ 2.630253] ubi0: available PEBs: 0, total reserved PEBs: 1956, PEBs reserved for bad PEB handling: 36
[ 2.639657] ubi0: background thread "ubi_bgt0d" started, PID 73
[ 2.645712] dhd_module_init in
[ 2.651110] input: regulators:gpio-keys as /devices/platform/regulators/regulators:gpio-keys/input/input1
[ 2.662216] snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01 01:01:14 UTC (3674)
[ 2.693439] gpio_dvfs: disabling
[ 2.696728] vref-3v3: disabling
[ 2.699891] can-3v3: disabling
[ 2.703447] ALSA device list:
[ 2.706449] #0: wm8524-audio
[ 2.712011] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 74
[ 2.740458] UBIFS (ubi0:0): recovery needed
[ 2.822768] UBIFS (ubi0:0): recovery completed
[ 2.827489] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 2.835112] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 2.845184] UBIFS (ubi0:0): FS size: 241635328 bytes (230 MiB, 1903 LEBs), journal size 12062720 bytes (11 MiB, 95 LEBs)
[ 2.856126] UBIFS (ubi0:0): reserved for root: 4952683 bytes (4836 KiB)
[ 2.862809] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID AD7DD6E8-1329-4760-93D9-E1A4D3A2465D, small LPT model
[ 2.875025] VFS: Mounted root (ubifs filesystem) on device 0:14.
[ 2.882132] devtmpfs: mounted
[ 2.886251] Freeing unused kernel memory: 540K (80aa1000 - 80b28000)
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
bash-4.3# ls
bin dev home lumi mnt proc sbin tmp var
boot etc lib media opt run sys usr wpa
bash-4.3#

Use the internal LED and Speaker

Very nice project, firmware without a cloud xiaomi server!

Is there also an option to use the internal speaker and led + sensors?

WireGuard

Can not manage to start wireguard:

$ logread -f
...
Sat Feb 27 16:54:37 2021 daemon.err modprobe: 1 module could not be probed
Sat Feb 27 16:54:37 2021 daemon.err modprobe: - wireguard
Sat Feb 27 16:54:37 2021 kern.warn kernel: [15463.933661] wireguard: Unknown symbol dst_cache_set_ip4 (err 0)
Sat Feb 27 16:54:37 2021 kern.warn kernel: [15463.933976] wireguard: Unknown symbol dst_cache_destroy (err 0)
Sat Feb 27 16:54:37 2021 kern.warn kernel: [15463.934128] wireguard: Unknown symbol dst_cache_init (err 0)
Sat Feb 27 16:54:37 2021 kern.warn kernel: [15463.934777] wireguard: Unknown symbol dst_cache_get_ip6 (err 0)
Sat Feb 27 16:54:37 2021 kern.warn kernel: [15463.934884] wireguard: Unknown symbol dst_cache_get_ip4 (err 0)
Sat Feb 27 16:54:37 2021 kern.warn kernel: [15463.935012] wireguard: Unknown symbol dst_cache_set_ip6 (err 0)
Sat Feb 27 16:54:37 2021 daemon.notice netifd: wg0 (15885): Unable to modify interface: Protocol not supported
...
$ cat /etc/openwrt_release 
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='19.07.7'
DISTRIB_REVISION='r11306-c4a6851c72'
DISTRIB_TARGET='imx6/generic'
DISTRIB_ARCH='arm_cortex-a9_neon'
DISTRIB_DESCRIPTION='OpenWrt 19.07.7 r11306-c4a6851c72'
DISTRIB_TAINTS='no-all'
$ uname -a
Linux mihome 4.14.221 #0 SMP Mon Feb 15 15:22:37 2021 armv7l GNU/Linux
$ lsmod | egrep '(wire|tunnel)'
ip6_udp_tunnel         16384  0 
udp_tunnel             16384  0

rc.local now empty

Hi i had a conflict during programming, now my rc.local is empty and i have only access via UART, can anybody send me the rc.local content. thx.

Stock backup

Добрый день, подскажите пожалуйста, что делаю не так? При попытке создать полный backup rootfs стоковой системы:

  1. cd /
  2. ls -a
    ". .. .cache bin boot dev etc home lib lumi media mnt opt proc run sbin sys tmp usr var wpa"
  3. tar -cvpzf /tmp/lumi_stock.tar.gz -C / --exclude='./tmp/' --exclude='./dev/' --exclude='./run/' --exclude='./proc/' --exclude='./sys/*'
    выдает ошибку tar: Cowardly refusing to create an empty archive.

Restored Stock is Not HomeKit Compatible

I own an Aqara ZHWG11LM and I have tried the OpenWRT Software but wanted to revert back to stock firmware. I have done the full backup before flashing. I have tried to revert back using the Uninstaller Script and failed (Kernel Panic...something after downgrading kernel and rebooting). I was successful in restoring the backup using mfgtools but the Gateway does not connect to Aqara Home app anymore just the Mi Home app and I cannot use it with Homekit Controller integration in Home Assistant. Please Help!

Dropbear SSH can not start

Hi! First of all, thank you for your project!

I have Aqara Gateway 2 (ZHWG11LM) and trying to get root by your instructions.
I have a problem with dropper ssh. It's not start and I see the next logs:

...
==========================================
======== ^_^ start miot hkbridge =========
==========================================
Starting Dropbear SSH server: fac_test bulid time:04:06:52 Oct 19 2018
gobal_cmd_list size 3204
Input cmd:Pseudo-terminal will not be allocated because stdin is not a terminal.
dropbearkey: Could not resolve hostname rsa: Name or service not known

As I understand, ssh service didn't run, because I cannot connect to it.

This is start gateway logs (with some versions of software and hardware) if it help you:

U-Boot 2016.03 (Nov 07 2017 - 20:11:55 +0800) 

CPU:   Freescale i.MX6ULL rev1.0 528 MHz (running at 396 MHz)
CPU:   Commercial temperature grade (0C to 95C) at 41C
Reset cause: POR
Board: Lumi international Gateway
I2C:   ready
DRAM:  256 MiB
NAND:  256 MiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment

Display: TFT43AB (480x272)
Video: LCDIF@0x21c8000 is fused, disable it
In:    serial
Out:   serial
Err:   serial
Net:   Ethernet@0x20b4000 is fused, disable it
Board Net Initialization Failed
No ethernet found.

Alarm mode support

Hi! Thanks for this great guide!
I was able to connect to uart and flash the firmware on my DGNWG05LM gateway. Still wondering witch firmware to install.
Cant find any mention of alarm mode support? Is it possible to use it?
I understand that i cant use both xiaomi mi account and ZHA/z2mqtt. My purpose is to use both the zigbee sensors and the hub alarm and light. (using home assistant on raspberry pi 4)

Error on rooting

Hi,
I have a problem when I try to root the DGNWG05LM.
After use the command setenv bootargs "${bootargs} single rw init=/bin/bash" && boot, I have a error message:
2022-10-08_15h34_16

[    2.870402] VFS: Mounted root (ubifs filesystem) on device 0:14.
[    2.877693] devtmpfs: mounted
[    2.881892] Freeing unused kernel memory: 540K (80aa1000 - 80b28000)
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
bash-4.3#

If I don't use init=/bin/bash, the boot goes further but it doesn't work anymore

=> setenv bootargs "${bootargs} single rw" && boot

NAND read: device 0 offset 0x300000, size 0x700000
 7340032 bytes read: OK

NAND read: device 0 offset 0xa00000, size 0x100000
 1048576 bytes read: OK
Kernel image @ 0x80800000 [ 0x000000 - 0x617290 ]
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000

...

[    2.876859] devtmpfs: mounted
[    2.880976] Freeing unused kernel memory: 540K (80aa1000 - 80b28000)
INIT: version 2.88 booting
Starting udev
cmp: EOF on /etc/udev/cache.data
udev: Not using udev cache because of changes detected in the following files:
udev:     /proc/version /proc/cmdline /proc/devices
udev:     lib/udev/rules.d/* etc/udev/rules.d/*
udev: The udev cache will be regenerated. To identify the detected changes,
udev: compare the cached sysconf at   /etc/udev/cache.data
udev: against the current sysconf at  /dev/shm/udev.cache
[    3.869683] udevd[105]: starting version 3.1.5
Populating dev cache
Give root password for maintenance
(or press Control-D to continue):

Could you help me?

Problem after root

After I did the root process and reboot the device I received this message at serial terminal (normal boot):

U-Boot 2016.03 (Nov 07 2017 - 20:11:55 +0800)

CPU:   Freescale i.MX6ULL rev1.1 528 MHz (running at 396 MHz)
CPU:   Commercial temperature grade (0C to 95C) at 43C
Reset cause: POR
Board: Lumi international Gateway
I2C:   ready
DRAM:  256 MiB
NAND:  256 MiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment

Display: TFT43AB (480x272)
Video: LCDIF@0x21c8000 is fused, disable it
In:    serial
Out:   serial
Err:   serial
Net:   Ethernet@0x20b4000 is fused, disable it
Board Net Initialization Failed
No ethernet found.

## Enter main_loop() Now##
Normal Boot
.
.
. a lot of data
.
.
INIT: version 2.88 booting
Starting udev
[    3.866975] udevd[105]: starting version 3.1.5
[    4.387675] UBIFS (ubi0:0): completing deferred recovery
[    4.501123] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 129
[    4.533813] UBIFS (ubi0:0): deferred recovery completed
INIT: Entering runlevel: 5
**Configuring network interfaces... eth0: ERROR while getting interface flags: No such device**
Running local boot scripts (/etc/rc.local).
umount: /mnt/.psplash: not mounted

Freescale i.MX Release Distro 4.1.15-2.0.0 imx6ull14x14evk /dev/ttymxc0

imx6ull14x14evk login:

What I did wrong?? I did not made the backup yet... can I forget the backup process and flash openwrt with serial??

DGNWG05LM welding issue on PCB board

Hi, during the mod of the DGNWG05LM gateway, unsoldering the serial connections, the TX pinout was detached from the board. Having to repeat the procedure, where can I find an alternative point to be able to solder the TX pin?

Error 255

hey!

It seems i cant install any packages no matter which package i try i get error 255
"found, but incompatible with the architectures configured"
help?

BLE in DGNWG05LM

Tell me, is the BLE implementation expected on the gateway? Will there be support for the node node-red-contrib-xiaomi-ble? the node is not installed now.

[REQUEST] Zeroconf or SSDP automatic network discovery compatibility with Home Assistant ZHA integration

Please consider adding automatic network discovery of this so can be discovered by Home Assistant’s ZHA (Zigbee) integration:

https://community.home-assistant.io/t/zha-automatic-discovery-of-zigbee-coordinator-bridges-gateways-ethernet-wifi-network-devices-that-support-zeroconf-or-ssdp/293300

Support for Zeroconf network discovery of Tube's ESPHome based Zigbee Gateways was recently added to the ZHA integration:

home-assistant/core#48420

Note that Home Assistant already have integration support to add Zeroconf and/or SSDP automatic network discovery methods.

Serial connection seems to broke after a few seconds

Hey guys,

I just bought a ZHWG11LM and want to flash it with your OpenWRT.
I tried to gain root access, following your guide. So I added my CH340 to GND, TX and RX.

When starting the device, I can see it booting. I'm able to interupt it by pressing any key and after this i see the =>.
I'm able to type or paste the setenv ... for around 1 second and than the device doesn't react on my input anymore. Also, I can no longer read the output. There are just some unknown symbols (like if you use a wrong baudrate, but I use baudrate 115200).

If I'm fast, I'm able to paste the whole setenv command and press enter. The last thing I could read is NAND read .... If I don't interrupt the boot, the same thing happen. Around 1 second after the short countdown there are just unreadable symbols.
I tried it with screen and minicom an macOS and PuTTY on Windows. All with the same CH340 adapter. Same thing.
The CH340 should be ok, just flashed a nodeMCU with it a week ago.

Any ideas what I'm doing wrong? 😞
If you want to see a screenshot of my output, I paste it later that day when back at home.

Gateway does not connect to wi-fi after reboot

If I follow the guide Connect the gateway to your router my gateway does not connect to home wi-fi network after reboot.

The guide says:
"3. Press the Scan button against the first interface radio0. After a few seconds, you will see a list of networks. Find your network and press Join Network"

However, if I use second interface radio1 during the setup I get no issues. Maybe it's worth to mention in Readme.

root@OpenWrt:/# ubus call system board
{
        "kernel": "5.15.137",
        "hostname": "OpenWrt",
        "system": "ARMv7 Processor rev 5 (v7l)",
        "model": "Xiaomi Gateway DGNWG05LM",
        "board_name": "xiaomi,dgnwg05lm",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenLumi",
                "version": "23.05.2",
                "revision": "r23630-842932a63d",
                "target": "imx/cortexa7",
                "description": "OpenLumi 23.05.2 r23630-842932a63d"
        }

Не открывается интерфейс z2mqtt

Не открывается интерфейс z2mqtt. сделал все по инструкции раньше работало а потом раз и не работает пытался переустанавливать сбрасывал шлюз. но ничего не помогает

SSH does not work

Hi,
I have won root with Serial port but ssh does not work.
I tried with:

mv /usr/sbin/dropbearmulti /usr/sbin/dropbearmulti.backup
echo -e "GET /openlumi/openlumi.github.io/master/files/dropbearmulti HTTP/1.0\nHost: raw.githubusercontent.com\n" | openssl s_client -quiet -connect raw.githubusercontent.com:443 -servername raw.githubusercontent.com 2>/dev/null | sed '1,/^\r$/d' > /usr/sbin/dropbearmulti
chmod +x /usr/sbin/dropbearmulti

but still does not work...
Gateway connected to the network. I can pin from Windows but I cannot do the scpfor the backup created
Thanks for supporting
BR

DGNWG05LM - No wireless extensions

I am having troubles trying setup the Wifi configuration on my device (Xiaomi)

at executing /lumi/app/miio/wifi_start.sh

I get this
image

And if I execute iwconfig I get this
image

Any idea on how to advance? I tried to reboot and I found something different from the guidelines. The gateway doesn't start on a "test" environment like the guidelines said. But instead...

image

Thanks for your help

Does the stock backup include zigbee firmware?

Accroding to the guide, to use zigbee on the gateway, we must flash the firmware for zigbee module. Does the stock backup include zigbee firmware so the stock firmware can work with zigbee modules? Do I need to manually flash zigbee firmware back before restoring to stock?

Disabling OpenWrt default access point from LUCI shutting down all wifi access.

After installation we need to setup wireless access, for example, connect to the main router as client, and disable "maintenance" OpenWrt after it. But clicking on the "disable" button actually disabling both radios (client and ap) and preventing from login.
Here /config/wireless:

config wifi-device 'radio0'
        option type 'mac80211'
        option channel '11'
        option hwmode '11g'
        option path 'soc0/soc/2100000.aips-bus/2190000.usdhc/mmc_host/mmc0/mmc0:0001/mmc0:0001:1'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'wwan'
        option mode 'sta'
        option ssid 'MYAP'
        option encryption 'psk2'
        option key 'MYPASSWORD'

config wifi-device 'radio1'
        option type 'mac80211'
        option path 'soc0/soc/2100000.aips-bus/2190000.usdhc/mmc_host/mmc0/mmc0:0001/mmc0:0001:1+1
        option disabled '1' <---- problem is here

config wifi-iface 'default_radio1'
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt'
        option encryption 'none'
        option disabled '1'

LUCI insert "option disabled" to both sections, default_radio1 and radio1 itself, and after applying both radio0 and radio1 shutted down because of same path.
Solution: remove first "option disabled" from radio1 config.

Rus: В общем, если попытаться выключить дефолтную точку доступа OpenWrt то вайфай на устройстве выключается полностью, даже если настроен доступ клиентом.

Error flash JN5169

Procedure:
wget https://github.com/openlumi/ZiGate/releases/download/snapshot-20201201/ZigbeeNodeControlBridge_JN5169_FULL_FUNC_DEVICE_31e_115200.bin -O /tmp/zigate.bin
jnflash /tmp/zigate.bin
jntool erase_pdm

Issue:
root@OpenWrt:~ jnflash domoticz_zigate.bin
Flash domoticz_zigate.bin
JennicModuleProgrammer Version: 0.11 (r1234)
Logging Serial port opened at iInitialSpeed (= 38400) to /tmp/flasher.log
Setting baudrate for port 3 to 1000000
Detected Chip: Unknown
MAC Address: 00:15:8D:00:04:7D:A7:0F
Erasing = 0%
Writing = 100%
Logging Error in verification to /tmp/flasher.log
root@OpenWrt:~# cat /tmp/flasher.log
Tue Dec 22 20:02:56 2020 - 2447 : Serial port opened at iInitialSpeed (= 38400)
Tue Dec 22 20:03:02 2020 - 2447 : Error in verification

Wifi connection lost

HI,

I have succefully installed it on my xiaomi gateway but each time it cannot connect to my wifi. I have too reset it withy putty, the 10s reset not working.

Could please help me find out the issue, I am not used to do this kind of things.

Thanks

edit; udhcpc -i phy0-sta0 seems to fix the issue, but I do not understand why :)

Problem installing snapclient on Openwrt version 21.02

Hello,
First, thank you very much for this beautiful hack.
I have been using it for several months and it's nice to get rid of xiaomi firm and use openwrt instead.
Today I update the firmware from 19.07 to 21.02 and I can't make work again snapclient as I had it working, flawlessly, on the previous version 19.07.
This is the error I get:
tmp# snapclient
Error relocating /usr/bin/snapclient: ZNKSt7__cxx1112basic_str
ingIcSt11char_traitsIcESaIcEE7compareERKS4
: symbol not found
Error relocating /usr/bin/snapclient: ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEE6insertEjRKS4
: symbol not found
Error relocating /usr/bin/snapclient: _ZSt7getlineIcSt11char_tr
aitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_st
ringIS4_S5_T1_EE: symbol not found
Error relocating /usr/bin/snapclient: ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEE5eraseEN9__gnu_cxx17__normal_iterat
orIPKcS4_EES9
: symbol not found
Error relocating /usr/bin/snapclient: _ZNKSt7__cxx1112basic_str
ingIcSt11char_traitsIcESaIcEE7compareEPKc: symbol not found
Error relocating /usr/bin/snapclient: ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcS5_S5
: symbol no
t found
Error relocating /usr/bin/snapclient: _ZNKSt7__cxx1112basic_str
ingIcSt11char_traitsIcESaIcEE6substrEjj: symbol not found
Error relocating /usr/bin/snapclient: _ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEE10_M_replaceEjjPKcj: symbol not fou
nd
Error relocating /usr/bin/snapclient: _ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEE7reserveEj: symbol not found
Error relocating /usr/bin/snapclient: ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEEC1ERKS4
: symbol not found
Error relocating /usr/bin/snapclient: _ZNSt7__cxx1119basic_istr
ingstreamIcSt11char_traitsIcESaIcEED1Ev: symbol not found
Error relocating /usr/bin/snapclient: ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEE9_M_assignERKS4
: symbol not found
Error relocating /usr/bin/snapclient: ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEEC1EOS4
: symbol not found
Error relocating /usr/bin/snapclient: _ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEED1Ev: symbol not found
Error relocating /usr/bin/snapclient: _ZNSt7__cxx1118basic_stri
ngstreamIcSt11char_traitsIcESaIcEED1Ev: symbol not found
Error relocating /usr/bin/snapclient: _ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEE6insertEjPKc: symbol not found
Error relocating /usr/bin/snapclient: _ZNSt7__cxx1118basic_stri
ngstreamIcSt11char_traitsIcESaIcEEC1ESt13_Ios_Openmode: symbol
not found
Error relocating /usr/bin/snapclient: _ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEE9push_backEc: symbol not found
Error relocating /usr/bin/snapclient: _ZStlsIcSt11char_traitsIc
ESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringI
S4_S5_T1_EE: symbol not found
Error relocating /usr/bin/snapclient: _ZNKSt7__cxx1112basic_str
ingIcSt11char_traitsIcESaIcEE4findEPKcj: symbol not found
Error relocating /usr/bin/snapclient: _ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEEpLEPKc: symbol not found
Error relocating /usr/bin/snapclient: _ZNKSt7__cxx1112basic_str
ingIcSt11char_traitsIcESaIcEE4findEcj: symbol not found
Error relocating /usr/bin/snapclient: _ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEE12_M_constructEjc: symbol not found
Error relocating /usr/bin/snapclient: ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcPKcS7
: symbol no
t found
Error relocating /usr/bin/snapclient: ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEEaSEOS4
: symbol not found
Error relocating /usr/bin/snapclient: _ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEE10_M_disposeEv: symbol not found
Error relocating /usr/bin/snapclient: _ZNSt13runtime_errorC2ERK
NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: symbol no
t found
Error relocating /usr/bin/snapclient: ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEEpLERKS4
: symbol not found
Error relocating /usr/bin/snapclient: _ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEEaSEPKc: symbol not found
Error relocating /usr/bin/snapclient: _ZNKSt7__cxx1112basic_str
ingIcSt11char_traitsIcESaIcEE4findERKS4_j: symbol not found
Error relocating /usr/bin/snapclient: _ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEE7replaceEjjPKc: symbol not found
Error relocating /usr/bin/snapclient: ZNSt7__cxx1115basic_stri
ngbufIcSt11char_traitsIcESaIcEE3strERKNS_12basic_stringIcS2_S3

EE: symbol not found
Error relocating /usr/bin/snapclient: _ZNSt12out_of_rangeC1ERKN
St7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: symbol not
found
Error relocating /usr/bin/snapclient: _ZNKSt7__cxx1115basic_str
ingbufIcSt11char_traitsIcESaIcEE3strEv: symbol not found
Error relocating /usr/bin/snapclient: _ZNSt7__cxx1118basic_stri
ngstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3
_EESt13_Ios_Openmode: symbol not found
Error relocating /usr/bin/snapclient: _ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEE6resizeEjc: symbol not found
Error relocating /usr/bin/snapclient: _ZNSt7__cxx1119basic_istr
ingstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S
3_EESt13_Ios_Openmode: symbol not found
Error relocating /usr/bin/snapclient: ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEE7replaceEjjRKS4
: symbol not found
Error relocating /usr/bin/snapclient: _ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEE9_M_createERjj: symbol not found
Error relocating /usr/bin/snapclient: _ZNSt16invalid_argumentC1
ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: symbol
not found
Error relocating /usr/bin/snapclient: _ZNKSt7__cxx1112basic_str
ingIcSt11char_traitsIcESaIcEE5rfindEcj: symbol not found
Error relocating /usr/bin/snapclient: _ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEE6resizeEj: symbol not found
Error relocating /usr/bin/snapclient: ZSt7getlineIcSt11char_tr
aitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_st
ringIS4_S5_T1_EES4
: symbol not found
Error relocating /usr/bin/snapclient: _ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEE6insertEN9__gnu_cxx17__normal_itera
torIPKcS4_EEc: symbol not found
Error relocating /usr/bin/snapclient: ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEE7replaceEN9__gnu_cxx17__normal_iter
atorIPKcS4_EES9_S9_S9
: symbol not found
Error relocating /usr/bin/snapclient: _ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEE6appendEPKc: symbol not found
Error relocating /usr/bin/snapclient: _ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEE6appendEPKcj: symbol not found
Error relocating /usr/bin/snapclient: ZNSt7__cxx1112basic_stri
ngIcSt11char_traitsIcESaIcEE6appendERKS4
: symbol not found
root@Altavoz_Zigbee:/tmp#

The question would be can I downgrade to the previous OpenWrt version?

I delete /etc/inittab

Please can you give me the contents of the /etc/inittab
I don't know how I emptied it :(

Now I tried to flashing over USB, and I got stuck here:

Enter main_loop() Now##

Normal Boot
Hit any key to stop autoboot: 0
=> bmode usb
resetting ...

U-Boot 2020.04-5.4.70-2.3.0+ge42dee801e (Dec 04 2020 - 00:53:33 +0000)

CPU: i.MX6ULL rev1.1 528 MHz (running at 396 MHz)
CPU: Commercial temperature grade (0C to 95C) at 47C
Reset cause: WDOG
Model: i.MX6 ULZ 14x14 EVK Board
Board: MX6ULL 14x14 EVK
DRAM: 512 MiB
NAND: 256 MiB
MMC: FSL_SDHC: 0
Loading Environment from NAND... *** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: No ethernet found.
Fastboot: Normal
Boot from USB for mfgtools
*** Warning - Use default environment for mfgtools
, using default environment

Run bootcmd_mfg: run mfgtool_args;if iminfo ${initrd_addr}; then if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; else bootz ${loadaddr} ${initrd_addr} ${fdt_addr}; fi; else echo "Run fastboot ..."; fastboot 0; fi;
Hit any key to stop autoboot: 0

Checking Image at 86800000 ...

Unknown image format!
Run fastboot ...
No USB device found
USB init failed: -19
=>

[zigbee2mqtt opkg] '[object Object] is not a constructor' while trying to save an external extension

While trying to add an extension to zigbee2mqtt on "Xiaomi Gateway Lumi" there is a confusing error

Error: Request 'homeassistant/bridge/request/extension/save' failed with error: '[object Object] is not a constructor'
Info: MQTT publish: topic 'homeassistant/bridge/response/extension/save', payload '{"data":{},"error":"[object Object] is not a constructor","status":"error","transaction":"4z14k-9"}'

The code I am trying to add as a file is any of these solutions.

Openlumi device: package consisting of a gateway, two motion sensors, two door sensors and a button.
Zigbee device: ZM-RT201 motion sensor.
Openwrt version: OpenWrt 19.07.7 r11306-c4a6851c72 / LuCI openwrt-19.07 branch git-21.189.23240-7b931da
zigbee2mqtt opkg version: tried with both version from the guide (I believe it was 1.19?) and the latest one (using it currently); all supported devices work with it as normal.

Since I haven't found any of these error messages in zigbee2mqtt github and also failed to find any reference about difference in methods of adding extensions between "native" zigbee2mqtt and an openpkg package, I decided to create this issue. It might be something I missed.

failed to update firmware

try to install OpenWrt...

CONNECTED(00000003)
write:errno=104

no peer certificate available

No client certificate CA names sent

SSL handshake has read 0 bytes and written 307 bytes

New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
Protocol : TLSv1.2
Cipher : 0000
Session-ID:
Session-ID-ctx:
Master-Key:
Key-Arg : None
PSK identity: None
PSK identity hint: None
SRP username: None
Start Time: 2829
Timeout : 300 (sec)
Verify return code: 0 (ok)

kernel panic while trying to return to stock fw

stoc fw update log.txt
I've tried to flash the fw stock & restore to default with mi home app.
connected both usb2uart & usb using the mfgtools, seems like the flashing process succeeded but after rebooting the gateway i got kernel panic.
attached the log.
can anyone help me? Does someone know what can cause that issue?

Not able to flash JN51XX chip

Hi, thank you for you efforts to bring this project to live, it is really great!

However, after installing OpenLumi within full soldering via UART + USB and installing 'Version 19.07.7 2021-02-24' I am having the issue with updating firmware JN51XX Zigbee chip.

The reason why I am trying to update the firmware is that I have not done it before installing zigbee2mqtt and failed to make it receiving commands from Ikea Zigbee devices , however all xiaomi buttons and sensors worked just fine. I assume that it is because I have not updated the firmware of the JN51XX chip and it is how the story begins..

If I launch firmware update within web interface, by filling in the URL and clicking OK, i got:

Flash /tmp/firmware.bin
JennicModuleProgrammer Version: 0.11 (r1234)
Logging Serial port opened at iInitialSpeed (= 38400) to /tmp/flasher.log
Setting baudrate for port 3 to 1000000
Error setting (bootloader) baudrate to iProgramSpeed (1000000) (2)
Logging Error setting (bootloader) baudrate to iProgramSpeed (= 1000000) to /tmp/flasher.log
Error setting (bootloader) baudrate to iProgramSpeed (1000000) (1)
Logging Error setting (bootloader) baudrate to iProgramSpeed (= 1000000) to /tmp/flasher.log
Error setting (bootloader) baudrate to iProgramSpeed (1000000) (0)
Logging Error setting (bootloader) baudrate to iProgramSpeed (= 1000000) to /tmp/flasher.log

I am getting the same result by entering the command manually in the console:


root@XiaomiGateway:~# wget https://github.com/openlumi/ZiGate/releases/download/snapshot-20201201/ZigbeeNodeControlBridge_JN5169_FULL_FUNC_DEVICE_31e_115200.bin -O /tmp/ziga
te.bin 
Downloading 'https://github.com/openlumi/ZiGate/releases/download/snapshot-20201201/ZigbeeNodeControlBridge_JN5169_FULL_FUNC_DEVICE_31e_115200.bin'
Connecting to 140.82.121.3:443
Redirected to /302286515/44627800-415d-11eb-9070-e15e4e74c14e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210522%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210522T170937Z&X-Amz-Expires=300&X-Amz-Signature=d8c619150901cd9485a61224df8c1288886c4fab54cb6bb7f2433e0f89462c19&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=302286515&response-content-disposition=attachment%3B%20filename%3DZigbeeNodeControlBridge_JN5169_FULL_FUNC_DEVICE_31e_115200.bin&response-content-type=application%2Foctet-stream on github-releases.githubusercontent.com
Writing to '/tmp/zigate.bin'
/tmp/zigate.bin      100% |*******************************|   221k  0:00:00 ETA
Download completed (226944 bytes)
root@XiaomiGateway:~# jnflash /tmp/zigate.bin
Flash /tmp/zigate.bin
JennicModuleProgrammer Version: 0.11 (r1234)
Logging Serial port opened at iInitialSpeed (= 38400) to /tmp/flasher.log
Setting baudrate for port 3 to 1000000
Error setting (bootloader) baudrate to iProgramSpeed (1000000) (2)
Logging Error setting (bootloader) baudrate to iProgramSpeed (= 1000000) to /tmp/flasher.log
Error setting (bootloader) baudrate to iProgramSpeed (1000000) (1)
Logging Error setting (bootloader) baudrate to iProgramSpeed (= 1000000) to /tmp/flasher.log
Error setting (bootloader) baudrate to iProgramSpeed (1000000) (0)
Logging Error setting (bootloader) baudrate to iProgramSpeed (= 1000000) to /tmp/flasher.log

I have also played with another options to flash JS51XX and only the following gives another result (but it is also failed):

root@XiaomiGateway:~# jnprogrammer -v -s /dev/ttymxc1  -I 115200 -P 115200 -f ./zigate_JN5169_115200_31e.bin 
JennicModuleProgrammer Version: 0.11 (r1234)
Logging Serial port opened at iInitialSpeed (= 38400) to /tmp/flasher.log
Error reading module information - check cabling and power
Logging Error reading module information - check cabling and power to /tmp/flasher.log

I have also tried soft_reset and erase_pdm options of jntool and it does not help.

I am not sure if this issue related exactly to openlumi, but I really do not understand where the problem is. Please please advice.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.