openwrt/target/linux
Paweł Owoc 70fd815e57 qualcommax: ipq807x: add support for Linksys MX5300
Hardware specification:
========
SoC: Qualcomm IPQ8072A
Flash: 512MB (Winbond W29N04GZBIBA)
RAM: 1GB (2x Nanya DDR3L NT5CC256M16ER-EK)
Ethernet: 5x 10/100/1000Mbps (Qualcomm QCA8075)
WiFi1: 5GHz ac 4x4 (Qualcomm QCA9984 + Skyworks SKY85746-11) - channels 100-169
WiFi2: 5GHz ax 4x4 (Qualcomm QCN5054 + Skyworks SKY85755-11) - channels 36-64
WiFi3: 2.4GHz ax 4x4 (Qualcomm QCN5024 + Skyworks SKY8340-11)
IoT: Bluetooth 5, Zigbee and Thread (Qualcomm QCA4024 + Skyworks SE2433T-R)
IoT Flash: 4MB (Macronix MX25R3235F)
RTC: ST M41T00S
LED: 1x RGB status (NXP PCA9633)
USB: 1x USB 3.0
Button: WPS, Reset

Flash instructions:
========
1. Manually upgrade firmware using openwrt-qualcommax-ipq807x-linksys_mx5300-squashfs-factory.bin image.
More details can be found here: https://www.linksys.com/hk/support-article?articleNum=274497
After first boot check actual partition:
- fw_printenv -n boot_part
and install firmware on second partition using command in case of 2:
- mtd -r -e kernel -n write openwrt-qualcommax-ipq807x-linksys_mx5300-squashfs-factory.bin kernel
and in case of 1:
- mtd -r -e alt_kernel -n write openwrt-qualcommax-ipq807x-linksys_mx5300-squashfs-factory.bin alt_kernel

2. Installation using serial connection from OEM firmware (default login: root, password: admin):
- fw_printenv -n boot_part
In case of 2:
- flash_erase /dev/mtd21 0 0
  nandwrite -p /dev/mtd21 openwrt-qualcommax-ipq807x-linksys_mx5300-squashfs-factory.bin
or in case of 1:
- flash_erase /dev/mtd23 0 0
  nandwrite -p /dev/mtd23 openwrt-qualcommax-ipq807x-linksys_mx5300-squashfs-factory.bin
After first boot install firmware on second partition:
- mtd -r -e kernel -n write openwrt-qualcommax-ipq807x-linksys_mx5300-squashfs-factory.bin kernel
or:
- mtd -r -e alt_kernel -n write openwrt-qualcommax-ipq807x-linksys_mx5300-squashfs-factory.bin alt_kernel

3. Installation from initramfs image using USB FAT32 formatted drive:
Stop u-boot and run:
- usb start && fatload usb 0:1 $loadaddr openwrt-qualcommax-ipq807x-linksys_mx5300-initramfs-uImage.itb && bootm $loadaddr
Write firmware to the flash from initramfs:
- mtd -e kernel -n write openwrt-qualcommax-ipq807x-linksys_mx5300-squashfs-factory.bin kernel
and:
- mtd -r -e alt_kernel -n write openwrt-qualcommax-ipq807x-linksys_mx5300-squashfs-factory.bin alt_kernel

4. Back to the OEM firmware:
- mtd -e kernel -n write FW_MX5300_1.1.9.200251_prod.img kernel
and:
- mtd -r -e alt_kernel -n write FW_MX5300_1.1.9.200251_prod.img alt_kernel

5. USB recovery:
- fw_setenv usbimage 'openwrt-qualcommax-ipq807x-linksys_mx5300-initramfs-uImage.itb'
  fw_setenv bootusb 'usb start && fatload usb 0:1 $loadaddr $usbimage && bootm $loadaddr'
  fw_setenv bootcmd 'run bootusb; aq_load_fw && if test $auto_recovery = no; then bootipq; elif test $boot_part = 1; then run bootpart1; else run bootpart2; fi'

Notes:
========
IoT device is accesible over spi. Not yet supported.

