IPQ4019: Adding support for TP-Link Deco M5

Hi. I got a us v3 deco m5. Compiled a firmware but cannot see where the factory bin go. I can only see the sys.bin and a .ubi file or a .itb file.

@nielsnl-nielsnl-nl Check your windows firewall / network settings windows decided that the new ethernet network was public so it wasn't letting the tftp server work with the static IP. I checked the box for the public network setting on TFTP and it fired right up.

For the less experienced I took detailed notes, then cleaned up my fumbling and was able to build from a clean source dir in one shot using the following steps.

The only issue is I cannot access the web interface for some reason. (Updated, don't build Luci as a module)

The only current issue is I do not seem to have the ability to use 5ghz and would really like that. radio1 seems non functional - I set up an AP mode on it and nothing can see it. I use the scan button and it doesn't find anything. This should definitely be the 5ghz radio but something isn't happening correctly to make it functional.

Note: I'm using windows and wsl2 running Ubuntu and already had the build tools installed.

git clone https://github.com/oklona/openwrt.git
cd openwrt
git checkout Deco-M5
git pull
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig

Target System -> Qualcomm Atheros IPQ40xx
Target Profile -> TP-Link Deco-M5
Luci -> Collections -> Luci (hit Y, don't build it as a module)
Exit and save

make download (this helps with multicore builds)

This section modifies the downloaded firmware-utils to include the updated tplink-safeloader.c source file - it assumes you have 7zip installed

exlorer.exe .
(the . opens the window pointed at the current working directory)

go to the dl directory and use 7zip to open firmware-utils-2022-02-28-002cfaf0.tar.xz
double click on the tar file go into the main directory and src
drop in tplink-safeloader.c from openwrt\tools\firmware-utils\src
Click Yes when it asks if you are sure
Click Up 3 times
It will ask if you want to update the archive - hit OK
Close 7zip

export PATH=/usr/bin (this gets around a dumb thing in my path due to WSL)
make -j24 (I have a lot of cores)

Follow the TP-Link instructions from here

Updated download path: https://bitbucket.org/phjounin/tftpd64/downloads/

Method 1
M5v1_tp_recovery.bin

Will have a yellow/orange light for a minute then blinking blue while it boots up then green

5 Likes

Yeah, I noticed in the wireless section two bgn radios were listed, instead of a bgn and an ac radio.

I also noticed that by default on my device, the LAN bridge was set to eth0 and eth1, and WAN was just eth0, which was very confusing at first when trying to figure out why I was getting an IP in my WAN subnet whilst connecting to the LAN port.

How to change this radio 'setting'?

I wish I knew. My guess is its just something subtle in the DTS file but I don't have the time to deep dive into DTS files right now personally.

to build the firmware form master or from Deco-M5 branch?
how can I verify my hardware ?

The compile worked flawlessy. (I am using debian btw)
With wireshark I could check if the Deco was trying to connect, and it was.
But with the factory.bin only one packet was transmitted.
With the sysupgrade about 5 packets.
I am trying the ./git/openwrt/bin/targets/ipq40xx/generic/openwrt-ipq40xx-generic-tplink_deco-m5-squashfs-*.bin files.
And it did something because now it won't boot normally. :smiley:

I had some issues using windows on a different router, may have to do with the driver. Wireshark running seemed to influence things as well.

Turning of wireshark doesn't seem to make a difference.
Which of the 2 bin files should I use?
I think I'll try opening the device tomorrow, and hook up the jtag port...
Or I'll try a different tftp server first... I'm using tftpd-hpa now.

able to build and flash for Deco M5 2.2EU device
but missing Wireless configuration ,
need to configure it ?

So, I connected the jtag port, and looks like the flashing did work!

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 -      7571 - clock_init, Delta
B -    878653 - CDT version:2,Platform ID:8,Major ID:1,Minor ID:0,Subtype:1
B -    882141 - sbl1_ddr_set_params, Start
B -    887128 - cpr_init, Start
D -         2 - cpr_init, Delta
B -    891618 - Pre_DDR_clock_init, Start
D -         5 - Pre_DDR_clock_init, Delta
D -     13146 - sbl1_ddr_set_params, Delta
B -    904900 - pm_driver_init, Start
D -         2 - pm_driver_init, Delta
B -    975061 - sbl1_wait_for_ddr_training, Start
D -        29 - sbl1_wait_for_ddr_training, Delta
B -    990788 - Image Load, Start
D -    138414 - QSEE Image Loaded, Delta - (269176 Bytes)
B -   1129702 - Image Load, Start
D -      1435 - SEC Image Loaded, Delta - (2048 Bytes)
B -   1139989 - Image Load, Start
D -    220904 - APPSBL Image Loaded, Delta - (451967 Bytes)
B -   1361316 - QSEE Execution, Start
D -        60 - QSEE Execution, Delta
B -   1367485 - SBL1, End
D -    660600 - SBL1, Delta
S - Flash Throughput, 1999 KB/s  (723962 Bytes,  362088 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.110
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x840000e4
     Data Size:    4076454 Bytes = 3.9 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x80208000
     Entry Point:  0x80208000
     Hash algo:    crc32
     Hash value:   680701bc
     Hash algo:    sha1
     Hash value:   6fc24c89962849b13fd3b8a42e9d6d39f0d64a6d
   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 tplink_deco-m5 device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x843e35c4
     Data Size:    17794 Bytes = 17.4 KiB
     Architecture: ARM
     Hash algo:    crc32
     Hash value:   09780648
     Hash algo:    sha1
     Hash value:   3f404adff459877c292e775cba59575cc5a08952
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Booting using the fdt blob at 0x843e35c4
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 862a8000, end 862af581 ... 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.110 (nielsnl@speedy) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 11.2.0 r19434-154979fd1b) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Thu May 5 11:44:26 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
[    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 s30732 r8192 d22516 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: 247184K/262144K available (6176K kernel code, 603K rwdata, 1552K rodata, 1024K init, 235K bss, 14960K 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] random: get_random_bytes called from start_kernel+0x360/0x50c with crng_init=0
[    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.000008] sched_clock: 56 bits at 48MHz, resolution 20ns, wraps every 4398046511096ns
[    0.000025] Switching to timer-based delay loop, resolution 20ns
[    0.000240] Calibrating delay loop (skipped), value calculated using timer frequency.. 96.00 BogoMIPS (lpj=480000)
[    0.000265] pid_max: default: 32768 minimum: 301
[    0.000443] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000462] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001439] CPU: Testing write buffer coherency: ok
[    0.001730] qcom_scm: convention: smc legacy
[    0.002465] Setting up static identity map for 0x80300000 - 0x8030003c
[    0.002598] rcu: Hierarchical SRCU implementation.
[    0.002802] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.003051] smp: Bringing up secondary CPUs ...
[    0.006054] smp: Brought up 1 node, 4 CPUs
[    0.006080] SMP: Total of 4 processors activated (384.00 BogoMIPS).
[    0.006090] CPU: All CPU(s) started in SVC mode.
[    0.010992] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.011154] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.011184] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.011420] pinctrl core: initialized pinctrl subsystem
[    0.012583] NET: Registered protocol family 16
[    0.012942] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.014045] thermal_sys: Registered thermal governor 'step_wise'
[    0.014427] cpuidle: using governor ladder
[    0.014482] cpuidle: using governor menu
[    0.040141] cryptd: max_cpu_qlen set to 1000
[    0.043698] usbcore: registered new interface driver usbfs
[    0.043771] usbcore: registered new interface driver hub
[    0.043829] usbcore: registered new device driver usb
[    0.043880] pps_core: LinuxPPS API ver. 1 registered
[    0.043893] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.043919] PTP clock support registered
[    0.045590] clocksource: Switched to clocksource arch_sys_counter
[    0.046496] NET: Registered protocol family 2
[    0.046645] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.047285] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.047342] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.047382] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.047434] TCP: Hash tables configured (established 2048 bind 2048)
[    0.047559] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.047600] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.047805] NET: Registered protocol family 1
[    0.047850] PCI: CLS 0 bytes, default 64
[    0.049769] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.054155] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.054179] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.185267] bam-dma-engine 8e04000.dma: num-channels unspecified in dt
[    0.185294] bam-dma-engine 8e04000.dma: num-ees unspecified in dt
[    0.186085] tcsr 194b000.tcsr: setting usb hs phy mode select = e700e7
[    0.186190] tcsr 1953000.ess_tcsr: setting ess interface select = 0
[    0.186281] tcsr 1949000.tcsr: setting wifi_glb_cfg = 41000000
[    0.186381] tcsr 1957000.tcsr: setting wifi_noc_memtype_m0_m2 = 2222222
[    0.186710] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.187278] msm_serial 78af000.serial: msm_serial: detected port #0
[    0.187326] msm_serial 78af000.serial: uartclk = 1843200
[    0.187380] 78af000.serial: ttyMSM0 at MMIO 0x78af000 (irq = 34, base_baud = 115200) is a MSM
[    0.187409] msm_serial: console setup on port #0
[    0.734467] printk: console [ttyMSM0] enabled
[    0.739743] msm_serial 78b0000.serial: msm_serial: detected port #1
[    0.743424] msm_serial 78b0000.serial: uartclk = 1843200
[    0.749571] 78b0000.serial: ttyMSM1 at MMIO 0x78b0000 (irq = 35, base_baud = 115200) is a MSM
[    0.755476] msm_serial: driver initialized
[    0.768838] loop: module loaded
[    0.769862] spi_qup 78b5000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[    0.771979] spi-nor spi0.0: en25qh256 (32768 Kbytes)
[    0.778212] 15 fixed-partitions partitions found on MTD device spi0.0
[    0.783034] Creating 15 MTD partitions on "spi0.0":
[    0.789395] 0x000000000000-0x000000030000 : "0:SBL1"
[    0.794630] 0x000000030000-0x000000040000 : "0:BOOTCONFIG"
[    0.799771] 0x000000040000-0x000000050000 : "0:MIBIB"
[    0.805068] 0x000000050000-0x000000060000 : "0:BOOTCONFIG1"
[    0.810201] 0x000000060000-0x0000000c0000 : "0:QSEE"
[    0.815625] 0x0000000c0000-0x0000000d0000 : "0:CDT"
[    0.820961] 0x0000000d0000-0x0000000e0000 : "0:DDRPARAMS"
[    0.825475] 0x0000000e0000-0x0000000f0000 : "0:APPSBLENV"
[    0.830988] 0x0000000f0000-0x000000170000 : "0:APPSBL"
[    0.836432] 0x000000170000-0x000000180000 : "0:ART"
[    0.841352] 0x000000180000-0x000000240000 : "OPAQUE"
[    0.846179] 0x000000240000-0x000000540000 : "0:HLOS"
[    0.851295] 0x000000540000-0x000000d10000 : "0:rootfs"
[    0.856340] 0x000000d10000-0x000000d90000 : "0:APPSBL_1"
[    0.861274] 0x000000d90000-0x000001dd0000 : "firmware"
[    0.878445] random: fast init done
[    0.902876] no rootfs found after FIT image in "firmware"
[    0.941615] ESS reset ok!
[    0.965847] ESS reset ok!
[    1.386771] EDMA using MAC@ - using
[    1.386788] fe:4d:17:69:cd:a0
[    1.389901] EDMA using MAC@ - using
[    1.389914] e2:65:38:83:cb:91
[    1.558997] i2c /dev entries driver
[    1.559263] i2c_qup 78b7000.i2c: using default clock-frequency 100000
[    1.563802] sdhci: Secure Digital Host Controller Interface driver
[    1.567995] sdhci: Copyright(c) Pierre Ossman
[    1.573970] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.581545] NET: Registered protocol family 10
[    1.585667] Segment Routing with IPv6
[    1.588473] NET: Registered protocol family 17
[    1.592179] 8021q: 802.1Q VLAN Support v1.8
[    1.596621] Registering SWP/SWPB emulation handler
[    1.615874] Waiting for root device /dev/mtdblock16...

