Skip to content
Snippets Groups Projects
  1. Mar 13, 2022
    • INAGAKI Hiroshi's avatar
      realtek: add support for Panasonic Switch-M8eG PN28080K · e83ab243
      INAGAKI Hiroshi authored
      
      Panasonic Switch-M8eG PN28080K is a 8 + 1 port gigabit switch, based on
      RTL8380M.
      
      Specification:
      
      - SoC		: Realtek RTL8380M
      - RAM		: DDR3 128 MiB (Winbond W631GG8KB-15)
      - Flash		: SPI-NOR 32 MiB (Macronix MX25L25635FMI-10G)
      - Ethernet	: 10/100/1000 Mbps x8 + 1
        - port 1-8	: TP, RTL8218B (SoC)
        - port 9	: SFP, RTL8380M (SoC)
      - LEDs/Keys	: 7x / 1x
      - UART		: RS-232 port on the front panel (connector: RJ-45)
        - 3:TX, 4:GND, 5:GND, 6:RX (pin number: RJ-45)
        - 9600n8
      - Power		: 100-240 VAC, 50/60 Hz, 0.5 A
        - Plug	: IEC 60320-C13
      - Stock OS	: VxWorks based
      
      Flash instruction using initramfs image:
      
      1.  Prepare the TFTP server with the IP address 192.168.1.111
      2.  Rename the OpenWrt initramfs image to "0101A8C0.img" and place it to
          the TFTP directory
      3.  Download the official upgrading firmware (ex: pn28080k_v30000.rom)
          and place it to the TFTP directory
      4.  Boot M8eG and interrupt the U-Boot with Ctrl + C keys
      5.  Execute the following commands and boot with the OpenWrt initramfs
          image
      
          rtk network on
          tftpboot 0x81000000
          bootm
      
      6.  Backup mtdblock files to the computer by scp or anything and reboot
      7.  Interrupt the U-Boot and execute the following commands to re-create
          filesystem in the flash
      
          ffsmount c:/
          ffsfmt c:/
      
          this step takes a long time, about ~ 4 mins
      
      8.  Execute the following commands to put the official images to the
          filesystem
      
          updatert <official image>
      
          example:
      
            updatert pn28080k_v30000.rom
      
          this step takes about ~ 40 secs
      
      9.  Set the environment variables of the U-Boot by the following commands
      
          setenv loadaddr 0xb4e00000
          setenv bootcmd bootm
          saveenv
      
      10: Download the OpenWrt initramfs image and boot with it
      
          tftpboot 0x81000000 0101A8C0.img
          bootm
      
      11: On the initramfs image, download the sysupgrade image and perform
          sysupgrade with it
      
          sysupgrade <imagename>
      
      12: Wait ~ 120 seconds to complete flashing
      
      Note:
      
      - "Switch-M8eG" is a model name, and "PN28080K" is a model number.
        Switch-M8eG has an another (old) model number ("PN28080"), it's not a
        Realtek based hardware.
      
      - Switch-M8eG has a "POWER" LED (Green), but it's not connected to any
        GPIO pin.
      
      - The U-Boot checks the runtime images in the flash when booting and
        fails to execute anything in "bootcmd" variable if the images are not
        exsisting.
      
      - A filesystem is formed in the flash (0x100000-0x1DFFFFF) on the stock
        firmware and it includes the stock images, configuration files and
        checksum files. It's unknown format, can't be managed on the OpenWrt.
        To get the enough space for OpenWrt, move the filesystem to the head
        of "fs_reserved" partition by execution of "ffsfmt" and "updatert".
      
      - On the other devices in the same series of Switch-M8eG PN28080K, the
        INT pin on the PCA9555 is not connected to anywhere.
      
      Back to the stock firmware:
      
      1. Delete "loadaddr" variable and set "bootcmd" to the original value
      
         on U-Boot:
      
           setenv loadaddr
           setenv bootcmd 'bootm 0x81000000'
      
         on OpenWrt:
      
           fw_setenv loadaddr
           fw_setenv bootcmd 'bootm 0x81000000'
      
      2. Perform reset or reboot
      
        on U-Boot:
      
          reset
      
        on OpenWrt:
      
          reboot
      
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      Reviewed-by: default avatarSander Vanheule <sander@svanheule.net>
      e83ab243
    • INAGAKI Hiroshi's avatar
      realtek: enable pca953x driver for rtl838x subtarget · da1347d6
      INAGAKI Hiroshi authored
      
      The system status LED on Panasonic Switch-M8eG PN28080K is connected to
      a PCA9539PW. To use the LED as a status LED of OpenWrt while booting,
      enable the pca953x driver and built-in to the kernel.
      Also enable CONFIG_GPIO_PCA953X_IRQ to use interrupt via RTL83xx GPIO.
      
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      Acked-by: default avatarSander Vanheule <sander@svanheule.net>
      da1347d6
    • Martin Kennedy's avatar
      realtek: add ZyXEL GS1900-24 v1 support · d1a86907
      Martin Kennedy authored
      
      The ZyXEL GS1900-24 v1 is a 24 port switch with two SFP ports, similar to
      the other GS1900 switches.
      
      Specifications
      --------------
      * Device:    ZyXEL GS1900-24 v1
      * SoC:       Realtek RTL8382M 500 MHz MIPS 4KEc
      * Flash:     16 MiB
      * RAM:       Winbond W9751G8KB-25 64 MiB DDR2 SDRAM
      * Ethernet:  24x 10/100/1000 Mbps, 2x SFP 100/1000 Mbps
      * LEDs:
        * 1 PWR LED (green, not configurable)
        * 1 SYS LED (green, configurable)
        * 24 ethernet port link/activity LEDs (green, SoC controlled)
        * 2 SFP status/activity LEDs (green, SoC controlled)
      * Buttons:
        * 1 "RESET" button on front panel (soft reset)
        * 1 button ('SW1') behind right hex grate (hardwired power-off)
      * Power:     120-240V AC C13
      * UART:      Internal populated 10-pin header ('J5') providing RS232;
                   connected to SoC UART through a SIPEX 3232EC for voltage
                   level shifting.
      
      * 'J5' RS232 Pinout (dot as pin 1):
        2) SoC RXD
        3) GND
        10) SoC TXD
      
      Serial connection parameters: 115200 8N1.
      
      Installation
      ------------
      
      OEM upgrade method:
      
      * Log in to OEM management web interface
      
      * Navigate to Maintenance > Firmware > Management
      
      * If "Active Image" has the first option selected, OpenWrt will need to be
        flashed to the "Active" partition. If the second option is selected,
        OpenWrt will need to be flashed to the "Backup" partition.
      
      * Navigate to Maintenance > Firmware > Upload
      
      * Upload the openwrt-realtek-rtl838x-zyxel_gs1900-24-v1-initramfs-kernel.bin
        file by your preferred method to the previously determined partition.
        When prompted, select to boot from the newly flashed image, and reboot
        the switch.
      
      * Once OpenWrt has booted, scp the sysupgrade image to /tmp and flash it:
      
        > sysupgrade /tmp/openwrt-realtek-rtl838x-zyxel_gs1900-24-v1-squashfs-sysupgrade.bin
      
      U-Boot TFTP method:
      
      * Configure your client with a static 192.168.1.x IP (e.g. 192.168.1.10).
      
      * Set up a TFTP server on your client and make it serve the initramfs
        image.
      
      * Connect serial, power up the switch, interrupt U-boot by hitting the
        space bar, and enable the network:
      
        > rtk network on
      
      > Since the GS1900-24 v1 is a dual-partition device, you want to keep the
        OEM firmware on the backup partition for the time being. OpenWrt can
        only be installed in the first partition anyway (hardcoded in the
        DTS). To ensure we are set to boot from the first partition, issue the
        following commands:
      
        > setsys bootpartition 0
        > savesys
      
      * Download the image onto the device and boot from it:
      
        > tftpboot 0x81f00000 192.168.1.10:openwrt-realtek-rtl838x-zyxel_gs1900-24-v1-initramfs-kernel.bin
        > bootm
      
      * Once OpenWrt has booted, scp the sysupgrade image to /tmp and flash it:
      
        > sysupgrade /tmp/openwrt-realtek-rtl838x-zyxel_gs1900-24-v1-squashfs-sysupgrade.bin
      
      Signed-off-by: default avatarMartin Kennedy <hurricos@gmail.com>
      d1a86907
    • Tianling Shen's avatar
      kernel/modules: add kmod-inet-diag package · efc8aff6
      Tianling Shen authored
      
      Add option to compile kmod-inet-diag, support for INET (TCP, DCCP, etc)
      socket monitoring interface used by native Linux tools such as ss.
      
      Signed-off-by: default avatarTianling Shen <cnsztl@immortalwrt.org>
      efc8aff6
    • John Audia's avatar
      kernel: bump 5.10 to 5.10.104 · 3f5b2d25
      John Audia authored
      
      All patches automatically rebased.
      
      Build system: x86_64
      Build-tested: bcm2711/RPi4B, mt7622/RT3200
      Run-tested: bcm2711/RPi4B, mt7622/RT3200
      
      Signed-off-by: default avatarJohn Audia <graysky@archlinux.us>
      3f5b2d25
    • Rosen Penev's avatar
      9c290ad4
    • Rosen Penev's avatar
      tools/fakeroot: update to 1.28 · 9a44bc78
      Rosen Penev authored
      
      Refreshed patches.
      
      Upstream says there's only a bugfix for GNU Hurd.
      
      Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>
      9a44bc78
    • Rosen Penev's avatar
      tools/cmake: update to 3.22.3 · f88a6da0
      Rosen Penev authored
      
      Seems to be mostly pthread fixes.
      
      Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>
      f88a6da0
    • Rosen Penev's avatar
      tools/mtools: update to 4.0.38 · 7f92046d
      Rosen Penev authored
      
      No real changelog available.
      
      Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>
      7f92046d
    • Etienne Champetier's avatar
      iptables: backport missing init_extensions6() calls · e9c99e0f
      Etienne Champetier authored
      
      This fixes ip6tables-nft no being able to use built-in
      extensions like icmp6.
      
      Signed-off-by: default avatarEtienne Champetier <champetier.etienne@gmail.com>
      e9c99e0f
    • Florian Eckert's avatar
      ipset: add backport patch for IPv6 nftables ipset-translation · e5440ec8
      Florian Eckert authored
      When porting mwan3 from iptables to nftables I tried the new translation
      tool for ipset ipset-translate. I noticed that no IPv6 ipset can be
      created with the tool. I have reported the problem to the upstream
      project and the following patch fixes the problem.
      
      Until this upsream is included in a new release, this patch should be
      used in Openwrt.
      
      https://lore.kernel.org/netfilter-devel/20220228190217.2256371-1-pablo@netfilter.org/T/#m09cc3cb738f2e42024c7aecf5b7240d9f6bbc19c
      
      
      
      Signed-off-by: default avatarFlorian Eckert <fe@dev.tdt.de>
      e5440ec8
    • Rosen Penev's avatar
      tools/expat: enable DTD · cca5367f
      Rosen Penev authored
      
      Fixes gdb usage, which depends on it.
      
      Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>
      cca5367f
    • Rosen Penev's avatar
      tools/expat: update to 2.4.7 · 3150e8bf
      Rosen Penev authored
      
      Mostly a bug fix to the bug fix to CVE-2022-25236
      
      Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>
      3150e8bf
    • Joe Mullally's avatar
      ramips: Apply pinctrl DTS changes to TL-WPA8631P · 8d255512
      Joe Mullally authored
      
      Applies changes from 7774b860 to new device committed later. Fix some
      whitespace in the DTS. Use standard model name format in DTS.
      
      Fixes: 6c743c30 ("ramips: Add support for TP-Link TL-WPA8631P v3")
      Signed-off-by: default avatarJoe Mullally <jwmullally@gmail.com>
      Reported-by: default avatarArınç ÜNAL <arinc.unal@arinc9.com>
      8d255512
    • Sven Schwermer's avatar
      ath79: Add LED labels for Airtight C-75 · 591a2b95
      Sven Schwermer authored
      
      Keep labels since OpenWrt userland tooling (get_dt_led) depends on them
      to find the LED instances referenced by the led-* aliases.
      
      The label for the amber power LED was removed in 4eefdc7a.
      
      Signed-off-by: default avatarSven Schwermer <sven@svenschwermer.de>
      591a2b95
    • Chukun Pan's avatar
      ramips: update WLAN MAC address of JCG Y2 · 7fa227ea
      Chukun Pan authored
      
      MAC addresses on OEM firmware:
        04:xx:xx:xx:xx:c8  factory 0x4     wlan2g
        06:xx:xx:xx:xx:c8  [not on flash]  wlan5g
      
      Signed-off-by: default avatarChukun Pan <amadeus@jmu.edu.cn>
      7fa227ea
    • Chukun Pan's avatar
      ramips: update WLAN MAC address of Phicomm K2P · 285e636b
      Chukun Pan authored
      
      The wireless mac address difference of this machine is similar
      to that of D-Link DIR-853-R1, so use the same practice.
      
      Signed-off-by: default avatarChukun Pan <amadeus@jmu.edu.cn>
      285e636b
    • Dawsen Gao's avatar
      ramips: Add support for Dual-Q H721 · b3da44b6
      Dawsen Gao authored
      
      Dual-Q H721 is a router platform board, it is the smaller model of
      the U7621-06.
      
      The device has the following specifications:
      
      MT7621AT (880 MHz)
      256 of RAM (DDR3)
      16 MB of FLASH (MX25l12805d SPI)
      5x 1 Gbps Ethernet (MT7621 built-in switch)
      1x M.2 (NGFF) 3.7V 3A max for 5G M.2 Modem work at USB3.0 mode
      1x Minipcie 3.7V 3A max for LTE Modem work at USB2.0 Mode
      2x Minipcie for WIFI card
      4x Lan+1x Wan 10/100M/1000M RJ45 port
      14x LEDs (1x GPIO-controlled)
      1x reset button
      1x UART header (4-pins)
      1x mico SD-card reader
      1x DC jack for main power (5~27 V)
      
      The following has been tested and is working:
      
      Ethernet switch
      miniPCIe slots (tested with Wi-Fi cards and LTE modem cards)
      miniSIM slot (works with normal size simcard)
      sysupgrade
      reset button
      micro SD-card reader
      
      Installation:
      
      This board has no locked down bootloader. The seller can be asked to
      install openwrt, so upgrades are standard sysupgrade method.
      
      Recovery:
      
      This board contains a Chinese, closed-source bootloader called Breed
      (Boot and Recovery Environment for Embedded Devices). Breed supports web
      recovery and to enter it, you keep the reset button pressed for around
      5 seconds during boot. Your machine will be assigned an IP through DHCP
      and the router will use IP address 192.168.1.1. The recovery website is
      in Chinese, but is easy to use. Click on the second item in the list to
      access the recovery page, then the second item on the next page is where
      you select the firmware. In order to start the recovery, you click the
      button at the bottom.
      
      Signed-off-by: default avatarDawsen Gao <dawsen_gao@163.com>
      [change author name (used SoB one), add ethernet pinctrl,
       apply sorting to device recipe]
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      b3da44b6
  2. Mar 12, 2022
    • Rafał Miłecki's avatar
      base-files: call "sync" after initial setup · 9851d4b6
      Rafał Miłecki authored
      
      OpenWrt uses a lot of (b)ash scripts for initial setup. This isn't the
      best solution as they almost never consider syncing files / data. Still
      this is what we have and we need to try living with it.
      
      Without proper syncing OpenWrt can easily get into an inconsistent state
      on power cut. It's because:
      1. Actual (flash) inode and data writes are not synchronized
      2. Data writeback can take up to 30 seconds (dirty_expire_centisecs)
      3. ubifs adds extra 5 seconds (dirty_writeback_centisecs) "delay"
      
      Some possible cases (examples) for new files:
      1. Power cut during 5 seconds after write() can result in all data loss
      2. Power cut happening between 5 and 35 seconds after write() can result
         in empty file (inode flushed after 5 seconds, data flush queued)
      
      Above affects e.g. uci-defaults. After executing some migration script
      it may get deleted (whited out) without generated data getting actually
      written. Power cut will result in missing data and deleted file.
      
      There are three ways of dealing with that:
      1. Rewriting all user-space init to proper C with syncs
      2. Trying bash hacks (like creating tmp files & moving them)
      3. Adding sync and hoping for no power cut during critical section
      
      This change introduces the last solution that is the simplest. It
      reduces time during which things may go wrong from ~35 seconds to
      probably less than a second. Of course it applies only to IO operations
      performed before /etc/init.d/boot . It's probably the stage when the
      most new files get created.
      
      All later changes are usually done using smarter C apps (e.g. busybox or
      uci) that creates tmp files and uses rename() that is expected to be
      atomic.
      
      Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
      Acked-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
      Acked-by: default avatarSergey Ryazanov <ryazanov.s.a@gmail.com>
      9851d4b6
    • Daniel Golle's avatar
      uqmi: update to git HEAD · 2a801ee5
      Daniel Golle authored
      
       44dd095 uqmi: corrected too short received SMS
      
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      Unverified
      2a801ee5
    • Lech Perczak's avatar
      uqmi: set CID during 'query-data-status' operation · c8a88118
      Lech Perczak authored
      
      Modems used in ZTE mobile broadband routers require to query the data
      session status using the same CID as one used to establish the session,
      otherwise they will report the session as "disconnected" despite
      reporting correct PDH in previous step. Without this change, IPv6
      connection on these modems doesn't establish properly. In IPv4 this bug
      is present as well, but for some reason querying of IPv4 status works
      using temporary CID, this however seems noncompliant with QMI
      specifications, so fix it as well.
      
      Signed-off-by: default avatarLech Perczak <lech.perczak@gmail.com>
      c8a88118
  3. Mar 11, 2022
  4. Mar 10, 2022
  5. 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
  6. Mar 08, 2022
    • Birger Koblitz's avatar
      ramips: add support for Renkforce WS-WN530HP3-A · ed364cd4
      Birger Koblitz authored
      
      This adds support for the Renkforce WS-WN530HP3-A ceiling-
      mountable Wireless Access Point, which is powered over PoE.
      Hardware:
      	- SoC: Mediatek MT7621DAT
      	- RAM: 128MiB on SoC
      	- Flash: 16MiB GigaDevice GD25Q128C
      	- 2.4Ghz Wifi: Mediatek MT603EN
      	- 5GHz Wifi: MT613BEN
      	- Ethernet:
      	  - 1x 1GBit WAN port, passive PoE capable
      	  - 2x 1GBit LAN ports
      	LEDs: 1x Bi-Color LED (red/blue)
      	Buttons: 1x Reset Button, 1x Power Button
      
      Installation:
      	Power on the access point and immedately press the reset
      	button for 10 seconds. Connect web-browser to 192.168.10.1
      	and upload sysupgrade image. Flash uploaded image and wait
      	about 2 minutes for reboot.
      
      Signed-off-by: default avatarBirger Koblitz <mail@birger-koblitz.de>
      Signed-off-by: Petr Štetiar <ynezz@true.cz> [fixed SoB]
      ed364cd4
    • Jeffery To's avatar
      ath79: fix button labels for WZR-HP-AG300H and WZR-600DHP · 62125c3a
      Jeffery To authored
      
      These were present in ar71xx but overlooked when porting to ath79.
      
      Fixes: 480bf282 ("ath79: add support for Buffalo WZR-HP-AG300H")
      
      Signed-off-by: default avatarJeffery To <jeffery.to@gmail.com>
      62125c3a
    • Thibaut VARÈNE's avatar
      ath79: add support for MikroTik RouterBOARD mAP lite · eb38af78
      Thibaut VARÈNE authored
      The MikroTik RouterBOARD mAPL-2nd (sold as mAP Lite) is a small
      2.4 GHz 802.11b/g/n PoE-capable AP.
      
      See https://mikrotik.com/product/RBmAPL-2nD for more info.
      
      Specifications:
       - SoC: Qualcomm Atheros QCA9533
       - RAM: 64 MB
       - Storage: 16 MB NOR
       - Wireless: Atheros AR9531 (SoC) 802.11b/g/n 2x2:2, 1.5 dBi antenna
       - Ethernet: Atheros AR8229 (SoC), 1x 10/100 port, 802.3af/at PoE in
       - 4 user-controllable LEDs:
         · 1x power (green)
         · 1x user (green)
         · 1x lan (green)
         · 1x wlan (green)
      
      Flashing:
       TFTP boot initramfs image and then perform sysupgrade. Follow common
       MikroTik procedure as in https://openwrt.org/toh/mikrotik/common
      
      .
      
      Note: following 781d4bfb
       The network setup avoids using the integrated switch and connects the
       single Ethernet port directly. This way, link speed (10/100 Mbps) is
       properly reported by eth0.
      
      Signed-off-by: default avatarThibaut VARÈNE <hacks@slashdirt.org>
      eb38af78
    • Hannu Nyman's avatar
      ipq806x: provide ramoops for R7800/XR500 by default · 549f8694
      Hannu Nyman authored
      
      Add kmod-ramoops to the default set of device packages in
      R7800 and XR500, so that the ramoops kernel crash logs
      are provided by default for these routers.
      
      The capability was earlier defined by 97158fe1 and cf346dfa,
      but the feature was not yet turned on by default.
      
      The possible kernel crashes are stored into /sys/fs/pstore/*
      
      Signed-off-by: default avatarHannu Nyman <hannu.nyman@iki.fi>
      549f8694
Loading