IPQ4019: Adding support for TP-Link Deco M5

The same for me with US/1.0, using tomer's 22.03: everything working, orange light. Thanks @Tomer @oklona and guys! Next step: find the best way to replace the original Mesh connection for my 3 units. Any hints on that? Will 801.11s be supported?

@ricardok Glad that its working for, 802.11s is supported and working for me on 19.07 (havent upgraded my "production" decos to 22.03 yet).

@Rikbruggink Can you tell me which pcb you have in your deco? As I tried hooking uart to mine but it doesnt work, my pcb is green as opposed to the black one that appears in google (it also isnt even round).

Still having issues with sizing of the partitions for os-image 1. Will work on it some more this weekend.

mine is also green, similar to yours. the number near the uart pad is 2050501388 it is supposed to be a deco m5 v3. The pads where marked for me with the correct output: gnd, tx,rx.

Hmm that is odd, I also have rxd and txd marked, next to some pads (to the right of them if you hold the board so that the ethernet ports are pointing down) , I connected to them but don't get any input in serial monitor, I wonder if that is because of the bad firmware I flashed .

Oddly enough my uart suddenly is working (didnt change anything) and it seems to be loading the original TPLINK firmware as you said.

@Tomer I installed your release on my 3 US/1.0 and it is working very well! After some hours tweaking configuration, Mesh 802.11s and roaming 802.11r are doing even better than with the original firmware. I could install an mqtt server and use the pre-installed web-server in order to support my home automation. The only detail I could point out would be the persistant orange LED. Thank you again guys!

1 Like

@ricardok - yea I guess that the led is only working for v3 (one that I have)

@Rikbruggink - do you happen to know what is the default root password for the device? (when its using the tplink firmware)

@Tomer thank you for your GitHub, I compiled and installed successfully.

However I couldn't seem to get pppoe to work with my Huawei HG612 modem. Saying that, i struggled to get an internet connection when I was trouble shooting by plugging the wan port into my non openwrt deco Lan. So maybe I'm missing something in my setup?

Hello im new, I have Deco M5 V3 US and i want to install OpenWrt. Can someone give me a guide how to do it?

@Tomer I tried that one:

$ git clone https://github.com/TomerCo/openwrt.git
$ cd openwrt
$ git checkout openwrt-22.03
$ make makeconfig

Select Qualcomm Atheros IPQ40XX
And select the TP-Link Deco M5 v3.0
I didn't do these:

./scripts/feeds update -a 
./scripts/feeds install -a

But no luck so far.
Giving it another try.
That gave me a successful build. (factory.bin 7.4MB, sysupgrade.bin 7.5MB).

You need to use the 22_03 branch, that is the only one I applied the patches to.

1 Like

I had some tiome to test after the compile, this is the openwrt-ipq40xx-generic-tp-link_deco-m5-eu-v3.0-squashfs-factory.bin:

Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.1-00103
S - IMAGE_VARIANT_STRING=DAABANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x00000021
S - Core 0 Frequency, 0 MHz
B -       262 - PBL, Start
B -      1344 - bootable_media_detect_entry, Start
B -      1688 - bootable_media_detect_success, Start
B -      1702 - elf_loader_entry, Start
B -      5149 - auth_hash_seg_entry, Start
B -      7334 - auth_hash_seg_exit, Start
B -    591447 - elf_segs_hash_verify_entry, Start
B -    708941 - PBL, End
B -    708965 - SBL1, Start
B -    796331 - pm_device_init, Start
D -         6 - pm_device_init, Delta
B -    797880 - boot_flash_init, Start
D -     57540 - boot_flash_init, Delta
B -    859457 - boot_config_data_table_init, Start
D -      3836 - boot_config_data_table_init, Delta - (419 Bytes)
B -    866682 - clock_init, Start
D -      7557 - clock_init, Delta
B -    878639 - CDT version:2,Platform ID:8,Major ID:1,Minor ID:0,Subtype:1
B -    882128 - sbl1_ddr_set_params, Start
B -    887117 - cpr_init, Start
D -         2 - cpr_init, Delta
B -    891608 - Pre_DDR_clock_init, Start
D -         5 - Pre_DDR_clock_init, Delta
D -     13149 - sbl1_ddr_set_params, Delta
B -    904891 - pm_driver_init, Start
D -         2 - pm_driver_init, Delta
B -    975226 - sbl1_wait_for_ddr_training, Start
D -        29 - sbl1_wait_for_ddr_training, Delta
B -    990734 - Image Load, Start
D -    138425 - QSEE Image Loaded, Delta - (269176 Bytes)
B -   1129658 - Image Load, Start
D -      1436 - SEC Image Loaded, Delta - (2048 Bytes)
B -   1139943 - Image Load, Start
D -    220896 - APPSBL Image Loaded, Delta - (451967 Bytes)
B -   1361262 - QSEE Execution, Start
D -        60 - QSEE Execution, Delta
B -   1367419 - SBL1, End
D -    660640 - SBL1, Delta
S - Flash Throughput, 1999 KB/s  (723962 Bytes,  362089 us)
S - DDR Frequency, 672 MHz


U-Boot 2012.07 [Chaos Calmer 15.05.1,unknown] (Aug 19 2021 - 11:40:08)

smem ram ptable found: ver: 1 len: 3
DRAM:  256 MiB
machid : 0x8010001
NAND:  SF: Detected default with page size 64 KiB, total 32 MiB
ipq_spi: page_size: 0x100, sector_size: 0x10000, size: 0x2000000
32 MiB
SF: Detected default with page size 64 KiB, total 32 MiB
MAC is 00 00
MMC:   
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
machid: 8010001
flash_type: 0
Net:   MAC0 addr:0:3:7f:ba:db:ad
PHY ID1: 0x4d
PHY ID2: 0xd0b2
ipq40xx_ess_sw_init done
eth0
disable phy 3 val is 0x1840
disable phy 4 val is 0x1840
Enter magic string to stop autoboot in 1 seconds
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
enable phy 3 val is 0x1040
enable phy 4 val is 0x1040
eth0 PHY0 Down Speed :10 Half duplex
eth0 PHY1 Down Speed :10 Half duplex
eth0 PHY2 Down Speed :10 Half duplex
eth0 PHY3 Down Speed :10 Half duplex
eth0 PHY4 Down Speed :10 Half duplex
eth0 PHY0 Down Speed :10 Half duplex
eth0 PHY1 Down Speed :10 Half duplex
eth0 PHY2 Down Speed :10 Half duplex
eth0 PHY3 Down Speed :10 Half duplex
eth0 PHY4 up Speed :1000 Full duplex
Using eth0 device
TFTP from server 192.168.0.66; our IP address is 192.168.0.11
Filename 'M5v1_tp_recovery.bin'.
Load address: 0x84000000
Loading: *#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ######
done
Bytes transferred = 7713111 (75b157 hex)
SF: Detected default with page size 64 KiB, total 32 MiB
Reading Partition Table from NVRAM ... OK

Parsing Partition Table ... OK

