Skip to content
Snippets Groups Projects
  1. Jan 15, 2022
    • Pawel Dembicki's avatar
      mvebu: cortexa9: Add support for Ctera C200-V2 · 9149ed4f
      Pawel Dembicki authored
      
      2-Bay NAS - maximum two 3.5" Harddisks
      
      Hardware:
        - SoC: Marvell 88F6707-A1 ARMv7 Processor 1,2GHz (ARMADA 370 SoC)
        - Ram: 1GB (2x Nanya NT5CC512M8DN-D1)
        - NAND Flash: 256MB (ESMT F59L2G81A-25T)
        - Lan: 1x GBE (Marvell 88E1318-NNB2)
        - Storage: 2x SATA HDD 3.5" Slot
        - USB: 2x USB 3.0 port (Renesas uPD720202)
        - Console: Internal J3 connector (1: Vcc, 2: Rx, 3: Tx, 4: GND)
        - LEDs: 13x GPIO controlled
        - Buttons: 2x GPIO controlled
      
      Known issues:
        - Buzzer is unused due lack of proper driver
        - USB1/2 usbport ledtrigger won't work (through DT)
        - Renesas uPD720202 requires firmware file. It's possible to find
          non-free binary. Please look for 'UPDATE.mem' file and put in into
          '/lib/firmware/renesas_usb_fw.mem' file.
      
      Installation:
        - Apply factory initramfs image via stock web-gui.
        - Do sysupgrade to make installation complete.
      
      Back to stock:
        - OpenWrt rootfs partition use unused space after stock firmware.
        - Full revert is possible.
        - Login via ssh and run:
      
       ## ctera_c200-v2_back_to_factory start ##
       . /lib/functions.sh
       part=$(find_mtd_part "active_bank")
       active_bank=$(strings "$part" | grep bank)
       if [ "$active_bank" = "bank1" ]; then
       	echo "bank2" > /tmp/change_bank
       else
       	echo "bank1" > /tmp/change_bank
       fi
       mtd write /tmp/change_bank active_bank
       reboot
       ## ctera_c200-v2_back_to_factory end ##
      
      Signed-off-by: default avatarPawel Dembicki <paweldembicki@gmail.com>
      (put back-to-stock script into commit message, removed dup. SUBPAGESIZE var,
      added 01_leds for non-working dt-usb-port trigger)
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      9149ed4f
    • Pawel Dembicki's avatar
      package: kernel: add driver module for NCT7802Y · 1ed50b92
      Pawel Dembicki authored
      
      This commit add package with hwmon-nct7802 module.
      
      This driver implements support for the Nuvoton NCT7802Y hardware monitoring
      chip. NCT7802Y supports 6 temperature sensors, 5 voltage sensors, and 3 fan
      speed sensors.
      
      Signed-off-by: default avatarPawel Dembicki <paweldembicki@gmail.com>
      (fixed c&p'ed module description)
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      1ed50b92
    • Josef Schlehofer's avatar
      mvebu: enable watchdog for Armada 37XX · 01520a96
      Josef Schlehofer authored
      This option includes support for watchdog timer on Marvell Armada 37xx
      SoCs. [1] It is useful e.g. for Turris MOX, Marvell ESPRESSObin
      
      Enable armada-37xx-watchdog driver as built in for mvebu cortex-a53,
      so that kernel can start serving as soon as the driver is probed, until userspace takes over it.
      
      [1] https://cateee.net/lkddb/web-lkddb/ARMADA_37XX_WATCHDOG.html
      
      
      
      Signed-off-by: default avatarJosef Schlehofer <pepe.schlehofer@gmail.com>
      (improved commit message, 2nd paragraph)
      Signed-off-by: default avatarMarek Behún <kabel@kernel.org>
      01520a96
    • Marek Behún's avatar
      mvebu: cortexa53: Enable Armada 37xx rWTM driver · 43659a7d
      Marek Behún authored
      Enabling Armada 37xx rWTM driver. This gives the kernel access to random
      number generator, if provided by the rWTM firmware.
      
      Note that the driver is called turris-mox-rwtm because it was initially
      written for Turris MOX, but will also work on other Armada 37xx
      platforms, if they use rWTM firmware from CZ.NIC [1].
      
      It makes sense to have this driver built-in, so that kernel has access
      to random number generator without needing to load any drivers.
      
      [1] https://gitlab.nic.cz/turris/mox-boot-builder
      
      
      
      Signed-off-by: default avatarMarek Behún <kabel@kernel.org>
      Reviewed-by: default avatarAndre Heider <a.heider@gmail.com>
      43659a7d
    • Marek Behún's avatar
      kernel: 5.10: Backport pending Armada 3720 comphy patches · bf991fa3
      Marek Behún authored
      Backport 5 pending patches [1] for Armada 3720 comphy driver and one
      patch for device tree, applied to mvebu-dt64, but pending to appear in
      Linus' tree [2].
      
      These patches makes the driver work correctly even with older, buggy
      versions of TF-A firmware.
      
      [1] http://lists.infradead.org/pipermail/linux-phy/2022-January/002598.html
      [2] http://lists.infradead.org/pipermail/linux-phy/2021-December/002279.html
      
      
      
      Signed-off-by: default avatarMarek Behún <kabel@kernel.org>
      bf991fa3
    • Marek Behún's avatar
      kernel: 5.10: Backport Armada 3720 comphy patches from 5.15 · cf3a6e62
      Marek Behún authored
      
      Backport 2 patches for Armada 3720 comphy from 5.15 kernel.
      
      These are needed for clear application of pending patches that fix this
      driver.
      
      Signed-off-by: default avatarMarek Behún <kabel@kernel.org>
      cf3a6e62
    • Marek Behún's avatar
      kernel: 5.10: Backport pending pci-aardvark changes fixing MSI support · 080691d7
      Marek Behún authored
      Backport Aardvark PCIe controller driver changes that fix MSI support,
      that were recently sent to the linux-pci mailing list [1].
      
      These changes fix MSI and MSI-X support for this PCIe controller, which,
      among other things, make it possible to use NVMe drives with this PCIe
      controllers.
      
      [1] https://lore.kernel.org/linux-pci/20220110015018.26359-1-kabel@kernel.org/
      
      
      
      Signed-off-by: default avatarMarek Behún <kabel@kernel.org>
      080691d7
    • Marek Behún's avatar
      kernel: 5.10: Backport pci-aardvark driver changes from 5.17 · 612e1c68
      Marek Behún authored
      Backport Aardvark PCIe controller driver changes that will appear in
      5.17 kernel. They are currently accessible on LKML [1], in linux-next
      repository [2], or in Bjorn Helgaas' repository [3].
      
      These changes mainly enhance driver removal method.
      
      [1] https://lore.kernel.org/linux-pci/20211130172913.9727-1-kabel@kernel.org/
      [2] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/log/drivers/pci?h=next-20220107
      [3] https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git/log/?h=next
      
      
      
      Signed-off-by: default avatarMarek Behún <kabel@kernel.org>
      612e1c68
    • Josef Schlehofer's avatar
      mvebu: kernel: enable CONFIG_BLK_DEV_NVME · 9d530ac4
      Josef Schlehofer authored
      CONFIG_BLK_DEV_NVME [1]:
      - This is a kernel driver for SSD connected to PCI or PCIe bus [1].
      By default, it is enabled for targets "ipq807x", "rockchip/armv8"
      and "x86/64".
      
      With miniPCIe adapter, there is a possibility to connect NVMe disk
      to Turris Omnia (cortex-a9), Turris MOX (cortex-a53).
      
      It allows to boot system from NVMe disk, because of that it can not
      be kmod package as you can not access the disk to be able to boot from
      it.
      
      CONFIG_NVME_CORE [2]:
      - This is selected by CONFIG_BLK_DEV_NVME
      It does not need to be explicitly enabled, but it is done for "ipq807",
      "x64_64" and rockchip/armv8", which has also enabled the previous config
      option as well.
      
      Kernel increase: ~28k KiB on mamba kernel
      
      Reference:
      [1] https://cateee.net/lkddb/web-lkddb/BLK_DEV_NVME.html
      [2] https://cateee.net/lkddb/web-lkddb/NVME_CORE.html
      
      
      
      Signed-off-by: default avatarJosef Schlehofer <pepe.schlehofer@gmail.com>
      9d530ac4
    • Christian Lamparter's avatar
      ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data · cfc13c44
      Christian Lamparter authored
      
      moves extraction entries out of 11-ath10k-caldata and into
      the individual board's device-tree.
      
      Some notes:
       - mmc could work as well (not tested)
       - devices that pass the partitions via mtdparts
         bootargs are kept as is
       - gl-b2200 has a weird pcie wifi device
         (vendor claims 9886 wave 2. But firmware-extraction
         was for a wave 1 device?!)
      
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      cfc13c44
    • Christian Lamparter's avatar
      ipq40xx: add RT-ACRH13 alternative name to RT-AC58U · 10bc55c4
      Christian Lamparter authored
      
      RT-ACRH13 is another name this device was sold as (US?).
      
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      10bc55c4
    • Joshua Roys's avatar
      ipq40xx: add support for ASUS RT-ACRH17/RT-AC42U · 51b9aef5
      Joshua Roys authored
      
      SOC:	IPQ4019
      CPU:	Quad-core ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
      DRAM:	256 MB
      NAND:	128 MiB Macronix MX30LF1G18AC
      ETH:	Qualcomm Atheros QCA8075 Gigabit Switch (4x LAN, 1x WAN)
      USB:	1x 3.0 (via Synopsys DesignWare DWC3 controller in the SoC)
      WLAN1:	Qualcomm Atheros QCA4019 2.4GHz 802.11bgn 2x2:2
      WLAN2:	Qualcomm Atheros QCA9984 5GHz 802.11nac 4x4:4
      INPUT:	1x WPS, 1x Reset
      LEDS:	Status, WIFI1, WIFI2, WAN (red & blue), 4x LAN
      
      This board is very similar to the RT-ACRH13/RT-AC58U. It must be flashed
      with an intermediary initramfs image, the jffs2 ubi volume deleted, and
      then finally a sysupgrade with the final image performed.
      
      Signed-off-by: default avatarJoshua Roys <roysjosh@gmail.com>
      (added ALT0)
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      51b9aef5
    • Michael Pratt's avatar
      ramips: fix reboot for remaining 32 MB boards · 74516f43
      Michael Pratt authored
      
      The following devices have a Winbond W25Q256FV flash chip,
      which does not have the RESET pin enabled by default,
      and otherwise would require setting a bit in a status register.
      
      Before moving to Linux 5.4, we had the patch:
      0053-mtd-spi-nor-add-w25q256-3b-mode-switch.patch
      which kept specific flash chips with explicit 3-byte and 4-byte address modes
      to stay in 3-byte address mode while idle (after an erase or write)
      by using a custom flag SPI_NOR_4B_READ_OP that was part of the patch.
      
      this was obsoleted by the patch:
      481-mtd-spi-nor-rework-broken-flash-reset-support.patch
      which uses the newer upstream flag SNOR_F_BROKEN_RESET
      for devices with a flash chip that cannot be hardware reset with RESET pin
      and therefore must be left in 3-byte address mode when idle.
      
      The new patch requires that the DTS of affected devices
      have the property "broken-flash-reset", which was not yet added for most of them.
      
      This commit adds the property for remaining affected devices in ramips target,
      specifically because of the flash chip model.
      
      However, it is possible that there are other devices
      where the flash chip uses an explicit 4-byte address mode
      and the RESET pin is not connected to the SOC on the board,
      and those DTS would also need this property.
      
      Ref: 22d982ea ("ramips: add support for switching between 3-byte and 4-byte addressing")
      Ref: dfa521f1 ("generic: spi-nor: rework broken-flash-reset")
      Signed-off-by: default avatarMichael Pratt <mcpratt@pm.me>
      74516f43
    • Paul Spooren's avatar
      at91: drop /etc/config/firewall · daae59b7
      Paul Spooren authored
      
      The file can't be part of base files or the base-files and firewall
      packages collide. Two packages must not provide the same config files
      without having a defined CONFLICT since it would result in an
      undeterministic config state depending on what package is installed
      last.
      
      Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
      daae59b7
    • SeongUk Moon's avatar
      ramips: add support for ipTIME A6004NS-M · 9c8ccdcd
      SeongUk Moon authored
      
      ipTIME A6004NS-M is a 2.4/5GHz band AC1900 router, based on MediaTek MT7621A.
      
      Specifications:
      - SoC: MediaTek MT7621A (880MHz, Duel-Core)
      - RAM: DDR3 256MB
      - Flash: SPI NOR 16MB (Winbond W25Q128BV)
      - WiFi: MediaTek MT7615E (2.4GHz, 5GHz)
      - Ethernet: MediaTek MT7530 (WAN x1, LAN x4, SoC built-in Estimated)
      - USB: USB 3.0 x1
      - UART: [3.3V, TX, RX, GND] (57600 8N1)
      
      Installation via web interface:
      1. Flash initramfs image using OEM's Firmware Update page.
      2. Connect to OpenWrt with an SSH connection to `192.168.1.1`.
      3. Perform sysupgrade with sysupgrade image.
      
      Revert to stock firmware:
      1.  Flash stock firmware via OEM's Recovery mode
      
      How to use OEM's Recovery mode:
      1. Power on the device and connect the shell through UART.
      2. Connect to the shell and press the `t` key on the keyboard.
      3. Set fixed IP with  `192.168.0.2`  with subnet mask  `255.255.255.0`
      4. Flash image via TFTP to  `192.168.0.1`
      
      Additional Notes:
      1. The higher the 5Ghz Frequency, the lower the stability. It is recommended to use less than 5.775Ghz.
      2. If the 5Ghz frequency is too high, 5Ghz may not work.
      3. A6ns-M use shared dtsi file of A6004NS-M. (reference: /mt7621_iptime_a6004ns-m.dtsi).
      
      Signed-off-by: default avatarSeongUk Moon <antegral@antegral.net>
      [convert CRLF to LF]
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      9c8ccdcd
    • Kyoungkyu Park's avatar
      ramips: add support for HUMAX E2 · 6041c693
      Kyoungkyu Park authored
      
      HUMAX E2 (also known as HUMAX QUANTUM E2) is a 2.4/5GHz band AC router,
      based on MediaTek MT7620A.
      
      Specifications:
      - SoC: MT7620A
      - RAM: DDR2 64MB
      - Flash: SPI NOR 8MB (MXIC MX25L6405D)
      - WiFi:
        - 2.4GHz: SoC internal
        - 5GHz: MT7610E
      - Ethernet: 1x 10/100Mbps
        - Switch: SoC internal
      - UART: J2 (57600 8N1)
        - pinout: [3V3] (RXD) (GND) (TXD)
      
      Installation and Recovery via TFTP:
      1. Connect ethernet cable between Router port and PC Ethernet port.
      2. Set your computer to a static IP **192.168.1.1**
      3. Turn the device off and wait a few seconds. Hold the WPS button on front
         of device and insert power.
      4. Send a firmware image to **192.168.1.6** using TFTP.
         You can use any TFTP client. (tftp, curl, Tftpd64...)
      5. Wait until Power LED stop flashing. **DO NOT TURN OFF DEVICE!**
         The device will be automatically rebooted.
      
      Signed-off-by: default avatarKyoungkyu Park <choryu.park@choryu.space>
      6041c693
    • David Bauer's avatar
      lantiq: add additional caldata offsets · 7f770592
      David Bauer authored
      
      It was reported the AVM FritzBox 7430 has different offsets for the
      caldata depending on the device.
      
      Whether this is due to custom bad-block handling or up to the installed
      bootloader-version is unknown.
      
      Try both known caldata offsets like it is already done for the ipq40xx
      NAND based models. Use the same approach for the FritzBox 7412. While it
      is currently unknown, whether it is affected, applying the same logic
      has no downsides.
      
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      7f770592
  2. Jan 14, 2022
  3. Jan 13, 2022
Loading