openwrtv3/target/linux/ar71xx/patches-4.9
David Ehrmann 81d446b045 ar71x: add support for Mikrotik Routerboard wAP R
This commit adds support for the Mikrotik wAP R (RBwAPR-2nD). The change
is based on 3b15eb0 which added support for the wAP 2nD. This change lacks
LED support.

Specifications:

- SoC: Qualcomm QCA9531 (650 MHz)
- RAM: 64 MB
- Storage: 16 MB NOR SPI flash
- Wireless: built-in QCA9531, 802.11b/g/n 2x2:2
- Ethernet: 1x100Mbps
- Power: 9-30V Passive PoE, 9-30V DC jack, 9-30V automotive jack
- SIM card slot
- Mini-PCIe slot

Installation:

1. Login to the Mikrotik WebUI to backup your licence key
2. Change the following settings in System->Routerboard->Settings:
  - Boot device: try ethernet once then NAND
  - Boot protocol: DHCP
  - Force Backup Booter: checked
3. Setup a DHCP/BOOTP server with:
  - DHCP-Option 66 (TFTP server name) pointing to a local TFTP
    server within the same subnet of the DHCP range
  - DHCP-Option 67 (Bootfile-Name) matching the initramfs filename
    of the to be booted image, e.g.
    openwrt-ar71xx-mikrotik-vmlinux-initramfs.elf
4. Power off the device
5. If this is the second attempt to boot OpenWRT or the boot device isn't
   "try ethernet once then NAND," press and hold the reset button while
   powered off. If this is the first attempt, this step isn't necessary.
6. Power on the device, holding the reset button for 15-20s if already
   pressed from the previous step.

The board should load and start the initramfs image from the TFTP
server. Login as root/without password to the started OpenWRT via SSH
listing on IPv4 address 192.168.1.1. Use sysupgrade to install OpenWRT.

Revert to RouterOS

Use the "rbcfg" package on in OpenWRT:
- rbcfg set boot_protocol bootp
- rbcfg set boot_device ethnand
- rbcfg apply

Open Netinstall and reboot routerboard. Now Netinstall sees RouterBOARD
and you can install RouterOS. If NetInstall gets stuck on Sending offer
just wait for it to timeout and then close and open Netinstall again.

Click on install again.

In order for RouterOS to function properly, you need to restore license
for the device. You can do that by including license in NetInstall.