[Error]sysmgr_proinfo_buildStruct():  587 @ unknown id(product_type), skip it.
[Error]sysmgr_proinfo_buildStruct():  587 @ unknown id(hw_id), skip it.
[Error]sysmgr_proinfo_buildStruct():  587 @ unknown id(oem_id), skip it.
[Error]sysmgr_proinfo_buildStruct():  587 @ unknown id(country), skip it.
[Error]sysmgr_proinfo_buildStruct():  587 @ unknown id(key), skip it.
[Error]sysmgr_cfg_checkSupportList():  928 @ 1.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 1.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 1.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 1.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 1.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 1.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 1.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 1.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 1.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 3.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 3.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 3.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 3.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 3.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 3.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 3.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 3.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 3.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 3.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  909 @ 55530000 NOT Match.

Firmwave supports, check OK.

Firmware checking passed
######################################################################

####################################################

Done.

Upgrade succeeded!!
resetting ...
Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.1-00103
S - IMAGE_VARIANT_STRING=DAABANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x00000021
S - Core 0 Frequency, 0 MHz
B -       262 - PBL, Start
B -      1344 - bootable_media_detect_entry, Start
B -      1688 - bootable_media_detect_success, Start
B -      1702 - elf_loader_entry, Start
B -      5149 - auth_hash_seg_entry, Start
B -      7334 - auth_hash_seg_exit, Start
B -    591447 - elf_segs_hash_verify_entry, Start
B -    708941 - PBL, End
B -    708965 - SBL1, Start
B -    796323 - pm_device_init, Start
D -         6 - pm_device_init, Delta
B -    797871 - boot_flash_init, Start
D -     57537 - boot_flash_init, Delta
B -    859446 - boot_config_data_table_init, Start
D -      3833 - boot_config_data_table_init, Delta - (419 Bytes)
B -    866668 - clock_init, Start
D -      7569 - clock_init, Delta
B -    878638 - CDT version:2,Platform ID:8,Major ID:1,Minor ID:0,Subtype:1
B -    882127 - sbl1_ddr_set_params, Start
B -    887115 - cpr_init, Start
D -         2 - cpr_init, Delta
B -    891606 - Pre_DDR_clock_init, Start
D -         5 - Pre_DDR_clock_init, Delta
D -     13148 - sbl1_ddr_set_params, Delta
B -    904888 - pm_driver_init, Start
D -         2 - pm_driver_init, Delta
B -    975204 - sbl1_wait_for_ddr_training, Start
D -        28 - sbl1_wait_for_ddr_training, Delta
B -    990712 - Image Load, Start
D -    138425 - QSEE Image Loaded, Delta - (269176 Bytes)
B -   1129634 - Image Load, Start
D -      1436 - SEC Image Loaded, Delta - (2048 Bytes)
B -   1139899 - Image Load, Start
D -    220920 - APPSBL Image Loaded, Delta - (451967 Bytes)
B -   1361242 - QSEE Execution, Start
D -        60 - QSEE Execution, Delta
B -   1367405 - SBL1, End
D -    660628 - SBL1, Delta
S - Flash Throughput, 1999 KB/s  (723962 Bytes,  362112 us)
S - DDR Frequency, 672 MHz


U-Boot 2012.07 [Chaos Calmer 15.05.1,unknown] (Aug 19 2021 - 11:40:08)

