1. 30 Nov, 2019 2 commits
  2. 29 Nov, 2019 21 commits
  3. 28 Nov, 2019 1 commit
  4. 26 Nov, 2019 8 commits
    • Piotr Dymacz's avatar
      uboot-envtools: ath79: add support for YunCore XD4200 and A782 · 1859391e
      Piotr Dymacz authored
      
      Signed-off-by: default avatarPiotr Dymacz <pepe2k@gmail.com>
      (cherry picked from commit 5d2a9001)
      1859391e
    • Piotr Dymacz's avatar
      ath79: add support for YunCore XD4200 and A782 · 45c9923e
      Piotr Dymacz authored
      
      
      YunCore XD4200 ('XD4200_W6.0' marking on PCB) is Qualcomm/Atheros based
      (QCA9563, QCA9886, QCA8334) dual-band, Wave-2 AC1200 ceiling AP with PoE
      (802.3at) support. A782 model ('T750_V5.1' marking on PCB) is a smaller
      version of the XD4200, with similar specification but lower TX power.
      
      Specification:
      
      - QCA9563 (775 MHz)
      - 128 MB of RAM (DDR2)
      - 16 MB of FLASH (SPI NOR)
      - 2x 10/100/1000 Mbps Ethernet (QCA8334), with 802.3at PoE support (WAN)
      - Wi-Fi 2.4 GHz:
        - XD4200: 2T2R (QCA9563), with ext. PA (SKY65174-21) and LNA
        - A782: 2T2R (QCA9563), with ext. FEM (SKY85329-11)
      - Wi-Fi 5 GHz:
        - XD4200: 2T2R (QCA9886), with ext. FEM (SKY85728-11)
        - A782: 2T2R (QCA9886), with ext. FEM (SKY85735-11)
      - LEDs:
        - XD4200: 5x (2x driven by SOC, 1x driven by AC radio, 2x Ethernet)
        - A782: 3x (1x RGB, driven by SOC and radio, 2x Ethernet)
      - 1x button (reset)
      - 1x UART (4-pin, 2.54 mm pitch) header on PCB
      - 1x DC jack (12 V)
      
      Flash instructions:
      
      If your device comes with generic QSDK based firmware, you can login
      over telnet (login: root, empty password, default IP: 192.168.188.253),
      issue first (important!) 'fw_setenv' command and then perform regular
      upgrade, using 'sysupgrade -n -F ...' (you can use 'wget' to download
      image to the device, SSH server is not available):
      
        fw_setenv bootcmd "bootm 0x9f050000 || bootm 0x9fe80000"
        sysupgrade -n -F openwrt-...-yuncore_...-squashfs-sysupgrade.bin
      
      In case your device runs firmware with YunCore custom GUI, you can use
      U-Boot recovery mode:
      
      1. Set a static IP 192.168.0.141/24 on PC and start TFTP server with
         'tftp' image renamed to 'upgrade.bin'
      2. Power the device with reset button pressed and release it after 5-7
         seconds, recovery mode should start downloading image from server
         (unfortunately, there is no visible indication that recovery got
         enabled - in case of problems check TFTP server logs)
      Signed-off-by: default avatarPiotr Dymacz <pepe2k@gmail.com>
      (backported from commit e5d4c096)
      45c9923e
    • Vincent Wiemann's avatar
      ath79: add support for YunCore TFTP image generation · 83a18aef
      Vincent Wiemann authored
      
      
      YunCore QCA9k based devices released in 2019 require a custom TFTP image
      for U-Boot built-in recovery mode (triggered with reset button). Image
      has to be prepended with 'YUNCORE' keyword followed by U-Boot CLI
      commands which will be executed later. Images without the custom header
      will be ignored by U-Boot.
      
      To be able to support both the vendor firmware (QSDK) and OpenWrt flash
      layouts, used here commands change the 'bootcmd' before flashing image.
      
      This commit adds generic helper script for YunCore devices with 16 MB of
      flash and enables TFTP image generation for A770 model.
      Signed-off-by: default avatarVincent Wiemann <vincent.wiemann@ironai.com>
      [pepe2k@gmail.com: commit description reworded, recipe renamed]
      Signed-off-by: default avatarPiotr Dymacz <pepe2k@gmail.com>
      (cherry picked from commit 8016f648)
      83a18aef
    • Adrian Schmutzler's avatar
      ath79: Add support for TP-Link Archer C60 v2 · 449433d1
      Adrian Schmutzler authored
      
      
      TP-Link Archer C60 v2 is a dual-band AC1350 router,
      based on Qualcomm/Atheros QCA9561 + QCA9886.
      
      Specification:
      
      - 775/650/258 MHz (CPU/DDR/AHB)
      - 64 MB of RAM (DDR2)
      - 8 MB of FLASH (SPI NOR)
      - 3T3R 2.4 GHz
      - 2T2R 5 GHz
      - 5x 10/100 Mbps Ethernet
      - 7x LED, 2x button
      - UART header on PCB
      
      Flash instruction (WebUI):
      Download *-factory.bin image and upload it via the firmwary upgrade
      function of the stock firmware WebUI.
      
      Flash instruction (TFTP):
      1. Set PC to fixed IP address 192.168.0.66
      2. Download *-factory.bin image and rename it to tp_recovery.bin
      3. Start a tftp server with the file tp_recovery.bin in its root
         directory
      4. Turn off the router
      5. Press and hold reset button
      6. Turn on router with the reset button pressed and wait ~15 seconds
      7. Release the reset button and after a short time the firmware should
         be transferred from the tftp server
      8. Wait ~30 second to complete recovery
      
      Flash instruction (under U-Boot, using UART):
      tftp 0x81000000 ...-sysupgrade.bin
      erase 0x9f030000 +$filesize
      cp.b $fileaddr 0x9f030000 $filesize
      reset
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      (cherry picked from commit 974d6958)
      449433d1
    • Adrian Schmutzler's avatar
      ath79: Add support for TP-Link Archer C60 v1 · 70233e3a
      Adrian Schmutzler authored
      
      
      TP-Link Archer C60v1 is a dual-band AC1350 router,
      based on Qualcomm/Atheros QCA9561+QCA9886.
      
      Specification:
      
      - 775/650/258 MHz (CPU/DDR/AHB)
      - 64 MB of RAM (DDR2)
      - 8 MB of FLASH (SPI NOR)
      - 3T3R 2.4 GHz
      - 2T2R 5 GHz
      - 5x 10/100 Mbps Ethernet
      - 7x LED, 2x button
      - UART header on PCB
      
      Flash instruction (WebUI):
      Download *-factory.bin image and upload it via the firmwary upgrade
      function of the stock firmware WebUI.
      
      Flash instruction (TFTP):
      1. Set PC to fixed ip address 192.168.0.66
      2. Download *-factory.bin image and rename it to tp_recovery.bin
      3. Start a tftp server with the file tp_recovery.bin in its root directory
      4. Turn off the router
      5. Press and hold Reset button
      6. Turn on router with the reset button pressed and wait ~15 seconds
      7. Release the reset button and after a short time
      the firmware should be transferred from the tftp server
      8. Wait ~30 second to complete recovery.
      
      Flash instruction under U-Boot, using UART:
      1. tftp 0x81000000 ...-sysupgrade.bin
      2. erase 0x9f020000 +$filesize
      3. cp.b $fileaddr 0x9f020000 $filesize
      4. reset
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      (cherry picked from commit 6d313da6)
      70233e3a
    • Sungbo Eo's avatar
      base-files: config_generate: split macaddr with multiple ifaces · a2d9de21
      Sungbo Eo authored
      netifd does not handle network.@device[x].name properly if it
      contains multiple ifaces separated by spaces. Due to this, board.d
      lan_mac setup does not work if multiple ifaces are set to LAN by
      ucidef_set_interface_lan.
      
      To fix this, create a device node for each member iface when
      running config_generate instead. Those are named based on the
      member ifname:
      
        ucidef_set_interface_lan "eth0 eth1.1"
        ucidef_set_interface_macaddr "lan" "yy:yy:yy:yy:yy:01"
      
      will return
      
        config device 'lan_eth0_dev'
              option name 'eth0'
              option macaddr 'yy:yy:yy:yy:yy:01'
      
        config device 'lan_eth1_1_dev'
              option name 'eth1.1'
              option macaddr 'yy:yy:yy:yy:yy:01'
      
      ref: https://github.com/openwrt/openwrt/pull/2542
      
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      [always use new scheme, extend description, change commit title]
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      (cherry picked from commit 298814e6)
      a2d9de21
    • Lech Perczak's avatar
      ar71xx: ubnt-(xm,xw): add rssileds package · 3a5e28bd
      Lech Perczak authored
      
      
      In order to make RSSI indicator on the device work out of box,
      include "rssileds" package in per-device rootfs image by default
      for Ubiquiti XM and XW devices, namely:
      - Bullet M (XM/XW)
      - Rocket M (XM/XW)
      - Nanostation M (XM/XW)
      - Nanostation Loco-M (XW)
      
      This moves the package addition to the individual devices in order
      to prevent accidental inclusions of the package when not looking
      at the parent node carefully enough.
      Signed-off-by: default avatarLech Perczak <lech.perczak@gmail.com>
      [add bullet-m-xw, remove rocket-m-ti, extend commit message]
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      (cherry picked from commit 08d9c954)
      3a5e28bd
    • Adrian Schmutzler's avatar
      ath79: add PoE passthrough switch for Ubiquiti Nanostation (XM/XW) · 1cb763c5
      Adrian Schmutzler authored
      
      
      This adds the gpio switch to enable PoE passthrough on Ubiquiti
      Nanostation (XM/XW).
      
      Values are copied from the implementation in ar71xx.
      
      GPIO values checked on:
      - NanoStation M5 XW
      - NanoStation M2 XM
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      (cherry picked from commit 317e98a5)
      1cb763c5
  5. 24 Nov, 2019 7 commits
    • Piotr Dymacz's avatar
      uboot-envtools: ramips: add support for ALFA Network Quad-E4G · a0897f8a
      Piotr Dymacz authored
      
      Signed-off-by: default avatarPiotr Dymacz <pepe2k@gmail.com>
      (cherry picked from commit 10bcf1eb)
      a0897f8a
    • Piotr Dymacz's avatar
      ramips: add support for ALFA Network Quad-E4G · 71469caa
      Piotr Dymacz authored
      
      
      ALFA Network Quad-E4G is a universal Wi-Fi/4G platform, which offers
      three miniPCIe (PCIe, USB 2.0, SIM) and a single M.2 B-key (dual-SIM,
      USB 3.0) slots, RTC and five Gigabit Ethernet ports with PoE support.
      
      Specification:
      
      - MT7621A (880 MHz)
      - 256/512 MB of RAM (DDR3)
      - 16/32+ MB of FLASH (SPI NOR)
      - optional second SPI flash (8-pin WSON/SOIC)
      - 1x microSD (SDXC) flash card reader
      - 5x 10/100/1000 Mbps Ethernet, with passive PoE support (24 V) in LAN1
      - optional 802.3at/af PoE module for WAN
      - 3x miniPCIe slot (with PCIe and USB 2.0 buses, micro SIM and 5 V)
      - 1x M.2/NGFF B-key 3042 (USB 3.0/2.0, mini + micro SIM)
      - RTC (TI BQ32002, I2C bus) with backup battery (CR2032)
      - external hardware watchdog (EM Microelectronic EM6324)
      - 1x USB 2.0 Type-A
      - 1x micro USB Type-B for system serial console (Holtek HT42B534)
      - 11x LED (5 for Ethernet, 5 driven by GPIO, 1x power indicator)
      - 3x button (reset, user1, user2)
      - 1x I2C (4-pin, 2.54 mm pitch) header on PCB
      - 4x SIM (6-pin, 2.00 mm pitch) headers on PCB
      - 2x UART2/3 (4-pin, 2.54 mm pitch) headers on PCB
      - 1x mechanical power switch
      - 1x DC jack with lock (24 V)
      
      Other:
      
      - U-Boot selects default SIM slot, based on value of 'default_sim' env
        variable: '1' or unset -> SIM1 (mini), '2' -> SIM2 (micro). This board
        has additional logic circuit for M.2 SIM switching. The 'sim-select'
        will work only if both SIM slots are occupied. Otherwise, always slot
        with SIM inside is selected, no matter 'sim-select' value.
      - U-Boot enables power in all three miniPCIe and M.2 slots before
        loading the kernel
      - this board supports 'dual image' feature (controlled by 'dual_image'
        U-Boot environment variable)
      - all three miniPCIe slots have additional 5 V supply on pins 47 and 49
      - the board allows to install up to two oversized miniPCIe cards (vendor
        has dedicated MediaTek MT7615N/D cards for this board)
      - this board has additional logic circuit controlling PERSTn pins inside
        miniPCIe slots. By default, PERSTn (GPIO19) is routed to all miniPCIe
        slots but setting GPIO22 to high allows PERSTn control per slot, using
        GPIO23-25 (value is inverted)
      
      Flash instructions:
      
      You can use the 'sysupgrade' image directly in vendor firmware which is
      based on OpenWrt (make sure to not preserve settings - use 'sysupgrade
      -n -F ...' command). Alternatively, use web recovery mode in U-Boot:
      
      1. Power the device with reset button pressed, the modem LED will start
         blinking slowly and after ~3 seconds, when it starts blinking faster,
         you can release the button.
      2. Setup static IP 192.168.1.2/24 on your PC.
      3. Go to 192.168.1.1 in browser and upload 'sysupgrade' image.
      Signed-off-by: default avatarPiotr Dymacz <pepe2k@gmail.com>
      (backported from commit e68539ac)
      71469caa
    • Piotr Dymacz's avatar
      uboot-envtools: ramips: add support for ALFA Network R36M-E4G · 939dfe61
      Piotr Dymacz authored
      
      Signed-off-by: default avatarPiotr Dymacz <pepe2k@gmail.com>
      (cherry picked from commit 3cfea3a3)
      939dfe61
    • Piotr Dymacz's avatar
      ramips: add support for ALFA Network R36M-E4G · c515cd7c
      Piotr Dymacz authored
      
      
      ALFA Network R36M-E4G is a dual-SIM, N300 Wi-Fi, compact size platform
      based on MediaTek MT7620A WiSoC. This product is designed for operation
      with 4G modem (can be bought in bundle with Quectel EC25, EG25 or EP06)
      but supports also Wi-Fi modules (miniPCIe slot has USB and PCIe buses).
      
      Specification:
      
      - MT7620A (580 MHz)
      - 64/128/256 MB of RAM (DDR2)
      - 16/32+ MB of FLASH (SPI NOR)
      - 2x 10/100 Mbps Ethernet, with passive PoE support (24 V)
      - 2T2R 2.4 GHz (MT7620A), with ext. LNA (RFFM4227)
      - 1x miniPCIe slot (with PCIe and USB 2.0 buses and optional 5 V)
      - 2x SIM slot (mini, micro) with detect and switch driven by GPIO
      - 2x u.fl antenna connectors (for Wi-Fi)
      - 8x LED (7 driven by GPIO)
      - 2x button (reset, wifi)
      - 2x UART (4-pin/2.54 mm pitch, 10-pin/1.27 mm pitch) headers on PCB
      - 1x I2C (4-pin, 1.27 mm pitch) header on PCB
      - 1x LED (8-pin, 1.27 mm pitch) header on PCB
      - 1x DC jack with lock (12 V)
      
      Other:
      
      - there is a dedicated, 4-pin connector for optional RTC module (Holtek
        HT138x) with 'enable' input, not available at the time of preparing
        support for this board
      - miniPCIe slot supports additional 5 V supply on pins 47 and 49 but a
        jumper resistor (R174) is not installed by default
      - U-Boot selects default SIM slot, based on value of 'default_sim' env
        variable: '1' or unset -> SIM1 (mini), '2' -> SIM2 (micro). This will
        work only if both slots are occupied, otherwise U-Boot will always
        select slot with SIM card inside (user can override it later, in
        user-space)
      - U-Boot resets the modem, using PERSTn signal, before starting kernel
      - this board supports 'dual image' feature (controlled by 'dual_image'
        U-Boot environment variable)
      
      Flash instruction:
      
      You can use the 'sysupgrade' image directly in vendor firmware which is
      based on OpenWrt (make sure to not preserve settings - use 'sysupgrade
      -n -F ...' command). Alternatively, use web recovery mode in U-Boot:
      
      1. Power the device with reset button pressed, the modem LED will start
         blinking slowly and after ~3 seconds, when it starts blinking faster,
         you can release the button.
      2. Setup static IP 192.168.1.2/24 on your PC.
      3. Go to 192.168.1.1 in browser and upload 'sysupgrade' image.
      Signed-off-by: default avatarPiotr Dymacz <pepe2k@gmail.com>
      (backported from commit dfecf94c)
      c515cd7c
    • Piotr Dymacz's avatar
      ramips: support dual image feature on ALFA Network boards · 7a62e909
      Piotr Dymacz authored
      
      
      New U-Boot version for MediaTek MT76x8/MT762x based ALFA Network boards
      includes support for a 'dual image' feature. Users can enable it using
      U-Boot environment variable 'dual_image' ('1' -> enabled).
      
      When 'dual image' feature is enabled, U-Boot will modify DTB and divide
      the original 'firmware' flash area into two, equal in size and aligned
      to 64 KB partitions: 'firmware' and 'backup'. U-Boot will also adjust
      size of 'firmware' area to match installed flash chip size.
      
      U-Boot will load kernel from active partition which is marked with env
      variable 'bootactive' ('1' -> first partition, '2' -> second partition)
      and rename both partitions accordingly ('firmware' <-> 'backup').
      
      There are 3 additional env variables used to control 'dual image' mode:
      - bootlimit   - maximum number of unsuccessful boot tries (default: '3')
      - bootcount   - current number of boot tries
      - bootchanged - flag which informs that active partition was changed; if
                      it is set and 'bootcount' reaches 'bootlimit' value,
                      U-Boot will start web-based recovery which then updates
                      both partitions with provided image
      Signed-off-by: default avatarPiotr Dymacz <pepe2k@gmail.com>
      (backported from commit bc173ddd)
      7a62e909
    • Piotr Dymacz's avatar
      ee71837e
    • Chuanhong Guo's avatar
      ramips: use upstream RAW_APPENDED_DTB instead of our OWRTDTB · 3806899a
      Chuanhong Guo authored
      
      
      Upstream kernel added support for RAW_APPENDED_DTB on ralink arch
      in the following commit:
      02564fc89d3d ("ralink: Introduce fw_passed_dtb to arch/mips/ralink")
      
      Use upstream solution and get rid of our OWRTDTB hack.
      This commit set DEVICE_DTS to $$(DTS) instead of replacing DTS with
      DEVICE_DTS in device profile because DTS variable will be dropped
      in later commits.
      Signed-off-by: default avatarChuanhong Guo <gch981213@gmail.com>
      [Tested on mt7621/mt76x8]
      Tested-by: default avatarChuanhong Guo <gch981213@gmail.com>
      [Tested on rt305x/mt7620]
      Tested-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      (cherry picked from commit 7a8d3432
      
      )
      Signed-off-by: default avatarPiotr Dymacz <pepe2k@gmail.com>
      3806899a
  6. 23 Nov, 2019 1 commit