Skip to content
Snippets Groups Projects
  1. Feb 20, 2022
    • Sander Vanheule's avatar
      realtek: use DT provided address for timers · 9db651f4
      Sander Vanheule authored
      
      The I/O base address for the timers was hardcoded into the driver,
      or derived from the HW IRQ number as an even more horrible hack. All
      supported SoC families have these timers, but with hardcoded addresses
      the code cannot be reused right now.
      
      Request the timer's base address from the DT specification, and store it
      in a private struct for future reference.
      
      Matching the second interrupt specifier, the address range for the
      second timer is added to the DT specification.
      
      Signed-off-by: default avatarSander Vanheule <sander@svanheule.net>
      9db651f4
    • Sander Vanheule's avatar
      realtek: clean up RTL930x timer DT node · 71810eb0
      Sander Vanheule authored
      
      The Realtek timer node for RTL930x doesn't have any child nodes, making
      the use of '#address-cells' quite pointless. It is also not an interrupt
      controller, meaning it makes no sense to define '#interrupt-cells'.
      
      The I/O address for this node is also wrong, but this is hidden by the
      fact that the driver associated with this node bypasses the usual DT
      machinery and does it's own thing. Correct the address to have a sane
      value, even though it isn't actually used.
      
      Fixes: a75b9e3e ("realtek: Adding RTL930X sub-target")
      Signed-off-by: default avatarSander Vanheule <sander@svanheule.net>
      71810eb0
    • Sander Vanheule's avatar
      realtek: ZyXEL GS1900-48: fix system LED polarity · fa20f2bf
      Sander Vanheule authored
      
      When driven by a GPIO pin, the system LED needs to be configured as
      active high. Otherwise the LED switches off after booting and
      initialisation.
      
      Fixes: 47f5a0a3 ("realtek: Add support for ZyXEL GS1900-48 Switch")
      Signed-off-by: default avatarSander Vanheule <sander@svanheule.net>
      fa20f2bf
    • Sander Vanheule's avatar
      realtek: ZyXEL GS1900-48: drop status from gpio1 · 66140820
      Sander Vanheule authored
      
      The default value for a DT node's status property is already "okay", so
      there's no need to specify it again. Drop the status property to clean
      up the DTS.
      
      Signed-off-by: default avatarSander Vanheule <sander@svanheule.net>
      66140820
    • Sander Vanheule's avatar
      realtek: use higher priority for timer interrupts · a39fbaf2
      Sander Vanheule authored
      
      The assigned output index for the event timers was quite low, lower even
      than the ethernet interrupt. This means that high network load could
      preempt timer interrupts, possibly leading to all sorts of strange
      behaviour.
      
      Increase the interrupt output index of the event timers to 5, which is
      the highest priority output and corresponds to the (otherwise unused)
      MIPS CPU timer interrupt.
      
      Fixes: a75b9e3e ("realtek: Adding RTL930X sub-target")
      Signed-off-by: default avatarSander Vanheule <sander@svanheule.net>
      a39fbaf2
    • Sander Vanheule's avatar
      realtek: move RTL8231 definitions to board files · 4b31717f
      Sander Vanheule authored
      
      The RTL8231 is an external chip, and not part of the SoC. That means
      it is more appropriate to define it in the board specific (base) files,
      instead of the DT include for the SoC itself.
      
      Moving the RTL8231 definition also ensures that boards with no GPIO
      expander, or an alternative one, don't have a useless gpio1 node label
      defined.
      
      Tested on a Netgear GS110TPPv1.
      
      Signed-off-by: default avatarSander Vanheule <sander@svanheule.net>
      4b31717f
    • Sander Vanheule's avatar
      realtek: fix node addresses for RTL839x · 004d4d66
      Sander Vanheule authored
      
      The address in some node names doesn't match the actual offset specified
      in the DT node. Update the names to fix this.
      
      While fixing the node names, also drop the unused node labels.
      
      Fixes: 0a7565e5 ("realtek: Update rtl839x.dtsi for realtek,rtl-intc, new gpio controller remove RTL8231 node")
      Signed-off-by: default avatarSander Vanheule <sander@svanheule.net>
      004d4d66
    • Sander Vanheule's avatar
      realtek: consolidate bootargs again · 1ca08100
      Sander Vanheule authored
      
      Bootargs for devices in the realtek target were previously consolidated
      in commit af2cfbda ("realtek: Consolidate bootargs"), since all
      devices currently use the same arguments.
      
      Commit a75b9e3e ("realtek: Adding RTL930X sub-target") reverted this
      without any argumentation, so let's undo that.
      
      Commit 0b8dfe08 ("realtek: Add RTL931X sub-target") introduced the
      old bootargs also for RTL931x, without providing any actual device
      support. Until that is done, let's assume vendors will have done what
      they did before, and use a baud rate of 115200.
      
      Fixes: a75b9e3e ("realtek: Adding RTL930X sub-target")
      Signed-off-by: default avatarSander Vanheule <sander@svanheule.net>
      1ca08100
    • Matthew Hagan's avatar
      mvebu: cortexa72: enable ARM_ARMADA_8K_CPUFREQ · 6f88526f
      Matthew Hagan authored
      
      Enable the AP806's cpufreq driver. This driver is compatible with the
      Armada 7K and 8K platforms.
      
      Tested-by: Stijn Segers <foss@volatilesystems.org> (RB5009UG+S+IN)
      Signed-off-by: default avatarMatthew Hagan <mnhagan88@gmail.com>
      6f88526f
    • Josef Schlehofer's avatar
      uboot-mvebu: backport pending patches for Marvell A38x · 696f0a1c
      Josef Schlehofer authored
      100-ddr-marvell-a38x-fix-BYTE_HOMOGENEOUS_SPLIT_OUT-deci.patch [1]:
      SoC Marvell A38x is used in Turris Omnia, and we thought that with recent
      fiddling around DDR training to fix it once for all, there were
      reproduced the issue in the upcoming new revision Turris Omnia boards.
      
      101-arm-mvebu-spl-Add-option-to-reset-the-board-on-DDR-t.patch [2]:
      This is useful when some board may occasionally fail with DDR training,
      and it adds the option to reset the board on the DDR training failure
      
      102-arm-mvebu-turris_omnia-Reset-the-board-immediately-o.patch [3]:
      This enables the option CONFIG_DDR_RESET_ON_TRAINING_FAILURE (added by
      101 patch), so the Turris Omnia board is restarted immediately, and it
      does not require to reset the board manually or wait 120s for MCU to
      reset the board
      
      [1] https://patchwork.ozlabs.org/project/uboot/patch/20220217000837.13003-1-kabel@kernel.org/
      [2] https://patchwork.ozlabs.org/project/uboot/patch/20220217000849.13028-1-kabel@kernel.org/
      [3] https://patchwork.ozlabs.org/project/uboot/patch/20220217000849.13028-2-kabel@kernel.org/
      
      
      
      Signed-off-by: default avatarJosef Schlehofer <pepe.schlehofer@gmail.com>
      696f0a1c
    • John Audia's avatar
      bcm27xx: bcm2711: update defconfig · 82da1dfd
      John Audia authored
      
      Enabled CONFIG_ALL_KMODS and ran make kernel_menuconfig against
      bcm2711 to update defconfig.  Some of the removed symbols are
      present in target/linux/generic/config-5.10 while others were
      removed by the make target.
      
      Signed-off-by: default avatarJohn Audia <graysky@archlinux.us>
      Signed-off-by: Christian Lamparter <chunkeey@gmail.com> (wrapped)
      82da1dfd
    • John Audia's avatar
      bcm27xx: bcm2710: update defconfig · a478202d
      John Audia authored
      
      Enabled CONFIG_ALL_KMODS and ran make kernel_menuconfig against
      bcm2710 to update defconfig.  Some of the removed symbols are
      present in target/linux/generic/config-5.10 while others were
      removed by the make target.
      
      Signed-off-by: default avatarJohn Audia <graysky@archlinux.us>
      Signed-off-by: Christian Lamparter <chunkeey@gmail.com> (wrapped)
      a478202d
    • John Audia's avatar
      bcm27xx: bcm2709: update defconfig · 332f6958
      John Audia authored
      
      Enabled CONFIG_ALL_KMODS and ran make kernel_menuconfig against
      bcm2709 to update defconfig.  Some of the removed symbols are
      present in target/linux/generic/config-5.10 while others were
      removed by the make target.
      
      Signed-off-by: default avatarJohn Audia <graysky@archlinux.us>
      Signed-off-by: Christian Lamparter <chunkeey@gmail.com> (wrapped)
      332f6958
    • John Audia's avatar
      bcm27xx: bcm2708: update defconfig · dbb45421
      John Audia authored
      
      Enabled CONFIG_ALL_KMODS and ran make kernel_menuconfig against
      bcm2708 to update defconfig.  Some of the removed symbols are
      present in target/linux/generic/config-5.10 while others were
      removed by the make target.
      
      Signed-off-by: default avatarJohn Audia <graysky@archlinux.us>
      Signed-off-by: Christian Lamparter <chunkeey@gmail.com> (wrapped)
      dbb45421
    • Florian Eckert's avatar
      mac80211: add debug compile option for rtw88 devices · 808210d9
      Florian Eckert authored
      
      This commit adds the following package compile options.
      
      CONFIG_PACKAGE_RTW88_DEBGUG:
      Compile the driver with additional debug logging output
      
      CONFIG_PACKAGE_RTW88_DEBGUGFS:
      Add the possibility to map information about the driver rtw88 into
      debugfs.
      
      Signed-off-by: default avatarFlorian Eckert <fe@dev.tdt.de>
      808210d9
    • Robert Marko's avatar
      ipq40xx: mikrotik: fix LED script · c1e06a0c
      Robert Marko authored
      
      Fix the missing ;; after the cAP ac case in /e/b/01_leds.
      
      Fixes: 93d91197 ("ipq40xx: add MikroTik cAP ac support")
      Signed-off-by: default avatarRobert Marko <robimarko@gmail.com>
      Signed-off-by: Christian Lamparter <chunkeey@gmail.com> (minor touch-up)
      c1e06a0c
    • Lech Perczak's avatar
      ath79: uboot-envtools: fix partition for ZTE MF286 · 411940de
      Lech Perczak authored
      
      By mistake, a wrong partition for U-boot environment was introduced for
      ZTE MF286 while adding support, when flash layout wasn't finalized. Fix
      that, according to the actual flash layout:
      dev:    size   erasesize  name
      mtd0: 00140000 00020000 "fota-flag"
      mtd1: 00140000 00020000 "caldata"
      mtd2: 00140000 00020000 "mac"
      mtd3: 00f40000 00020000 "ubiconcat0"
      mtd4: 00400000 00020000 "kernel"
      mtd5: 06900000 00020000 "ubiconcat1"
      mtd6: 00080000 00010000 "u-boot"
      mtd7: 00020000 00010000 "u-boot-env"
      mtd8: 07840000 00020000 "ubi"
      
      Fixes: 8c78a13b ("ath79: support ZTE MF286")
      Signed-off-by: default avatarLech Perczak <lech.perczak@gmail.com>
      411940de
    • Christian Lamparter's avatar
      ipq806x: disable Linksys EA7500v1 and EA8500 · 5696244a
      Christian Lamparter authored
      
      The kernel of both images will no longer fit into
      the 3072KiB / 3MiB kernel partition:
      |Image Name:   ARM OpenWrt Linux-5.10.100
      |Created:      Sat Feb 19 00:11:55 2022
      |Image Type:   ARM Linux Kernel Image (uncompressed)
      |Data Size:    3147140 Bytes = 3073.38 KiB = 3.00 MiB
      
      Disable both targets for now, until a solution is available.
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      5696244a
    • Christian Lamparter's avatar
      mpc85xx: fix KEY_RFKILL vs KEY_RFKill · c062087a
      Christian Lamparter authored
      
      This fixes a buildbot builder error:
      Error: arch/powerpc/boot/dts/tl-wdr4900-v1.dts:245.18-19 syntax error
      
      Fixes: 256e1dbc ("mpc85xx: utilize dt-binding definitions for keys + gpios")
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      c062087a
    • Petr Štetiar's avatar
      netifd: bump to version 2022-02-20 · d8bf730f
      Petr Štetiar authored
      
      Contains following changes:
      
       136006b88826 cmake: fix usage of implicit library and include paths
       bc0e84d689e2 netifd: interface-ip: don't set fib6 policies if ipv6 disabled
      
      Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
      d8bf730f
    • Nick McKinney's avatar
      ramips: clean up Makefile formatting · 61d97bf3
      Nick McKinney authored
      
      Use correct indent in target/linux/ramips/image/mt7621.mk
      to be consistent with the rest of the file.
      
      Signed-off-by: default avatarNick McKinney <nick@ndmckinney.net>
      [rephrase commit message as Adrian suggested, fix a6004ns-m indent]
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      61d97bf3
    • Sven Roederer's avatar
      ramips: mt7621: print size of factory initramfs-image if it's too big · 65df862b
      Sven Roederer authored
      
      It's helpful to know the current and maximal size of the imagefiles if the
      creation fails.
      
      Signed-off-by: default avatarSven Roederer <devel-sven@geroedel.de>
      65df862b
    • Graham Cole's avatar
      ath79: fix wndr4500v3 lan port order to match case · e282e50d
      Graham Cole authored
      
      The LED and LAN port numbering on the case of wndr4500v3 devices are
      reversed relative to the wndr4300v2. I created this patch to so that the
      ordering in OpenWRT will be consistent with that.
      
      Signed-off-by: default avatarGraham Cole <diakka@gmail.com>
      e282e50d
    • Yoonji Park's avatar
      ramips: add support for ipTIME A3002MESH · 125b9aec
      Yoonji Park authored
      
      Add support for ipTIME A3002MESH.
      
      Hardware:
      - SoC: MediaTek MT7621AT (880MHz, Duel-Core)
      - RAM: DDR3 128MB
      - Flash: XMC XM25QH128AHIG (SPI-NOR 16MB)
      - WiFi: MediaTek MT7615D (2.4GHz, 5GHz, DBDC)
      - Ethernet: MediaTek MT7530 (WAN x1, LAN x2, SoC built-in)
      - UART: [GND, RX, TX, 3.3V] (57600 8N1, J4)
      
      MAC addresses:
      | interface |        MAC        |     source     | comment
      |-----------|-------------------|----------------|----------
      |       LAN | 70:XX:XX:5X:XX:X3 |                |
      |       WAN | 70:XX:XX:5X:XX:X1 | u-boot 0x1fc40 |
      |   WLAN 2G | 72:XX:XX:4X:XX:X0 |                |
      |   WLAN 5G | 70:XX:XX:5X:XX:X0 | factory 0x4    |
      |           | 70:XX:XX:5X:XX:X0 | u-boot 0x1fc20 | unknown
      |           | 70:XX:XX:5X:XX:X2 | factory 0x8004 | unknown
      
      - WLAN 2G MAC address is not the same as stock firmware since OpenWrt
        uses LAN MAC address with local bit sets.
      
      Installation:
      1. Flash initramfs image. This can be done using stock web ui or TFTP
      2. Connect to OpenWrt with an SSH connection to 192.168.1.1
      3. Perform sysupgrade with sysupgrade image
      
      Revert to stock firmware:
      - Flash stock firmware via OEM TFTP Recovery mode
      - Perform sysupgrade with stock image
      
      TFTP Recovery method:
      1. Unplug the router
      2. Hold the reset button and plug in
      3. Release when the power LED stops flashing and go off
      4. Set your computer IP address manually to 192.168.0.x / 255.255.255.0
      5. Flash image with TFTP client to 192.168.0.1
      
      Signed-off-by: default avatarYoonji Park <koreapyj@dcmys.kr>
      [wrap/rephrase commit message]
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      125b9aec
    • Sungbo Eo's avatar
      Revert "ramips: increase spi-max-frequency for ipTIME mt7620 devices" · 9968a909
      Sungbo Eo authored
      
      This reverts commit 13a185bf.
      
      There was a report that one A1004ns device fails to detect its flash
      chip correctly:
      
      [    1.470297] spi-nor spi0.0: unrecognized JEDEC id bytes: e0 10 0c 40 10 08
      [    1.484110] spi-nor: probe of spi0.0 failed with error -2
      
      It also uses a different flash chip model:
      * in my hand: Winbond W25Q128FVSIG (SOIC-8)
      * reported: Macronix MX25L12845EMI-10G (SOP-16)
      
      Reducing spi-max-frequency solved the detection failure. Hence revert.
      
      Reported-by: default avatarKoasing <koasing@gmail.com>
      Tested-by: default avatarKoasing <koasing@gmail.com>
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      9968a909
    • Sungbo Eo's avatar
      wireless-regdb: update to version 2022.02.18 · 19a90262
      Sungbo Eo authored
      
      e061299 wireless-regdb: Raise DFS TX power limit to 250 mW (24 dBm) for the US
      2ce78ed wireless-regdb: Update regulatory rules for Croatia (HR) on 6GHz
      0d39f4c wireless-regdb: Update regulatory rules for South Korea (KR)
      acad231 wireless-regdb: Update regulatory rules for France (FR) on 6 and 60 GHz
      ea83a82 wireless-regdb: add support for US S1G channels
      4408149 wireless-regdb: add 802.11ah bands to world regulatory domain
      5f3cadc wireless-regdb: Update regulatory rules for Spain (ES) on 6GHz
      e0ac69b Revert "wireless-regdb: Update regulatory rules for South Korea (KR)"
      40e5e80 wireless-regdb: Update regulatory rules for South Korea (KR)
      e427ff2 wireless-regdb: Update regulatory rules for China (CN)
      0970116 wireless-regdb: Update regulatory rules for the Netherlands (NL) on 6GHz
      4dac44b wireless-regdb: update regulatory database based on preceding changes
      
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      19a90262
    • Sungbo Eo's avatar
      ath79: utilize nvmem on Netgear EX7300 v2 · 3e3e78de
      Sungbo Eo authored
      
      mtd-mac-address should no longer be used after commit 5ae2e786
      ("kernel: drop support for mtd-mac-address"). Convert it to nvmem-cells.
      
      While at it, also convert OpenWrt's custom mtd-cal-data property and
      userspace pre-calibration data extraction to the nvmem implementation.
      
      Note: nvmem-cells in QCN5502 wmac has not been tested.
      
      Fixes: c32008a3 ("ath79: add partial support for Netgear EX7300v2")
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      3e3e78de
  2. Feb 19, 2022
    • Christian Lamparter's avatar
      apm821xx: WNDR4700: use upstream tc654 cooling devices · b0d5939b
      Christian Lamparter authored
      
      Upstream hwmon-maintainer had various comments about
      the changes to the tc654 driver. These have been
      addressed and the cooling device support is destined
      for inclusion.
      
      One of the comments was the change of the cooling states
      scaling. No longer the driver uses the same values as the
      hwmon interface, instead the states are now the 17 states
      the tc654 supports.
      
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      b0d5939b
    • Christian Lamparter's avatar
      kernel: add kmod-hwmon-lm70 support · 2aa97ecb
      Christian Lamparter authored
      
      package hwmon's lm70.ko. This module supports the
      National Semiconductor/TI LM70,LM71,LM74 and
      TI TMP121,TMP122,TMP123 and TMP124 chips (all SPI).
      
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      2aa97ecb
    • Christian Lamparter's avatar
      mpc85xx: add HiveAP-350 alternative name for HiveAP-330 · 2db231e7
      Christian Lamparter authored
      
      The HiveAP-350 has six external antennas connectors.
      (It also has twice the flash?)
      
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      2db231e7
    • Christian Lamparter's avatar
      mpc85xx: utilize dt-binding definitions for keys + gpios · 256e1dbc
      Christian Lamparter authored
      
      include the device-tree binding headers that provide definitions
      for keys codes and gpios in the device-tree files.
      
      Random bonus: merge tl-wdr4900-v1's uboot with the nvmem-node.
      
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      256e1dbc
    • 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
Loading