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
    • Lucian Cristian's avatar
      ath79: fix qca956x SoC boot · a0a616e1
      Lucian Cristian authored
      
      based on old ar71xx irq.c driver
      
      Signed-off-by: default avatarLucian Cristian <lucian.cristian@gmail.com>
      a0a616e1
    • 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
    • Hannu Nyman's avatar
      ipq806x: Enlarge R7800 flash - use netgear partition · fb8a578a
      Hannu Nyman authored
      Increase the available flash memory size in Netgear R7800
      by taking into the use the unused "netgear" partition
      that is located after the firmware partition.
      
      Available flash space for kernel+rootfs+overlay increases
      by 68 MB from 32 MB to 100 MB.
      
      In a typical build, overlay space increases from 15 to 85,
      increasing the package installation possibilities greatly.
      
      Reverting to the OEM firmware is still possible, as the OEM
      firmware contains logic to initialise the "netgear" partition
      if its contents do not match expectations. In OEM firmware,
      "netgear" contains 6 UBI sub-partitions that are defined in
      /etc/netgear.cfg and initialisation is done by /etc/preinit
      
      Tested with Openwrt master r7093-4fdc6ca3 and OEM V1.0.2.52
      
      Reference to forum discussion in Netgear R7800 exploration thread:
      https://forum.lede-project.org/t/netgear-r7800-exploration-ipq8065-qca9984/285/1118
      
      
      (messages 1118-1158)
      
      Signed-off-by: default avatarHannu Nyman <hannu.nyman@iki.fi>
      fb8a578a
    • Rosen Penev's avatar
      ipq806x: Limit NR_CPUS to 2 · fff65dbe
      Rosen Penev authored
      
      ipq806x is all dual core processors. ipq807x is quad core. Removes this
      from dmesg:
      
      RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
      RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
      
      Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>
      fff65dbe
    • 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
    • Koen Vandeputte's avatar
      kernel: bump 4.9 to 4.9.106 · 2792ef55
      Koen Vandeputte authored
      
      Refreshed all patches
      
      Compile-tested on: ar71xx
      Runtime-tested on: ar71xx
      
      Signed-off-by: default avatarKoen Vandeputte <koen.vandeputte@ncentric.com>
      2792ef55
Loading