Signed-off-by: Paweł Owoc <frut3k7@gmail.com>
Reviewed-by: Robert Marko <robimarko@gmail.com>
2024-02-23 13:34:59 +01:00
..
airoha kernel: bump 5.15 to 5.15.125 2023-08-09 22:06:24 +02:00
apm821xx apm821xx: convert to nvmem-layout 2023-11-25 22:50:32 +01:00
archs38 treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
armsr kernel: bump 6.1 to 6.1.72 2024-01-19 21:24:44 +01:00
at91 treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
ath25 kernel: bump 5.15 to 5.15.125 2023-08-09 22:06:24 +02:00
ath79 ath79: update WA/XC devices UBNT_VERSION to 8.7.4 2024-02-19 16:51:39 +01:00
bcm27xx kernel: bump 6.1 to 6.1.78 2024-02-18 11:20:27 +00:00
bcm47xx kernel: bump 5.15 to 5.15.146 2024-01-06 10:53:39 +01:00
bcm53xx kernel: 6.1: backport UBI device model improvements 2024-02-15 19:06:36 +00:00
bcm63xx bcm63xx: convert to new LED color/function format where possible 2024-02-07 14:48:35 +01:00
bcm4908 kernel: bump 5.15 to 5.15.137 2023-10-27 19:43:06 +01:00
bmips bmips: dts: move leds dt-bindings include to SoCs 2024-02-08 09:45:26 +01:00
gemini kernel: bump 6.1 to 6.1.71 2024-01-06 12:52:49 +01:00
generic generic: replace simple AQR hack patch with upstream version 2024-02-21 02:34:32 +01:00
imx imx: remove 5.15 support 2024-02-18 11:23:19 +00:00
ipq40xx mediatek: switch to pending XFI 10G Ethernet drivers 2024-02-15 19:06:36 +00:00
ipq806x ipq806x: fix dts error in LED color/function conversion 2024-02-08 00:01:22 +01:00
ixp4xx ixp4xx: add Generic subtarget definition 2023-12-09 14:45:50 +01:00
kirkwood kernel: bump 6.1 to 6.1.78 2024-02-18 11:20:27 +00:00
lantiq lantiq: fix dts error in LED color/function conversion 2024-02-08 00:01:22 +01:00
layerscape kernel: backport phylink changes from mainline Linux 2024-02-15 19:06:36 +00:00
malta malta: Remove kernel 5.15 configuration 2024-02-03 04:35:25 +00:00
mediatek mediatek: filogic: fix mt7981 DT nodenames 2024-02-20 12:42:28 +01:00
mpc85xx mpc85xx: convert to new LED color/function format where possible 2024-02-07 14:48:40 +01:00
mvebu kernel: bump 6.1 to 6.1.78 2024-02-18 11:20:27 +00:00
mxs mxs: add testing kernel 6.1 2023-07-01 12:54:30 +02: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.148 2024-02-01 21:36:00 +01:00
omap omap: drop kernel 5.15 2024-02-13 19:05:48 +01:00
oxnas oxnas: do not use pcie-controller 2024-01-01 02:34:48 +01: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: ipq807x: add support for Linksys MX5300 2024-02-23 13:34:59 +01:00
ramips ramips: fix and clean up D-Link MAC address 2024-02-22 22:53:30 +01:00
realtek realtek: fix Netgear GS110TPP OEM install 2024-02-18 09:56:45 +01:00
rockchip rockchip: remove LED label hack 2024-02-22 17:30:05 +01:00
sifiveu kernel: remove CONFIG_DEVTMPFS_SAFE from target config 2023-11-19 16:46:24 +01:00
sunxi sunxi: mark upstreamed patches as such 2023-12-19 16:02:05 +01:00
tegra treewide: remove files for building 5.10 kernel 2023-05-12 13:02:43 +02:00
uml kernel: bump 6.1 to 6.1.53 2023-09-23 13:10:28 +02:00
x86 Revert "x86: add support for Mellanox Spectrum SN2000 Switches" 2023-12-23 07:52:05 +00: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