smem ram ptable found: ver: 1 len: 3
DRAM:  256 MiB
machid : 0x8010001
NAND:  SF: Detected default with page size 64 KiB, total 32 MiB
ipq_spi: page_size: 0x100, sector_size: 0x10000, size: 0x2000000
32 MiB
SF: Detected default with page size 64 KiB, total 32 MiB
MAC is 00 00
MMC:   
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
machid: 8010001
flash_type: 0
Net:   MAC0 addr:0:3:7f:ba:db:ad
PHY ID1: 0x4d
PHY ID2: 0xd0b2
ipq40xx_ess_sw_init done
eth0
disable phy 3 val is 0x1840
disable phy 4 val is 0x1840
Enter magic string to stop autoboot in 1 seconds
SF: Detected default with page size 64 KiB, total 32 MiB
## Booting kernel from FIT Image at 84000000 ...
   Using 'config@1' configuration
   Trying 'kernel-1' kernel subimage
     Description:  ARM OpenWrt Linux-5.10.149
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x840000e4
     Data Size:    4079027 Bytes = 3.9 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x80208000
     Entry Point:  0x80208000
     Hash algo:    crc32
     Hash value:   57794be8
     Hash algo:    sha1
     Hash value:   b9410917862b194733412052b3e62a34da7cb2b9
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Flattened Device Tree from FIT Image at 84000000
   Using 'config@1' configuration
   Trying 'fdt-1' FDT blob subimage
     Description:  ARM OpenWrt tp-link_deco-m5-eu-v3.0 device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x843e3fdc
     Data Size:    17815 Bytes = 17.4 KiB
     Architecture: ARM
     Hash algo:    crc32
     Hash value:   0ad78054
     Hash algo:    sha1
     Hash value:   769c32df7ac274655df483982393372619257fb5
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Booting using the fdt blob at 0x843e3fdc
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 862a8000, end 862af596 ... OK
ipq: fdt fixup unable to find compatible node
Device nand0 not found!
eth0 MAC Address from ART is not valid
eth1 MAC Address from ART is not valid
Using machid 0x8010001 from environment

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.149 (nielsnl@speedy) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 11.2.0 r19817-4909a6bb2f) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Mon Oct 24 18:18:44 2022
[    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 instruction cache
[    0.000000] OF: fdt: Machine model: TP-Link Deco M5 EU v3.0
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000080000000-0x000000008fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x0000000087dfffff]
[    0.000000]   node   0: [mem 0x0000000087e00000-0x0000000087ffffff]
[    0.000000]   node   0: [mem 0x0000000088000000-0x000000008fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000008fffffff]
[    0.000000] percpu: Embedded 15 pages/cpu s30860 r8192 d22388 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64960
[    0.000000] Kernel command line: root=mtd:1:rootfs rootfstype=squashfs rootwait root=/dev/mtdblock16
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 247180K/262144K available (6182K kernel code, 604K rwdata, 1552K rodata, 1024K init, 237K bss, 14964K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 48.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb11fd3bfb, max_idle_ns: 440795203732 ns
[    0.000010] sched_clock: 56 bits at 48MHz, resolution 20ns, wraps every 4398046511096ns
[    0.000026] Switching to timer-based delay loop, resolution 20ns
[    0.000325] Calibrating delay loop (skipped), value calculated using timer frequency.. 96.00 BogoMIPS (lpj=480000)
[    0.000350] pid_max: default: 32768 minimum: 301
[    0.000530] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000550] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001531] CPU: Testing write buffer coherency: ok
[    0.001882] qcom_scm: convention: smc legacy
[    0.002817] Setting up static identity map for 0x80300000 - 0x8030003c
[    0.002978] rcu: Hierarchical SRCU implementation.
[    0.003246] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.003604] smp: Bringing up secondary CPUs ...
[    0.007067] smp: Brought up 1 node, 4 CPUs
[    0.007091] SMP: Total of 4 processors activated (384.00 BogoMIPS).
[    0.007102] CPU: All CPU(s) started in SVC mode.
[    0.012255] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.012418] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.012447] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.012678] pinctrl core: initialized pinctrl subsystem
[    0.014467] NET: Registered protocol family 16
[    0.014837] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.015944] thermal_sys: Registered thermal governor 'step_wise'
[    0.016365] cpuidle: using governor ladder
[    0.016424] cpuidle: using governor menu
[    0.043078] cryptd: max_cpu_qlen set to 1000
[    0.047310] usbcore: registered new interface driver usbfs
[    0.047381] usbcore: registered new interface driver hub
[    0.047438] usbcore: registered new device driver usb
[    0.047489] pps_core: LinuxPPS API ver. 1 registered
[    0.047502] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.047530] PTP clock support registered
[    0.049246] clocksource: Switched to clocksource arch_sys_counter
[    0.050206] NET: Registered protocol family 2
[    0.050458] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.051152] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.051214] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.051256] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.051306] TCP: Hash tables configured (established 2048 bind 2048)
[    0.051431] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.051471] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.051741] NET: Registered protocol family 1
[    0.051789] PCI: CLS 0 bytes, default 64
[    0.054021] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.058328] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.058355] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.194637] bam-dma-engine 8e04000.dma: num-channels unspecified in dt
[    0.194664] bam-dma-engine 8e04000.dma: num-ees unspecified in dt
[    0.195342] tcsr 194b000.tcsr: setting usb hs phy mode select = e700e7
[    0.195446] tcsr 1953000.ess_tcsr: setting ess interface select = 0
[    0.195535] tcsr 1949000.tcsr: setting wifi_glb_cfg = 41000000
[    0.195632] tcsr 1957000.tcsr: setting wifi_noc_memtype_m0_m2 = 2222222
[    0.195952] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.196527] msm_serial 78af000.serial: msm_serial: detected port #0
[    0.196572] msm_serial 78af000.serial: uartclk = 1843200
[    0.196625] 78af000.serial: ttyMSM0 at MMIO 0x78af000 (irq = 34, base_baud = 115200) is a MSM
[    0.196654] msm_serial: console setup on port #0
[    0.736264] printk: console [ttyMSM0] enabled
[    0.741479] msm_serial 78b0000.serial: msm_serial: detected port #1
[    0.745208] msm_serial 78b0000.serial: uartclk = 1843200
[    0.751339] 78b0000.serial: ttyMSM1 at MMIO 0x78b0000 (irq = 35, base_baud = 115200) is a MSM
[    0.757268] msm_serial: driver initialized
[    0.770919] loop: module loaded
[    0.771928] spi_qup 78b5000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[    0.773992] ------------[ cut here ]------------
[    0.780236] WARNING: CPU: 2 PID: 1 at drivers/mtd/spi-nor/core.c:2996 spi_nor_init+0x16c/0x170
[    0.784768] enabling reset hack; may not recover from unexpected reboots
[    0.793202] Modules linked in:
[    0.800060] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 5.10.149 #0
[    0.802908] Hardware name: Generic DT based system
[    0.809090] [<c030cd78>] (unwind_backtrace) from [<c0309978>] (show_stack+0x10/0x14)
[    0.813773] [<c0309978>] (show_stack) from [<c05fd20c>] (dump_stack+0x94/0xa8)
[    0.821672] [<c05fd20c>] (dump_stack) from [<c0320b40>] (__warn+0xb8/0x114)
[    0.828702] [<c0320b40>] (__warn) from [<c0320c04>] (warn_slowpath_fmt+0x68/0x78)
[    0.835562] [<c0320c04>] (warn_slowpath_fmt) from [<c06dab70>] (spi_nor_init+0x16c/0x170)
[    0.843200] [<c06dab70>] (spi_nor_init) from [<c06db1c0>] (spi_nor_scan+0x620/0x9b8)
[    0.851357] [<c06db1c0>] (spi_nor_scan) from [<c06db5e4>] (spi_nor_probe+0x8c/0x294)
[    0.859170] [<c06db5e4>] (spi_nor_probe) from [<c06939e4>] (really_probe+0xfc/0x4bc)
[    0.866896] [<c06939e4>] (really_probe) from [<c0691ca4>] (bus_for_each_drv+0x74/0x98)
[    0.874620] [<c0691ca4>] (bus_for_each_drv) from [<c0693f80>] (__device_attach+0xf4/0x180)
[    0.882346] [<c0693f80>] (__device_attach) from [<c0692c2c>] (bus_probe_device+0x84/0x8c)
[    0.890597] [<c0692c2c>] (bus_probe_device) from [<c068f220>] (device_add+0x300/0x77c)
[    0.898846] [<c068f220>] (device_add) from [<c06f43a4>] (spi_add_device+0xa0/0x168)
[    0.906656] [<c06f43a4>] (spi_add_device) from [<c06f4e98>] (spi_register_controller+0x928/0xb94)
[    0.914208] [<c06f4e98>] (spi_register_controller) from [<c06f5138>] (devm_spi_register_controller+0x34/0x6c)
[    0.923237] [<c06f5138>] (devm_spi_register_controller) from [<c06f91e4>] (spi_qup_probe+0x568/0x5a4)
[    0.933134] [<c06f91e4>] (spi_qup_probe) from [<c06957e8>] (platform_drv_probe+0x34/0x70)
[    0.942330] [<c06957e8>] (platform_drv_probe) from [<c06939e4>] (really_probe+0xfc/0x4bc)
[    0.950490] [<c06939e4>] (really_probe) from [<c0694408>] (device_driver_attach+0xe4/0xf4)
[    0.958648] [<c0694408>] (device_driver_attach) from [<c0694470>] (__driver_attach+0x58/0x110)
[    0.966808] [<c0694470>] (__driver_attach) from [<c0691c04>] (bus_for_each_dev+0x64/0x90)
[    0.975401] [<c0691c04>] (bus_for_each_dev) from [<c0692e28>] (bus_add_driver+0xfc/0x1ec)
[    0.983647] [<c0692e28>] (bus_add_driver) from [<c0694aa0>] (driver_register+0x88/0x118)
[    0.991810] [<c0694aa0>] (driver_register) from [<c0301860>] (do_one_initcall+0x54/0x1e8)
[    0.999972] [<c0301860>] (do_one_initcall) from [<c0b01270>] (kernel_init_freeable+0x23c/0x290)
[    1.008046] [<c0b01270>] (kernel_init_freeable) from [<c0903f18>] (kernel_init+0x8/0x118)
[    1.016549] [<c0903f18>] (kernel_init) from [<c0300128>] (ret_from_fork+0x14/0x2c)
[    1.024874] Exception stack(0xc102bfb0 to 0xc102bff8)
[    1.032339] bfa0:                                     00000000 00000000 00000000 00000000
[    1.037466] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.045624] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    1.053871] ---[ end trace 90ff5ed36918b60f ]---
[    1.060334] spi-nor spi0.0: en25qh256 (32768 Kbytes)
[    1.065139] 15 fixed-partitions partitions found on MTD device spi0.0
[    1.070091] OF: Bad cell count for /soc/spi@78b5000/m25p80@0/partitions
[    1.076374] OF: Bad cell count for /soc/spi@78b5000/m25p80@0/partitions
[    1.083033] Creating 15 MTD partitions on "spi0.0":
[    1.089400] 0x000000000000-0x000000030000 : "0:SBL1"
[    1.094780] 0x000000030000-0x000000040000 : "0:BOOTCONFIG"
[    1.099959] 0x000000040000-0x000000050000 : "0:MIBIB"
[    1.105195] 0x000000050000-0x000000060000 : "0:BOOTCONFIG1"
[    1.110379] 0x000000060000-0x0000000c0000 : "0:QSEE"
[    1.115743] 0x0000000c0000-0x0000000d0000 : "0:CDT"
[    1.120967] 0x0000000d0000-0x0000000e0000 : "0:DDRPARAMS"
[    1.125538] 0x0000000e0000-0x0000000f0000 : "0:APPSBLENV"
[    1.131397] 0x0000000f0000-0x000000170000 : "0:APPSBL"
[    1.136615] 0x000000170000-0x000000180000 : "0:ART"
[    1.141547] 0x000000180000-0x000000240000 : "OPAQUE"
[    1.146300] 0x000000240000-0x000000540000 : "0:HLOS"
[    1.151532] 0x000000540000-0x000000d10000 : "0:rootfs"
[    1.156426] 0x000000d10000-0x000000d90000 : "0:APPSBL_1"
[    1.161447] 0x000000d90000-0x000002000000 : "firmware"
[    1.206985] no rootfs found after FIT image in "firmware"
[    1.245892] ESS reset ok!
[    1.320113] ESS reset ok!
[    1.996847] EDMA using MAC@ - using
[    1.996862] 72:e5:fd:76:48:60
[    2.000055] EDMA using MAC@ - using
[    2.000068] 9e:7a:ad:a2:8a:47
[    2.132972] i2c /dev entries driver
[    2.133229] i2c_qup 78b7000.i2c: using default clock-frequency 100000
[    2.137809] sdhci: Secure Digital Host Controller Interface driver
[    2.141970] sdhci: Copyright(c) Pierre Ossman
[    2.147945] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.155788] NET: Registered protocol family 10
[    2.159871] Segment Routing with IPv6
[    2.162443] NET: Registered protocol family 17
[    2.166147] 8021q: 802.1Q VLAN Support v1.8
[    2.170599] Registering SWP/SWPB emulation handler
[    2.190767] Waiting for root device /dev/mtdblock16...
[  312.809970] random: crng init done

