Skip to content
Snippets Groups Projects
  1. Nov 26, 2018
    • Kevin Schmidt's avatar
      lantiq: enable FXS ports on VR200v · bce555b0
      Kevin Schmidt authored
      
      Disables SMP support.
      Add VR200 target to keep SMP on FXS-less device variant.
      
      Signed-off-by: default avatarKevin Schmidt <kevin.patrick.schmidt@googlemail.com>
      bce555b0
    • INAGAKI Hiroshi's avatar
      ath79: modify mtd partitions for Buffalo BHR-4GRV2 · 879f2ef7
      INAGAKI Hiroshi authored
      
      This commit modifies mtd partitions define for Buffalo BHR-4GRV2 and
      move it to generic subtarget.
      
      In Buffalo BHR-4GRV2, "kernel" partition is located behined "rootfs"
      partition in the stock firmware. This causes the size of the kernel
      to be limited by the fixed value.
      
      0x50000                       0xe80000        0xff0000
        +-------------------------------+--------------+
        |            rootfs             |    kernel    |
        |           (14528k)            |    (1472k)   |
        +-------------------------------+--------------+
      
      After ar71xx was updated to Kernel 4.14, the kernel size of BHR-4GRV2
      exceeded the limit, and it breaks builds on official buildbot.
      Since this issue was also confirmed in ath79, I modified the mtd
      partitions to get rid of that limitation.
      
      0x50000                                       0xff0000
        +----------------------------------------------+
        |                   firmware                   |
        |                   (16000k)                   |
        +----------------------------------------------+
      
      However, this commit breaks compatibility with ar71xx firmware, so I
      dropped "SUPPORTED_DEVICES += bhr-4grv2".
      
      This commit requires new flash instruction instead of the old one.
      
      Flash instruction using initramfs image:
      
      1. Connect the computer to the LAN port of BHR-4GRV2
      2. Set the IP address of the computer to 192.168.12.10
      3. Rename the OpenWrt initramfs image to
      "bhr4grv2-uImage-initramfs-gzip.bin" and place it into the TFTP
      directory
      4. Start the tftp server on the computer
      5. While holding down the "ECO" button, connect power cable to
      BHR-4GRV2 and turn on it
      6. Flashing (orange) diag LED and release the finger from the button,
      BHR-4GRV2 downloads the intiramfs image from TFTP server and boot
      with it
      7. On the initramfs image, create "/etc/fw_env.config" file with
      following contents
        /dev/mtd1 0x0 0x10000 0x10000
      8. Execute following commands to add environment variables for
      u-boot
        fw_setenv ipaddr 192.168.12.1
        fw_setenv serverip 192.168.12.10
        fw_setenv ethaddr 00:aa:bb:cc:dd:ee
        fw_setenv bootcmd "bootm 0x9f050000 || bootm 0x9fe80000"
      9. Perform sysupgrade with squashfs-sysupgrade image
      10. Wait ~150 seconds to complete flashing
      
      And this commit includes small fix; BHR-4GRV2 has QCA9557 as a SoC,
      not QCA9558.
      
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      879f2ef7
    • Robert Marko's avatar
      ath79: Remove source-only flag · d6e92b18
      Robert Marko authored
      
      Remove the source-only flag from ath79, its supposed to replace ar71xx after next stable release but buildbots are not currently generating images for it.
      So in order to expand testing as much as possible and prepare for moving to ath79 lets enable the buildbots to actually build the target.
      
      Signed-off-by: default avatarRobert Marko <robimarko@gmail.com>
      d6e92b18
    • Chuanhong Guo's avatar
      ramips: mt7621-spi: replace the driver with upstream staging one · a44f0000
      Chuanhong Guo authored
      
      That driver is more efficient thanks to the refactor of spi reading operation.
      
      Signed-off-by: default avatarChuanhong Guo <gch981213@gmail.com>
      a44f0000
    • Pawel Dembicki's avatar
      ramips: add support for Lava LR-25G001 · 20b09a21
      Pawel Dembicki authored
      
      The Lava LR-25G001 Wireless Router is based on the MT7620A SoC.
      
      Specification:
      
      - MediaTek MT7620A (580 Mhz)
      - 64 MB of RAM
      - 16 MB of FLASH
      - 1x 802.11bgn radio
      - 1x 802.11ac radio (MT7610EN)
      - 5x 10/100/1000 Mbps AR8337 Switch (1 WAN AND 4 LAN)
      - 2x external, detachable antennas
      - 1x USB 2.0
      - UART (J3) header on PCB (57600 8n1)
      - 8x LED (3x GPIO-controlled), 2x button
      - JBOOT bootloader
      
      Known issues:
      - Work only three Gigabit ports (3/5, 1 WAN and 2LAN)
      
      Installation:
      Apply factory image via http web-gui or JBOOT recovery page
      
      How to revert to OEM firmware:
      - push the reset button and turn on the power. Wait until LED start
        blinking (~10sec.)
      - upload original factory image via JBOOT http (IP: 192.168.123.254)
      
      Signed-off-by: default avatarPawel Dembicki <paweldembicki@gmail.com>
      20b09a21
    • Pawel Dembicki's avatar
      ramips: mt7620: add force use of mdio-mode · b85fe43e
      Pawel Dembicki authored
      
      Some boards have external switches different than mt7530.
      
      This patch allow to use mdio-mode without 0x1f register.
      
      Signed-off-by: default avatarPawel Dembicki <paweldembicki@gmail.com>
      b85fe43e
    • Pawel Dembicki's avatar
      ar8216: add adjust_link checking · e61812fd
      Pawel Dembicki authored
      
      Driver crash when 'phydev->adjust_link' isn't provided.
      
      This patch check if 'phydev->adjust_link' exist before
      call the method.
      
      Signed-off-by: default avatarPawel Dembicki <paweldembicki@gmail.com>
      e61812fd
    • Weijie Gao's avatar
      ramips: fix some clocks in mt7621.dtsi · ed25e3ac
      Weijie Gao authored
      
      As the cpu clock calculation has been fixed, the clock for gic and spi
      should be also fixed.
      
      Signed-off-by: default avatarWeijie Gao <hackpascal@gmail.com>
      ed25e3ac
    • Weijie Gao's avatar
      ramips: fix cpu clock of mt7621 and add dt clk devices · c7ca2242
      Weijie Gao authored
      
      For a long time the mt7621 uses a fixed cpu clock which causes a problem
      if the cpu frequency is not 880MHz.
      
      This patch fixes the cpu clock calculation and adds the cpu/bus clkdev
      which will be used in dts.
      
      Signed-off-by: default avatarWeijie Gao <hackpascal@gmail.com>
      c7ca2242
    • Weijie Gao's avatar
      ramips: fix register range of memc node in mt7621.dtsi · f5af8be6
      Weijie Gao authored
      
      The memc node from mt7621.dtsi has incorrect register resource.
      Fix it according to the programming guide.
      
      Signed-off-by: default avatarWeijie Gao <hackpascal@gmail.com>
      f5af8be6
    • Weijie Gao's avatar
      ramips: merge two patches 101-mt7621-timer and 998-mt7621-needs-jiffies · e217d69a
      Weijie Gao authored
      
      These two patches both modified the mt7621.c, and the patch file
      998-mt7621-needs-jiffies.patch adds only one line which is used by the
      another patch file. So merge them into one file.
      
      Signed-off-by: default avatarWeijie Gao <hackpascal@gmail.com>
      e217d69a
    • INAGAKI Hiroshi's avatar
      ath79: specify "firmware" partition format for Buffalo devices · 83f08aeb
      INAGAKI Hiroshi authored
      
      Specify firmware partition format (denx,uimage) by compatible string
      for Buffalo devices.
      
      affected devices (&run tested):
      - BHR-4GRV
      - WHR-G301N
      - WZR-HP-AG300H
      - WZR-HP-G302H A1A0
      - WZR-HP-G450H (WZR-450HP)
      
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      83f08aeb
    • Tomasz Maciej Nowak's avatar
      sdk: expose part of advanced configuration options · d93b09fa
      Tomasz Maciej Nowak authored
      
      These option can be useful in developement/packagig applications for
      OpenWrt. Instead of searching them by hand in Config-build.in lets
      expose them for easier access.
      
      Signed-off-by: default avatarTomasz Maciej Nowak <tomek_n@o2.pl>
      d93b09fa
    • Steven Honson's avatar
      kernel: nf-nathelper-extra depends on ipt-raw · a73283dc
      Steven Honson authored
      
      The sender domain has a DMARC Reject/Quarantine policy which disallows
      sending mailing list messages using the original "From" header.
      
      To mitigate this problem, the original message has been wrapped
      automatically by the mailing list software.
      As automatic helper assignment is disabled in recent Linux kernels,
      explicit rules must be added to the raw table for each helper.
      
      While commit f50a524 in the firewall3 project added a set of default
      rules and other additional related functionality, both this and the
      alternative manual methods of defining these rules require kmod-ipt-raw.
      
      Signed-off-by: default avatarSteven Honson <steven@honson.id.au>
      a73283dc
    • Lorenzo Bianconi's avatar
      ramips: add mt76x0 node to RT-AC51U device tree · e612e605
      Lorenzo Bianconi authored
      
      Introduce mt76x0e device tree node in RT-AC51U dts.
      Define mt76x0e mtd partition and offset
      
      Signed-off-by: default avatarLorenzo Bianconi <lorenzo.bianconi@redhat.com>
      e612e605
    • Christian Lamparter's avatar
      apm821xx: wndr4700: restore sd-card media detection · 5d5c0b05
      Christian Lamparter authored
      
      This was not converted to the new, dt-based board name.
      
      Fixes: e90dc8d2 ("apm821xx: convert to device-tree board detection")
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      5d5c0b05
    • Christian Lamparter's avatar
      apm821xx: shuffle helper scripts to the front · a2266a6d
      Christian Lamparter authored
      
      In a patch for the ath79, Mathias Kresin mentioned that
      helper scripts should be in front of the device targets.
      
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      a2266a6d
    • Christian Lamparter's avatar
      apm821xx: add support for the Netgear WNDAP620 and WNDAP660 · d82d8469
      Christian Lamparter authored
      
      This patch adds support for the Netgear WNDAP620 and WNDAP660,
      they are similar devices, but due to the LAN LED configuration,
      the switch setup and WIFI configuration each gets a different
      device target.
      
      Hardware Highlights WNDAP620:
      CPU: AMCC PowerPC APM82181 at 1000 MHz
      DRAM:  128 MB, 2 x 64 MiB DDR2 Hynix H5PS5162GF
      CPU: AMCC PowerPC APM82181 at 1000 MHz
      FLASH: 32 MiB, NAND SLC, Hynix HY27US08561A
      Ethernet: RealTek RTL8363SB 2x2-Port Switch PHY - Only 1 GBit Port (POE)
      Wifi: Atheros AR9380 minipcie - Dual-Band - 3x3:3
      Serial: console port with RJ45 Interface (9600-N-8-1)
      LEDS: Power, LAN-Activity, dual color LAN-Linkspeed, 2.4GHz, 5GHz LEDs
      Button: Soft Reset Button
      Antennae: 3 internal dual-band antennae + 3 x RSMA for external antennaes
      
      Hardware Highlights WNDAP660:
      CPU: AMCC PowerPC APM82181 at 1000 MHz + 2 Heatsinks
      DRAM:  256 MB, 2 x 128 MiB DDR2
      FLASH: 32 MiB, NAND SLC, Hynix HY27US08561A
      Ethernet: RealTek RTL8363SB 2x2-Port Switch PHY (POE)
      Wifi1: Atheros AR9380 minipcie - Dual-Band - 3x3:3
      Wifi2: Atheros AR9380 minipcie - Dual-Band - 3x3:3
      Serial: console port with RJ45 Interface (9600-N-8-1)
      LEDS: Power, LAN-Activity, 2x dual color LAN-Linkspeed, 2.4GHz, 5GHz LEDs
      Button: Soft Reset Button
      Antennae: 6 internal dual-band antennae + 3 x RSMA for external antennaes
      
      Flashing requirements:
      
       - needs a tftp server at 192.168.1.10/serverip.
       - special 8P8C(aka RJ45)<->D-SUB9 Console Cable
         ("Cisco Console Cable"). Note: Both WNDAP6x0 have
         a MAX3232 transceivers, hence no need for any separate
         CMOS/TTL level shifters.
      
      External Antenna:
      The antennae mux is controlled by GPIO 11 and GPIO14. Valid Configurations:
       = Config# = | = GPIO 11 = | = GPIO 14 = |  ===== Description =====
            1.     |   1 / High  |  0 / Low    | Use the internal antennae (default)
            2.     |   0 / Low   |  1 / High   | Use the external antennae
      
      The external antennaes are only meant for the 2.4 GHz band.
      
      One-way Flashing instructions via u-boot:
      
       0. connect the serial cable to the RJ45 Console Port
          Note: This requires a poper RS232 and not a TTL/USB adaptor.
      
       1. power up the AP and interrupt the u-boot process at
      
          'Hit any key to stop autoboot'
      
       2. setup serverip and ipaddr env settings
          Enter the following commands into the u-boot shell
          # setenv ipaddr 192.168.1.1
          # setenv serverip 192.168.1.10
      
       3. download the factory.img image to the AP
          Enter the following commands into the u-boot shell
      
          # tftp ${kernel_addr_r} openwrt-apm821xx-nand-netgear_wndap660-squashfs-factory.img
      
       4. verfiy image integrity
          Enter the following commands into the u-boot shell
      
          # crc32 $fileaddr $filesize
      
          If the calculated crc32 checksum does not match, go back to step 3.
      
       5. flash the image
          Enter the following commands into the u-boot shell
      
          # nand erase 0x110000 0x1bd0000
          # nand write ${kernel_addr_r} 0x110000 ${filesize}
      
       6. setup uboot environment
          Enter the following commands into the u-boot shell
      
          # setenv bootargs
          # setenv fileaddr
          # setenv filesize
          # setenv addroot 'setenv bootargs ${bootargs} root=/dev/ubiblock0_0'
          # setenv owrt_boot 'nboot ${kernel_addr_r} nand0 0x110000; run addroot; run addtty; bootm ${kernel_addr_r}'
          # setenv bootcmd 'run owrt_boot'
          # saveenv
      
       7. boot
          # run bootcmd
      
      Booting initramfs instructions via u-boot:
      
       Follow steps 0 - 2 from above.
      
       3. boot initramfs
          Enter the following commands into the u-boot shell
      
          # tftp ${kernel_addr_r} openwrt-apm821xx-nand-netgear_wndap660-initramfs-kernel.bin
          # run addtty
          # bootm ${kernel_addr_r}
      
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      d82d8469
    • Christian Lamparter's avatar
      generic: rtl8367b: make it possible to specify cpu_port via DT · a9839fe6
      Christian Lamparter authored
      
      This patch adds the feature to parse the existing cpu_port DT
      property, which is used to specify which port is the cpu port
      of the switch.
      
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      a9839fe6
    • Christian Lamparter's avatar
      generic: rtl836x: support defered probe on mdio-bus · 910c2f9e
      Christian Lamparter authored
      
      On the WNDAP620, the mdio and mdc lines are controlled by
      the EMAC ethernet device. This results in a hen-vs-egg problem.
      The rtl8367b driver is probed before the ethernet driver and
      the mdio-bus is not available yet, which caused the rtl8367b
      driver to fail.
      
      This patch changes the rtl8366_smi_probe_of() function to
      return -EPROBE_DEFER if the mdio-bus lookup failed and changes
      rtl8366_smi_probe()'s signature to return the error code back to
      the callee, so it can propagate back to the kernel. Which, will
      retry the switch probe at a later time.
      
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      910c2f9e
    • Christian Lamparter's avatar
      apm821xx: import gpio-export DT code from lantiq · fb4bed5f
      Christian Lamparter authored
      
      This will come in handy for the Netgear WNDAP620's antennae mux.
      
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      fb4bed5f
    • Christian Lamparter's avatar
      apm821xx: MX60(W): enable u-boot environment · e21a9db4
      Christian Lamparter authored
      
      This patch adds u-boot environment access to the MX60(W) target.
      "The environment size is one NAND block (128KiB on Buckminster).
      We allocate four NAND blocks to deal with bad blocks which may
      exist in the saved  environment"
      
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      e21a9db4
    • Christian Lamparter's avatar
      apm821xx: MR24: add to uboot-envtools · f6968952
      Christian Lamparter authored
      
      This patch adds the complicated u-boot
      environment access settings for to the
      MR24 target.
      
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      f6968952
    • Christian Lamparter's avatar
      apm821xx: add uboot-envtools support · 6f4f77aa
      Christian Lamparter authored
      
      All apm821xx devices use u-boot and most of them have
      an accessible u-boot environment. This patch adds the
      necessary template file, but does not add the
      uboot-envtools package to any of the targets.
      
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      6f4f77aa
    • Ram Chandra Jangir's avatar
      ipq806x: Add support for IPQ8064 AP161 board · dc6af375
      Ram Chandra Jangir authored
      
      Specification:
         - SoC: Qualcomm Atheros IPQ8064 ARM-v7 Dual Core SMP CPU
         - RAM: 512MB DDR3 System Memory
         - NOR Flash: 32MB SPI NOR
         - NAND Flash: 256MB NAND
         - Ethernet: 5 x 1G via QCA8337N
         - USB: 2 x USB 3.0 SuperSpeed
         - PCIe: 3x Mini PCIe 2.0 Slots
      	   Three PCIE2.0 connectors can connect two or three radio cards
                 such as the CUS260 for 2.4 GHz WLAN and the CUS239 for 802.11ac WLAN
      
       How to flash via u-boot console:
         tftpboot 0x44000000 openwrt-ipq806x-qcom_ipq8064-ap161-squashfs-nand-factory.bin
         nand erase  0x1340000 0x4000000
         nand write  0x44000000 0x1340000 $filesize
         setenv bootargs ‘console=ttyMSM0,115200 ubi.mtd=ubi root=/dev/ubiblock0_1’
         saveenv
         bootm
      
       Further upgrades via sysupgrade.
      
       Tested on IPQ8064 AP161 Board:
         1) NAND boot
         2) Tested USB and PCIe interfaces
         3) WDOG test
         4) cpu frequency scaling
         5) ethernet, 2G and 5G WiFi
         6) ubi sysupgrade
      
      Signed-off-by: default avatarRam Chandra Jangir <rjangir@codeaurora.org>
      dc6af375
    • Ram Chandra Jangir's avatar
    • Sergey Ryazanov's avatar
      ar71xx: fix RouterBOARD Power LED default state · 8baad26d
      Sergey Ryazanov authored
      
      RouterBOARD(s) bootloader actully turns Power LED off just before
      it starts the kernel. So we need to set the LED default status to On
      instead of Keep in order to keep LED on during kernel boot.
      
      This change fixes Power LED off during the kernel boot on the RB91x and
      SXT Lite boards.
      
      Fixes: 6cad8ee0 ("ar71xx: keep the RouterBOARD Power LED in On state")
      
      CC: Mathias Kresin <dev@kresin.me>
      Signed-off-by: default avatarSergey Ryazanov <ryazanov.s.a@gmail.com>
      8baad26d
    • Ben Greear's avatar
      hotplug: Allow configuring radio name. · 38167cb7
      Ben Greear authored
      
      This way the radio (phy) name can be the same through module reloads.
      
      To set the desired name:
      
      uci set wireless.@wifi-device[0].phyname=wiphy0
      
      I guess this only works on ipq6086 boards as I could not find a more
      generic place to put this.  Maybe someone can improve it.
      
      Signed-off-by: default avatarBen Greear <greearb@candelatech.com>
      38167cb7
    • Petr Štetiar's avatar
      base-files: fwtool: Fix wrong checksum on combined-image with metadata · 41770add
      Petr Štetiar authored
      
      If I create following image:
      
      define Device/engenius-m36
        IMAGE/sysupgrade.bin := combined-image | append-metadata
      endef
      
      Sysupgrade then errors out:
      
        Invalid image. Contents do not match checksum (image:cd285595eaf297370404ae0e2815ec1a calculated:2cf9a2286fb6b01af3ea189128017d44)
        Image check 'platform_check_image' failed.
      
      By removing the metadata from the image I get combined-image checksum
      working again and sysupgrade works.
      
      Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
      41770add
    • Tomasz Maciej Nowak's avatar
      amd64-microcode: create early load microcode image · 975019b3
      Tomasz Maciej Nowak authored
      
      Create initrd image with packed microcode. This'll allow to load it at
      early boot stage.
      
      Signed-off-by: default avatarTomasz Maciej Nowak <tomek_n@o2.pl>
      975019b3
    • Tomasz Maciej Nowak's avatar
      x86: add amd microcode entries to grub config · a822283c
      Tomasz Maciej Nowak authored
      
      Create initrd enries for x86 images, that'll load amd microcode as early
      as possible. Also remove the preinit script responsible for late load of
      microcode.
      
      Signed-off-by: default avatarTomasz Maciej Nowak <tomek_n@o2.pl>
      a822283c
    • David Bauer's avatar
      ath79: add support for Archer C58/C59 v1 · 946ffe47
      David Bauer authored
      
      This commit adds support for the Archer C58 v1 and C59 v1, previously
      supported in the ar71xx target.
      
      CPU:   Qualcomm QCA9561
      RAM:   64M (C58) / 128M (C59)
      FLASH: 8M (C58) / 16M (C59)
      WiFi:  QCA9561 bgn 3x3:3
             QCA9888 nac 2x2:2
      LED:   Power, WiFi 2.4, WiFi 5, WAN green, WAN amber, LAN, WPS
             Only C59: USB
      BTN:   WPS, WiFi, Reset
      
      Installation
      ------------
      
      Via Web-UI:
      Update factory image via Web-UI.
      
      Via TFTP:
      Rename factory image to "tp_recovery.bin" and place it in the root-dir
      of your tftp server. Configure to listen on 192.168.0.66. Power up the
      router while holding down the reset-button. The router will flash itself
      and reboot.
      
      Note: For TFTP, you might need a switch between router and computer, as
      link establishment might take to long.
      
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      946ffe47
    • Daniel Santos's avatar
      ralink: Add support for GPIO as interrupt-controller · 89eb1a6d
      Daniel Santos authored
      
      The gpio-ralink driver has everything it needs to be used as an
      interrupt controller except for device tree support.  This simple patch
      adds that support by configuring the irq domain to use two cells and
      adding the appropriate documentation to the devicetree bindings.
      
      Signed-off-by: default avatarDaniel Santos <daniel.santos@pobox.com>
      89eb1a6d
    • Luo chongjun's avatar
      ath79: add support for GL-iNet GL-X750 · 9989fd51
      Luo chongjun authored
      
      this patch adds supports for GL-X750.
      
      Specification:
      - SOC: QCA9531 (650MHz)
      - Flash: 16 MiB (W25Q128FVSG)
      - RAM: 128 MiB DDR2
      - Ethernet: 10/100: 1xLAN + 10/100: 1xWAN
      - Wireless: 2.4GHz (bgn) and 5GHz (ac)
      - USB: 1x USB 2.0 port
      - Button: 1x reset button
      - LED: 5x LEDS (green)
      
      Flash instruction:
      The original firmware is openwrt, so both LuCI or sysupgrade can be used.
      
      Signed-off-by: default avatarLuo chongjun <luochongjun@gl-inet.com>
      9989fd51
    • Christoph Krapp's avatar
      ar71xx: add support for UniFi-AC-Mesh-Pro · 987b9615
      Christoph Krapp authored
      
      This adds the build option for UniFi AC Mesh Pro as well as
      model detection for it.
      The device is a hardware clone of the AC Pro.
      
      - SoC: QCA9563-AL3A (775Mhz)
      - RAM: 128MiB
      - Flash: 16MiB - dual firmware partitions!
      - LAN: 2x 1000M - POE+
      - Wireless:
              2.4G: QCA9563
                5G: UniFi Chip, QCA988X compatible
      
      Signed-off-by: default avatarChristoph Krapp <achterin@googlemail.com>
      987b9615
    • Petr Štetiar's avatar
      ramips: Add support for ZTE ZXECS EBG3130 aka BDCOM WAP2100-SK · 16b950c9
      Petr Štetiar authored
      On the bottom sticker it's branded as ZTE ZXECS EBG3130 device, but in factory
      OpenWrt image it's referenced as BDCOM WAP2100-SK device.
      
      Specifications:
      
      - SoC: MediaTek MT7620A
      - RAM: 128 MB
      - Flash: 16 MB
      - Ethernet: 5 FE ports
      - Wireless radio: 2T2R 2.4 GHz and 1T1R 5 GHz (MT7610EN, unsupported)
      - UART: 1 x UART on PCB marked as J2 (R=RX, T=TX, G=GND) with 115200 8N1 config
      - LEDs: Power, FE ports 1-5, WPS, USB, RF 2.4G, RF 5G
      - Other: USB port, SD card slot and 2x external antennas (non-detachable)
      
      Flashing instructions:
      
      A) The U-Boot has HTTP based firmware upgrade
      
        A1) Flashing notes
      
        We've identified so far two different batches of units, unfortunately
        each batch has different U-Boot bootloader flashed with different
        default environment variables, thus each batch has different IP address
        for accessing web based firmware updater.
      
        * First batch has web based bootloader IP address 1.1.1.1
        * Second batch has web based bootloader IP address 192.168.1.250
      
        In case you can't connect to either of those IPs, you can try to get
        the default IP address via two methods:
      
        A1.1) Serial console, then the IP address is visible during the boot
      
         ...
         HTTP server is starting at IP: 1.1.1.1
         raspi_read: from:40004 len:6
         HTTP server is ready!
         ...
      
        A1.2) Over telnet/SSH using this command:
      
         root@bdcom:/# grep ipaddr= /dev/mtd0
         ipaddr=1.1.1.1
      
        A2) Flashing with browser
      
        * Change IP address of PC to 1.1.1.2 with 255.255.255.0 netmask
        * Reboot the device and try to reach web based bootloader in the
          browser with the following URL http://1.1.1.1
      
        * Quickly select the firmware sysupgrade file and click on the
          `Update firmware` button, this all has to be done within 10 seconds,
          bootloader doesn't wait any longer
      
         If done correctly, the web page should show UPDATE IN PROGRESS page
         with progress indicator. Once the flashing completes (it takes roughly
         around 1 minute), the device will reboot to the OpenWrt firmware
      
        A3) Flashing with curl
      
         sudo ip addr add 1.1.1.2/24 dev eth0
         curl \
            --verbose \
            --retry 3 \
            --retry-delay 1 \
            --retry-max-time 30 \
            --connect-timeout 30 \
            --form "firmware=@openwrt-ramips-mt7620-BDCOM-WAP2100-SK-squashfs-sysupgrade.bin" \
            http://1.1.1.1
      
      
      
         Now power on the router.
      
      B) The U-boot is based on Ralink SDK so we can flash the firmware using UART.
      
         1. Configure PC with a static IP address and setup an TFTP server.
         2. Put the firmware into the tftp directory.
         3. Connect the UART line as described on the PCB (G=GND, R=RX, T=TX)
         4. Power up the device and press 2, follow the instruction to set device and
            tftp server IP address and input the firmware file name. U-boot will then load
            the firmware and write it into the flash.
      
      Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
      16b950c9
    • Tomasz Maciej Nowak's avatar
      intel-microcode: create early load microcode image · 022ffb56
      Tomasz Maciej Nowak authored
      
      Create initrd image with packed microcode. This'll allow to load it at
      early boot stage.
      
      Signed-off-by: default avatarTomasz Maciej Nowak <tomek_n@o2.pl>
      022ffb56
    • Tomasz Maciej Nowak's avatar
      x86: add intel microcode entries to grub config · 546fced2
      Tomasz Maciej Nowak authored
      
      Create initrd enries for x86 images, that'll load intel microcode as
      early as possible. To achieve that the test module for grub is enabled
      which provides shell-like conditionals. Also restrict the late load of
      microcode to AMD processors.
      
      Signed-off-by: default avatarTomasz Maciej Nowak <tomek_n@o2.pl>
      546fced2
    • Tomasz Maciej Nowak's avatar
      intel-microcode: remove dependency on iucode-tool · ad83fde3
      Tomasz Maciej Nowak authored
      
      It is not necessary to have iucode-tool present on target system to have
      functional intel-microcode package. The build time dependency is kept.
      
      Signed-off-by: default avatarTomasz Maciej Nowak <tomek_n@o2.pl>
      ad83fde3
    • Tomasz Maciej Nowak's avatar
      x86: add packages files to image bootfs · 51e199fb
      Tomasz Maciej Nowak authored
      
      Add files to bootfs image from selected as built-in packages, which want
      to install files to targets boot file system.
      
      Signed-off-by: default avatarTomasz Maciej Nowak <tomek_n@o2.pl>
      51e199fb
Loading