Skip to content
Snippets Groups Projects
  1. Jun 07, 2018
    • 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
    • Catrinel Catrinescu's avatar
    • Luis Araneda's avatar
      zynq: remove support for kernel 4.4 · 32ab2e16
      Luis Araneda authored
      
      Signed-off-by: default avatarLuis Araneda <luaraneda@gmail.com>
      32ab2e16
    • Luis Araneda's avatar
      zynq: switch to kernel 4.14 · 88f7e238
      Luis Araneda authored
      
      Also, remove the source-only qualifier
      
      Run-tested: ZedBoard
      
      Signed-off-by: default avatarLuis Araneda <luaraneda@gmail.com>
      88f7e238
    • Luis Araneda's avatar
      zynq: refresh kernel 4.14 configuration · 19c3dc60
      Luis Araneda authored
      
      Signed-off-by: default avatarLuis Araneda <luaraneda@gmail.com>
      19c3dc60
    • Luis Araneda's avatar
      zynq: copy config to kernel 4.14 · 74dffd59
      Luis Araneda authored
      
      The file will be used as a base configuration
      for kernel 4.14
      
      Signed-off-by: default avatarLuis Araneda <luaraneda@gmail.com>
      74dffd59
    • 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
    • Luis Araneda's avatar
      zynq: fix detection of the zybo board · 61b977fa
      Luis Araneda authored
      
      The board_name was being tested for "xlnx,zynq-zybo",
      but the .dts compatible string is "digilent,zynq-zybo"
      
      Also, sorted the boards alphabetically, and added an
      error message for unsupported boards
      
      Signed-off-by: default avatarLuis Araneda <luaraneda@gmail.com>
      61b977fa
    • Luis Araneda's avatar
      zynq: remove hard-coded network configuration · 7967e6c0
      Luis Araneda authored
      
      This is no longer necessary since commit 57776e68
      (base-files: remove default /etc/config/network,
      generate it via board.d instead)
      
      Run-tested: ZedBoard
      
      Signed-off-by: default avatarLuis Araneda <luaraneda@gmail.com>
      7967e6c0
    • Luis Araneda's avatar
      zynq: reworked image creation process · dfac3ffd
      Luis Araneda authored
      
      After commit a1248dad (zynq: convert to new image build code),
      all boards, became unbootable, entering into a boot loop.
      
      Replace the compressed kernel zImage by an uncompressed Image,
      which is compressed after with gzip. Also, enable the creation
      of an initramfs image by default.
      
      Change images' filename to match the compatible string from the
      respective .dts file (<vendor>_<model>). Also, use the shared
      mkits.sh script and remove the target specific one.
      
      Fixes: FS#1204
      
      Run-tested: ZedBoard
      
      Signed-off-by: default avatarLuis Araneda <luaraneda@gmail.com>
      dfac3ffd
    • 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
    • Daniel Golle's avatar
      ramips: fix reboot with W25Q256 with 4-address-mode enabled · 87966802
      Daniel Golle authored
      
      Some board vendors actually changed the loader to expect the chip
      to come up in 4-address-mode and flipped the ADP bit in the flash
      chip's configuration register which makes it come up in 4-address-mode.
      Hence it doesn't make sense to avoid switching to 4-address-mode on
      those boards but the opposite as otherwise reboot hangs eg. on the
      WrtNode2 boards. Fix this by checking the ADP register and only using
      SPI_NOR_4B_READ_OP on chips which have ADP==0 (come up in 3-byte mode).
      
      See also datasheet section 7.1.11 Power Up Address Mode (ADP)
      
      Fixes: 22d982ea ("ramips: add support for switching between 3-byte and 4-byte addressing on w25q256 flash")
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      87966802
  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>
      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>
      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>
      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>
      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>
      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>
      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
Loading