I don't see any obvious errors, but also not a booting device...
Also, here's a picture of my EU 3.20 PCB, slightly different revision. [Top left: 2140]

Mark, since we don't know how experienced you are with OpenWRT, it is hard to advise you. I will tell you what I did: I didn't want to set up a local building environment, so I used gitpod. I followed the steps suggested by @yugami on post #136 above, and updated them to work with the recent @Tomer release (you can follow @nielsnl-nielsnl-nl advice in post #210). With that I could generate factory.bin. Uploaded to the M5 using @yugami advice, and that's it!

As someone less experienced, I had a hard time configuring my Decos, and although they are all working now, I still think they are not as stable as they were with the original firmware. I have mixed-feelings for the whole process: while I am a little bit regretfull of investing so much time to get a sub-optimal solution, I am also proud that I could work out the required steps to compile, install and configure the devices. I am also happy with the new features I could unlock with it (http server, MQTT server, multiple VLANs, etc).

@nielsnl-nielsnl-nl Not sure why it doesnt boot for you, could be related to different board revision in which the partition layout changed but in any case can't really help out there.

@ricardok What makes them less stable for you? I have been running openwrt over my decos for the past year and other than having to restart them once every 20 days or so they seem to be stable, that said it has been on version 19.07 and they are acting as access points only.

What would be needed to fix it?
If you know the partition layout, then we could give it another try?
I could try a flash with original firmware, and grab that log...

Probably update to the dts file and possibly to the safe-loader , flashing the original firmware and comparing the log to the borken one would be a good first step to try and fix the issue

Tomer, thanks for the interest. I am no expert in networking, I could be missing something basic.

  • 802.11r fast roaming seems to work better than in the original firmware. When I moved between rooms, I had to turn off and on the wifi, and now it is not necessary anymore.
  • On the other hand, 802.11s mesh seems to have some trouble sometimes. I tested wireless connection with speedtest.net at the office (main spot) and it was 200Mbps, went to the bedroom and measured 20Mbps. Back to the office, the same test measured 50Mbps, 100Mbps, 180Mbps and finally 200Mbps (it took ~5 min to stabilize).
  • Sometimes it seems to be some trouble with DNS on the smartphones and Netflix doesn't load in the smartvs. Not all the time, though.
  • By reading forums, I found that using SQM could help. But since firmware is a snapshot, I couldn't test: luci-app-sqm does not install (it says "The installed version of package kernel is not compatible")
  • Just curious: why do you have to restart them every 20 days or so?

That sounds to me like channel problem, try changing the channel you are using (you can see channel congestions with wifianalyzer app / or a bunch of others on android and I can guess that on iphone as well).

You can install whatever package you want if you compile it in your own build (ie select it during make menuconfig then transfer it alont with its dependencies to your device and use opkg to install it).

My iot devices drop off and are not able to connect to the wifi eventhough other devices are able to connect without any problem , I think its related to the firmware version of the ath10k, currently trying a different firmware that also seem to solve a problem I had with dynamic vlans.

Successful flash and boot of original firmware:


Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.1-00103
S - IMAGE_VARIANT_STRING=DAABANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x00000021
S - Core 0 Frequency, 0 MHz
B -       262 - PBL, Start
B -      1344 - bootable_media_detect_entry, Start
B -      1688 - bootable_media_detect_success, Start
B -      1702 - elf_loader_entry, Start
B -      5149 - auth_hash_seg_entry, Start
B -      7334 - auth_hash_seg_exit, Start
B -    591447 - elf_segs_hash_verify_entry, Start
B -    708941 - PBL, End
B -    708965 - SBL1, Start
B -    796331 - pm_device_init, Start
D -         6 - pm_device_init, Delta
B -    797880 - boot_flash_init, Start
D -     57540 - boot_flash_init, Delta
B -    859457 - boot_config_data_table_init, Start
D -      3836 - boot_config_data_table_init, Delta - (419 Bytes)
B -    866682 - clock_init, Start
D -      7572 - clock_init, Delta
B -    878654 - CDT version:2,Platform ID:8,Major ID:1,Minor ID:0,Subtype:1
B -    882142 - sbl1_ddr_set_params, Start
B -    887130 - cpr_init, Start
D -         2 - cpr_init, Delta
B -    891620 - Pre_DDR_clock_init, Start
D -         5 - Pre_DDR_clock_init, Delta
D -     13147 - sbl1_ddr_set_params, Delta
B -    904901 - pm_driver_init, Start
D -         2 - pm_driver_init, Delta
B -    975105 - sbl1_wait_for_ddr_training, Start
D -        28 - sbl1_wait_for_ddr_training, Delta
B -    990832 - Image Load, Start
D -    138427 - QSEE Image Loaded, Delta - (269176 Bytes)
B -   1129759 - Image Load, Start
D -      1435 - SEC Image Loaded, Delta - (2048 Bytes)
B -   1140043 - Image Load, Start
D -    220910 - APPSBL Image Loaded, Delta - (451967 Bytes)
B -   1361376 - QSEE Execution, Start
D -        60 - QSEE Execution, Delta
B -   1367546 - SBL1, End
D -    660661 - SBL1, Delta
S - Flash Throughput, 1999 KB/s  (723962 Bytes,  362108 us)
S - DDR Frequency, 672 MHz


