1. 15 10月, 2022 10 次提交
    • H
      OpenWrt v22.03.2: adjust config defaults · ea845f76
      Hauke Mehrtens 提交于
      Signed-off-by: NHauke Mehrtens <hauke@hauke-m.de>
      ea845f76
    • J
      firewall4: update to latest Git HEAD · 9a599fee
      Jo-Philipp Wich 提交于
      4fbf6d7 ruleset.uc: log forwarded traffic not matched by zone policies
      c7201a3 main.uc: reintroduce set reload restriction
      756f1e2 ruleset: fix emitting set_mark/set_xmark rules with masks
      3db4741 ruleset: properly handle zone names starting with a digit
      43d8ef5 fw4: fix formatting of default log prefix
      592ba45 main.uc: remove uneeded/wrong set reload restrictions
      b0a6bff tests: fix testcases
      145e159 fw4: recognize `option log` and `option counter` in `config nat` sections
      ce050a8 fw4: fall back to device if l3_device is not available in ifstatus
      
      Fixes: #10639, #10965
      Signed-off-by: NJo-Philipp Wich <jo@mein.io>
      (cherry picked from commit fdfa9d8f7469626d2dc8e4b46a6ad56a3b27c16b)
      9a599fee
    • J
      ucode: update to latest Git HEAD · 30de1b50
      Jo-Philipp Wich 提交于
      4ae7072 fs: use `getline()` for line wise read operations
      21ace5e lexer: fixes for regex literal parsing
      00965fa lib: implement slice() function
      76d396d main: implement print mode
      7bbba78 compiler: optimize function return opcode generation
      a45f2a3 lexer: improve regex literal handling
      d64d5d6 vm: maintain export symbol tables per program
      f4b4ded uloop: task: gracefully handle absent output callback
      a58fe47 ubus: hold reference to underlying connection until deferred is concluded
      e23b58a lib: uc_system(): retry waitpid() on EINTR
      cc4eb79 ubus: support obtaining numeric error code
      01c412c ubus: add toplevel constants for ubus status codes
      8e240fa ubus: allow object method call handlers to return a numeric status code
      5cdddd3 lib: add limit support to split() and replace()
      0ba9c3e fs: add optional third permission argument to fs.open()
      c1f7b3b lib: remove fixed capture group limit in match() and regex replace()
      Signed-off-by: NJo-Philipp Wich <jo@mein.io>
      (backported from commits 639754e3
       and 5110dcb1)
      30de1b50
    • J
      rpcd: update to latest Git HEAD · fa4ec039
      Jo-Philipp Wich 提交于
      8c852b6 ucode: write ucode runtime exceptions to stderr
      e80d0b2 ucode: pass-through `ubus_rpc_session` argument
      0d02243 ucode: initialize module search path early
      Signed-off-by: NJo-Philipp Wich <jo@mein.io>
      (backported from commits 94129cbe
       and db17c752)
      fa4ec039
    • M
      image: always rebuild kernel loaders · a7fb589e
      Matthias Schiffer 提交于
      Kernel loaders like the lzma-loader currently don't track changes to
      their sources. This can lead to an old version of a loader to be used
      when a build tree is not clean between builds.
      
      As the loaders are tiny and the build times are insignificant, simply
      force rebuilding them on every build to avoid this problem.
      Signed-off-by: NMatthias Schiffer <mschiffer@universe-factory.net>
      (cherry picked from commit a01d23e7)
      a7fb589e
    • M
      mpc85xx: p1010: make TP-Link WDR4900 v1 build again · 5db6914f
      Matthias Schiffer 提交于
      Add the spi-loader as a pre-kernel stage, so we can lift the kernel size
      limit.
      Signed-off-by: NMatthias Schiffer <mschiffer@universe-factory.net>
      (cherry picked from commit 2fa53c92)
      5db6914f
    • M
      mpc85xx: add SPI kernel loader for TP-Link TL-WDR4900 v1 · f7a43e46
      Matthias Schiffer 提交于
      Similar to the lzma-loader on our MIPS targets, the spi-loader acts as
      a second-stage loader that will then load and start the actual kernel.
      As the TL-WDR4900 uses SPI-NOR and the P1010 family does not have support
      for memory mapping of this type of flash, this loader needs to contain a
      basic driver for the FSL ESPI controller.
      Signed-off-by: NMatthias Schiffer <mschiffer@universe-factory.net>
      (cherry picked from commit a296055b)
      f7a43e46
    • D
      ramips: fix ZyXEL NWA55AXE model name · c1fcca50
      David Bauer 提交于
      The model name was missing a letter.
      Signed-off-by: NDavid Bauer <mail@david-bauer.net>
      (cherry picked from commit 9c8605de)
      c1fcca50
    • D
      ramips: add support for ZyXEL NWA50AX / NWA55AXE · 2050bc4f
      David Bauer 提交于
      Hardware
      --------
      CPU:    Mediatek MT7621
      RAM:    256M DDR3
      FLASH:  128M NAND
      ETH:    1x Gigabit Ethernet
      WiFi:   Mediatek MT7915 (2.4/5GHz 802.11ax 2x2 DBDC)
      BTN:    1x Reset (NWA50AX only)
      LED:    1x Multi-Color (NWA50AX only)
      
      UART Console
      ------------
      NWA50AX:
      Available below the rubber cover next to the ethernet port.
      NWA55AXE:
      Available on the board when disassembling the device.
      
      Settings: 115200 8N1
      
      Layout:
      
      <12V> <LAN> GND-RX-TX-VCC
      
      Logic-Level is 3V3. Don't connect VCC to your UART adapter!
      
      Installation Web-UI
      -------------------
      Upload the Factory image using the devices Web-Interface.
      
      As the device uses a dual-image partition layout, OpenWrt can only
      installed on Slot A. This requires the current active image prior
      flashing the device to be on Slot B.
      
      If the currently installed image is started from Slot A, the device will
      flash OpenWrt to Slot B. OpenWrt will panic upon first boot in this case
      and the device will return to the ZyXEL firmware upon next boot.
      
      If this happens, first install a ZyXEL firmware upgrade of any version
      and install OpenWrt after that.
      
      Installation TFTP
      -----------------
      This installation routine is especially useful in case
       * unknown device password (NWA55AXE lacks reset button)
       * bricked device
      
      Attach to the UART console header of the device. Interrupt the boot
      procedure by pressing Enter.
      
      The bootloader has a reduced command-set available from CLI, but more
      commands can be executed by abusing the atns command.
      
      Boot a OpenWrt initramfs image available on a TFTP server at
      192.168.1.66. Rename the image to owrt.bin
      
       $ atnf owrt.bin
       $ atna 192.168.1.88
       $ atns "192.168.1.66; tftpboot; bootm"
      
      Upon booting, set the booted image to the correct slot:
      
       $ zyxel-bootconfig /dev/mtd10 get-status
       $ zyxel-bootconfig /dev/mtd10 set-image-status 0 valid
       $ zyxel-bootconfig /dev/mtd10 set-active-image 0
      
      Copy the OpenWrt ramboot-factory image to the device using scp.
      Write the factory image to NAND and reboot the device.
      
       $ mtd write ramboot-factory.bin firmware
       $ reboot
      Signed-off-by: NDavid Bauer <mail@david-bauer.net>
      (cherry picked from commit a0b7fef0)
      2050bc4f
    • U
      busybox: nslookup: ensure unique transaction IDs for the DNS queries · bc8e24c6
      Uwe Kleine-König 提交于
      On machines with a coarse monotonic clock (here: TP-Link RE200 powered
      by a MediaTek MT7620A) it can happen that the two DNS requests (for A
      and AAAA) share the same transaction ID. If this happens the second
      reply is wrongly dropped and nslookup reports "No answer".
      
      Fix this by ensuring that the transaction IDs are unique.
      Signed-off-by: NUwe Kleine-König <uwe@kleine-koenig.org>
      (cherry picked from commit 63e5ba8e)
      Signed-off-by: NChristian Marangi <ansuelsmth@gmail.com>
      bc8e24c6
  2. 13 10月, 2022 2 次提交
  3. 11 10月, 2022 5 次提交
  4. 10 10月, 2022 10 次提交
  5. 08 10月, 2022 1 次提交
  6. 06 10月, 2022 2 次提交
    • N
      ath79: add low_mem to tiny image · f579b853
      Nick Hainke 提交于
      Devices with SMALL_FLASH enabled have "SQUASHFS_BLOCK_SIZE=1024" in
      their config. This significantly increases the cache memory required by
      squashfs [0]. This commit enables low_mem leading to a much better
      performance because the SQUASHFS_BLOCK_SIZE is reduced to 256.
      
      Example Nanostation M5 (XM):
      The image size increases by 128 KiB. However, the memory statisitcs look
      much better:
      
      Default tiny build:
      ------
      MemTotal:          26020 kB
      MemFree:            5648 kB
      MemAvailable:       6112 kB
      Buffers:               0 kB
      Cached:             3044 kB
      
      low_mem enabled:
      -----
      MemTotal:          26976 kB
      MemFree:            6748 kB
      MemAvailable:      11504 kB
      Buffers:               0 kB
      Cached:             7204 kB
      
      [0] - https://github.com/freifunk-gluon/gluon/commit/7e8af99cf504ca1dc389f282a0c94f4a911571beSigned-off-by: NNick Hainke <vincent@systemli.org>
      (cherry picked from commit f54ac98f)
      f579b853
    • N
      ath79: move ubnt-xm to tiny · 4b5bd150
      Nick Hainke 提交于
      ath79 has was bumped to 5.10. With this, as with every kernel change,
      the kernel has become larger. However, although the kernel gets bigger,
      there are still enough flash resources. But the RAM reaches its capacity
      limits. The tiny image comes with fewer kernel flags enabled and
      fewer daemons.
      
      Improves: 15aa53d7 ("ath79: switch to Kernel 5.10")
      Tested-by: NRobert Foss <me@robertfoss.se>
      Signed-off-by: NNick Hainke <vincent@systemli.org>
      (cherry picked from commit f4415f76)
      4b5bd150
  7. 04 10月, 2022 10 次提交