Skip to content
Snippets Groups Projects
  1. Feb 24, 2022
    • Hannu Nyman's avatar
      kernel: package ramoops pstore-ram crash log storage · 97158fe1
      Hannu Nyman authored
      Package the ability to log kernel crashes to 'ramoops' pstore
      files into RAM in /sys/fs/pstore
      
      Reference to the ramoops admin guide in upstream Linux:
      https://www.kernel.org/doc/html/v5.10/admin-guide/ramoops.html
      
      
      
      The files in RAM survive a warm reboot, but not a cold reboot.
      
      Note: kmod-ramoops selects kmod-pstore and kmod-reed-solomon.
      
      The feature can be used by selecting the kmod-ramoops and
      adding a ramoops reserved-memory definition to the device DTS.
      Example from R7800:
      
             reserved-memory {
                      rsvd@5fe00000 {
                              reg = <0x5fe00000 0x200000>;
                              reusable;
                      };
      
                      ramoops@42100000 {
                              compatible = "ramoops";
                              reg = <0x42100000 0x40000>;
                              record-size = <0x4000>;
                              console-size = <0x4000>;
                              ftrace-size = <0x4000>;
                              pmsg-size = <0x4000>;
                      };
              };
      
      If no definition has been made in DTS, no crash log is stored
      for the device.
      
      Signed-off-by: default avatarHannu Nyman <hannu.nyman@iki.fi>
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      (added CONFIG_EFI_VARS_PSTORE disable)
      97158fe1
    • Jax Jiang's avatar
      x86: grub2: search for the "kernel" filesystem on all disks · 1050e66c
      Jax Jiang authored
      
      Previously, grub2 was hardcoded to always look on "hd0" for the
      kernel.
      
      This works well when the system only had a single disk.
      But if there was a second disk/stick present, it may have look
      on the wrong drive because of enumeration races.
      
      This patch utilizes grub2 search function to look for a filesystem
      with the label "kernel". This works thanks to existing setup in
      scripts/gen_image_generic.sh. Which sets the "kernel" label on
      both the fat and ext4 filesystem variants.
      
      Signed-off-by: default avatarJax Jiang <jax.jiang.007@gmail.com>
      Suggested-by: Alberto Bursi <bobafetthotmail@gmail.com> (MX100 WA)
      (word wrapped, slightly rewritten commit message, removed MX100 WA)
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      1050e66c
    • Christian Lamparter's avatar
      Revert "bcm27xx: bcm27xx: update defconfig" · 83f2f1ad
      Christian Lamparter authored
      
      This reverts all four commits
      dbb45421 "bcm27xx: bcm2708: update defconfig"
      332f6958 "bcm27xx: bcm2709: update defconfig"
      a478202d "bcm27xx: bcm2710: update defconfig"
      82da1dfd "bcm27xx: bcm2711: update defconfig"
      
      this also highlighted an unrelated kconfig failure
      that warrants investigation. But for now it is important
      for the bcm27xx target to come back again.
      
      |*
      |* Restart config...
      |*
      |*
      |* Allow override default queue discipline
      |*
      |Allow override default queue discipline (NET_SCH_DEFAULT) [Y/n/?] y
      |  Default queuing discipline
      |    1. Fair Queue (DEFAULT_FQ) (NEW)
      |    2. Controlled Delay (DEFAULT_CODEL) (NEW)
      |  > 3. Fair Queue Controlled Delay (DEFAULT_FQ_CODEL)
      |    4. Stochastic Fair Queue (DEFAULT_SFQ) (NEW)
      |    5. Priority FIFO Fast (DEFAULT_PFIFO_FAST)
      |  choice[1-5?]:
      |Error in reading or end of file.
      
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      83f2f1ad
    • Claudiu Beznea's avatar
      at91: add support for sama7g5-ek board · 3e53eec5
      Claudiu Beznea authored
      
      Add support for SAMA7G5-EK board.
      Hardware:
      - SoC: SAMA7G5
      - RAM: Aliance Memory AS4C256M16D3LC (4 Gbit DDR3L)
      - SD/MMC: 1 standard 4bit SD Card interface
      - USB: 1 Micro-AB host/device, 1 Type-A host, 1 Type-C host
      - CAN: 2 interfaces
      - Ethernet: 10/100 port, 1Gbps port
      - Wi-Fi/BT: 1 optional interface
      - Audio: 1 SPDIF RX port, 1 SPDIF TX port, 4 digital microphones
      - Camera: 1 RPi CSI camera interface
      - Debug: 1 J-Link-OB + CDC, 1 JTAG
      - LEDs: 1 RGB
      - Buttons: 4 push buttons
      - Expansions: 1 RPi Expansion connector, 2 mikroBUS connectors
      - Power management: 1 power management IC, 1 power consumption
        measurement device
      
      Signed-off-by: default avatarClaudiu Beznea <claudiu.beznea@microchip.com>
      3e53eec5
    • Claudiu Beznea's avatar
      at91: add kernel support for sama7g5 soc · e58cd453
      Claudiu Beznea authored
      
      Add kernel support for SAMA7G5 by back-porting mainline kernel patches.
      Among SAMA7G5 features could be remembered:
      - ARM Cortex-A7
      - double data rate multi-port dynamic RAM controller supporting DDR2,
        DDR3, DDR3L, LPDDR2, LPDDR3 up to 533MHz
      - peripherals for audio, video processing
      - 1 gigabit + 1 megabit Ethernet controllers
      - 6 CAN controllers
      - trust zone support
      - DVFS for CPU
      - criptography IPs
      
      Signed-off-by: default avatarClaudiu Beznea <claudiu.beznea@microchip.com>
      e58cd453
    • Claudiu Beznea's avatar
      uboot-at91: update to linux4sam-2021.10 · 3ed992a9
      Claudiu Beznea authored
      
      Update uboot-at91 to linux4sam-2021.10 version.
      
      Signed-off-by: default avatarClaudiu Beznea <claudiu.beznea@microchip.com>
      3ed992a9
    • Claudiu Beznea's avatar
      at91bootstrap: update to v3.10.4, v4.0.1 · bf13b2da
      Claudiu Beznea authored
      
      AT91Bootstrap version 4 is available only for SAM9X60, SAMA5D2, SAMA5D3,
      SAMA5D4, SAMA7G5. Thus use v4.0.1 for the above targets and v3.10.4 for
      the rest of them. With the switch to v4 AT91Bootstrap binaries are now
      on build/binaries. Take also this into account. Also, patches directory
      is not needed anymore with the version update.
      
      Signed-off-by: default avatarClaudiu Beznea <claudiu.beznea@microchip.com>
      bf13b2da
    • Rucke Teg's avatar
      base-file: remove password aging feature form /etc/shadow · e040d311
      Rucke Teg authored
      
      In the default shadow file, as visible in the failsafe mode, the user
      root has value of `0` set in  the 3rd field, the date of last password
      change. This setting means that the password needs to be changed the
      next time the user will log in the system. `dropbear` server is ignoring
      this setting but `openssh-server` tries to enforce it and fails in the
      failsafe mode because the rootfs is R/O.
      
      Disable the password aging feature for user root by setting the 3rd
      filed empty.
      
      Signed-off-by: default avatarRucke Teg <rucketeg@protonmail.com>
      e040d311
    • Nick Lowe's avatar
      hostapd: SAE - Enable hunting-and-pecking and H2E · e8d048c5
      Nick Lowe authored
      
      Enable both the hunting-and-pecking loop and hash-to-element mechanisms
      by default in OpenWRT with SAE.
      
      Commercial Wi-Fi solutions increasingly frequently now ship with both
      hunting-and-pecking and hash-to-element (H2E) enabled by default as this
      is more secure and more performant than offering hunting-and-pecking
      alone for H2E capable clients.
      
      The hunting and pecking loop mechanism is inherently fragile and prone to
      timing-based side channels in its design and is more computationally
      intensive to perform. Hash-to-element (H2E) is its long-term
      replacement to address these concerns.
      
      For clients that only support the hunting-and-pecking loop mechanism,
      this is still available to use by default.
      
      For clients that in addition support, or were to require, the
      hash-to-element (H2E) mechanism, this is then available for use.
      
      Signed-off-by: default avatarNick Lowe <nick.lowe@gmail.com>
      e8d048c5
    • Paul Spooren's avatar
      CI: allow dots in commit subject area · fb5d0dc3
      Paul Spooren authored
      
      Due to a limited grep pattern, subjects containing dots like `image.mk`
      were falsely reported as problematic. Extend pattern to allow dots.
      
      Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
      fb5d0dc3
    • Paul Spooren's avatar
      tools: use https for bc mirrors · 1e254904
      Paul Spooren authored
      
      All mirrors offer encrypted downloads, use it.
      
      Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
      1e254904
    • Paul Spooren's avatar
      mvebu: add targz feature flag · 5777c6fc
      Paul Spooren authored
      
      Adding the feature flag automatically creates a a rootfs.tar.gz files
      which can be used for Docker rootfs containers.
      
      Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
      5777c6fc
    • Petr Štetiar's avatar
      Revert "scripts/diffconfig.sh: ensure config/conf is built" · d6119e2f
      Petr Štetiar authored
      This reverts commit c0849c1d as it seems
      to introduce regression in config.buildinfo files produced at least by
      buildbots:
      
       $ curl -s https://downloads.openwrt.org/snapshots/targets/ath79/generic/config.buildinfo | head -2
       make[3]: Entering directory '/builder/shared-workdir/build'
       make[3]: Leaving directory '/builder/shared-workdir/build'
      
      References: https://github.com/openwrt/openwrt/issues/9297#issuecomment-1049719381
      
      
      Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
      d6119e2f
  2. Feb 22, 2022
    • Petr Štetiar's avatar
      wolfssl: fix API breakage of SSL_get_verify_result · b9251e3b
      Petr Štetiar authored
      Backport fix for API breakage of SSL_get_verify_result() introduced in
      v5.1.1-stable.  In v4.8.1-stable SSL_get_verify_result() used to return
      X509_V_OK when used on LE powered sites or other sites utilizing
      relaxed/alternative cert chain validation feature. After an update to
      v5.1.1-stable that API calls started returning X509_V_ERR_INVALID_CA
      error and thus rendered all such connection attempts imposible:
      
       $ docker run -it openwrt/rootfs:x86_64-21.02.2 sh -c "wget https://letsencrypt.org"
       Downloading 'https://letsencrypt.org'
       Connecting to 18.159.128.50:443
       Connection error: Invalid SSL certificate
      
      Fixes: #9283
      References: https://github.com/wolfSSL/wolfssl/issues/4879
      
      
      Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
      b9251e3b
    • Daniel Golle's avatar
      mediatek: mt7623: drop RAMFS_COPY_BIN · 9e6a71e8
      Daniel Golle authored
      
      fwtool is now always part of the sysupgrade stage2 ramdisk, so drop
      the no longer needed RAMFS_COPY_BIN variable.
      
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      Unverified
      9e6a71e8
    • Daniel Golle's avatar
      mediatek: mt7622: drop RAMFS_COPY_BIN and RAMFS_COPY_DATA · bb904303
      Daniel Golle authored
      
      Now that both, fw_printenv/fw_setenv and fwtool are always present
      during stage2 sysupgrade, we no longer need to list them in
      RAMFS_COPY_BIN and RAMFS_COPY_DATA in platform.sh.
      Drop both variables as they are now unneeded.
      
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      Unverified
      bb904303
    • Daniel Golle's avatar
      base-files: make sure tools are present in sysupgrade ramdisk · 2baded9e
      Daniel Golle authored
      
      Not all targets create /var/lock or touch /var/lock/fw_printenv.lock in
      their platform.sh. This is problematic as fw_printenv then fails in
      case /var/lock/fw_printenv.lock has not been created by previous calls
      to fw_printenv/fw_setenv before sysupgrade is run.
      
      Targets using fw_printenv/fw_setenv during sysupgrade:
       * ath79/*
       * ipq40xx/*
       * ipq806x/*
       * kirkwood/*
       * layerscape/*
       * mediatek/mt7622
       * mvebu/*
       * ramips/*
       * realtek/*
      
      Targets currently using additional steps in /lib/upgrade/platform.sh
      to make sure /var/lock/fw_printenv.lock (or at least /var/lock)
      actually exists:
       * ath79/* (openmesh devices)
       * ipq40xx/* (linksys devices)
       * ipq806x/* (linksys devices)
       * kirkwood/* (linksys devices)
       * layerscape/*
       * mvebu/cortexa9 (linksys devices)
      
      Given that accessing the U-Boot environment during sysupgrade is not
      uncommon and the situation across targets is currently quite diverse,
      just make sure both tools as well fw_env.config are always copied to
      the ramdisk used for sysupgrade. Also make sure /var/lock always
      exists.
      
      This now allows to remove copying of fw_printenv/fw_setenv as well as
      fw_env.config, creation of /var/lock or even /var/lock/fw_printenv.lock
      from lib/upgrade/platform.sh or files included there.
      
      As the same applies also to 'fwtool' which is used by generic eMMC
      sysupgrade, also always copy that to ramdisk.
      
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      Unverified
      2baded9e
    • Eneas U de Queiroz's avatar
      scripts/diffconfig.sh: ensure config/conf is built · c0849c1d
      Eneas U de Queiroz authored
      
      diffconfig.sh runs ./scripts/config/conf, but it does not get built
      with 'make {menu,x,n}config.  Call 'make ./scripts/config/conf' to
      ensure it's been built befpre running it.
      
      Signed-off-by: default avatarEneas U de Queiroz <cotequeiroz@gmail.com>
      c0849c1d
    • Petr Štetiar's avatar
      build: toplevel.mk: fix missing kconfig dependency tracking · 418dc049
      Petr Štetiar authored
      
      Toplevel Make is not aware about changes in the `scripts/config/*conf`
      targets and this is causing issues for during update to that part of
      build tree, where one needs to handle this manually by either force
      rebuilding the targets or running `make config-clean`. Fix this by
      forcing the rebuild if necessary.
      
      Fixes: #9297
      Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
      418dc049
    • Eneas U de Queiroz's avatar
      openssl: configure engines with uci · 0134f845
      Eneas U de Queiroz authored
      
      This uses uci to configure engines, by generating a list of enabled
      engines in /var/etc/ssl/engines.cnf from engines configured in
      /etc/config/openssl:
      
          config engine 'devcrypto'
                  option enabled '1'
      
      Currently the only options implemented are 'enabled', which defaults to
      true and enables the named engine, and the 'force' option, that enables
      the engine even if the init script thinks the engine does not exist.
      
      The existence test is to check for either a configuration file
      /etc/ssl/engines.cnf.d/%ENGINE%.cnf, or a shared object file
      /usr/lib/engines-1.1/%ENGINE%.so.
      
      The engine list is generated by an init script which is set to run after
      'log' because it informs the engines being enabled or skipped.  It
      should run before any service using OpenSSL as the crypto library,
      otherwise the service will not use any engine.
      
      Signed-off-by: default avatarEneas U de Queiroz <cotequeiroz@gmail.com>
      0134f845
    • Eneas U de Queiroz's avatar
      openssl: configure engine packages during install · 30b03510
      Eneas U de Queiroz authored
      
      This enables an engine during its package's installation, by adding it
      to the engines list in /etc/ssl/engines.cnf.d/engines.cnf.
      
      The engine build system was reworked, with the addition of an engine.mk
      file that groups some of the engine packages' definitions, and could be
      used by out of tree engines as well.
      
      Signed-off-by: default avatarEneas U de Queiroz <cotequeiroz@gmail.com>
      30b03510
    • Eneas U de Queiroz's avatar
      openssl: config engines in /etc/ssl/engines.cnf.d · 17a6ca12
      Eneas U de Queiroz authored
      
      This changes the configuration of engines from the global openssl.cnf to
      files in the /etc/ssl/engines.cnf.d directory.  The engines.cnf file has
      the list of enabled engines, while each engine has its own configuration
      file installed under /etc/ssl/engines.cnf.d.
      
      Patches were refreshed with --zero-commit.
      
      Signed-off-by: default avatarEneas U de Queiroz <cotequeiroz@gmail.com>
      17a6ca12
  3. Feb 21, 2022
  4. Feb 20, 2022
Loading