openwrt/target/linux
Isaev Ruslan 9ef4f7f919 qualcommax: ipq60xx: add yuncore fap650 support
This commit adds support for the Yuncore FAP650 device.

Specifications:
- Qualcomm IPQ6018+QCA8075+QCN5022+QCN5052
- 512 MB of RAM (DDR3)
- 8 MB of serial flash (SPI NOR)
- 128 MB of parallel flash (NAND)
- 2x2 2.4 GHz WiFi (IPQ6010)
- 2x2 5 GHz WiFi (IPQ6010)
- 2x 2dBi 2.4G MIMO antenna
- 2x 3dBi 5.8G MIMO antenna
- 5x 1 Gbps Ethernet (QCA8075)
- POE: 48V (IEEE 802.3af)
- power: 12V (~1.5A)
- 1x passthru port (rj45 - rj45)
- 1x cisco rj45 console port
- size: 160mm*86mm*29mm

BACKUP YOUR STOCK FIRMWARE:
```
export device=fap650
mkdir -p /tmp/fw_dump_$device
cd /tmp/fw_dump_$device
dmesg > dmesg_$device.log
dtc -I fs /sys/firmware/devicetree/base > $device.dts
cat /proc/device-tree/model > model
cat /proc/mtd > proc_mtd
while read p; do
mtd_dev=$(echo $p | cut -d: -f1)
echo $mtd_dev
dd if=/dev/$mtd_dev of=$mtd_dev
done < proc_mtd
md5sum * > md5sum.log
tar -cvzf ../$device.tar.gz .
export sum=$(md5sum /tmp/$device.tar.gz | cut -d' ' -f1)
mv ../$device.tar.gz /tmp/${device}_${sum}.tar.gz
echo fw backup saved to: /tmp/${device}_${sum}.tar.gz
```
Upload your backup via tftp to the safe place.

INSTALLATION:
1. stock firmware web ui
Rename factory.bin fw image file to factory.ubin. Flash this image
like ordinary stock fw upgrade.

2. stock firmware telnet method
Enter telnet cli (login: root, password: 476t*_f0%g09y) and upload
 factory.bin fw image and rename it to factory.ubin
`cd /tmp && wget <your_web_server_ip>/factory.ubin`
`sysupgrade factory.ubin

3. initramfs method
    Put imitramfs image to your TFTP server and rename it for example to fap650.initram
    Enable serial console and enter to the u-boot cli.
    Exec these commands:
    `tftpboot <your_tftp_server_ip>:fap650.initram`
    `dhcp`

    When downloading is finished:
    `bootm`
    After booting the device, you need to upload to the device factory.ubi fw image.
    ```
    cd /tmp && wget <your_web_server_ip>/factory.ubi`
    export rootfs=$(cat /proc/mtd | grep rootfs | cut -d: -f1)
    export rootfs_1=$(cat /proc/mtd | grep rootfs_1 | cut -d: -f1)
    ubiformat /dev/${rootfs} -y -f factory.ubi
    ubiformat /dev/${rootfs_1} -y -f factory.ubi
    reboot
    ```

4. u-boot factory.ubi image method
    Put factory.ubi to your TFTP server
    Enter u-boot cli and exec these commands:
    `tftpboot <your_tftp_server_ip>:factory.ubi`
    `dhcp`
    After downloading is finished:
    `flash rootfs`
    `flash rootfs_1`
    `reset`