But that is where it stops...
This bit seems to be important:

ipq: fdt fixup unable to find compatible node
Device nand0 not found!

Or maybe not, because I see other logs in this thread with the same warning.
Did another log while flashing:

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 = 8103603 (7ba6b3 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 @ 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 ...

So, now what? :sweat_smile:

@oklona, thank you for the support for v2
for my EU v2.2 still got issue with the LED (stuck on Orange/Yellow)
also there is no option for 5ghz (only a b n)
this line is appear in the boot log:

[    1.597938] lp5521 0-0032: device detection err: -6

that i believe related to the LED , as you mention in this post.
not sure how to translate my hardware to .dts file ... must connect to serial with the original firmware?

my boot log:

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.110 (root@vault-test) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 11.2.0 r19434-154979fd1b) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Thu May 5 11:44:26 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
[    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] On node 0 totalpages: 65536
[    0.000000]   Normal zone: 576 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000] percpu: Embedded 15 pages/cpu s30732 r8192 d22516 u61440
[    0.000000] pcpu-alloc: s30732 r8192 d22516 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    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: 247184K/262144K available (6176K kernel code, 603K rwdata, 1552K rodata, 1024K init, 235K bss, 14960K 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] random: get_random_bytes called from start_kernel+0x360/0x50c with crng_init=0
[    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.000009] sched_clock: 56 bits at 48MHz, resolution 20ns, wraps every 4398046511096ns
[    0.000024] Switching to timer-based delay loop, resolution 20ns
[    0.000244] Calibrating delay loop (skipped), value calculated using timer frequency.. 96.00 BogoMIPS (lpj=480000)
[    0.000267] pid_max: default: 32768 minimum: 301
[    0.000443] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000462] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001443] CPU: Testing write buffer coherency: ok
[    0.001732] qcom_scm: convention: smc legacy
[    0.002459] Setting up static identity map for 0x80300000 - 0x8030003c
[    0.002588] rcu: Hierarchical SRCU implementation.
[    0.002791] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.003035] smp: Bringing up secondary CPUs ...
[    0.006038] smp: Brought up 1 node, 4 CPUs
[    0.006064] SMP: Total of 4 processors activated (384.00 BogoMIPS).
[    0.006074] CPU: All CPU(s) started in SVC mode.
[    0.011050] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.011200] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.011226] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.011458] pinctrl core: initialized pinctrl subsystem
[    0.012625] NET: Registered protocol family 16
[    0.012985] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.014084] thermal_sys: Registered thermal governor 'step_wise'
[    0.014469] cpuidle: using governor ladder
[    0.014526] cpuidle: using governor menu
[    0.040248] cryptd: max_cpu_qlen set to 1000
[    0.043783] usbcore: registered new interface driver usbfs
[    0.043855] usbcore: registered new interface driver hub
[    0.043913] usbcore: registered new device driver usb
[    0.043962] pps_core: LinuxPPS API ver. 1 registered
[    0.043974] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.044002] PTP clock support registered
[    0.045685] clocksource: Switched to clocksource arch_sys_counter
[    0.046621] NET: Registered protocol family 2
[    0.046774] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.047409] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.047464] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.047505] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.047555] TCP: Hash tables configured (established 2048 bind 2048)
[    0.047676] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.047719] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.047927] NET: Registered protocol family 1
[    0.047971] PCI: CLS 0 bytes, default 64
[    0.049803] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.054206] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.054231] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.186243] bam-dma-engine 8e04000.dma: num-channels unspecified in dt
[    0.186271] bam-dma-engine 8e04000.dma: num-ees unspecified in dt
[    0.186962] tcsr 194b000.tcsr: setting usb hs phy mode select = e700e7
[    0.187064] tcsr 1953000.ess_tcsr: setting ess interface select = 0
[    0.187155] tcsr 1949000.tcsr: setting wifi_glb_cfg = 41000000
[    0.187260] tcsr 1957000.tcsr: setting wifi_noc_memtype_m0_m2 = 2222222
[    0.187586] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.188136] msm_serial 78af000.serial: msm_serial: detected port #0
[    0.188179] msm_serial 78af000.serial: uartclk = 1843200
[    0.188231] 78af000.serial: ttyMSM0 at MMIO 0x78af000 (irq = 34, base_baud = 115200) is a MSM
[    0.188259] msm_serial: console setup on port #0
[    0.735408] printk: console [ttyMSM0] enabled
[    0.740648] msm_serial 78b0000.serial: msm_serial: detected port #1
[    0.744364] msm_serial 78b0000.serial: uartclk = 1843200
[    0.750496] 78b0000.serial: ttyMSM1 at MMIO 0x78b0000 (irq = 35, base_baud = 115200) is a MSM
[    0.756438] msm_serial: driver initialized
[    0.770033] loop: module loaded
[    0.771060] spi_qup 78b5000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[    0.773467] spi-nor spi0.0: w25q256 (32768 Kbytes)
[    0.779406] 15 fixed-partitions partitions found on MTD device spi0.0
[    0.783881] Creating 15 MTD partitions on "spi0.0":
[    0.790414] 0x000000000000-0x000000030000 : "0:SBL1"
[    0.795647] 0x000000030000-0x000000040000 : "0:BOOTCONFIG"
[    0.800769] 0x000000040000-0x000000050000 : "0:MIBIB"
[    0.806111] 0x000000050000-0x000000060000 : "0:BOOTCONFIG1"
[    0.811159] 0x000000060000-0x0000000c0000 : "0:QSEE"
[    0.816662] 0x0000000c0000-0x0000000d0000 : "0:CDT"
[    0.821846] 0x0000000d0000-0x0000000e0000 : "0:DDRPARAMS"
[    0.826406] 0x0000000e0000-0x0000000f0000 : "0:APPSBLENV"
[    0.831973] 0x0000000f0000-0x000000170000 : "0:APPSBL"
[    0.837349] 0x000000170000-0x000000180000 : "0:ART"
[    0.842340] 0x000000180000-0x000000240000 : "OPAQUE"
[    0.847179] 0x000000240000-0x000000540000 : "0:HLOS"
[    0.852301] 0x000000540000-0x000000d10000 : "0:rootfs"
[    0.857360] 0x000000d10000-0x000000d90000 : "0:APPSBL_1"
[    0.862289] 0x000000d90000-0x000001dd0000 : "firmware"
[    0.868396] 2 fit-fw partitions found on MTD device firmware
[    0.872169] 0x000000d90000-0x000001180000 : "kernel"
[    0.878482] 0x000001190000-0x000001dd0000 : "rootfs"
[    0.883329] mtd: device 16 (rootfs) set to be root filesystem
[    0.888155] 1 squashfs-split partitions found on MTD device rootfs
[    0.893529] 0x000001560000-0x000001dd0000 : "rootfs_data"
[    0.939345] ESS reset ok!
[    0.963596] ESS reset ok!
[    1.384510] EDMA using MAC@ - using
[    1.384527] b6:d7:3d:8f:37:62
[    1.387695] EDMA using MAC@ - using
[    1.387709] 0a:08:70:f2:e4:2c
[    1.559082] i2c /dev entries driver
[    1.559339] i2c_qup 78b7000.i2c: using default clock-frequency 100000
[    1.564041] sdhci: Secure Digital Host Controller Interface driver
[    1.568074] sdhci: Copyright(c) Pierre Ossman
[    1.574052] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.597938] lp5521 0-0032: device detection err: -6
[    1.618656] NET: Registered protocol family 10
[    1.620563] Segment Routing with IPv6
[    1.622119] NET: Registered protocol family 17
[    1.625885] 8021q: 802.1Q VLAN Support v1.8
[    1.630207] Registering SWP/SWPB emulation handler
[    1.655415] VFS: Mounted root (squashfs filesystem) readonly on device 31:16.
[    1.657439] Freeing unused kernel memory: 1024K
[    1.729478] Run /sbin/init as init process
[    1.729712]   with arguments:
[    1.729793]     /sbin/init
[    1.729862]   with environment:
[    1.729933]     HOME=/
[    1.730004]     TERM=linux
[    1.767680] random: fast init done
[    2.907140] init: Console is alive
[    2.907521] init: - watchdog -
[    4.469378] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.659050] genirq: irq_chip msmgpio did not update eff. affinity mask of irq 102
[    4.662097] dwc3-qcom 8af8800.usb3: IRQ hs_phy_irq not found
[    4.665526] dwc3-qcom 8af8800.usb3: IRQ dp_hs_phy_irq not found
[    4.671288] dwc3-qcom 8af8800.usb3: IRQ dm_hs_phy_irq not found
[    4.676931] dwc3-qcom 8af8800.usb3: IRQ ss_phy_irq not found
[    4.684936] dwc3-qcom 60f8800.usb2: IRQ hs_phy_irq not found
[    4.688744] dwc3-qcom 60f8800.usb2: IRQ dp_hs_phy_irq not found
[    4.694343] dwc3-qcom 60f8800.usb2: IRQ dm_hs_phy_irq not found
[    4.700017] dwc3-qcom 60f8800.usb2: IRQ ss_phy_irq not found
[    4.936218] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    4.936388] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    4.940873] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f665 hci version 0x100 quirks 0x0000000002010010
[    4.948292] xhci-hcd xhci-hcd.0.auto: irq 103, io mem 0x08a00000
[    4.958491] hub 1-0:1.0: USB hub found
[    4.963867] hub 1-0:1.0: 1 port detected
[    4.967760] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    4.971464] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    4.976822] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    4.985972] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.991475] hub 2-0:1.0: USB hub found
[    4.999205] hub 2-0:1.0: 1 port detected
[    5.003396] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    5.006862] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[    5.012348] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f665 hci version 0x100 quirks 0x0000000002010010
[    5.019779] xhci-hcd xhci-hcd.1.auto: irq 104, io mem 0x06000000
[    5.029935] hub 3-0:1.0: USB hub found
[    5.035300] hub 3-0:1.0: 1 port detected
[    5.039205] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    5.042907] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[    5.048257] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[    5.055889] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.062909] hub 4-0:1.0: USB hub found
[    5.070704] hub 4-0:1.0: config failed, hub doesn't have any ports! (err -19)
[    5.075913] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.091821] init: - preinit -
[    6.024924] random: crng init done
[    7.648680] ess_edma c080000.edma eth1: Link is Down
[   12.138950] jffs2: notice: (228) jffs2_build_xattr_subsystem: complete building xattr subsystem, 9 of xdatum (0 unchecked, 1 orphan) and 12 of xref (1 dead, 0 orphan) found.
[   12.154346] mount_root: switching to jffs2 overlay
[   12.179815] overlayfs: upper fs does not support tmpfile.
[   12.360504] urandom-seed: Seeding 4096 bits and crediting
[   12.370050] urandom-seed: Saving 4096 bits of creditable seed for next boot
[   12.391683] procd: - early -
[   12.391890] procd: - watchdog -
[   13.178270] procd: - watchdog -
[   13.536620] procd: - ubus -
[   13.667701] procd: - init -
[   14.846306] kmodloader: loading kernel modules from /etc/modules.d/*
[   14.963830] urngd: v1.0.2 started.
[   15.042836] Loading modules backported from Linux version v5.15.33-0-g06f50ca83ace
[   15.042882] Backport generated by backports.git v5.15.33-1-0-g183c4ab2
[   15.124645] PPP generic driver version 2.4.2
[   15.126158] NET: Registered protocol family 24
[   16.812622] ath10k_ahb a000000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[   16.812677] ath10k_ahb a000000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   16.825987] ath10k_ahb a000000.wifi: firmware ver 10.4b-ct-4019-fW-13-5ae337bb1 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 6b2b5c5b
[   16.876787] ath10k_ahb a000000.wifi: board_file api 2 bmi_id 0:20 crc32 6d993b98
[   18.164316] ath10k_ahb a000000.wifi: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[   18.164371] ath10k_ahb a000000.wifi: msdu-desc: 2500  skid: 32
[   18.211155] ath10k_ahb a000000.wifi: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[   18.214742] ath10k_ahb a000000.wifi: wmi print 'free: 53252 iram: 13432 sram: 35752'
[   18.368261] ath10k_ahb a000000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[   18.569107] ath: EEPROM regdomain: 0x0
[   18.569121] ath: EEPROM indicates default country code should be used
[   18.569126] ath: doing EEPROM country->regdmn map search
[   18.569136] ath: country maps to regdmn code: 0x3a
[   18.569143] ath: Country alpha2 being used: US
[   18.569149] ath: Regpair used: 0x3a
[   19.955184] ath10k_ahb a800000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[   19.955253] ath10k_ahb a800000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   19.967715] ath10k_ahb a800000.wifi: firmware ver 10.4b-ct-4019-fW-13-5ae337bb1 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 6b2b5c5b
[   20.019081] ath10k_ahb a800000.wifi: board_file api 2 bmi_id 0:20 crc32 6d993b98
[   21.306437] ath10k_ahb a800000.wifi: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[   21.306492] ath10k_ahb a800000.wifi: msdu-desc: 2500  skid: 32
[   21.353610] ath10k_ahb a800000.wifi: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[   21.354462] ath10k_ahb a800000.wifi: wmi print 'free: 53252 iram: 13432 sram: 35752'
[   21.491622] ath10k_ahb a800000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[   21.654062] ath: EEPROM regdomain: 0x0
[   21.654076] ath: EEPROM indicates default country code should be used
[   21.654082] ath: doing EEPROM country->regdmn map search
[   21.654093] ath: country maps to regdmn code: 0x3a
[   21.654100] ath: Country alpha2 being used: US
[   21.654105] ath: Regpair used: 0x3a
[   21.664168] kmodloader: done loading kernel modules from /etc/modules.d/*
[   30.928779] br-lan: port 1(eth1) entered blocking state
[   30.928873] br-lan: port 1(eth1) entered disabled state
[   30.933729] device eth1 entered promiscuous mode
[   31.027667] ess_edma c080000.edma eth0: Link is Down
[   31.029119] br-lan: port 2(eth0) entered blocking state
[   31.031728] br-lan: port 2(eth0) entered disabled state
[   31.037174] device eth0 entered promiscuous mode
[   34.157476] ess_edma c080000.edma eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   34.157724] br-lan: port 2(eth0) entered blocking state
[   34.164354] br-lan: port 2(eth0) entered forwarding state
[   34.170426] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[  148.839550] br-lan: port 2(eth0) entered disabled state
[  148.843973] device eth0 left promiscuous mode
[  148.844163] br-lan: port 2(eth0) entered disabled state
[  148.897189] device eth1 left promiscuous mode
[  148.897555] br-lan: port 1(eth1) entered disabled state
[  149.067639] br-lan: port 1(eth0) entered blocking state
[  149.067769] br-lan: port 1(eth0) entered disabled state
[  149.072678] device eth0 entered promiscuous mode
[  149.158076] br-lan: port 2(eth1) entered blocking state
[  149.158127] br-lan: port 2(eth1) entered disabled state
[  149.162559] device eth1 entered promiscuous mode
[  149.172182] br-lan: port 1(eth0) entered blocking state
[  149.172235] br-lan: port 1(eth0) entered forwarding state
[  151.677686] ess_edma c080000.edma eth0: Link is Down
[  151.682845] br-lan: port 1(eth0) entered disabled state
[  152.885269] device eth0 left promiscuous mode
[  152.885410] br-lan: port 1(eth0) entered disabled state
[  152.970523] device eth1 left promiscuous mode
[  152.972443] br-lan: port 2(eth1) entered disabled state
[  153.238665] br-lan: port 1(eth0) entered blocking state
[  153.238724] br-lan: port 1(eth0) entered disabled state
[  153.243729] device eth0 entered promiscuous mode
[  153.328815] br-lan: port 2(eth1) entered blocking state
[  153.328908] br-lan: port 2(eth1) entered disabled state
[  153.333741] device eth1 entered promiscuous mode
[  158.958533] ess_edma c080000.edma eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[  158.959573] br-lan: port 1(eth0) entered blocking state
[  158.965655] br-lan: port 1(eth0) entered forwarding state
[  158.977395] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 1082.699955] ath10k_ahb a000000.wifi: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[ 1082.700018] ath10k_ahb a000000.wifi: msdu-desc: 2500  skid: 32
[ 1082.746522] ath10k_ahb a000000.wifi: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[ 1082.747318] ath10k_ahb a000000.wifi: wmi print 'free: 53252 iram: 13432 sram: 35752'
[ 1083.104102] ath10k_ahb a000000.wifi: rts threshold -1
[ 1083.105582] ath10k_ahb a000000.wifi: Firmware lacks feature flag indicating a retry limit of > 2 is OK, requested limit: 4
[ 1083.131246] br-lan: port 3(wlan0) entered blocking state
[ 1083.131291] br-lan: port 3(wlan0) entered disabled state
[ 1083.136014] device wlan0 entered promiscuous mode
[ 1083.146470] ath10k_ahb a000000.wifi: NOTE:  Firmware DBGLOG output disabled in debug_mask: 0x10000000
[ 1083.376573] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 1083.380491] br-lan: port 3(wlan0) entered blocking state
[ 1083.382325] br-lan: port 3(wlan0) entered forwarding state
[ 3031.573869] device wlan0 left promiscuous mode
[ 3031.574148] br-lan: port 3(wlan0) entered disabled state
[ 3031.683386] ath10k_ahb a000000.wifi: mac flush null vif, drop 0 queues 0xffff
[ 3031.684596] ath10k_ahb a000000.wifi: peer-unmap-event: unknown peer id 0

Hi, I have been quite busy over summer, and am just getting back. I hope to have some time the coming weeks to get back to where I was with this project.

@tomergam, I don't remember what I have uploaded to Github, but at least in my local sources, I have two different Deco M5s, where v2 is separate. With the v2 chosen in Menuconfig, I get correct LED behavior in my M5 v2 EU. 5GHz is available on my v2, but I believe it is only there for one of the radios (which I think makes sense, but I am not a WiFi expert).

1 Like

In github there is the v2 dts,
also I Select it in the Menuconfig.
but the Led is no function as they should (just orange led)
it can be difference in the Led gpio between v2 and v2.2 ?
hope that I got the right version ... near the serial number....

Yes, it definitely can be. I will need to examine your logs, and compare to mine :slight_smile:

1 Like

@oklona would you, by any change have some time to look at my logs? (see above).
If I can assist with any more information, please let me know.

Hi. i am new to openwrt and i am willing to convert my deco m5 units to openwrt. its the US/3.20 version. is it compatible? can i flash it with openwrt?

thanks for your help

@tomergam

Hmm... Looking at your log, it seems the correct DTS was chosen, although I really thought the Machine Model referenced should then be called "TP-Link..... v2". But I do see that you have the lp5521 detection, and Linux doesn't find it.

Would you happen to have a log with stock firmware for me to look at?

Sorry, replied to the wrong post. @nielsnl-nielsnl-nl, I also ran into this same problem with fit-FW not working as expected, and the device not booting. I am just an amateur, so it is probably my fault :slight_smile: I didn't see this before, so I am backtracking what I have done, to try to resolve it. In the meantime, I guess reverting to an older commit within git could work.