Signed-off-by: David Ehrmann <ehrmann@gmail.com>
2018-06-19 14:32:47 +02:00
..
001-spi-cs-gpio.patch
002-add_back_gpio_function_select.patch
004-register_gpio_driver_earlier.patch kernel: bump 4.9 to 4.9.82 2018-02-18 02:59:57 +01:00
100-MIPS-ath79-Avoid-using-unitialized-reg-variable.patch
103-MIPS-ath79-fix-register-address-in-ath79_ddr_wb_flus.patch
104-spi-spi-ath79-support-multiple-internal-chip-select-.patch
105-spi-spi-ath79-use-gpio_set_value_cansleep-for-GPIO-c.patch
106-02-MIPS-ath79-do-AR724x-PCIe-root-complex-init.patch
200-MIPS-ath79-fix-ar933x-wmac-reset.patch
201-ar913x_wmac_external_reset.patch
202-MIPS-ath79-ar934x-wmac-revision.patch
203-MIPS-ath79-fix-restart.patch
220-add_cpu_feature_overrides.patch
300-MIPS-add-MIPS_MACHINE_NONAME-macro.patch
310-lib-add-rle-decompression.patch
401-mtd-physmap-add-lock-unlock.patch
402-mtd-SST39VF6401B-support.patch
403-mtd_fix_cfi_cmdset_0002_status_check.patch kernel: bump 4.9 to 4.9.100 2018-05-18 09:10:21 +02:00
404-mtd-cybertan-trx-parser.patch
405-mtd-tp-link-partition-parser.patch
407-mtd-m25p80-allow-to-pass-probe-types-via-platform-data.patch kernel: m25p80: allow fallback from spi_flash_read to regular SPI transfer 2018-02-26 19:20:06 +01:00
408-mtd-redboot_partition_scan.patch
409-mtd-rb4xx_nand_driver.patch
410-mtd-rb750-nand-driver.patch
411-mtd-cfi_cmdset_0002-force-word-write.patch kernel: bump 4.9 to 4.9.100 2018-05-18 09:10:21 +02:00
413-mtd-ar934x-nand-driver.patch
414-mtd-rb91x-nand-driver.patch
420-net-ar71xx_mac_driver.patch
423-dsa-add-88e6063-driver.patch ar71xx: fix Kconfig dependency of the 88E6063 switch DSA driver 2018-01-09 08:34:03 +01:00
430-drivers-link-spi-before-mtd.patch
432-spi-rb4xx-spi-driver.patch kernel: bump 4.9 to 4.9.96 2018-04-26 08:53:54 +02:00
433-spi-rb4xx-cpld-driver.patch kernel: bump 4.9 to 4.9.96 2018-04-26 08:53:54 +02:00
435-spi-vsc7385_driver.patch kernel: bump 4.9 to 4.9.96 2018-04-26 08:53:54 +02:00
440-leds-wndr3700-usb-led-driver.patch
441-leds-rb750-led-driver.patch
442-leds-gpio-allow-to-use-OPEN_-DRAIN-SOURCE-flags-with.patch ar71xx: make leds-gpio usable with single-ended GPIOs 2018-01-22 10:53:32 +01:00
450-gpio-nxp-74hc153-gpio-chip-driver.patch kernel: bump 4.9 to 4.9.63 2017-11-22 20:45:52 +01:00
451-gpio-74x164-improve-platform-device-support.patch ar71xx: fix regression in 74x164 initialization with 4.9 2017-11-10 00:53:10 +01:00
452-gpio-add-gpio-latch-driver.patch kernel: bump 4.9 to 4.9.63 2017-11-22 20:45:52 +01:00
461-spi-ath79-add-fast-flash-read.patch
470-MIPS-ath79-swizzle-pci-address-for-ar71xx.patch
490-usb-ehci-add-quirks-for-qca-socs.patch
500-MIPS-fw-myloader.patch kernel: bump 4.9 to 4.9.100 2018-05-18 09:10:21 +02:00
501-MIPS-ath79-add-mac-argument-to-ath79_register_wmac.patch
504-MIPS-ath79-add-ath79_device_reset_get.patch
505-MIPS-ath79-add-ath79_gpio_function_select.patch
506-MIPS-ath79-prom-parse-redboot-args.patch
507-MIPS-ath79-prom-add-myloader-support.patch
508-MIPS-ath79-prom-image-command-line-hack.patch
509-MIPS-ath79-process-board-kernel-option.patch
510-MIPS-ath79-init-gpio-pin-of-wmac-device.patch
520-MIPS-ath79-enable-UART-function.patch
521-MIPS-ath79-enable-UART-for-early_serial.patch
522-MIPS-ath79-add-ath79_wmac_register_simple-helper.patch
523-MIPS-ath79-OTP-support.patch
524-MIPS-ath79-add-ath79_wmac_disable_25ghz-helpers.patch
525-MIPS-ath79-enable-qca-usb-quirks.patch
601-MIPS-ath79-add-more-register-defines.patch
602-MIPS-ath79-add-openwrt-stuff.patch
603-MIPS-ath79-ap121-fixes.patch
604-MIPS-ath79-no-of.patch kernel: bump 4.9 to 4.9.100 2018-05-18 09:10:21 +02:00
605-MIPS-ath79-db120-fixes.patch
606-MIPS-ath79-pb44-fixes.patch
607-MIPS-ath79-ubnt-xm-fixes.patch
608-MIPS-ath79-ubnt-xm-add-more-boards.patch
609-MIPS-ath79-ap136-fixes.patch
611-MIPS-ath79-wdt-timeout.patch
612-MIPS-ath79-set-buffalo-txgain.patch
613-MIPS-ath79-add-ath79_wmac_setup_ext_lna_gpio-helper.patch
620-MIPS-ath79-add-support-for-QCA953x-SoC.patch ar71xx: disable 40Mhz refclk for QCA953x 2018-02-22 18:53:22 +01:00
621-MIPS-ath79-add-support-for-QCA956x-SoC.patch ar71xx: disable 40Mhz refclk for QCA953x 2018-02-22 18:53:22 +01:00
622-MIPS-ath79-add-more-register-defines-for-QCA956x-SoC.patch
630-MIPS-ath79-fix-chained-irq-disable.patch
631-MIPS-ath79-wmac-enable-set-led-pin.patch ar71xx: disable 40Mhz refclk for QCA953x 2018-02-22 18:53:22 +01:00
632-MIPS-ath79-gpio-enable-set-direction.patch
640-MIPS-ath79-add-QCA955x-wmac-reset.patch ar71xx: disable 40Mhz refclk for QCA953x 2018-02-22 18:53:22 +01:00
700-MIPS-ath79-add-openwrt-Kconfig.patch
701-MIPS-ath79-add-routerboard-detection.patch ar71x: add support for Mikrotik Routerboard wAP R 2018-06-19 14:32:47 +02:00
702-MIPS-ath79-fixup-routerboot-board-parameter.patch ar71xx: fix board detection with newer RouterBOOT versions 2017-12-12 17:05:25 +08:00
739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch
740-MIPS-ath79-add-PCI-for-QCA953x-SoC.patch
741-MIPS-ath79-add-PCI-for-QCA9556-SoC.patch ar71xx: fix format of the 741-MIPS-ath79-add-PCI-for-QCA9556-SoC patches 2018-01-17 11:07:17 +01:00
818-MIPS-ath79-add-nu801-led-driver.patch
820-MIPS-ath79-add_gpio_function2_setup.patch
900-mdio_bitbang_ignore_ta_value.patch
901-phy-mdio-bitbang-prevent-rescheduling-during-command.patch
902-at803x-add-reset-gpio-pdata.patch kernel: bump to 4.9.105 2018-06-01 08:25:14 +02:00
910-unaligned_access_hacks.patch kernel: bump 4.9 to 4.9.107 2018-06-09 22:39:17 +02:00
920-usb-chipidea-AR933x-platform-support.patch ar71xx: rework chipidea controller support, add QCA9531 2018-04-06 23:11:00 +02:00
921-MIPS-ath79-add-even-more-register-defines-for-QCA956x-SoC.patch ar71xx: add more registers to ar71x_regs.h 2018-02-13 11:20:58 +01:00
930-chipidea-pullup.patch kernel: bump 4.9 to 4.9.96 2018-04-26 08:53:54 +02:00