U-Boot 2012.07 [Chaos Calmer 15.05.1,unknown] (Aug 19 2021 - 11:40:08)

smem ram ptable found: ver: 1 len: 3
DRAM:  256 MiB
machid : 0x8010001
NAND:  SF: Detected default with page size 64 KiB, total 32 MiB
ipq_spi: page_size: 0x100, sector_size: 0x10000, size: 0x2000000
32 MiB
SF: Detected default with page size 64 KiB, total 32 MiB
MAC is 00 00
MMC:   
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
machid: 8010001
flash_type: 0
Net:   MAC0 addr:0:3:7f:ba:db:ad
PHY ID1: 0x4d
PHY ID2: 0xd0b2
ipq40xx_ess_sw_init done
eth0
disable phy 3 val is 0x1840
disable phy 4 val is 0x1840
Enter magic string to stop autoboot in 1 seconds
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
Error writing the chip.
enable phy 3 val is 0x1040
enable phy 4 val is 0x1040
eth0 PHY0 Down Speed :10 Half duplex
eth0 PHY1 Down Speed :10 Half duplex
eth0 PHY2 Down Speed :10 Half duplex
eth0 PHY3 Down Speed :10 Half duplex
eth0 PHY4 Down Speed :10 Half duplex
eth0 PHY0 Down Speed :10 Half duplex
eth0 PHY1 Down Speed :10 Half duplex
eth0 PHY2 Down Speed :10 Half duplex
eth0 PHY3 Down Speed :10 Half duplex
eth0 PHY4 up Speed :1000 Full duplex
Using eth0 device
TFTP from server 192.168.0.66; our IP address is 192.168.0.11
Filename 'M5v1_tp_recovery.bin'.
Load address: 0x84000000
Loading: *#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ############################
done
Bytes transferred = 15666974 (ef0f1e hex)
SF: Detected default with page size 64 KiB, total 32 MiB
Reading Partition Table from NVRAM ... OK

Parsing Partition Table ... OK

[Error]sysmgr_proinfo_buildStruct():  587 @ unknown id(product_type), skip it.
[Error]sysmgr_proinfo_buildStruct():  587 @ unknown id(hw_id), skip it.
[Error]sysmgr_proinfo_buildStruct():  587 @ unknown id(oem_id), skip it.
[Error]sysmgr_proinfo_buildStruct():  587 @ unknown id(country), skip it.
[Error]sysmgr_proinfo_buildStruct():  587 @ unknown id(key), skip it.
[Error]sysmgr_cfg_checkSupportList():  928 @ 1.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 1.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 1.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 1.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 1.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 1.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 1.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 1.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 1.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 3.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 3.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 3.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 3.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 3.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 3.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 3.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 3.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 3.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  928 @ 3.0.0 NOT Match.

[Error]sysmgr_cfg_checkSupportList():  909 @ 55530000 NOT Match.

Firmwave supports, check OK.

Firmware checking passed
######################################################################

######################################################################

######################################################################

###################################

Done.

Upgrade succeeded!!
resetting ...
Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.1-00103
S - IMAGE_VARIANT_STRING=DAABANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x00000021
S - Core 0 Frequency, 0 MHz
B -       262 - PBL, Start
B -      1344 - bootable_media_detect_entry, Start
B -      1688 - bootable_media_detect_success, Start
B -      1702 - elf_loader_entry, Start
B -      5149 - auth_hash_seg_entry, Start
B -      7334 - auth_hash_seg_exit, Start
B -    591447 - elf_segs_hash_verify_entry, Start
B -    708941 - PBL, End
B -    708965 - SBL1, Start
B -    796323 - pm_device_init, Start
D -         6 - pm_device_init, Delta
B -    797871 - boot_flash_init, Start
D -     57537 - boot_flash_init, Delta
B -    859446 - boot_config_data_table_init, Start
D -      3833 - boot_config_data_table_init, Delta - (419 Bytes)
B -    866668 - clock_init, Start
D -      7573 - clock_init, Delta
B -    878643 - CDT version:2,Platform ID:8,Major ID:1,Minor ID:0,Subtype:1
B -    882131 - sbl1_ddr_set_params, Start
B -    887119 - cpr_init, Start
D -         2 - cpr_init, Delta
B -    891610 - Pre_DDR_clock_init, Start
D -         5 - Pre_DDR_clock_init, Delta
D -     13148 - sbl1_ddr_set_params, Delta
B -    904892 - pm_driver_init, Start
D -         2 - pm_driver_init, Delta
B -    975230 - sbl1_wait_for_ddr_training, Start
D -        28 - sbl1_wait_for_ddr_training, Delta
B -    990740 - Image Load, Start
D -    138398 - QSEE Image Loaded, Delta - (269176 Bytes)
B -   1129635 - Image Load, Start
D -      1434 - SEC Image Loaded, Delta - (2048 Bytes)
B -   1139892 - Image Load, Start
D -    220858 - APPSBL Image Loaded, Delta - (451967 Bytes)
B -   1361174 - QSEE Execution, Start
D -        60 - QSEE Execution, Delta
B -   1367344 - SBL1, End
D -    660459 - SBL1, Delta
S - Flash Throughput, 1999 KB/s  (723962 Bytes,  362019 us)
S - DDR Frequency, 672 MHz


U-Boot 2012.07 [Chaos Calmer 15.05.1,unknown] (Aug 19 2021 - 11:40:08)

