Skip to content
Snippets Groups Projects
  1. Feb 19, 2022
    • Christian Lamparter's avatar
      mpc85xx: change legacy "eeprom" compatible · c7528996
      Christian Lamparter authored
      
      silences the following message:
      > eeprom 0-0051: eeprom driver is deprecated, please use at24 instead
      
      The chip was likely a Dallas Semiconductor and later MAXIM part
      before Analog Devices, Inc. bought MAXIM.
      
      From the datasheet:
      
      "The DS28CN01 combines 1024 bits of EEPROM with challenge-and-response
      authentication security implemented with the FIPS 180-1/180-2 and
      ISO/IEC 10118-3 Secure Hash Algorithm (SHA-1)."
      
      ...
      
      "Write Access Requires Knowledge of the Secret
      and the Capability of Computing and Transmitting
      a 160-Bit MAC as Authorization"
      
      OpenWrt doesn't use it. There's no in-kernel driver
      from what I know. Let's document that the chip is
      at the location.
      
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      c7528996
    • Christian Lamparter's avatar
      mpc85xx: update lp5521 led-controller node for 5.10 · 583ac0e1
      Christian Lamparter authored
      
      The tricolor LED which is controlled by a lp5521 needed
      some maintenance as the driver failed to load in the
      current v5.10 image:
      | lp5521: probe of 0-0032 failed with error -22
      
      This is because the device-tree needed to be updated
      to match the latest led coloring and function trends.
      
       - removed the device name from the label
       - added color/function properties
       - added required reg and cells properties
      
      For reference a disabled multicolor/RGB is added since this
      reflects the real hardware. Unfortunately, the multicolor
      sysfs interface isn't supported by yet.
      
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      583ac0e1
    • Martin Kennedy's avatar
      mpc85xx: Patch HiveAP 330 u-boot to fix boot · cfe79f2e
      Martin Kennedy authored
      When Kernel 5.10 was enabled for mpc85xx, the kernel once again became too
      large upon decompression (>7MB or so) to decompress itself on boot (see
      FS#4110[1]).
      
      There have been many attempts to fix booting from a compressed kernel on
      the HiveAP-330:
      
      - b683f1c3 ("mpc85xx: Use gzip compressed kernel on HiveAP-330")
      - 98089bb8 ("mpc85xx: Use uncompressed kernel on the HiveAP-330")
      - 26cb167a ("mpc85xx: Fix Aerohive HiveAP-330 initramfs image")
      
      We can no longer compress the kernel due to size, and the stock bootloader
      does not support any other types of compression. Since an uncompressed
      kernel no longer fits in the 8MiB kernel partition at 0x2840000, we need to
      patch u-boot to autoboot by running variable which isn't set by the
      bootloader on each autoboot.
      
      This commit repartitions the HiveAP, requiring a new COMPAT_VERSION,
      and uses the DEVICE_COMPAT_MESSAGE to guide the user to patch u-boot,
      which changes the variable run on boot to be `owrt_boot`; the user can
      then set the value of that variable appropriately.
      
      The following has been documented in the device's OpenWrt wiki page:
      <https://openwrt.org/toh/aerohive/hiveap-330>. Please look there
      first/too for more information.
      
      The from-stock and upgrade from a previous installation now becomes:
      
      0) setup a network with a dhcp server and a tftp server at serverip
      (192.168.1.101) with the initramfs image in the servers root directory.
      
      1) Hook into UART (9600 baud) and enter U-Boot. You may need to enter
      a password of administrator or AhNf?d@ta06 if prompted. If the password
      doesn't work. Try reseting the device by pressing and holding the reset
      button with the stock OS.
      
      2) Once in U-Boot, set the new owrt_boot and tftp+boot the initramfs image:
         Use copy and paste!
      
       # fw_setenv owrt_boot 'setenv bootargs \"console=ttyS0,$baudrate\";bootm 0xEC040000 - 0xEC000000'
       # save
       # dhcp
       # setenv bootargs console=ttyS0,$baudrate
       # tftpboot 0x1000000 192.168.1.101:openwrt-mpc85xx-p1020-aerohive_hiveap-330-initramfs-kernel.bin
       # bootm
      
      3) Once openwrt booted:
      carefully copy and paste this into the root shell. One step at a time
      
        # 3.0 install kmod-mtd-rw from the internet and load it
      
        opkg update; opkg install kmod-mtd-rw
        insmod mtd-rw i_want_a_brick=y
      
        # 3.1 create scripts that modifies uboot
      
      cat <<- "EOF" > /tmp/uboot-update.sh
        . /lib/functions/system.sh
        cp "/dev/mtd$(find_mtd_index 'u-boot')" /tmp/uboot
        cp /tmp/uboot /tmp/uboot_patched
        ofs=$(strings -n80 -td < /tmp/uboot | grep '^ [0-9]* setenv bootargs.*cp\.l' | cut -f2 -d' ')
        for off in $ofs; do
          printf "run owrt_boot;            " | dd of=/tmp/uboot_patched bs=1 seek=${off} conv=notrunc
        done
        md5sum /tmp/uboot*
      EOF
      
        # 3.2 run the script to do the modification
      
        sh /tmp/uboot-update.sh
      
        # verify that /tmp/uboot and /tmp/uboot_patched are good
        #
        # my uboot was: (is printed during boot)
        # U-Boot 2009.11 (Jan 12 2017 - 00:27:25), Build: jenkins-HiveOS-Honolulu_AP350_Rel-245
        #
        # d84b45a2e8aca60d630fbd422efc6b39  /tmp/uboot
        # 6dc420f24c2028b9cf7f0c62c0c7f692  /tmp/uboot_patched
        # 98ebc7e7480ce9148cd2799357a844b0  /tmp/uboot-update.sh <-- just for reference
      
        # 3.3 this produces the /tmp/u-boot_patched file.
      
        mtd write /tmp/uboot_patched u-boot
      
      3) scp over the sysupgrade file to /tmp/ and run sysupgrade to flash OpenWrt:
      
        sysupgrade -n /tmp/openwrt-mpc85xx-p1020-aerohive_hiveap-330-squashfs-sysupgrade.bin
      
      4) after the reboot, you are good to go.
      
      Other notes:
      
      - Note that after this sysupgrade, the AP will be unavailable for 7 minutes
        to reformat flash. The tri-color LED does not blink in any way to
        indicate this, though there is no risk in interrupting this process,
        other than the jffs2 reformat being reset.
      
      - Add a uci-default to fix the compat version. This will prevent updates
        from previous versions without going through the installation process.
      
      - Enable CONFIG_MTD_SPLIT_UIMAGE_FW and adjust partitioning to combine
        the kernel and rootfs into a single dts partition to maximize storage
        space, though in practice the kernel can grow no larger than 16MiB due
        to constraints of the older mpc85xx u-boot platform.
      
      - Because of that limit, KERNEL_SIZE has been raised to 16m.
      
      - A .tar.gz of the u-boot source for the AP330 (a.k.a. Goldengate) can
        be found here[2].
      
      - The stock-jffs2 partition is also removed to make more space -- this
        is possible only now that it is no longer split away from the rootfs.
      
      - the console-override is gone. The device will now get the console
        through the bootargs. This has the advantage that you can set a different
        baudrate in uboot and the linux kernel will stick with it!
      
      - due to the repartitioning, the partition layout and names got a makeover.
      
      - the initramfs+fdt method is now combined into a MultiImage initramfs.
        The separate fdt download is no longer needed.
      
      - added uboot-envtools to the mpc85xx target. All targets have uboot and
        this way its available in the initramfs.
      
      [1]: https://bugs.openwrt.org/index.php?do=details&task_id=4110
      
      
      [2]: magnet:?xt=urn:btih:e53b27006979afb632af5935fa0f2affaa822a59
      
      Tested-by: default avatarMartin Kennedy <hurricos@gmail.com>
      Signed-off-by: default avatarMartin Kennedy <hurricos@gmail.com>
      (rewrote parts of the commit message, Initramfs-MultiImage,
      dropped bootargs-override, added wiki entry + link, uboot-envtools)
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      cfe79f2e
    • Rosen Penev's avatar
      ksmbd: add out-of-tree module · fbb8e1ef
      Rosen Penev authored
      
      ksmbd is an upstream linux alternative to Samba which is lighterweight
      and more performant, especially on underpowered devices.
      
      Moving it here from the packages feed as it is now an upstream kernel
      module. Also easier to update as version updates can be coordinated better
      
      The next LTS kernel (5.15) has this included. A depend on kernel < 5.15
      will need to be added later.
      
      Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>
      fbb8e1ef
    • Rosen Penev's avatar
      linux/modules: split up oid_registry · 666d4276
      Rosen Penev authored
      
      This will be needed by ksmbd in a following commit.
      
      Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>
      666d4276
    • Rosen Penev's avatar
      target/linux: add help text to kernel config · 63f32eb8
      Rosen Penev authored
      
      These options will be used for ksmbd. Once kernel 5.15
      makes it in, this patch can go away.
      
      Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>
      63f32eb8
    • Raylynn Knight's avatar
      x86: fix support for Sophos SG/XG wireless products · 6905ad24
      Raylynn Knight authored
      
      Correct typo that caused network interfaces for Sophos
      SG/XG wireless devices to not be configured properly.
      
      Tested on Sophos SG 135wr2, Sophos XG 125wr2 and
      Sophos SG 105wr1
      
      Signed-off-by: default avatarRaylynn Knight <rayknight@me.com>
      6905ad24
    • Enrico Mioso's avatar
      mvebu: mark all mtd partitions on GL.iNet GL-MV1000 read-only · 22436d76
      Enrico Mioso authored
      
      On this device, two of the three defined MTD partitions are
      automatically set to read-only, since they do not end at an
      erase/write block boundary.
      
      In particular, the only partition remaining writable is the
      one holding the u-boot bootloader.
      
      Mark all of the partitions read-only, at least until a better
      understanding of why the layout has been laid out this way is
      gained.
      
      Signed-off-by: default avatarEnrico Mioso <mrkiko.rs@gmail.com>
      22436d76
    • John Audia's avatar
      ipq806x: update defconfig · c5dca805
      John Audia authored
      Enabled `CONFIG_ALL_KMODS` and ran `make kernel_menuconfig` against
      ipq806x to update defconfig.
      
      The removed symbols are in fact present in
      target/linux/generic/config-5.10. CONFIG_MDIO_DEVRES
      was likely added due to this:
      <https://elixir.bootlin.com/linux/v5.10.100/source/drivers/net/phy/Kconfig#L16
      
      >
      
      Signed-off-by: default avatarJohn Audia <graysky@archlinux.us>
      c5dca805
    • Christian Lamparter's avatar
      ipq806x: TP-Link VR2600v convert legacy partitioning · c420947b
      Christian Lamparter authored
      
      This device still had the legacy flash partitioning.
      This is a problem, because neither the nvmem-cells
      for mac-address and calibration. Nor the denx,uimage
      mtd-splitter compatible would be picked up.
      
      The patch also changes the node-names of the flash
      and partition nodes to hopefully meet all the
      current FDT trends.
      
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      c420947b
    • Christian Lamparter's avatar
      ipq40xx: document pcie wifi chip on the GL.Inet GL-B2200 · 80d34d9d
      Christian Lamparter authored
      
      Enrico provided a bootlog that shows the chip is a WAVE-2 QCA9888v2:
      
      > pci 0000:01:00.0: [168c:0056] type 00 class 0x028000
      > [...]
      > ath10k 5.15 driver, optimized for CT firmware, probing pci device: 0x56.
      > ath10k_pci 0000:01:00.0: qca9888 hw2.0 target 0x01000000 [...] chip_id 0x00000000 sub 0000:0000
      > ath10k_pci 0000:01:00.0: firmware ver 10.4b-ct-9888-fW-13-5ae337bb1 api 5  features mfp,[...]
      > ath10k_pci 0000:01:00.0: board_file api 2 bmi_id N/A crc32 6535d835
      > ath10k_pci 0000:01:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal file max-sta 32 raw 0 hwcrypto 1
      
      this patch switches the device over to pre-calibration.
      (this is more or less cosmetic)
      
      Reported-by: default avatarEnrico Mioso <mrkiko.rs@gmail.com>
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      80d34d9d
    • Enrico Mioso's avatar
      ipq40xx: limit available radio channels for GL.iNet GL-B2200 · 7270c9f8
      Enrico Mioso authored
      
      The PCIe and built-in 5GHZ radios are meant to operate on different
      frequency bands. The hardware enforces this via RF filters.
      Add this information to allow software enforcing it as well.
      Credits to Piotr Dymacz for the invaluable help.
      
      Signed-off-by: default avatarEnrico Mioso <mrkiko.rs@gmail.com>
      7270c9f8
    • Christian Lamparter's avatar
      apm821xx: add alternative names for supported devices · b45f3c43
      Christian Lamparter authored
      
      with the introduction of the DEVICE_ALTX_VENDOR, DEVICE_ALTX_MODEL
      multiple/sibiling devices can seemingly supported by one device entry.
      
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      b45f3c43
    • Nick Hainke's avatar
      ramips: add Ubiquiti EdgePoint R6 as alt name · 2fd049f5
      Nick Hainke authored
      
      The Ubiquiti EdgePoint R6 is identical to the EdgeRouter X SFP.
      However, it fits well into outdoor environments due to its water-proven
      case.
      
      More specifications: 9715beb0 ("ramips: add support for Ubiquiti
      EdgeRouter X-SFP")
      
      Signed-off-by: default avatarNick Hainke <vincent@systemli.org>
      2fd049f5
    • Eneas U de Queiroz's avatar
      hostapd: fallback to psk when generating r0kh/r1kh · e6df13d0
      Eneas U de Queiroz authored
      
      The 80211r r0kh and r1kh defaults are generated from the md5sum of
      "$mobility_domain/$auth_secret".  auth_secret is only set when using EAP
      authentication, but the default key is used for SAE/PSK as well.  In
      this case,  auth_secret is empty, and the default value of the key can
      be computed from the SSID alone.
      
      Fallback to using $key when auth_secret is empty.  While at it, rename
      the variable holding the generated key from 'key' to 'ft_key', to avoid
      clobbering the PSK.
      
      Signed-off-by: default avatarEneas U de Queiroz <cotequeiroz@gmail.com>
      [make ft_key local]
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      e6df13d0
    • David Bauer's avatar
      hostapd: add STA extended capabilities to get_clients · 6f787239
      David Bauer authored
      
      Add the STAs extended capabilities to the ubus STA information. This
      way, external daemons can be made aware of a STAs capabilities.
      
      This field is of an array type and contains 0 or more bytes of a STAs
      advertised extended capabilities.
      
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      6f787239
    • David Bentham's avatar
      net: ethernet: mtk_eth_soc: add ipv6 flow offload support · e3166643
      David Bentham authored
      
      Add the missing IPv6 flow offloading support for routing only.
      Hardware flow offloading is done by the packet processing engine (PPE)
      of the Ethernet MAC and as it doesn't support mangling of IPv6 packets,
      IPv6 NAT cannot be supported.
      
      Signed-off-by: default avatarDavid Bentham <db260179@gmail.com>
      Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
      e3166643
    • Eneas U de Queiroz's avatar
      build: scripts/config - update to kconfig-v5.14 · 009293c5
      Eneas U de Queiroz authored
      
      Functional Changes
      ---------- -------
      - make 'imply' not impose any restrictions: allow symbols implied by y
        to become m
      - change "modules" from sub-option to first-level attribute
      
      Bugfixes
      --------
      - nconf: fix core dump when searching in empty menu
      - nconf: stop endless search loops
      - xconfig: fix content of the main widget
      - xconfig: fix support for the split view mode
      
      Other Changes
      ----- -------
      - highlight xconfig 'comment' lines with '***'
      - xconfig: navigate menus on hyperlinks
      - xconfig: drop support for Qt4
      - improve host ncurses detection
      
      Update the 'option modules' usage to just 'modules' in Config.in.
      
      Signed-off-by: default avatarEneas U de Queiroz <cotequeiroz@gmail.com>
      009293c5
    • Daniel González Cabanelas's avatar
      ath79: Add support for Ubiquiti NanoBeam AC Gen1 XC · 73ea763c
      Daniel González Cabanelas authored
      The Ubiquiti NanoBeam AC Gen1 XC (NBE-5AC-19) is an outdoor 802.11ac CPE
      with a waterproof casing (ultrasonically welded) and bulb shaped.
      
      Hardware:
       - SoC: Qualcomm Atheros QCA9558
       - RAM: 128 MB DDR2
       - Flash: 16 MB SPI NOR
       - Ethernet: 1x GbE, AR8033 phy connected via SGMII
       - PSU: 24 Vdc passive PoE
       - WiFi 5 GHz: Qualcomm Atheros QCA988X
       - Buttons: 1x reset
       - LEDs: 1x power, 1x Ethernet, 4x RSSI, all blue
       - Internal antenna: 19 dBi planar
      
      Installation from stock airOS firmware:
       - Follow instructions for XC-type Ubiquiti devices on OpenWrt wiki at
         https://openwrt.org/toh/ubiquiti/common
      
      
      
      Signed-off-by: default avatarDaniel González Cabanelas <dgcbueu@gmail.com>
      73ea763c
    • Alexey Smirnov's avatar
      base-files: add support for heartbeat led trigger · 66071729
      Alexey Smirnov authored
      
      This patch adds support for creation heartbeat led trigger with,
      for example, this command:
      
      	ucidef_set_led_heartbeat "..." "..." "..."
      
      from /etc/board.d/01_leds.
      
      Signed-off-by: default avatarAlexey Smirnov <s.alexey@gmail.com>
      66071729
    • Paul Fertser's avatar
      x86: geode: add kmod-crypto-ebc needed for hw acceleration · e1e4cbde
      Paul Fertser authored
      
      Module kmod-crypto-hw-geode provides accelerated cbc(aes) and ecb(aes)
      but the software implementation is also needed when AES key size isn't
      128 so that the operation can fall back. Add the kmod so that it would
      all work as expected out of the box.
      
      Tested-by: timur_davletshin
      Signed-off-by: default avatarPaul Fertser <fercerpav@gmail.com>
      e1e4cbde
    • Mauri Sandberg's avatar
      gpio-nxp-74hc153: remove package · 2c211a90
      Mauri Sandberg authored
      
      This module was used solely by Buffalo WZR-HP-G300NH devices
      and has become obsolete with the introduction of gpio-cascade.
      
      Signed-off-by: default avatarMauri Sandberg <maukka@ext.kapsi.fi>
      2c211a90
    • Mauri Sandberg's avatar
      ath79: use gpio-cascade for Buffalo WZR-HP-G300NH · b99aee50
      Mauri Sandberg authored
      
      Switch to a generic GPIO cascade driver.
      
      Signed-off-by: default avatarMauri Sandberg <maukka@ext.kapsi.fi>
      Signed-off-by: Petr Štetiar <ynezz@true.cz> [missing commit description]
      b99aee50
    • Mauri Sandberg's avatar
      kernel: add package kmod-gpio-cascade · 2f50d651
      Mauri Sandberg authored
      
      Adds kernel module for Generic GPIO cascade.
      
      Signed-off-by: default avatarMauri Sandberg <maukka@ext.kapsi.fi>
      Signed-off-by: Petr Štetiar <ynezz@true.cz> [missing commit description]
      2f50d651
    • Mauri Sandberg's avatar
      kernel: add package kmod-multiplexer · 15f0074b
      Mauri Sandberg authored
      
      Adds new kernel module for GPIO controlled multiplexer support.
      
      Signed-off-by: default avatarMauri Sandberg <maukka@ext.kapsi.fi>
      Signed-off-by: Petr Štetiar <ynezz@true.cz> [missing commit description]
      15f0074b
    • Mauri Sandberg's avatar
    • Petr Štetiar's avatar
      config: build: cleanup whitespace issue · ce7264a6
      Petr Štetiar authored
      
      In order to have it tidy.
      
      Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
      ce7264a6
    • Daniel Golle's avatar
      procd: update to git HEAD · 48ace621
      Daniel Golle authored
      
       a87d010 uxc: remove unused printf parameter
       ad65249 instance: exit in case asprintf() fails
      
      Build with glibc should again work after this commit.
      
      Fixes: e9e61d76 ("procd: update to git HEAD")
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      Unverified
      48ace621
  2. Feb 18, 2022
  3. Feb 17, 2022
Loading