Skip to content
Snippets Groups Projects
  1. Jun 09, 2018
  2. Jun 08, 2018
  3. Jun 07, 2018
    • Adi Shammout's avatar
      busybox: udhcpc: no MSG_DONTROUTE when sending packet · e4259bed
      Adi Shammout authored
      This reverts a change made in Sep 2017 [1] which introduced
      MSG_DONTROUTE flag to prevent udhcpc from reaching out to servers on a
      different subnet. That change violates RFC2131 by forcing fully
      configured clients, who got their configurations through an offer
      relayed by a DHCP relay, from renewing through a unicast request
      directly to the DHCP server, resulting in the client resorting to
      boradcasting lease extension requests instead of unicasting them,
      further breaking RFC2131.
      
      The problem with MSG_DONTROUTE appears when talking to a properly
      configured DHCP server that rejects non-compliant requests. Such server
      will reject lease extension attempts sent via broadcast rather than
      unicast, as is the case with Finnish ISPs Telia and DNA as well as
      Estonian ISP Starman. Once the lease expires without renewal, udhcpc
      enters init mode, taking down the interfaces with it, and thus causing
      interruption on every lease expiry. On some ISPs (such as the ones
      mentioned above) that can be once every 10-20 minutes. The interruptions
      appear in the logs as such:
      ----
      udhcpc: sending renew to x.x.x.x
      udhcpc: send: Network unreachable
      udhcpc: sending renew to 0.0.0.0
      udhcpc: sending renew to 0.0.0.0
      ...
      udhcpc: lease lost, entering init state
      Interface 'wan' has lost the connection
      Interface 'wan' is now down
      Network alias 'eth0' link is down
      udhcpc: sending select for y.y.y.y
      udhcpc: lease of y.y.y.y obtained, lease time 1200
      Network alias 'eth0' link is up
      Interface 'wan' is now up
      ----
      
      During lease extension, a fully configured client should be able to
      reach out to the server from which it recieved the lease for extension,
      regardless in which network it is; that's up to the gateway to find. [2]
      This patch ensures that.
      
      [1]
      http://lists.busybox.net/pipermail/busybox-cvs/2017-September/037402.html
      [2]
      https://www.netmanias.com/en/post/techdocs/6000/dhcp-network-protocol/
      
      
      understanding-dhcp-relay-agents
      
      Signed-off-by: default avatarAdi Shammout <adi.shammout@outlook.com>
      Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> [PKG_RELEASE increase]
      e4259bed
    • Karl Palsson's avatar
      logd: create log directory for log_file · 987e10af
      Karl Palsson authored
      
      If log_file is specified, make sure its directory exists.
      
      Signed-off-by: default avatarKarl Palsson <karlp@etactica.com>
      Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> [PKG_RELEASE increase]
      987e10af
    • David Bauer's avatar
      ar71xx: add support for OCEDO Koala · e36f8b3f
      David Bauer authored
      
      This commit adds support for the OCEDO Koala
      
      SOC:	Qualcomm QCA9558 (Scorpion)
      RAM:    128MB
      FLASH:  16MiB
      WLAN1:  QCA9558 2.4 GHz 802.11bgn 3x3
      WLAN2:  QCA9880 5 GHz 802.11nac 3x3
      INPUT:  RESET button
      LED:    Power, LAN, WiFi 2.4, WiFi 5, SYS
      Serial: Header Next to Black metal shield
              Pinout is 3.3V - GND - TX - RX (Arrow Pad is 3.3V)
              The Serial setting is 115200-8-N-1.
      
      Tested and working:
       - Ethernet
       - 2.4 GHz WiFi
       - 5 GHz WiFi
       - TFTP boot from ramdisk image
       - Installation via ramdisk image
       - OpenWRT sysupgrade
       - Buttons
       - LEDs
      
      Installation seems to be possible only through booting an OpenWRT
      ramdisk image.
      
      Hold down the reset button while powering on the device. It will load a
      ramdisk image named 'koala-uImage-initramfs-lzma.bin' from 192.168.100.8.
      
      Note: depending on the present software, the device might also try to
      pull a file called 'koala-uimage-factory'. Only the name differs, it
      is still used as a ramdisk image.
      
      Wait for the ramdisk image to boot. OpenWRT can be written to the flash
      via sysupgrade or mtd.
      
      Due to the flip-flop bootloader which we not (yet) support, you need to
      set the partition the bootloader is selecting. It is possible from the
      initramfs image with
      
       > fw_setenv bootcmd run bootcmd_1
      
      Afterwards you can reboot the device.
      
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      e36f8b3f
    • Denton Gentry's avatar
      hostapd: make cli treat UNKNOWN COMMAND as failing · a84962ea
      Denton Gentry authored
      
      Avoid infinite loop at 100% CPU when running hostapd_cli
      if CONFIG_CTRL_IFACE_MIB is not defined.
      
        _newselect(4, [3], NULL, NULL, ...)
        recvfrom(3, "UNKNOWN COMMAND\n", 4095, 0, NULL, NULL) = 16
        sendto(3, "STA-NEXT UNKNOWN COMMAND", 24, 0, NULL, 0) = 24
      
      Signed-off-by: default avatarDenton Gentry <denny@geekhold.com>
      a84962ea
    • Rosen Penev's avatar
      ethtool: Update to 4.16 · 2737cea0
      Rosen Penev authored
      
      Tested on Turris Omnia (mvebu).
      
      Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>
      2737cea0
    • Rosen Penev's avatar
      iperf: Update to 2.0.11 · 802afaaf
      Rosen Penev authored
      
      Tested on Turris Omnia (mvebu).
      
      Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>
      802afaaf
    • Rosen Penev's avatar
      gdb: Update to 8.1 · 525b8f06
      Rosen Penev authored
      
      Tested on Turris Omnia (mvebu).
      
      Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>
      525b8f06
    • Rosen Penev's avatar
      strace: Update to 4.22 · d12d81f8
      Rosen Penev authored
      
      SourceForge is deprecated according to upstream, so switch to main site
      for downloads.
      
      Tested on Turris Omnia (mvebu).
      
      Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>
      d12d81f8
    • Luis Araneda's avatar
      uboot-zynq: update to 2017.03 · 8c8499f0
      Luis Araneda authored
      
      Compile-tested: ZedBoard
      
      Signed-off-by: default avatarLuis Araneda <luaraneda@gmail.com>
      8c8499f0
    • Christo Nedev's avatar
      brcm2708: Update brcm2708-gpu-fw package · c3356496
      Christo Nedev authored
      
      Problem - rapsberry pi 3 b/b+ does not boot with bcm2710 images!
      
      How Raspberry Pi boots Actualy?
      
      When Raspberry is switched on GPU is activated.
      1. GPU execute First stage bootloader from ROM.
      First stage bootloader mount the FAT boot partition on the SD card
      and execute second stage bootloader (bootcode.bin).
      2. Second stage bootloader (bootcode.bin) activate SDRAM.
      Load the GPU firmware (start.elf).
      3. GPU firmware (start.elf)
        a) display Rainbow splash.
        b) read firmware configuration file config.txt and
           split the RAM using fixup.dat.
        c) loads a cmdline.txt
        d) enables the CPU.
        e) loads the kernel image configurable via config.txt
      
      In your target/linux/brcm2708/image/config.txt
       493 ## kernel (string)
       494 ##     Alternative name to use when loading kernel.
       495 ##
       496 #kernel=""
      it is not configured!
      
      But in your target/linux/brcm2708/image/Makefile
        75   KERNEL_IMG := kernel8.img
        76   DEVICE_TITLE := Raspberry Pi 3B/3B+
      you have kernel8.img
      
      GPU Firmware search order by default for a PI 3 is:
      kernel8.img if found boot in 64 bit mode
      kernel8-32.img if found boot in 32 bit mode
      kernel7.img if found boot in 32 bit mode
      kernel.img if found boot in 32 bit mode
      
      But a PI 2 will start the search from kernel7.img and
      a PI 1 only looks for kernel.img.
      
      Оbviously the kernel has been found.
      But something goes wrong and the device is restarted.
      
      In your package/kernel/brcm2708-gpu-fw/Makefile
        11 PKG_NAME:=brcm2708-gpu-fw
        12 PKG_VERSION:=2017-08-08
        13 PKG_RELEASE:=e7ba7ab135f5a68b2c00a919ea9ac8d5528a5d5b
      boot loader is 10 monts old.
      
      In conclusion, the best way to solve the problem is
      to update the boot loader!
      
      Fixup_cd.dat and start_cd.elf files are not necessary.
      These are used when GPU memory is set to 16 MB, which disables
      some GPU features.
      I did not remove them just in case!
      
      cheers
      
      Signed-off-by: default avatarChristo Nedev <christo.nedev@gmail.com>
      c3356496
  4. 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
    • 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
  5. Jun 05, 2018
  6. 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
  7. Jun 01, 2018
    • 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
    • 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
    • Kevin Darbyshire-Bryant's avatar
      nettle: bump to 3.4 · 1ee5051f
      Kevin Darbyshire-Bryant authored
      
      3.4 is mainly a bug fix/maintenance release.
      
      3KB increase in ipk lib size on mips.
      
      Compile tested for: ar71xx, ramips
      Run tested on: ar71xx Archer C7 v2, ramips mir3g
      
      Signed-off-by: default avatarKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
      1ee5051f
    • Mirko Parthey's avatar
      mtd: mark as nonshared to fix FS#484 · 46d7ced9
      Mirko Parthey authored
      
      The mtd tool is built with different configurations depending on the
      target. For example, brcm47xx adds the fixtrx subcommand, without which
      an image fails when booting the second time.
      
      Mark the mtd package as nonshared to really fix FS#484.
      
      Signed-off-by: default avatarMirko Parthey <mirko.parthey@web.de>
      46d7ced9
    • Koen Vandeputte's avatar
      ath10k-ct: Update driver to latest · e5ff84d1
      Koen Vandeputte authored
      
      127f98189ee5 ath10k:  Fix bad return w/out unlock, compile w/out debugfs
      b8f48f3c138f Fix survey-dump for 4.7, 4.9 and 4.13 kernels.
      fa8259ad5d6d ath10k-ct:  Support survey dump in 10.1 firmware.
      2853e1337ecf ath10k-ct:  Add 4.16 ath10k-ct driver to package.
      
      Signed-off-by: default avatarKoen Vandeputte <koen.vandeputte@ncentric.com>
      CC: Ben Greear <greearb@candelatech.com>
      e5ff84d1
  8. May 31, 2018
  9. May 30, 2018
  10. May 28, 2018
  11. May 27, 2018
  12. May 25, 2018
Loading