STOCK FIRMWARE RECOVERY:
Boot initramfs image.
Upload your rootfs mtd partition to the device using scp or download
it from the device using wget.
Enter device ssh cli and exec:
```
cd /tmp && wget <your_web_server_ip>/rootfs_mtd`
export rootfs=$(cat /proc/mtd | grep rootfs | cut -d: -f1)
export rootfs_1=$(cat /proc/mtd | grep rootfs_1 | cut -d: -f1)
ubiformat /dev/${rootfs} -y -f /tmp/rootfs_mtd
ubiformat /dev/${rootfs_1} -y -f /tmp/rootfs_mtd
reboot
```

Signed-off-by: Isaev Ruslan <legale.legale@gmail.com>
2024-04-04 09:29:17 +02:00
..
airoha airoha: remove 5.15 support 2024-03-28 13:06:43 +01:00
apm821xx apm821xx: WNDR4700: fix fan-control 2024-03-23 21:22:47 +01:00
archs38 archs38: remove 5.15 support 2024-03-29 09:58:45 +01:00
armsr kernel: bump 6.1 to 6.1.72 2024-01-19 21:24:44 +01:00
at91 kernel: bump 5.15 to 5.15.153 2024-03-31 18:34:04 +02:00
ath79 ath79: add support for Huawei AP5030DN 2024-03-31 18:09:43 +02:00
bcm27xx bcm27xx: refresh patches 2024-04-03 11:47:18 +02:00
bcm47xx bcm47xx: refresh kernel 6.1 config 2024-03-29 00:12:50 +01:00
bcm53xx kernel: bump 5.15 to 5.15.152 2024-03-29 13:44:41 +01:00
bcm4908 kernel: bump 5.15 to 5.15.153 2024-03-31 18:34:04 +02:00
bmips bmips: add support for SmartRG SR505n 2024-03-10 20:26:07 +01:00
d1 kernel: bump 6.1 to 6.1.80 2024-03-05 00:23:59 +01:00
gemini kernel: bump 6.1 to 6.1.71 2024-01-06 12:52:49 +01:00
generic generic: 6.6: Removal of tools_portability.patch already included in kernel 6.6 2024-04-04 08:56:10 +02:00
imx imx: kernel: add imx8mp PCI support 2024-03-24 21:19:10 +01:00
ipq40xx ipq40xx: add kernel 6.6 as a testing kernel version 2024-04-02 23:45:21 +02:00
ipq806x ipq806x: add kernel 6.6 as a testing kernel version 2024-04-02 23:46:02 +02:00
ixp4xx ixp4xx: add Generic subtarget definition 2023-12-09 14:45:50 +01:00
kirkwood kirkwood: resize kernel partition for kirkwood devices 2024-03-24 21:07:17 +01:00
lantiq lantiq: Fix build after kernel 5.15.150 2024-03-08 14:49:09 +01:00
layerscape treewide: disable spectre mitigation on unaffected Arm32 targets 2024-03-23 20:00:49 +01:00
malta malta: Remove kernel 5.15 configuration 2024-02-03 04:35:25 +00:00
mediatek mediatek: add support for OpenEmbed SOM7981 2024-03-31 20:20:59 +02:00
mpc85xx mpc85xx: add 6.6 testing kernel 2024-03-24 21:20:46 +01:00
mvebu mvebu: 6.6: refresh patches 2024-04-03 18:42:26 +02:00
mxs mxs: switch default kernel to 6.1 2024-03-14 14:24:16 +01:00
octeon octeon: convert to new LED color/function format where possible 2024-02-07 14:48:41 +01:00
octeontx kernel: bump 5.15 to 5.15.153 2024-03-31 18:34:04 +02:00
omap omap: drop kernel 5.15 2024-02-13 19:05:48 +01:00
oxnas kernel: bump 5.15 to 5.15.153 2024-03-31 18:34:04 +02:00
pistachio kernel: fix mtd/NVMEM regression affecting U-Boot env NVMEM driver 2023-10-31 17:33:28 +01:00
qoriq qoriq: pad rootfs with zeros 2023-12-02 14:06:56 +02:00
qualcommax qualcommax: ipq60xx: add yuncore fap650 support 2024-04-04 09:29:17 +02:00
ramips ramips: add support for BOLT BL100 2024-03-31 20:07:45 +02:00
realtek realtek: add Zyxel GS1900-8 v2 2024-03-25 21:28:44 +01:00
rockchip rockchip: remove redundant 'console' parameter from boot script 2024-03-29 19:34:42 +01:00
sifiveu kernel: remove CONFIG_DEVTMPFS_SAFE from target config 2023-11-19 16:46:24 +01:00
starfive generic: 6.1: backport AXP PMIC support 2024-03-26 21:56:57 +01:00
sunxi sunxi: backport h616 thermal sensor support 2024-03-26 21:56:57 +01:00
tegra treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
uml uml: restore 6.1 config + patches 2024-03-23 21:38:00 +01:00
x86 x86: 6.6: set testing kernel 2024-04-04 08:56:10 +02:00
zynq generic: enable CONFIG_ARM_CRYPTO for 32bit arm targets 2023-05-10 19:01:45 +02:00
Makefile linux: add dtb makefile target to targets list 2024-02-08 23:04:55 +01:00