Skip to content
Snippets Groups Projects
  1. Mar 09, 2022
    • Paul Spooren's avatar
      CI: move logs/ to GITHUB_WORKSPACE · a5eeac80
      Paul Spooren authored
      
      Artifacts can only be uploaded from inside the GITHUB_WORKSPACE. While
      the Linux CI jobs run inside that per default, a special case-sensitive
      mount outside the GITHUB_WORKSPACE is used for macOS builds.
      
      To make log artifacts work for both macOS and Linux, move logs/ folder
      to GITHUB_WORKSPACE on failures.
      
      Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
      a5eeac80
    • Rui Salvaterra's avatar
      toolchain: binutils: add support for version 2.38 · 6b822189
      Rui Salvaterra authored
      While at it, also fix the download.xs4all.nl and add ftp.gnu.org to the GNU
      mirrors, as it seems to be updated faster.
      
      Deleted (upstreamed):
      600-Close_the_file_descriptor.patch [1]
      
      [1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=5a98fb7513b559e20dfebdbaa2a471afda3b4742
      
      
      
      Signed-off-by: default avatarRui Salvaterra <rsalvaterra@gmail.com>
      6b822189
    • Dmitry Chigiryov's avatar
      ramips: allow USB power control on TP-Link MR3020v3 · 9d06f1a6
      Dmitry Chigiryov authored
      
      By switching EPHY_LED4_N_JTRST_N from EPHY_LED4_N to GPIO#39
      we can control USB port power an all current revisions of MR3020v3.
      It was not a thing on some first revisions, pin was unused.
      But for now on all current MR3020v3 boards EPHY_LED4_N_JTRST_N pin
      is connected to USB power key.
      Also it was not used as EPHY indicator on any revision of the board.
      
      Signed-off-by: default avatarDmitry Chigiryov <dmitry.chigiryov@ya.ru>
      [changed author address (used SoB one)]
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      9d06f1a6
    • Sungbo Eo's avatar
      ramips: fix DEVICE_VENDOR for unbranded devices · 94d4269e
      Sungbo Eo authored
      
      In commit ee66fe4e ("ramips: convert DEVICE_TITLE to new variables"),
      DEVICE_VENDOR of some unbranded devices were set incorrectly:
      * WR512-3GN is not a dev board from Ralink.
      * "XDX-RN502J" is the whole model name and should be not split.
      
      This patch sets their DEVICE_VENDOR to "Unbranded", and changes their DTS
      model properties accordingly.
      
      Ref: d0bf15f2 ("ramips: add support for A5-V11 board (resubmit)")
      Ref: 9085b05d ("ramips: rt305x: support for wr512-3gn-like routers")
      Ref: 0e486d2f ("ramips: add support for unbranded XDX-RN502J board")
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      94d4269e
    • Kim Namu's avatar
      ramips: mt7621: add support for Zbtlink ZBT-WG1608 · 2876f753
      Kim Namu authored
      
      Zbtlink ZBT-WG1608 is a Wi-Fi router intendent to use with WWAN (4G/5G)
      modems.
      
      Specifications:
      * SoC: MediaTek MT7621A
      * RAM: 256/512 MiB
      * Flash: 16/32 MiB (SPI NOR)
      * Wi-Fi:
        * MediaTek MT7603E : 2.4Ghz
        * MediaTek MT7613BE : 5Ghz
      * Ethernet: 10/100/1000 Mbps Ethernet x5 ports (4xLAN + WAN)
      * M.2: 1x slot with USB&SIM
        * EM7455/EM12-G/EM160R/RM500Q-AE
      * USB: 1x 3.0 Type-A port
      * External storage: 1x microSD (SDXC) slot
      * UART: console (115200 baud)
      * LED:
        * 1 power indicator
        * 1 WLAN 2.4G controlled (wlan 2G)
        * 3 SoC controlled (wlan 5G, wwan, internet)
        * 5 per Eth phy (4xLAN + WAN)
      
      MAC Addresses:
      * LAN    : f8:5e:3c:xx:xx:e0 (Factory, 0xe000 (hex))
      * WAN    : f8:5e:3c:xx:xx:e1 (Factory, 0xe006 (hex))
      * 2.4 GHz: f8:5e:3c:xx:xx:de (Factory, 0x0004 (hex))
      * 5 GHz  : f8:5e:3c:xx:xx:df (Factory, 0x8004 (hex))
      
      Installation:
      * Vendor's firmware is OpenWrt (LEDE) based, so the sysupgrade image can
        be directly used to install OpenWrt. Firmware must be upgraded using the
        'force' and 'do not save configuration' command line options (or
        correspondig web interface checkboxes) since the vendor firmware is from
        the pre-DSA era.
      
      Recovery Mode:
       * Press reset button, power up the device, wait for about 10sec.
       * Upload sysupgrade image through the firmware recovery mode web page at
        192.168.1.1.
      
      Signed-off-by: default avatarKim Namu <namu@theseed.io>
      2876f753
    • Ray Wang's avatar
      ramips: add support for Asus RT-AC1200 · 3c4810fe
      Ray Wang authored
      Asus RT-AC1200 is a 2.4/5GHz dual band AC router,
      based on MediaTek MT7628AN.
      
      Specification:
      * SoC: MT7628AN
      * RAM: DDR2 64 MiB
      * Flash: 16 MiB NOR (W25Q128BV)
      * Wi-Fi:
        * 2.4GHz: SoC Built-in
        * 5GHz: MT7612EN
      * Ethernet: 5x 100Mbps
        * Switch: SoC built-in
      * USB: 1x 2.0
      
      Flash Layout:
       0x0000000-0x0030000 : "bootloader"
       0x0030000-0x0040000 : "nvram"
       0x0040000-0x0050000 : "factory"
       0x0050000-0x1000000 : "firmware"
      
      MAC address:
       LAN: factory 0x28
       WAN: factory 0x22
       2.4G: factory 0x4
       5G: factory 0x8004
      
      Installation via **recovery** mode:
      1. Download the Asus recovery firmware (windows) tool from
         http://dlcdnet.asus.com/pub/ASUS/LiveUpdate/Release/Wireless/Rescue.zip
      
      
      2. Set your ethernet IP manually 192.168.1.5 / 255.255.255.0 with NO
         gateway.
      3. Plug in your ethernet to LAN port 1 on the router.
      4. Load up the recovery software with the firmware file, but don't press
         "Upload" yet.
      5. Plug in the router to power WHILE HOLDING the reset button in. While
         CONTINUING to hold the button, select "Upload" Continue to hold the
         reset button in until it finishes and verifies!
      6. If that doesn't work try pressing "Upload" first just before you do
         step 5. At some point while holding reset the rescue tool will finally
         detect and upload the firmware. That's when you can let go of the
         reset button.
      7. The router will reboot and not much will happen. Wait a minute or 2.
      8. Power off and on the router again. Voila. Set everything your Ethernet
         IP back to DHCP (automatically) and you're good to go.
      
      Revert to stock firmware:
      1. Install stock image via recovery mode.
      
      Tested-by: default avatarIvan Pavlov <AuthorReflex@gmail.com>
      Signed-off-by: default avatarRay Wang <raywang777@foxmail.com>
      3c4810fe
    • Sungbo Eo's avatar
      tools: zip: make encrypted archives reproducible · 4f3a565f
      Sungbo Eo authored
      
      Zip always try to generate new encryption header depending on execution
      time and process id, which is far from being reproducible. This commit
      changes the zip srand() seed to a predictable value to generate
      reproducible random bytes for the encryption header. This will compromise
      the goal of secure archive encryption, but it would not be a big problem
      for our purpose.
      
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      4f3a565f
    • Sungbo Eo's avatar
      tools: zip: fetch SOURCE_DATE_EPOCH directly · 39d06472
      Sungbo Eo authored
      Remove "--mtime" option introduced in commit 18c9faa0 ("tools: zip:
      add option for reproducible archives") and instead fetch SOURCE_DATE_EPOCH
      environment variable directly in the code.
      
      Ref: https://sourceforge.net/p/infozip/patches/25/
      
      
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      39d06472
    • Sungbo Eo's avatar
      build: image: use UTC for zip timestamp · e42764cc
      Sungbo Eo authored
      
      Zip uses DOS timestamp for mtime which is stored in local time and hence
      depends on the timezone of the build system. Force zip to use UTC timezone
      to make image builds more reproducible.
      
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      e42764cc
  2. Mar 08, 2022
  3. Mar 07, 2022
    • INAGAKI Hiroshi's avatar
      uboot-envtools: add support for I-O DATA BSH-G24MB · 98113220
      INAGAKI Hiroshi authored
      
      This patch adds the device-specific configuration to u-boot-envtools for
      I-O DATA BSH-G24MB switch.
      
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      98113220
    • INAGAKI Hiroshi's avatar
      realtek: add support for I-O DATA BSH-G24MB · 7b197705
      INAGAKI Hiroshi authored
      
      I-O DATA BSH-G24MB is a 24 port gigabit switch, based on RTL8382M.
      
      Specification:
      
      - SoC		: Realtek RTL8382M
      - RAM		: DDR2 128 MiB (Nanya NT5TU128M8HE-AC)
      - Flash		: SPI-NOR 16 MiB (Macronix MX25L12835FM2I-10G)
      - Ethernet	: 10/100/1000 Mbps x24
        - port 1-8	: RTL8218B
        - port 9-16	: RTL8218B (SoC)
        - port 17-24	: RTL8218B
      - LEDs/Keys	: 2x, 1x
      - UART		: pin header on PCB
        - JP2: 3.3V, TX, RX, GND from rear side
        - 115200n8
      - Power		: 100 VAC, 50/60 Hz
        - Plug	: IEC 60320-C13
      
      Flash instruction using sysupgrade image:
      
      1. Boot BSH-G24MB normally
      2. Connect BSH-G24MB to the DHCP enabled network
      3. Find the device's IP address and open the WebUI and login
         Note: by default, the device obtains IP address from DHCP server of
               the network
      4. Open firmware update page ("ファームウェア アップデート")
      5. Rename the OpenWrt sysupgrade image to "bsh-g24mb_v100.image" and
         select it
      6. Press apply ("適用") button to perform update
      7. Wait ~150 seconds to complete flashing
      
      Note:
      
      - BSH-G24MB has a power-related LED ("電源"), but it's not connected to
        the GPIO of the SoC or RTL8231 and cannot be controlled. Instead of
        it, use system status LED on other than running-state.
      
      - "sys_loop" LED indicates system status and loop-detection status in
        stock firmware.
      
      - BSH-G24MB has 2x os-image partitions named as "RUNTIME"/"RUNTIME2" in
        16 MiB SPI-NOR flash and the size of image per partition is only
        6848 KiB. The secondary image is never used on stock firmware, so also
        use it on OpenWrt to get more space.
      
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      7b197705
    • Josef Schlehofer's avatar
      nftables: update to version 1.0.2 · d71928c1
      Josef Schlehofer authored
      Changelog:
      https://lwn.net/ml/netdev/YhO5Pn+6+dgAgSd9@salvia/
      
      Patches:
      
      removed:
      - 001-parser-allow-quoted-string-in-flowtable_expr_member:
      it is now part of upstream release [1]
      
      added:
      - 001-examples-compile-with-make-check.patch:
      backported from [2], it fixes:
      
      nft-json-file.c:3:10: fatal error: nftables/libnftables.h: No such file or directory
          3 | #include <nftables/libnftables.h>
            |          ^~~~~~~~~~~~~~~~~~~~~~~~
      compilation terminated.
      
      [1] https://git.netfilter.org/nftables/commit/?h=v1.0.2&id=07af4429241c9832a613cb8620331ac54257d9df
      [2] https://git.netfilter.org/nftables/commit/?id=18a08fb7f0443f8bde83393bd6f69e23a04246b3
      
      
      
      Signed-off-by: default avatarJosef Schlehofer <pepe.schlehofer@gmail.com>
      d71928c1
    • Hauke Mehrtens's avatar
      linux-firmware: Update to version 20220209 · baea8255
      Hauke Mehrtens authored
      
      This switches the iwlwifi-firmware-ax200 file to API version 66, this is
      the most recent version supported by our driver.
      
      The following files used in OpenWrt changed:
       amdgpu-firmware/lib/firmware/amdgpu/yellow_carp_dmcub.bin
       ar3k-firmware/lib/firmware/qca/nvm_usb_00130201.bin
       ar3k-firmware/lib/firmware/qca/nvm_usb_00130201_010a.bin
       ar3k-firmware/lib/firmware/qca/nvm_usb_00130201_010b.bin
       ar3k-firmware/lib/firmware/qca/nvm_usb_00130201_0303.bin
       ar3k-firmware/lib/firmware/qca/nvm_usb_00130201_gf.bin
       ar3k-firmware/lib/firmware/qca/nvm_usb_00130201_gf_010a.bin
       ar3k-firmware/lib/firmware/qca/nvm_usb_00130201_gf_010b.bin
       ar3k-firmware/lib/firmware/qca/nvm_usb_00130201_gf_0303.bin
       ar3k-firmware/lib/firmware/qca/rampatch_usb_00130200.bin
       ar3k-firmware/lib/firmware/qca/rampatch_usb_00130201.bin
       iwlwifi-firmware-ax200/lib/firmware/iwlwifi-cc-a0-66.ucode
       iwlwifi-firmware-ax210/lib/firmware/iwlwifi-ty-a0-gf-a0-66.ucode
       iwlwifi-firmware-ax210/lib/firmware/iwlwifi-ty-a0-gf-a0.pnvm
       iwlwifi-firmware-iwl9000/lib/firmware/iwlwifi-9000-pu-b0-jf-b0-46.ucode
       iwlwifi-firmware-iwl9260/lib/firmware/iwlwifi-9260-th-b0-jf-b0-46.ucode
       rtl8822ce-firmware/lib/firmware/rtw88/rtw8822c_fw.bin
      
      Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
      baea8255
    • Rafał Miłecki's avatar
      bcm4908: fix init on CFE devices · c45b5abf
      Rafał Miłecki authored
      
      exit in preinit script was stopping whole process
      
      Fixes: 93259e8c ("bcm4908: support "rootfs_data" on U-Boot devices")
      Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
      c45b5abf
    • Felix Fietkau's avatar
    • Felix Fietkau's avatar
      toolchain/binutils: remove old versions · b3b0a25e
      Felix Fietkau authored
      
      Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
      b3b0a25e
  4. Mar 06, 2022
    • Felix Fietkau's avatar
      qosify: update to the latest version · 75914997
      Felix Fietkau authored
      
      3276aed81c73 move run_cmd() to main.c
      558eabc13c64 map: move dns host based lookup code to a separate function
      6ff06d66c36c dns: add code for snooping dns packets
      a78bd43c4a54 ubus: remove dnsmasq subscriber
      9773ffa70f1f map: process dns patterns in the order in which they were defined
      f13b67c9a786 dns: allow limiting dns entry matching to cname name
      
      Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
      75914997
    • Bjørn Mork's avatar
      realtek: net: dsa: configure better brport flags when ports leave the bridge · 0890fb2d
      Bjørn Mork authored
      
      Ensures that the DSA driver sets exactly the same default flags as the
      bridge when a port joins or leaves.  Without this we end up with a
      confusing flag mismatch, where DSA and bridge ports use different sets
      of flags.
      
      This is critical as the "learning" mismatch will be harmful to the
      network, causing all traffic to be flooded on all ports.
      
      The original commit was buggy, trying to set the flags one-by-one in a
      loop.  This was not supported by the API and the end result was that
      all but the last flag were cleared.  This bug was implicitly fixed
      upstream by commit e18f4c18ab5b ("net: switchdev: pass flags and mask
      to both {PRE_,}BRIDGE_FLAGS attributes").
      
      This is a minimum temporary stop measure fix for the critical lack of
      "learning" only.  The major API change associated with a full v5.12+
      backport is neither required nor wanted. A simpler fix, moving the
      call to dsa_port_bridge_flags() out of the loop,  has therefore been
      merged into this modified backport.
      
      Fixes: afa3ab54 ("realtek: Backport bridge configuration for DSA")
      Signed-off-by: default avatarBjørn Mork <bjorn@mork.no>
      Acked-by: default avatarDaniel Golle <daniel@makrotopia.org>
      Tested-by: default avatarStijn Tintel <stijn@linux-ipv6.be>
      [fix typos in commit message]
      Signed-off-by: default avatarStijn Tintel <stijn@linux-ipv6.be>
      0890fb2d
    • INAGAKI Hiroshi's avatar
      ramips: use parser_trx for Buffalo WCR-1166DS · f7f9e6bd
      INAGAKI Hiroshi authored
      Buffalo WCR-1166DS uses trx-fomatted firmware and the custom magic
      number (0x5C436F74, "\Cot") is required for OpenWrt installation from
      OEM WebUI.
      But the current mtdsplit_trx doesn't support the custom magic number and
      fail to parse and split to kernel and rootfs when the factory image is
      flashed. Then, the kernel fails to mount rootfs automatically and panics.
      
      Before the commit fddc78bc, mtdsplit_trx
      was patched in ramips target and the device-specific magic number was
      supported only for WCR-1166DS[1].
      But the patch was not inherited to the later version of the kernel and
      deleted by the above commit, then, the custom magic number support was
      broken.
      
      [1]: https://github.com/openwrt/openwrt/blob/05d6e92594c507dcd1f4be6c1bcb2282fe1abe1f/target/linux/ramips/patches-4.4/0400-mtd-mtdsplit-add-support-for-custom-trx-magic-for-Buffalo-WCR-1166DS.patch#L27
      
      
      
      log (factory image):
      
      [    1.165312] spi-mt7621 10000b00.spi: sys_freq: 193333333
      [    1.195782] spi-nor spi0.0: w25q128 (16384 Kbytes)
      [    1.205353] 7 fixed-partitions partitions found on MTD device spi0.0
      [    1.217938] Creating 7 MTD partitions on "spi0.0":
      [    1.227436] 0x000000000000-0x000000030000 : "u-boot"
      [    1.238427] 0x000000030000-0x000000040000 : "u-boot-env"
      [    1.250123] 0x000000040000-0x000000050000 : "factory"
      [    1.261306] 0x000000050000-0x000000810000 : "firmware"
      [    1.282051] 0x000000810000-0x000000fd0000 : "firmware2"
      [    1.293594] 0x000000fd0000-0x000000fe0000 : "glbcfg"
      [    1.304719] 0x000000fe0000-0x000000ff0000 : "board_data"
      ...
      [    1.452424] /dev/root: Can't open blockdev
      [    1.460619] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
      [    1.475434] Please append a correct "root=" boot option; here are the available partitions:
      [    1.491986] 1f00             192 mtdblock0
      [    1.491989]  (driver?)
      [    1.504938] 1f01              64 mtdblock1
      [    1.504941]  (driver?)
      [    1.517885] 1f02              64 mtdblock2
      [    1.517888]  (driver?)
      [    1.530831] 1f03            7936 mtdblock3
      [    1.530834]  (driver?)
      [    1.543777] 1f04            7936 mtdblock4
      [    1.543781]  (driver?)
      [    1.556724] 1f05              64 mtdblock5
      [    1.556727]  (driver?)
      [    1.569672] 1f06              64 mtdblock6
      [    1.569675]  (driver?)
      [    1.582617] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
      [    1.598976] Rebooting in 1 seconds..
      
      This patch fixes this issue by using parser_trx with specifying custom
      magic number in dts instead of mtdsplit_trx.
      
      log (fixed factory image):
      
      [    1.202044] spi-mt7621 10000b00.spi: sys_freq: 193333333
      [    1.225369] spi-nor spi0.0: w25q128 (16384 Kbytes)
      [    1.235015] 7 fixed-partitions partitions found on MTD device spi0.0
      [    1.247603] Creating 7 MTD partitions on "spi0.0":
      [    1.257106] 0x000000000000-0x000000030000 : "u-boot"
      [    1.269447] 0x000000030000-0x000000040000 : "u-boot-env"
      [    1.281192] 0x000000040000-0x000000050000 : "factory"
      [    1.294208] 0x000000050000-0x000000810000 : "firmware"
      [    1.305774] 2 trx partitions found on MTD device firmware
      [    1.316540] Creating 2 MTD partitions on "firmware":
      [    1.326399] 0x00000000001c-0x000000214754 : "linux"
      [    1.336063] mtd: partition "linux" doesn't start on an erase/write block boundary -- force read-only
      [    1.357070] 0x000000214754-0x0000007c0000 : "rootfs"
      [    1.366994] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
      [    1.386368] mtd: device 5 (rootfs) set to be root filesystem
      [    1.398700] 1 squashfs-split partitions found on MTD device rootfs
      [    1.411027] 0x000000520000-0x0000007c0000 : "rootfs_data"
      [    1.422841] 0x000000810000-0x000000fd0000 : "firmware2"
      [    1.436282] 0x000000fd0000-0x000000fe0000 : "glbcfg"
      [    1.447408] 0x000000fe0000-0x000000ff0000 : "board_data"
      ...
      [    1.611216] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
      
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      f7f9e6bd
    • INAGAKI Hiroshi's avatar
      ramips: switch parser of trx for mt76x8 subtarget · 5403defb
      INAGAKI Hiroshi authored
      
      This patch enable parser_trx and disable mtdsplit_trx for mt76x8
      subtarget.
      The trx format is used only on Buffalo WCR-1166DS in mt76x8 subtarget
      and the parser need to be switched to parser_trx to use the custom magic
      number in the header for WCR-1166DS.
      
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      5403defb
    • INAGAKI Hiroshi's avatar
      kernel: backport patch to allow using parser_trx from ramips · d339de2e
      INAGAKI Hiroshi authored
      
      This patch adds a patch to allow using parser_trx from ramips target,
      mainly for Buffalo devices.
      
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      d339de2e
    • INAGAKI Hiroshi's avatar
      kernel: move parser_trx patches of custom magic to generic · cc49abc0
      INAGAKI Hiroshi authored
      
      This patch moves the patches of parser_trx in mediatek target to
      generic/backport-5.10 to use the changes from ramips target and
      backport the additional patch of the parser.
      
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      cc49abc0
    • INAGAKI Hiroshi's avatar
      ramips: update MAC address configuration for Buffalo WCR-1166DS · 770cfe9b
      INAGAKI Hiroshi authored
      
      This patch converts MAC address configuration of Buffalo WCR-1166DS in
      02_network to use the generic function of OpenWrt. And also, add
      label_mac.
      
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      770cfe9b
    • INAGAKI Hiroshi's avatar
      ramips: increase spi frequency for Buffalo WCR-1166DS · 621d88d7
      INAGAKI Hiroshi authored
      
      Use higher frequency than current and up the speed to access to the
      flash on WCR-1166DS.
      
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      621d88d7
    • Joe Mullally's avatar
      ramips: Add support for TP-Link TL-WPA8631P v3 · 6c743c30
      Joe Mullally authored
      
      AV1300 Gigabit Passthrough Powerline ac Wi-Fi Extender
      
      Specifications
      --------------
      * SoC: MediaTek MT7621AT
      * CPU: 880 MHz MIPS 1004KEc dual-core CPU
      * RAM: 64 MiB DDR2 (Zentel A3R12E40DBF-8E)
      * Flash: 8 MiB SPI NOR (GigaDevice GD25Q64CSIG)
      * Ethernet: SoC built-in Switch 5x 1GbE
        * Port 0: PLC (connected through AR8035-A)
        * Port 1-3: LAN
      * WLAN: 2x2 2.4GHz 300 Mbps + 2x2 5GHz 867 Mbps (MT7603EN + MT7613BEN)
      * PLC: HomePlug AV2 (Qualcomm QCA7500)
      * PLC Flash: 2MiB SPI NOR (GigaDevice GD25Q16CSIG)
      * Buttons: Reset, LED, Pair, Wi-Fi
      * LEDs: Power (green), PLC (green/amber), LAN (green), 2.4G (green),
        5G (green)
      * UART: J1 (57600 baud)
        * Pinout: (3V3) (GND) (RX) (TX)
        * Visually identify GND from connection to PCB ground plane
      
      Installation
      ------------
      Installation is possible from the OEM web interface. Make sure to install
      the latest OEM firmware first, so that the PLC firmware is at the latest
      version. However, please first check the OpenWRT Wiki page for
      confirmation that your OEM firmware version is supported.
      
      Signed-off-by: default avatarJoe Mullally <jwmullally@gmail.com>
      6c743c30
  5. Mar 05, 2022
    • Hauke Mehrtens's avatar
      iproute2: Remove libxtables from some tc variants · 921392e2
      Hauke Mehrtens authored
      
      This adds the new tc-bpf variant and removes libxtables dependency from
      the tc-tiny variant. The tc-full variant stays like before and contains
      everything.
      
      This allows to use tc without libxtables.
      
      The variants have the following sizes:
      root@OpenWrt:/# ls -al /usr/libexec/tc-*
      -rwxr-xr-x    1 root     root        282453 Mar  1 21:55 /usr/libexec/tc-bpf
      -rwxr-xr-x    1 root     root        282533 Mar  1 21:55 /usr/libexec/tc-full
      -rwxr-xr-x    1 root     root        266037 Mar  1 21:55 /usr/libexec/tc-tiny
      
      They are linking the following shared libraries:
      root@OpenWrt:/# ldd /usr/libexec/tc-tiny
              /lib/ld-musl-mips-sf.so.1 (0x77d6e000)
              libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x77d4a000)
              libc.so => /lib/ld-musl-mips-sf.so.1 (0x77d6e000)
      root@OpenWrt:/# ldd /usr/libexec/tc-bpf
              /lib/ld-musl-mips-sf.so.1 (0x77da6000)
              libbpf.so.0 => /usr/lib/libbpf.so.0 (0x77d60000)
              libelf.so.1 => /usr/lib/libelf.so.1 (0x77d3e000)
              libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x77d1a000)
              libc.so => /lib/ld-musl-mips-sf.so.1 (0x77da6000)
              libz.so.1 => /usr/lib/libz.so.1 (0x77cf6000)
      root@OpenWrt:/# ldd /usr/libexec/tc-full
              /lib/ld-musl-mips-sf.so.1 (0x77de8000)
              libbpf.so.0 => /usr/lib/libbpf.so.0 (0x77da2000)
              libelf.so.1 => /usr/lib/libelf.so.1 (0x77d80000)
              libxtables.so.12 => /usr/lib/libxtables.so.12 (0x77d66000)
              libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x77d42000)
              libc.so => /lib/ld-musl-mips-sf.so.1 (0x77de8000)
              libz.so.1 => /usr/lib/libz.so.1 (0x77d1e000)
      
      This is based on a patch from Tiago Gaspar.
      
      Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
      921392e2
    • Langhua Ye's avatar
      uboot-envtools: mt7622: add support for Ruijie RG-EW3200GX PRO · d15f9b90
      Langhua Ye authored
      
      Add U-Boot environment settings for Ruijie RG-EW3200GX PRO to allow
      users to access the bootloader environment using fw_printenv/fw_setenv
      while running OpenWrt.
      
      Signed-off-by: default avatarLanghua Ye <y1248289414@outlook.com>
      d15f9b90
    • Langhua Ye's avatar
      mediatek: add support for Ruijie RG-EW3200GX PRO · ce8a33b0
      Langhua Ye authored
      
      X32 Pro is another product  name for it in the Chinese market.
      
      Specifications:
      - SoC: MT7622B
      - RAM: 256MB
      - Flash: XMC XM25QH128C or Winbond WQ25Q128JVSQ 16MB SPI NOR
      - Ethernet: 5x1GbE
      - Switch: MT7531BE
      - WiFi: 2.4G: MT7622 5G: MT7915AN+MT7975AN
      - 3LEDs: System LED(blue) + Mesh LED(green) + Mesh LED(red)
      - 2Keys: Mesh button + Reset button
      - UART: Marked J19 on board. 3.3v, 115200n1
      - Power: 12V 2.5A
      
      MAC addresses as verified by OEM firmware:
      use   address    source
      WAN   *:F4       ethaddr@product_info
      LAN   *:F5
      5g    *:F6
      2g    *:F7
      
      Flash instruction:
      1. Serve the initramfs.img using a TFTP server with address 10.10.10.3.
      2. Interrupt the uboot startup process via UART.
      3. Select "System Load Linux to SDRAM via TFTP" item.
      4. (important) Back up firmware(mtd7) partitions with:
              dd if=/dev/mtd7 of=/tmp/firmware.bin
         and then download the firmware.bin image via SCP.
      5. Flash the OpenWrt sysupgrade firmware.
      
      Recovery stock firmware:
      1. Transfer the firmware.bin image to the device.
      2. Flash the image with:
              mtd write firmware.bin firmware
      
      Signed-off-by: default avatarLanghua Ye <y1248289414@outlook.com>
      ce8a33b0
    • Langhua Ye's avatar
      kernel: add support for XMC XM25QH128C · df1383f7
      Langhua Ye authored
      The XMC XM25QH128C is a 16MB SPI NOR chip. The patch is verified on Ruijie RG-EW3200GX PRO.
      Datasheet available at https://www.xmcwh.com/uploads/435/XM25QH128C.pdf
      
      
      
      Signed-off-by: default avatarLanghua Ye <y1248289414@outlook.com>
      df1383f7
    • Ansuel Smith's avatar
      libnetfilter-conntrack: backport patch fixing compilation with 5.15 · 4393d8c0
      Ansuel Smith authored
      
      Backport patch fixing compilation with 5.15 and musl provided by Robert Marko
      
      Signed-off-by: default avatarAnsuel Smith <ansuelsmth@gmail.com>
      4393d8c0
    • Rui Salvaterra's avatar
      kernel: bump 5.10 to 5.10.103 · 05ed7dc5
      Rui Salvaterra authored
      
      Patches automatically rebased.
      
      Signed-off-by: default avatarRui Salvaterra <rsalvaterra@gmail.com>
      05ed7dc5
    • Oskari Rauta's avatar
      util-linux: add lsns · ef4bf8b4
      Oskari Rauta authored
      
      lsns lists system namespaces
      
      Signed-off-by: default avatarOskari Rauta <oskari.rauta@gmail.com>
      ef4bf8b4
    • Josef Schlehofer's avatar
      uboot-mvebu: backport patch to fix nvme detail crash · 0f432fa3
      Josef Schlehofer authored
      Steps to reproduce:
      1. Insert NVMe disk with a reduction to Turris Omnia
      2. Go to U-boot
      3. Run these two commands:
      a) ``nvme scan``
      b) ``nvme detail``
      4. Wait for crash
      
      This is backported from U-boot upstream repository.
      It should be included in the upcoming release - 2022.04 [1].
      
      It was tested on Turris Omnia, mvebu, cortex-a9, OpenWrt master.
      
      [1] https://patchwork.ozlabs.org/project/uboot/patch/20211209100639.21530-1-pali@kernel.org/
      
      
      
      Signed-off-by: default avatarJosef Schlehofer <pepe.schlehofer@gmail.com>
      [Export the patch from U-Boot git]
      Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
      0f432fa3
    • Georgi Valkov's avatar
      mkhash: fix build errors on FreeBSD 13.0 · 1324403e
      Georgi Valkov authored
      
      be64enc, be16dec, and be32dec are declared on FreeBSD 13.0, in
      /usr/include/sys/endian.h so we should not declare them.
      
      Fixes the following error during feeds update:
      staging_dir/host/bin/mkhash: No such file or directory
      
      gcc scripts/mkhash.c
      scripts/mkhash.c:111:1: error: redefinition of 'be64enc'
        111 | be64enc(void *buf, uint64_t u)
      
      Signed-off-by: default avatarGeorgi Valkov <gvalkov@abv.bg>
      1324403e
Loading