openwrt/target/linux/ipq40xx/patches-5.4
Davide Fioravanti 2cb24b3f3c ipq40xx: add support for Netgear SRR60/SRS60 and RBR50/RBS50
The Netgear SRS60 and SRR60 (sold together as SRK60) are two almost
identical AC3000 routers. The SRR60 has one port labeled as wan while
the SRS60 not. The RBR50 and RBS50 (sold together as RBK50) have a
different external shape but they have an USB 2.0 port on the back.

This patch has been tested only on SRS60 and RBR50, but should work
on SRR60 and RBS50.

Hardware
--------
SoC:   Qualcomm IPQ4019 (717 MHz, 4 cores 4 threads)
RAM:   512MB DDR3
FLASH: 4GB EMMC
ETH:
  - 3x 10/100/1000 Mbps Ethernet
  - 1x 10/100/1000 Mbps Ethernet (WAN)
WIFI:
  - 2.4GHz: 1x IPQ4019 (2x2:2)
  - 5GHz:   1x IPQ4019 (2x2:2)
  - 5GHz:   1x QCA9984 (4x4:4)
  - 6 internal antennas
BTN:
  - 1x Reset button
  - 1x Sync button
  - 1x ON/OFF button
LEDS:
  - 8 leds controlled by TLC59208F (they can be switched on/off
    independendently but the color can by changed by GPIOs)
  - 1x Red led (Power)
  - 1x Green led (Power)
UART:
  - 115200-8-N-1

Everything works correctly.

Installation
------------
These routers have a dual partition system. However this firmware works
only on boot partition 1 and the OEM web interface will always flash on
the partition currently not booted.

The following steps will use the SRS60 firmware, but you have to chose
the right firmware for your router.

There are 2 ways to install Openwrt the first time:

1) Using NMRPflash
 1. Download nmrpflash (https://github.com/jclehner/nmrpflash)
 2. Put the openwrt-ipq40xx-generic-netgear_srs60-squashfs-factory.img
	file in the same folder of the nmrpflash executable
 3. Connect your pc to the router using the port near the power button.
 4. Run "nmrpflash -i XXX -f openwrt-ipq40xx-generic-netgear_srs60-squashfs-factory.img".
	Replace XXX with your network interface (can be identified by
	running "nmrpflash -L")
 5. Power on the router and wait for the flash to complete. After about
	a minute the router should boot directly to Openwrt. If nothing
	happens try to reboot the router. If you have problems flashing
	try to set "10.164.183.253" as your computer IP address

2) Without NMRPflash
The OEM web interface will always flash on the partition currently not
booted, so to flash OpenWrt for the first time you have to switch to
boot partition 2 and then flash the factory image directly from the OEM
web interface.

To switch on partition 2 you have to enable telnet first:
 1. Go to http://192.168.1.250/debug.htm and check "Enable Telnet".
 2. Connect through telent ("telnet 192.168.1.250") and login using
	admin/password.

	To read the current boot_part:
		artmtd -r boot_part

	To write the new boot_part:
		artmtd -w boot_part 02

	Then reboot the router and then check again the current booted
	partition

Now that you are on boot partition 2 you can flash the factory Openwrt
image directly from the OEM web interface.

Restore OEM Firmware
--------------------
 1. Download the stock firmware from official netgear support.
 2. Follow the nmrpflash procedure like above, using the official
	Netgear firmware (for example SRS60-V2.2.1.210.img)

        nmrpflash -i XXX -f SRS60-V2.2.1.210.img

Notes
-----
1) You can check and edit the boot partition in the Uboot shell using
	the UART connection.
	"boot_partition_show" shows the current boot partition
	"boot_partition_set 1" sets the current boot partition to 1

2) Router mac addresses:

   LAN XX:XX:XX:XX:XX:69
   WAN XX:XX:XX:XX:XX:6a
   WIFI 2G XX:XX:XX:XX:XX:69
   WIFI 5G XX:XX:XX:XX:XX:6b
   WIFI 5G (2nd) XX:XX:XX:XX:XX:6c

   LABEL XX:XX:XX:XX:XX:69