smem ram ptable found: ver: 1 len: 3
DRAM:  256 MiB
machid : 0x8010001
NAND:  SF: Detected default with page size 64 KiB, total 32 MiB
ipq_spi: page_size: 0x100, sector_size: 0x10000, size: 0x2000000
32 MiB
SF: Detected default with page size 64 KiB, total 32 MiB
MAC is 00 00
MMC:   
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
machid: 8010001
flash_type: 0
Net:   MAC0 addr:0:3:7f:ba:db:ad
PHY ID1: 0x4d
PHY ID2: 0xd0b2
ipq40xx_ess_sw_init done
eth0
disable phy 3 val is 0x1840
disable phy 4 val is 0x1840
Enter magic string to stop autoboot in 1 seconds
SF: Detected default with page size 64 KiB, total 32 MiB
## Booting kernel from FIT Image at 84000000 ...
   Using 'config@ap.dk04.1-c1' configuration
   Trying 'kernel@1' kernel subimage
     Description:  ARM OpenWrt Linux-3.14.43
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x840000e4
     Data Size:    2608837 Bytes = 2.5 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x80208000
     Entry Point:  0x80208000
     Hash algo:    crc32
     Hash value:   869903a5
     Hash algo:    sha1
     Hash value:   41fe3204fbf2a5502b24974d187b468ca66276db
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Flattened Device Tree from FIT Image at 84000000
   Using 'config@ap.dk04.1-c1' configuration
   Trying 'fdt@ap.dk04.1-c1' FDT blob subimage
     Description:  ARM OpenWrt qcom-ipq40xx-ap.dkxx device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x842a037c
     Data Size:    37503 Bytes = 36.6 KiB
     Architecture: ARM
     Hash algo:    crc32
     Hash value:   e29abb58
     Hash algo:    sha1
     Hash value:   8c60177f580346697789237f6f21a29b22a6b737
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Booting using the fdt blob at 0x842a037c
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 862a3000, end 862af27e ... OK
Device nand0 not found!
eth0 MAC Address from ART is not valid
eth1 MAC Address from ART is not valid
Using machid 0x8010001 from environment

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.14.43 (tplink@tplink-H81M-S2PV) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 unknown) ) #82 SMP PREEMPT Wed May 25 13:23:56 HKT 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Qualcomm Technologies, Inc. IPQ40xx/AP-DK04.1-C1
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] PERCPU: Embedded 7 pages/cpu @cfdc8000 s7744 r8192 d12736 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64512
[    0.000000] Kernel command line: root=mtd:1:rootfs rootfstype=squashfs rootwait clk_ignore_unused
[    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: 251720K/260096K available (3560K kernel code, 346K rwdata, 1248K rodata, 159K init, 536K bss, 8376K reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0208000 - 0xc06ba2b8   (4809 kB)
[    0.000000]       .init : 0xc06bb000 - 0xc06e2e40   ( 160 kB)
[    0.000000]       .data : 0xc06e4000 - 0xc073aabc   ( 347 kB)
[    0.000000]        .bss : 0xc073aabc - 0xc07c0d14   ( 537 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] Architected cp15 timer(s) running at 48.00MHz (virt).
[    0.000008] sched_clock: 56 bits at 48MHz, resolution 20ns, wraps every 2863311552512ns
[    0.000018] Switching to timer-based delay loop
[    0.000256] Calibrating delay loop (skipped), value calculated using timer frequency.. 96.00 BogoMIPS (lpj=480000)
[    0.000273] pid_max: default: 32768 minimum: 301
[    0.000525] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000540] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.011926] CPU: Testing write buffer coherency: ok
[    0.012264] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.012333] Setting up static identity map for 0x802130b8 - 0x80213110
[    0.090601] CPU1: Booted secondary processor
[    0.090647] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.110601] CPU2: Booted secondary processor
[    0.110637] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.130620] CPU3: Booted secondary processor
[    0.130654] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.130787] Brought up 4 CPUs
[    0.130831] SMP: Total of 4 processors activated (384.00 BogoMIPS).
[    0.130839] CPU: All CPU(s) started in SVC mode.
[    0.140953] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.141340] pinctrl core: initialized pinctrl subsystem
[    0.141760] regulator-dummy: no parameters
[    0.142415] NET: Registered protocol family 16
[    0.143907] DMA: preallocated 2048 KiB pool for atomic coherent allocations
[    0.144449] cpuidle: using governor ladder
[    0.144462] cpuidle: using governor menu
[    0.154375] 
[    0.154375] Version Rollback Feature Disabled
[    0.157719] i2c-msm-v2 78b7000.i2c: probing driver i2c-msm-v2
[    0.159126] sps:sps is ready.
[    0.162743] bio: create slab <bio-0> at 0
[    0.164503] SD0 VccQ: 1800 <--> 3000 mV 
[    0.164983] SCSI subsystem initialized
[    0.165324] msm_bus_fabric_init_driver
[    0.165485] msm_bus_device 580000.ad-hoc-bus: Util-fact is missing, default to 100
[    0.165503] msm_bus_device 580000.ad-hoc-bus: Vrail-comp is missing, default to 100
[    0.165523] msm_bus_device 580000.ad-hoc-bus: Failed to get bus clk for bus4096 ctx1
[    0.165566] msm_bus_device 580000.ad-hoc-bus: Util-fact is missing, default to 100
[    0.165582] msm_bus_device 580000.ad-hoc-bus: Vrail-comp is missing, default to 100
[    0.165598] msm_bus_device 580000.ad-hoc-bus: Failed to get bus clk for bus1024 ctx1
[    0.191994] 80000.qcom,pcie supply vreg-3.3 not found, using dummy regulator
[    0.192102] 80000.qcom,pcie supply vreg-1.8 not found, using dummy regulator
[    0.192161] 80000.qcom,pcie supply vreg-0.9 not found, using dummy regulator
[    0.192220] 80000.qcom,pcie supply gdsc-vdd not found, using dummy regulator
[    0.290492] msm_pcie_enable: msm_pcie_enable: PCIe: trigger the reset of endpoint of RC0.
[    0.300442] msm_pcie_enable: msm_pcie_enable: PCIe RC0 PHY is ready!
[    0.320442] msm_pcie_enable: msm_pcie_enable: PCIe: Release the reset of endpoint of RC0.
[    0.460573] msm_pcie_enable: msm_pcie_enable: RC0:No. 1:LTSSM_STATE:0x0
[    0.500623] msm_pcie_enable: msm_pcie_enable: RC0:No. 2:LTSSM_STATE:0x0
[    0.540672] msm_pcie_enable: msm_pcie_enable: RC0:No. 3:LTSSM_STATE:0x0
[    0.580722] msm_pcie_enable: msm_pcie_enable: RC0:No. 4:LTSSM_STATE:0x0
[    0.620771] msm_pcie_enable: msm_pcie_enable: RC0:No. 5:LTSSM_STATE:0x0
[    0.660819] msm_pcie_enable: msm_pcie_enable: PCIe: trigger the reset of endpoint of RC0.
[    0.660833] msm_pcie_enable: msm_pcie_enable: PCIe RC0 link initialization failed
[    0.660862] msm_pcie_enumerate: msm_pcie_enumerate: PCIe: failed to enable RC0.
[    0.660874] msm_pcie_probe: msm_pcie_probe: PCIe: RC0 is not enabled during bootup; it will be enumerated upon WAKE signal.
[    0.660884] msm_pcie_probe: msm_pcie_probe: PCIe: Driver probe failed for RC0:-1
[    0.661306] msm_pcie: probe of 80000.qcom,pcie failed with error -1
[    0.661511] Switched to clocksource arch_sys_counter
[    0.663265] NET: Registered protocol family 2
[    0.664466] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.664517] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    0.664567] TCP: Hash tables configured (established 2048 bind 2048)
[    0.664622] TCP: reno registered
[    0.664639] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.664670] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.665035] NET: Registered protocol family 1
[    0.666497] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.673879] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.673911] msgmni has been set to 491
[    0.675146] Key type asymmetric registered
[    0.675163] Asymmetric key parser 'x509' registered
[    0.675199] io scheduler noop registered
[    0.675210] io scheduler deadline registered (default)
[    0.676432] tcsr 194b000.tcsr: setting usb hs phy mode select = e700e7
[    0.676498] tcsr 1953000.ess_tcsr: setting ess interface select = 0
[    0.676570] tcsr 1949000.tcsr: setting wifi_glb_cfg = 41000000
[    0.676629] tcsr 1957000.tcsr: setting wifi_noc_memtype_m0_m2 = 2222222
[    0.677341] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.678383] msm_serial_hsl_probe: detected port #0 (ttyMSM0)
[    0.678421] msm_serial_hsl_probe: Bus scaling is disabled
[    0.678593] 78af000.serial: ttyMSM0 at MMIO 0x78af000 (irq = 139, base_baud = 115200) is a MSM
[    0.678666] msm_hsl_console_setup: console setup on port #0
[    1.345814] console [ttyMSM0] enabled
[    1.349895] msm_serial_hsl_init: driver initialized
[    1.354990] BLSP UART: Bus scaling is disabled.
[    1.358822] unregister_client_adhoc: Null cl handle passed unregister
[    1.365327] msm_serial_hs: probe of 78b0000.uart failed with error -2
[    1.371738] msm_serial_hs module loaded
[    1.375994] uart_tx_gpio is not available
[    1.379485] uart_rx_gpio is not available
[    1.383520] uart_cts_gpio is not available
[    1.387559] uart_rfr_gpio is not available
[    1.391660] Wakeup irq not specified.
[    1.395288] BLSP UART: Bus scaling is disabled.
[    1.399996] sps: BAM device 0x07884000 is not registered yet.
[    1.405555] sps:BAM 0x07884000 is registered.
[    1.410014] 78b0000.uart: ttyQHS0 at MMIO 0x78b0000 (irq = 140, base_baud = 460800) is a MSM HS UART
[    1.419363] qca_serial_hs module loaded
[    1.424557] flash_chrdev : flash_chrdev_init 
[    1.427878] flash_chrdev : flash_chrdev_init 
[    1.433804] sps:BAM 0x07884000 (va:0xd0b40000) enabled: ver:0x19, number of pipes:12
[    1.440760] m25p80 spi0.0: found en25qh256, expected n25q128a11
[    1.446810] m25p80 spi0.0: en25qh256 (32768 Kbytes)
[    1.451347] 16 ofpart partitions found on MTD device spi0.0
[    1.456856] Creating 16 MTD partitions on "spi0.0":
[    1.461716] 0x000000000000-0x000000030000 : "0:SBL1"
[    1.467865] 0x000000030000-0x000000040000 : "0:BOOTCONFIG"
[    1.473464] 0x000000040000-0x000000050000 : "0:MIBIB"
[    1.478473] 0x000000050000-0x000000060000 : "0:BOOTCONFIG1"
[    1.484088] 0x000000060000-0x0000000c0000 : "0:QSEE"
[    1.489027] 0x0000000c0000-0x0000000d0000 : "0:CDT"
[    1.493960] 0x0000000d0000-0x0000000e0000 : "0:DDRPARAMS"
[    1.499410] 0x0000000e0000-0x0000000f0000 : "0:APPSBLENV"
[    1.504860] 0x0000000f0000-0x000000170000 : "0:APPSBL"
[    1.510032] 0x000000170000-0x000000180000 : "0:ART"
[    1.514995] 0x000000180000-0x000000240000 : "OPAQUE"
[    1.519980] 0x000000240000-0x000000540000 : "0:HLOS"
[    1.524831] 0x000000540000-0x000000d10000 : "0:rootfs"
[    1.529893] 0x000000d10000-0x000000d90000 : "0:APPSBL_1"
[    1.535282] 0x000000d90000-0x000001190000 : "1:HLOS"
[    1.540174] 0x000001190000-0x000002000000 : "1:rootfs"
[    1.546427] libphy: ipq40xx_mdio: probed
[    1.552926] ipq40xx-mdio 90000.mdio: ipq40xx-mdio driver was registered
[    1.558568] i2c /dev entries driver
[    1.562986] requesting memory region failed
[    1.950529] i2c-msm-v2 78b7000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv_addr:0x32 MSTR_STS:0x011383c8 OPER:0x00000090
[    1.985346] i2c-msm-v2 78b7000.i2c: BUS ERROR:noisy bus/unexpected start/stop tag: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv_addr:0x32 MSTR_STS:0x001121c4 OPER:0x00000080
[    2.023347] i2c-msm-v2 78b7000.i2c: error timeout on polling for valid state. check core_clk
[    2.030767] lp5521 0-0032: device detection err: -5
[    2.035646] lp5521: probe of 0-0032 failed with error -5
[    2.042221] TCP: cubic registered
[    2.045189] NET: Registered protocol family 10
[    2.050921] NET: Registered protocol family 17
[    2.054484] Bridge firewalling registered
[    2.058334] 8021q: 802.1Q VLAN Support v1.8
[    2.062602] Registering SWP/SWPB emulation handler
[    2.067850] SD0 VccQ: disabling
[    2.070394] regulator-dummy: disabling
[    2.075228] input: gpio_keys.7 as /devices/soc.0/gpio_keys.7/input/input0
[    2.081219] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    2.090494] clk: Not disabling unused clocks
[    2.103173] VFS: Mounted root (squashfs filesystem) readonly on device 31:15.
[    2.109520] Freeing unused kernel memory: 156K (c06bb000 - c06e2000)
[    3.721284] init: Console is alive
[    3.723986] init: - watchdog -
[    3.867790] random: nonblocking pool is initialized
[    6.991687] usbcore: registered new interface driver usbfs
[    6.996220] usbcore: registered new interface driver hub
[    7.001671] usbcore: registered new device driver usb
[    7.007208] Button Hotplug driver version 0.4.1
[    7.704768] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    7.709258] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    7.717177] xhci-hcd xhci-hcd.0.auto: irq 164, io mem 0x08a00000
[    7.723820] hub 1-0:1.0: USB hub found
[    7.726627] hub 1-0:1.0: 1 port detected
[    7.730968] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    7.736011] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    7.744538] hub 2-0:1.0: USB hub found
[    7.747372] hub 2-0:1.0: 1 port detected
[    7.751804] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    7.756732] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[    7.764620] xhci-hcd xhci-hcd.1.auto: irq 168, io mem 0x06000000
[    7.771224] hub 3-0:1.0: USB hub found
[    7.774146] hub 3-0:1.0: 1 port detected
[    7.778446] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    7.783485] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[    7.791958] hub 4-0:1.0: USB hub found
[    7.794852] hub 4-0:1.0: config failed, hub doesn't have any ports! (err -19)
[    8.727917] 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
Before mount_root
mounting /dev/root
cp: can't stat '/tmp/log_export_tmp/*': No such file or directory
After mount_root
377+0 records in
377+0 records out
377+0 records in
377+0 records out
[   13.482409] procd: - early -
[   13.484401] procd: - watchdog -
[   14.248924] procd: - ubus -
[   15.265046] procd: - init -
Please press Enter to activate this console.
[   15.535619] QCE50: __qce_init_clk: Unable to get CE core src clk, set to NULL
[   15.541890] qcrypto 8e20000.qcrypto: Qualcomm Crypto 5.3.1 device found @0x8e20000
[   15.549288] qcrypto 8e20000.qcrypto: CE device = 0x0
[   15.549288] , IO base, CE = 0xd1140000
[   15.549288] , Consumer (IN) PIPE 2,    Producer (OUT) PIPE 3
[   15.549288] IO base BAM = 0x  (null)
[   15.549288] BAM IRQ 239
[   15.549288] Engines Availability = 0x2010453
[   15.573923] sps:BAM 0x08e04000 is registered.
[   15.578942] sps:BAM 0x08e04000 (va:0xd1180000) enabled: ver:0x27, number of pipes:4
[   15.586803] QCE50: qce_sps_init:  Qualcomm MSM CE-BAM at 0x0000000008e04000 irq 239
[   15.593786] bus_scale_table is NULL
[   15.597091] qcrypto 8e20000.qcrypto: qcrypto-ecb-aes
[   15.602014] qcrypto 8e20000.qcrypto: qcrypto-cbc-aes
[   15.606933] qcrypto 8e20000.qcrypto: qcrypto-ctr-aes
[   15.611902] qcrypto 8e20000.qcrypto: qcrypto-ecb-des
[   15.616826] qcrypto 8e20000.qcrypto: qcrypto-cbc-des
[   15.621801] qcrypto 8e20000.qcrypto: qcrypto-ecb-3des
[   15.626812] qcrypto 8e20000.qcrypto: qcrypto-cbc-3des
[   15.631863] qcrypto 8e20000.qcrypto: qcrypto-xts-aes
[   15.636793] qcrypto 8e20000.qcrypto: qcrypto-sha1
[   15.641482] qcrypto 8e20000.qcrypto: qcrypto-sha256
[   15.646366] qcrypto 8e20000.qcrypto: qcrypto-aead-hmac-sha1-cbc-aes
[   15.652620] qcrypto 8e20000.qcrypto: qcrypto-aead-hmac-sha1-cbc-des
[   15.658846] qcrypto 8e20000.qcrypto: qcrypto-aead-hmac-sha1-cbc-3des
[   15.665201] qcrypto 8e20000.qcrypto: qcrypto-aead-hmac-sha256-cbc-aes
[   15.671624] qcrypto 8e20000.qcrypto: qcrypto-aead-hmac-sha256-cbc-des
[   15.678027] qcrypto 8e20000.qcrypto: qcrypto-aead-hmac-sha256-cbc-3des
[   15.684559] qcrypto 8e20000.qcrypto: qcrypto-hmac-sha1
[   15.689660] qcrypto 8e20000.qcrypto: qcrypto-hmac-sha256
[   15.694976] qcrypto 8e20000.qcrypto: qcrypto-aes-ccm
[   15.699899] qcrypto 8e20000.qcrypto: qcrypto-rfc4309-aes-ccm
[   15.705454] qcrypto: FIPS140-2 Known Answer Tests: Skipped
[   15.719181] nf_conntrack version 0.5.0 (3935 buckets, 15740 max)
[   15.728972] PPP generic driver version 2.4.2
[   15.986107] ess-switch DT exist!
[   15.988327] switchreg_base_addr: 0xc000000
[   15.992443] switchreg_size: 0x80000
[   15.995861] switch_access_mode: local bus
[   15.999857] wan bmp:0x20
[   16.002407] ess-psgmii DT exist!
[   16.005585] mac mode=0
[   16.007923] current mac mode = 0
[   16.011138] current dts led_source_num is 0
[   16.015338] mdio DT exist!
[   16.018000] ssdk_plat_init start
[   16.021354] enable ess clk
[   16.134267] reset ok in probe!
[   16.136936] PHY ID is 0x4dd0b2
[   16.199275] qca probe malibu phy driver succeeded!
[   19.727390] Dakota Chip version 0x1401
[   19.732177] qca-ssdk module init succeeded!
[   19.739433] l2tp_core: L2TP core driver, V2.0
[   19.743706] l2tp_netlink: L2TP netlink interface
[   19.748701] sit: IPv6 over IPv4 tunneling driver
[   19.756863] tipc: Activated (version 2.0.0)
[   19.760543] NET: Registered protocol family 30
[   19.765145] tipc: Started in single node mode
[   19.769802] gre: GRE over IPv4 demultiplexor driver
[   19.774844] ip_gre: GRE over IPv4 tunneling driver
[   19.785813] bonding: Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[   19.802262] QCA Hy-Fi multicast installation successfully
[   19.809937] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   19.819669] edma module_init
[   19.822875] EDMA using MAC@ - using 8e:83:a9:06:2a:4a
[   19.829115] EDMA using MAC@ - using 7a:40:52:46:72:01
[   19.935169] u32 classifier
[   19.936851]     Performance counters on
[   19.940666]     input device check on
[   19.949486]     Actions configured
[   19.953435] Mirror/redirect action on
[   19.985872] Ebtables v2.0 registered
[   19.993522] ip_tables: (C) 2000-2006 Netfilter Core Team
[   20.138215] Netfilter messages via NETLINK v0.30.
[   20.150693] NET: Registered protocol family 24
[   20.156395] PPTP driver version 0.8.5
[   20.201601] xt_time: kernel timezone is -0000
[   20.206819] usbcore: registered new interface driver cdc_ether
[   20.217398] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[   20.231368] ctnetlink v0.93: registering with nfnetlink.
[   20.244853] usbcore: registered new interface driver rndis_host
reloadprofile() begin
reloadprofile() end
==reloadConfig()== begin
  ==loadDefaultConfig()== begin
  ==loadConfigToFiles(): default-config to /tmp/defaultconfig== begin
  ==loadConfigToFiles()== end
  ==set_usrconfig_info()== start
  ==set_usrconfig_info()== end
  ==loadDefaultConfig()== end
  ==loadConfigToFiles(): user-config to /tmp/userconfig== begin
  ==loadConfigToFiles()== end
==reloadConfig()===== no need to load emmc-config
  ==loadConfigToFiles(): device-config to /tmp/userconfig== begin
  ==loadConfigToFiles()== end
  ** config-version mismatch, merge **
  ==mergeConfig()== begin
  *** upgrade ***
add section : ap_dhcp	
saveconfig() begin
fileToXml
fileToXml
saveconfig() end
  ==mergeConfig()== end
==reloadConfig()== end
merge_extra_config() begin
  ==loadConfigToFiles(): default-config to /tmp/merge== begin
  ==loadConfigToFiles()== end
mergeconfigbycountry() begin
mergeconfigbycountry() country DE
mergeconfigbycountry() end
merge_extra_config() end
phylink down boot 1
[   28.323140] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   28.399272] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   32.878958] i2c-msm-v2 78b7000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv_addr:0x30 MSTR_STS:0x011383c8 OPER:0x00000090
[   32.914667] Load statistics in AP Mode
[SNIP] normal boot continues, but is not interesting...

I didn't know that the original also uses openwrt...