1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom
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
..
ipq6010-mango-dvk.dts qualcommax: set phy-mode to sgmii for QCA8081 2024-03-18 22:17:20 +01:00
ipq6010-wax214.dts qualcommax: ipq60xx: add support for netgear wax214 2024-03-05 06:34:35 +01:00
ipq6018-512m.dtsi qualcommax: ipq60xx: add yuncore fap650 support 2024-04-04 09:29:17 +02:00
ipq6018-cp-cpu.dtsi qualcommax: add ipq60xx support 2024-02-09 14:01:51 +01:00
ipq6018-cpr-regulator.dtsi qualcommax: add ipq60xx support 2024-02-09 14:01:51 +01:00
ipq6018-ess.dtsi qualcommax: ipq60xx: set PHY mode to psgmii for port 5 2024-03-18 22:17:20 +01:00
ipq6018-fap650.dts qualcommax: ipq60xx: add yuncore fap650 support 2024-04-04 09:29:17 +02:00
ipq8070-cax1800.dts qualcommax: convert qca807x PHY to PHY package implementation 2024-02-11 21:13:42 +01:00
ipq8070-rm2-6.dts ipq807x: add support for CMCC RM2-6 2024-02-15 18:44:35 +01:00
ipq8071-ax6.dts
ipq8071-ax3600.dts qualcommax: apply special PHY LEDs configuration for Xiaomi AX3600 2024-02-11 21:13:50 +01:00
ipq8071-ax3600.dtsi qualcommax: convert qca807x PHY to PHY package implementation 2024-02-11 21:13:42 +01:00
ipq8071-eap102.dts qualcommax: set phy-mode to sgmii for QCA8081 2024-03-18 22:17:20 +01:00
ipq8071-mf269.dts qualcommax: convert to new LED color/function format where possible 2024-02-07 14:48:43 +01:00
ipq8072-301w.dts qualcommax: ipq807x: fix LEDs on QNAP QHora-301W 2024-03-17 17:31:02 +01:00
ipq8072-aw1000.dts qualcommax: AW1000: add qca8081 PHY LED configuration 2024-02-16 13:50:19 +01:00
ipq8072-ax880.dts qualcommax: drop redundant label with new LED color/function format 2024-02-07 14:48:42 +01:00
ipq8072-ax9000.dts qualcommax: set phy-mode to sgmii for QCA8081 2024-03-18 22:17:20 +01:00
ipq8072-dl-wrx36.dts qualcommax: convert qca807x PHY to PHY package implementation 2024-02-11 21:13:42 +01:00
ipq8072-haze.dts qualcommax: ipq807x: correct PHY mode for AQR 2024-02-17 17:39:22 +01:00
ipq8072-mx5300.dts qualcommax: dts: cleanup whitespace 2024-03-18 22:17:20 +01:00
ipq8072-wax218.dts qualcommax: convert to new LED color/function format where possible 2024-02-07 14:48:43 +01:00
ipq8072-wax620.dts qualcommax: dts: cleanup whitespace 2024-03-18 22:17:20 +01:00
ipq8072-wpq873.dts qualcommax: dts: cleanup whitespace 2024-03-18 22:17:20 +01:00
ipq8074-512m.dtsi
ipq8074-ac-cpu.dtsi qualcommax: dts: cleanup whitespace 2024-03-18 22:17:20 +01:00
ipq8074-cpr-regulator.dtsi
ipq8074-ess.dtsi qualcommax: remove usage of malibu_first_phy_addr 2024-02-15 18:25:48 +01:00
ipq8074-hk-cpu.dtsi qualcommax: dts: cleanup whitespace 2024-03-18 22:17:20 +01:00
ipq8074-nbg7815.dts qualcommax: set phy-mode to sgmii for QCA8081 2024-03-18 22:17:20 +01:00
ipq8074-rax120v2.dts qualcommax: ipq807x: Fix MAC addresses usage for RAX120v2 2024-03-18 22:19:42 +01:00
ipq8074-wax630.dts qualcommax: dts: cleanup whitespace 2024-03-18 22:17:20 +01:00
ipq8074-wxr-5950ax12.dts qualcommax: ipq807x: fix LEDs on Buffalo WXR-5950AX12 2024-03-17 17:31:02 +01:00
ipq8174-mx4200.dtsi qualcommax: ipq807x: MX4200 convert qca807x PHY to new implementation 2024-02-15 18:30:23 +01:00
ipq8174-mx4200v1.dts ipq807x: fix whitespace usage 2024-01-15 16:52:08 +01:00
ipq8174-mx4200v2.dts ipq807x: add support for Linksys MX4200 V1 and V2 2024-01-06 16:13:23 +01:00