Signed-off-by: Davide Fioravanti <pantanastyle@gmail.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
[added 5.10 changes for 901-arm-boot-add-dts-files.patch, moved
sysupgrade mmc.sh to here and renamed it, various dtsi changes]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2021-11-01 00:56:51 +01:00
..
100-GPIO-add-named-gpio-exports.patch kernel: bump 5.4 to 5.4.114 2021-04-30 23:48:37 +02:00
101-arm-dts-IPQ4019-add-SDHCI-VQMMC-LDO-node.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
102-ARM-dts-qcom-ipq4019-add-USB-devicetree-nodes.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
103-arm-dts-qcom-ipq4019-add-more-labels.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
104-clk-fix-apss-cpu-overclocking.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
105-ipq40xx-fix-sleep-clock.patch ipq40xx: fix sleep clock 2021-11-01 00:56:51 +01:00
300-clk-qcom-ipq4019-add-ess-reset.patch ipq40xx: 5.4: refresh patches and config 2020-02-28 22:46:27 +01:00
301-arm-compressed-add-appended-DTB-section.patch ipq40xx: arm: compressed: add appended DTB section 2021-01-17 14:23:05 +01:00
302-arm-compressed-set-ipq40xx-watchdog-to-allow-boot.patch ipq40xx: kernel compressed boot: reset watchdog countdown 2021-01-17 14:23:05 +01:00
400-mmc-sdhci-sdhci-msm-use-sdhci_set_clock-instead-of-s.patch kernel: bump 5.4 to 5.4.144 2021-09-13 17:08:17 +02:00
702-dts-ipq4019-add-PHY-switch-nodes.patch ipq40xx: add IPQ4019 SD/MMC controller support 2020-03-09 00:53:50 +01:00
703-net-IPQ4019-needs-rfs-vlan_tag-callbacks-in.patch kernel: bump 5.4 to 5.4.61 2020-08-30 19:44:47 +02:00
705-net-add-qualcomm-ar40xx-phy.patch ipq40xx: net: phy: ar40xx: remove PHY handling 2020-12-23 16:36:08 +01:00
706-dt-bindings-net-add-QCA807x-PHY.patch ipq40xx: add Qualcomm QCA807x driver 2020-12-23 16:36:08 +01:00
707-net-phy-Add-Qualcom-QCA807x-driver.patch ipq40xx: add Qualcomm QCA807x driver 2020-12-23 16:36:08 +01:00
708-arm-dts-ipq4019-QCA807x-properties.patch ipq40xx: dts: add QCA807x properties 2020-12-23 16:36:08 +01:00
710-net-add-qualcomm-essedma-ethernet-driver.patch ipq40xx: edma: convert to of_mdio_find_bus() 2020-12-23 16:36:08 +01:00
711-dts-ipq4019-add-ethernet-essedma-node.patch ipq40xx: dts: add QCA807x properties 2020-12-23 16:36:08 +01:00
850-soc-add-qualcomm-syscon.patch ipq40xx: 5.4: refresh patches and config 2020-02-28 22:46:27 +01:00
900-dts-ipq4019-ap-dk01.1.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
901-arm-boot-add-dts-files.patch ipq40xx: add support for Netgear SRR60/SRS60 and RBR50/RBS50 2021-11-01 00:56:51 +01:00
902-dts-ipq4019-ap-dk04.1.patch ipq40xx: do not remove pci@40000000 for ap.dk04.1 2020-11-13 18:34:41 +01:00
997-device_tree_cmdline.patch ipq40xx: 5.4: refresh patches and config 2020-02-28 22:46:27 +01:00
0001-v5.7-ARM-qcom-Add-support-for-IPQ40xx.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0002-01-v5.6-regulator-add-IPQ4019-SDHCI-VQMMC-LDO-driver.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0002-02-v5.5-ARM-dts-qcom-ipq4019-Add-SDHCI-controller-node.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0003-v5.6-ARM-dts-qcom-Add-nodes-for-SMP-boot-in-IPQ40xx.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0003-v5.7-ARM-dts-qcom-add-gpio-ranges-property.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0004-v5.8-ARM-dts-qcom-ipq4019-fix-high-resolution-timer.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0005-01-v5.8-net-phy-mdio-add-IPQ4019-MDIO-driver.patch ipq40xx: backport upstream MDIO driver 2020-12-23 16:36:08 +01:00
0005-02-v5.8-02-ARM-dts-qcom-ipq4019-add-MDIO-node.patch ipq40xx: backport upstream MDIO driver 2020-12-23 16:36:08 +01:00
0006-v5.5-crypto-qce-add-CRYPTO_ALG_KERN_DRIVER_ONLY-flag.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0007-v5.5-crypto-qce-switch-to-skcipher-API.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0008-v5.6-crypto-qce-fix-ctr-aes-qce-block-chunk-sizes.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0009-v5.6-crypto-qce-fix-xts-aes-qce-key-sizes.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0010-v5.6-crypto-qce-save-a-sg-table-slot-for-result-buf.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0011-v5.6-crypto-qce-update-the-skcipher-IV.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0012-v5.6-crypto-qce-initialize-fallback-only-for-AES.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0013-v5.6-crypto-qce-allow-building-only-hashes-ciphers.patch kernel: bump 5.4 to 5.4.86 2021-01-01 17:07:28 +01:00
0014-v5.7-crypto-qce-use-cryptlen-when-adding-extra-sgl.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0015-v5.7-crypto-qce-use-AES-fallback-for-small-requests.patch kernel: bump 5.4 to 5.4.86 2021-01-01 17:07:28 +01:00
0016-v5.7-crypto-qce-handle-AES-XTS-cases-that-qce-fails.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0017-v5.8-phy-add-driver-for-Qualcomm-IPQ40xx-USB-PHY.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0018-v5.9-pinctrl-msm-open-drain.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0019-v5.6-mtd-spi-nor-Add-support-for-mx25r3235f.patch kernel-5.4: bump to 5.4.102 and refresh patches 2021-03-04 22:06:53 +01:00