Hi I have serial access to a TPlink Deco x80 5g and I wish try and port this device to OpenWrt but I'm not really sure where to start as this would be my first try to attempt to add support for an unsupported target.
I'm guessing I setup a tftp server in U-Boot and dump the partitions so I can look around and pull things like the DTS and wifi caldata.
I did find a tutorial to back up by booting an intraramfs via tftp but, can I just create animage with the same SOC and use it on my device to dump the Nand contents as I see this being a chicken and egg problem as I can't build an image specifically for my device?
Is there a bit of information on how to dump the Nand contents and setup a tftp server or some sort of tool or something?
Also what would i need to mount the backup and pull the DTS from it and wifi cal data? (Note I'm running windows with WSL2 with ubuntu)
A bit of information form U-Boot:
> CPU: IPQ8074A, SoC Version: 2.0
>
> QPIC controller hw version Major:1, Minor:5
> nand: device found, Manufacturer ID: 0xc8, Chip ID: 0x61
> nand: ONFI 10-Compliant GigaDevice PSR1GA30DT
> nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
> 17 ofpart partitions found on MTD device qcom_nand.0
> Creating 17 MTD partitions on "qcom_nand.0":
> 0x000000000000-0x000000100000 : "0:SBL1"
> 0x000000100000-0x000000200000 : "0:MIBIB"
> 0x000000200000-0x000000280000 : "0:BOOTCONFIG"
> 0x000000280000-0x000000300000 : "0:BOOTCONFIG1"
> 0x000000300000-0x000000600000 : "0:QSEE"
> 0x000000600000-0x000000680000 : "0:DEVCFG"
> 0x000000680000-0x000000700000 : "0:APDP"
> 0x000000700000-0x000000780000 : "0:RPM"
> 0x000000780000-0x000000800000 : "0:CDT"
> 0x000000800000-0x000000980000 : "0:APPSBLENV"
> 0x000000980000-0x000000b80000 : "0:APPSBL"
> 0x000000b80000-0x000000c00000 : "0:ART"
> 0x000000c00000-0x000003600000 : "rootfs"
> mtd: device 12 (rootfs) set to be root filesystem
> mtdsplit: no squashfs found in "rootfs"
> 0x000003600000-0x000006000000 : "rootfs_1"
> 0x000006000000-0x000006080000 : "0:ETHPHYFW"
> 0x000006080000-0x000006980000 : "factory_data"
> 0x000006980000-0x000007a80000 : "runtime_data"
>
> gpio 38 set BOARD_3V9_5V_EN_GPIO to high[1]
> gpio 64 set PHY_QCA8081_1V8_EN_GPIO to high[1]
> gpio 33 set PHY_AR8033_3V3_EN_GPIO to high[1]
> gpio 35 set ONOFF_MODULE_5G_GPIO to low[0] ... 1s
> gpio 35 set ONOFF_MODULE_5G_GPIO to high[1]
>
> 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