Skip to content
Snippets Groups Projects
  1. Jun 07, 2018
  2. Jun 06, 2018
    • Hans Dedecker's avatar
      ebtables: update to latest git 2018-06-06 · 1bbe813d
      Hans Dedecker authored
      
      5699354 extensions: fix build failure on fc28
      e6359ee build: update ebtables.h from kernel and drop local unused copy
      
      Signed-off-by: default avatarHans Dedecker <dedeckeh@gmail.com>
      1bbe813d
    • Matthias Schiffer's avatar
      ar71xx: switch CPE/WBS 210/510 to okli-loader · 0c0bb629
      Matthias Schiffer authored
      
      We recently increased the kernel partition size of the CPE/WBS 210/510.
      This works fine for new installations of the factory image, but on
      sysupgrades, the partition table read by the bootloader is not adjusted.
      This limits the maximum size of the kernel loaded by the bootloader to the
      old partition size.
      
      While adjusting the partition table would be a cleanest solution, such a
      migration would have to happen before an upgrade to a new version with a
      newer kernel. This is error-prone and would require a two-step upgrade, as
      we mark the partition table partition read-only.
      
      Instead, switch from the lzma-loader with embedded kernel to the
      okli-loader, so only the tiny lzma-loader is loaded by the bootloader as
      "kernel", and the lzma-loader will then load the rest of the kernel by
      itself.
      
      Fixes: e39847ea ("ar71xx: increase kernel partition size for CPE/WBS 210/510")
      Signed-off-by: default avatarMatthias Schiffer <mschiffer@universe-factory.net>
      Unverified
      0c0bb629
    • Matthias Schiffer's avatar
      ath79: lzma-loader: sync with ar71xx target · c57e182b
      Matthias Schiffer authored
      
      Import all improvements made in the lzma-loader since development on the
      ath79 target started.
      
      This also reverts fe594bf9 ("ath79: fix loader-okli, lzma-loader"), as
      is obsoleted by 2ad60168b6af ("ar71xx: lzma-loader: move padding workaround
      to gzip step").
      
      Likely, many of the changes should be ported to the ramips lzma-loader as
      well, but I don't have a device to test this.
      
      Signed-off-by: default avatarMatthias Schiffer <mschiffer@universe-factory.net>
      Unverified
      c57e182b
    • Matthias Schiffer's avatar
      ar71xx: make loader-okli build step more generic · 108a6f67
      Matthias Schiffer authored
      
      Add support for different loader types.
      
      Signed-off-by: default avatarMatthias Schiffer <mschiffer@universe-factory.net>
      Unverified
      108a6f67
    • Matthias Schiffer's avatar
      ar71xx: lzma-loader: constify kernel argv array · 9968dced
      Matthias Schiffer authored
      
      By making the kernel argv array const, the .data section can always be
      omitted from the laoder binary.
      
      Signed-off-by: default avatarMatthias Schiffer <mschiffer@universe-factory.net>
      Unverified
      9968dced
    • Matthias Schiffer's avatar
      ar71xx: lzma-loader: set page size to 4KB · 8d851a95
      Matthias Schiffer authored
      
      The text section in the ELF loader is aligned to the maximum page size,
      which defaults to 64KB. Reduce it to the actual page size to avoid wasting
      flash space for this alignment.
      
      Signed-off-by: default avatarMatthias Schiffer <mschiffer@universe-factory.net>
      Unverified
      8d851a95
    • Matthias Schiffer's avatar
      ar71xx: lzma-loader: move padding workaround to gzip step · a28e46b7
      Matthias Schiffer authored
      
      Some devices (TP-Link TL-WR1043ND v1) don't boot reliably when the
      uncompressed loader is too small. This was workarounded in the loader by
      adding 512KB of padding to the .data section of the loader binary.
      
      This approach had two issues:
      
      - The padding was only working when .data was non-empty (otherwise the
        section would become NOBITS, omitting it in the binary). .data was only
        empty when no CMDLINE was set, leading to further workarounds like
        fe594bf9 ("ath79: fix loader-okli, lzma-loader"), and this
        workaround was only effective because a missing "const" led to the kernel
        argv being stored in .data instead of .rodata
      - The padding was not only added to the compressed .gz loader, but also
        uncompressed .bin and .elf loaders. The prevented embedding the kernel
        cmdline in the loader for non-gz loader types.
      
      To fix both issues, move the creation of the padding from the linker script
      to the gzip step.
      
      Signed-off-by: default avatarMatthias Schiffer <mschiffer@universe-factory.net>
      Unverified
      a28e46b7
    • Tony Ambardar's avatar
      base-files: fix UCI config parsing and callback handling · 73d8a6ab
      Tony Ambardar authored
      There are several long-standing issues present in the UCI shell API as
      documented in https://wiki.openwrt.org/doc/devel/config-scripting. They
      relate both to high-level, user-defined callback functions used to
      process UCI config files, and also to low-level functions used within
      scripts generally.
      
      The related problems have been encountered now and in the past, e.g.
      https://forum.openwrt.org/viewtopic.php?id=54295
      
      , and include:
      
      a) UCI parsing option() function and user-defined option_cb() callbacks
      being erroneously called during processing of "list" config file entries;
      
      b) normal usage of the low-level config_set() unexpectedy calling any
      defined option_cb() if present; and
      
      c) handling of the list_cb() not respecting the NO_CALLBACK variable.
      
      Root causes include a function stack "inversion", where the low-level
      config_set() function incorrectly calls the high-level option() function,
      intended only for processing the "option" keyword of UCI config files.
      
      This change addresses the inversion and other issues, making the option
      handling code more consistent and smaller, and simplifying developers'
      usage of UCI callbacks.
      
      Signed-off-by: default avatarTony Ambardar <itugrok@yahoo.com>
      Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> [PKG_RELEASE increase]
      73d8a6ab
  3. Jun 05, 2018
  4. Jun 04, 2018
    • Hans Dedecker's avatar
      map: make tunnel encapsulation limit support configurable (FS#1501) · e4577d2e
      Hans Dedecker authored
      
      Be compatible with ISPs which don't support the destination option header containing
      the tunnel encapsulation limit as reported in FS#1501.
      Setting the uci parameter encaplimit to ignore; allows to disable the insertion
      of the destination option header in the map-e packets.
      Otherwise the tunnel encapsulation limit value can be set to a value from 0 till 255
      by setting the encaplimit uci parameter accordingly.
      If no encaplimit value is specified the default value is 4 as before.
      
      Signed-off-by: default avatarHans Dedecker <dedeckeh@gmail.com>
      e4577d2e
    • Hans Dedecker's avatar
      netifd: update to latest git HEAD (FS#1501) · 082cd951
      Hans Dedecker authored
      
      a580028 system-linux: make encaplimit configurable for ip6 tunnels (FS#1501)
      
      Signed-off-by: default avatarHans Dedecker <dedeckeh@gmail.com>
      082cd951
    • Hans Dedecker's avatar
      odhcp6c: make ds-lite/map tunnel encapsulation limit support configurable (FS#1501) · 327c711d
      Hans Dedecker authored
      
      Be compatible with ISPs which don't support the destination option header containing
      the tunnel encapsulation limit as reported in FS#1501 for dynamic created ds-lite/map
      interfaces.
      Setting the uci parameter encaplimit_dslite/map to ignore; allows to disable the insertion
      of the destination option header for the dynamic created ds-lite/map interface.
      Otherwise the tunnel encapsulation limit value can be set to a value from 0 till 255
      by setting the encaplimit_dslite/map uci parameter accordingly.
      
      Signed-off-by: default avatarHans Dedecker <dedeckeh@gmail.com>
      327c711d
    • Hans Dedecker's avatar
      ds-lite: make tunnel encapsulation limit support configurable (FS#1501) · a3372953
      Hans Dedecker authored
      
      Be compatible with ISPs which don't support the destination option header containing
      the tunnel encapsulation limit as reported in FS#1501.
      Setting the uci parameter encaplimit to ignore; allows to disable the insertion
      of the destination option header in the ds-lite packets.
      Otherwise the tunnel encapsulation limit value can be set to a value from 0 till 255
      by setting the encaplimit uci parameter accordingly.
      If no encaplimit value is specified the default value is 4 as before.
      
      Signed-off-by: default avatarHans Dedecker <dedeckeh@gmail.com>
      a3372953
  5. Jun 01, 2018
    • Michael Gray's avatar
      mvebu: fix broken console on WRT32X (venom) · 4fdc6ca3
      Michael Gray authored
      
      The console bootarg is being corrupted on boot, causing various issues
      including broken sysupgrade.
      Utilising the bootargs mangle patch from other targets, hardcode the console
      arguments and fetch the rootfs from the bootloader.
      
      Kernel command line: console=ttyS0,115200 root=/dev/mtdblock8
      
      Bootloader command line (ignored): console= root=/dev/mtdblock8
      
      Please cherry pick to 18.06 too
      
      Signed-off-by: default avatarMichael Gray <michael.gray@lantisproject.com>
      4fdc6ca3
    • Daniel Golle's avatar
      oxnas: bring in new oxnas target · dcc34574
      Daniel Golle authored
      
      Reboot the oxnas target based on Linux 4.14 by rebasing our support on
      top of the now-existing upstream kernel support.
      This commit brings oxnas support to the level of v4.17 having upstream
      drivers for Ethernet, Serial and NAND flash.
      Botch up OpenWrt's local drivers for EHCI, SATA and PCIe based on the
      new platform code and device-tree.
      Re-introduce base-files from old oxnas target which works for now but
      needs further clean-up towards generic board support.
      
      Functional issues:
       * PCIe won't come up (hence no USB3 on Shuttle KD20)
       * I2C bus of Akitio myCloud device is likely not to work (missing
         debounce support in new pinctrl driver)
      
      Code-style issues:
       * plla/pllb needs further cleanup -- currently their users or writing
         into the syscon regmap after acquireling the clk instead of using
         defined clk_*_*() functions to setup multipliers and dividors.
       * PCIe phy needs its own little driver.
       * SATA driver is a monster and should be split into an mfd having
         a raidctrl regmap, sata controller, sata ports and sata phy.
      
      Tested on MitraStar STG-212 aka. Medion Akoya MD86xxx and Shuttle KD20.
      
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      dcc34574
    • Daniel Golle's avatar
      uboot-oxnas: fix build with newer GCC · d44b7b7d
      Daniel Golle authored
      
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      d44b7b7d
    • Daniel Golle's avatar
      oxnas: kill old oxnas target · 17511a7e
      Daniel Golle authored
      
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      17511a7e
    • Ivan Shapovalov's avatar
      netifd: drop conflicting 'device' interface property · 91b5b2e2
      Ivan Shapovalov authored
      
      Do not set device runtime property on interfaces in the hotplug handler
      and in fixup_interfaces(). This property conflicts with device option
      in several proto handlers (mainly QMI and other WWAN/3G protos) and does
      not seem to be used anywhere.
      
      Signed-off-by: default avatarIvan Shapovalov <intelfx@intelfx.name>
      Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> [PKG_RELEASE increase]
      91b5b2e2
    • Hans Dedecker's avatar
      kernel: re-add export ipv6_push_frag_opts for tunneling now patch · 0777a3e7
      Hans Dedecker authored
      
      The patch got removed by commit 7dca1bae (kernel: bump to 4.9.105)
      but is still required as ipv6_push_frag_opts needs to be exported.
      
      Signed-off-by: default avatarHans Dedecker <dedeckeh@gmail.com>
      0777a3e7
Loading