Skip to content
Snippets Groups Projects
  1. Mar 13, 2022
    • Michael Pratt's avatar
      ath79: add support for Araknis AN-700-AP-I-AC · 41be1a2d
      Michael Pratt authored
      
      FCC ID: 2AG6R-AN700APIAC
      
      Araknis AN-700-AP-I-AC is an indoor wireless access point with
      1 Gb ethernet port, dual-band wireless,
      internal antenna plates, and 802.3at PoE+
      
      this board is a Senao device:
      the hardware is equivalent to EnGenius EAP1750
      the software is modified Senao SDK which is based on openwrt and uboot
      including image checksum verification at boot time,
      and a failsafe image that boots if checksum fails
      
      **Specification:**
      
        - QCA9558 SOC		MIPS 74kc, 2.4 GHz WMAC, 3x3
        - QCA9880 WLAN	PCI card, 5 GHz, 3x3, 26dBm
        - AR8035-A PHY	RGMII GbE with PoE+ IN
        - 40 MHz clock
        - 16 MB FLASH		MX25L12845EMI-10G
        - 2x 64 MB RAM	NT5TU32M16
        - UART console	J10, populated, RX shorted to ground
        - 4 antennas		5 dBi, internal omni-directional plates
        - 4 LEDs		power, 2G, 5G, wps
        - 1 button		reset
      
        NOTE: all 4 gpio controlled LEDS are viewed through the same lightguide
      	therefore, the power LED is off for default state
      
      **MAC addresses:**
      
        MAC address labeled as ETH
        Only one Vendor MAC address in flash at art 0x0
      
        eth0 ETH  *:xb art 0x0
        phy1 2.4G *:xc ---
        phy0 5GHz *:xd ---
      
      **Serial Access:**
      
        the RX line on the board for UART is shorted to ground by resistor R176
        therefore it must be removed to use the console
        but it is not necessary to remove to view boot log
      
        optionally, R175 can be replaced with a solder bridge short
      
        the resistors R175 and R176 are next to the UART RX pin at J10
      
      **Installation:**
      
        Method 1: Firmware upgrade page:
      
          (if you cannot access the APs webpage)
          factory reset with the reset button
          connect ethernet to a computer
          OEM webpage at 192.168.20.253
          username and password 'araknis'
          make a new password, login again...
      
          Navigate to 'File Management' page from left pane
          Click Browse and select the factory.bin image
          Upload and verify checksum
          Click Continue to confirm
          wait about 3 minutes
      
        Method 2: Serial to load Failsafe webpage:
      
          After connecting to serial console and rebooting...
          Interrupt uboot with any key pressed rapidly
          execute `run failsafe_boot` OR `bootm 0x9fd70000`
          wait a minute
          connect to ethernet and navigate to
          192.168.20.253
          Select the factory.bin image and upload
          wait about 3 minutes
      
      **Return to OEM:**
      
        Method 1: Serial to load Failsafe webpage (above)
      
        Method 2: delete a checksum from uboot-env
        this will make uboot load the failsafe image at next boot
        because it will fail the checksum verification of the image
      
          ssh into openwrt and run
          `fw_setenv rootfs_checksum 0`
          reboot, wait a minute
          connect to ethernet and navigate to
          192.168.20.253
          select OEM firmware image and click upgrade
      
        Method 3: backup mtd partitions before upgrade
      
      **TFTP recovery:**
      
        Requires serial console, reset button does nothing
      
        rename initramfs-kernel.bin to '0101A8C0.img'
        make available on TFTP server at 192.168.1.101
        power board, interrupt boot with serial console
        execute `tftpboot` and `bootm 0x81000000`
      
        NOTE: TFTP may not be reliable due to bugged bootloader
      	set MTU to 600 and try many times
      
      **Format of OEM firmware image:**
      
        The OEM software is built using SDKs from Senao
        which is based on a heavily modified version
        of Openwrt Kamikaze or Altitude Adjustment.
        One of the many modifications is sysupgrade being performed by a custom script.
        Images are verified through successful unpackaging, correct filenames
        and size requirements for both kernel and rootfs files, and that they
        start with the correct magic numbers (first 2 bytes) for the respective headers.
      
        Newer Senao software requires more checks but their script
        includes a way to skip them.
      
        The OEM upgrade script is at
        /etc/fwupgrade.sh
      
        OKLI kernel loader is required because the OEM software
        expects the kernel to be less than 1536k
        and the OEM upgrade procedure would otherwise
        overwrite part of the kernel when writing rootfs.
      
      Note on PLL-data cells:
      
        The default PLL register values will not work
        because of the external AR8035 switch between
        the SOC and the ethernet port.
      
        For QCA955x series, the PLL registers for eth0 and eth1
        can be see in the DTSI as 0x28 and 0x48 respectively.
        Therefore the PLL registers can be read from uboot
        for each link speed after attempting tftpboot
        or another network action using that link speed
        with `md 0x18050028 1` and `md 0x18050048 1`.
      
        The clock delay required for RGMII can be applied at the PHY side,
        using the at803x driver `phy-mode` setting through the DTS.
        Therefore, the Ethernet Configuration registers for GMAC0
        do not need the bits for RGMII delay on the MAC side.
        This is possible due to fixes in at803x driver
        since Linux 5.1 and 5.3
      
      Signed-off-by: default avatarMichael Pratt <mcpratt@pm.me>
      41be1a2d
    • Michael Pratt's avatar
      ath79: add support for Araknis AN-500-AP-I-AC · 56716b57
      Michael Pratt authored
      
      FCC ID: 2AG6R-AN500APIAC
      
      Araknis AN-500-AP-I-AC is an indoor wireless access point with
      1 Gb ethernet port, dual-band wireless,
      internal antenna plates, and 802.3at PoE+
      
      this board is a Senao device:
      the hardware is equivalent to EnGenius EAP1200
      the software is modified Senao SDK which is based on openwrt and uboot
      including image checksum verification at boot time,
      and a failsafe image that boots if checksum fails
      
      **Specification:**
      
        - QCA9557 SOC		MIPS 74kc, 2.4 GHz WMAC, 2x2
        - QCA9882 WLAN	PCI card 168c:003c, 5 GHz, 2x2, 26dBm
        - AR8035-A PHY	RGMII GbE with PoE+ IN
        - 40 MHz clock
        - 16 MB FLASH		MX25L12845EMI-10G
        - 2x 64 MB RAM	NT5TU32M16
        - UART console	J10, populated, RX shorted to ground
        - 4 antennas		5 dBi, internal omni-directional plates
        - 4 LEDs		power, 2G, 5G, wps
        - 1 button		reset
      
        NOTE: all 4 gpio controlled LEDS are viewed through the same lightguide
      	therefore, the power LED is off for default state
      
      **MAC addresses:**
      
        MAC address labeled as ETH
        Only one Vendor MAC address in flash at art 0x0
      
        eth0 ETH  *:e1 art 0x0
        phy1 2.4G *:e2 ---
        phy0 5GHz *:e3 ---
      
      **Serial Access:**
      
        the RX line on the board for UART is shorted to ground by resistor R176
        therefore it must be removed to use the console
        but it is not necessary to remove to view boot log
      
        optionally, R175 can be replaced with a solder bridge short
      
        the resistors R175 and R176 are next to the UART RX pin at J10
      
      **Installation:**
      
        Method 1: Firmware upgrade page:
      
          (if you cannot access the APs webpage)
          factory reset with the reset button
          connect ethernet to a computer
          OEM webpage at 192.168.20.253
          username and password 'araknis'
          make a new password, login again...
      
          Navigate to 'File Management' page from left pane
          Click Browse and select the factory.bin image
          Upload and verify checksum
          Click Continue to confirm
          wait about 3 minutes
      
        Method 2: Serial to load Failsafe webpage:
      
          After connecting to serial console and rebooting...
          Interrupt uboot with any key pressed rapidly
          execute `run failsafe_boot` OR `bootm 0x9fd70000`
          wait a minute
          connect to ethernet and navigate to
          192.168.20.253
          Select the factory.bin image and upload
          wait about 3 minutes
      
      **Return to OEM:**
      
        Method 1: Serial to load Failsafe webpage (above)
      
        Method 2: delete a checksum from uboot-env
        this will make uboot load the failsafe image at next boot
        because it will fail the checksum verification of the image
      
          ssh into openwrt and run
          `fw_setenv rootfs_checksum 0`
          reboot, wait a minute
          connect to ethernet and navigate to
          192.168.20.253
          select OEM firmware image and click upgrade
      
        Method 3: backup mtd partitions before upgrade
      
      **TFTP recovery:**
      
        Requires serial console, reset button does nothing
      
        rename initramfs-kernel.bin to '0101A8C0.img'
        make available on TFTP server at 192.168.1.101
        power board, interrupt boot with serial console
        execute `tftpboot` and `bootm 0x81000000`
      
        NOTE: TFTP may not be reliable due to bugged bootloader
      	set MTU to 600 and try many times
      
      **Format of OEM firmware image:**
      
        The OEM software is built using SDKs from Senao
        which is based on a heavily modified version
        of Openwrt Kamikaze or Altitude Adjustment.
        One of the many modifications is sysupgrade being performed by a custom script.
        Images are verified through successful unpackaging, correct filenames
        and size requirements for both kernel and rootfs files, and that they
        start with the correct magic numbers (first 2 bytes) for the respective headers.
      
        Newer Senao software requires more checks but their script
        includes a way to skip them.
      
        The OEM upgrade script is at
        /etc/fwupgrade.sh
      
        OKLI kernel loader is required because the OEM software
        expects the kernel to be less than 1536k
        and the OEM upgrade procedure would otherwise
        overwrite part of the kernel when writing rootfs.
      
      Note on PLL-data cells:
      
        The default PLL register values will not work
        because of the external AR8035 switch between
        the SOC and the ethernet port.
      
        For QCA955x series, the PLL registers for eth0 and eth1
        can be see in the DTSI as 0x28 and 0x48 respectively.
        Therefore the PLL registers can be read from uboot
        for each link speed after attempting tftpboot
        or another network action using that link speed
        with `md 0x18050028 1` and `md 0x18050048 1`.
      
        The clock delay required for RGMII can be applied at the PHY side,
        using the at803x driver `phy-mode` setting through the DTS.
        Therefore, the Ethernet Configuration registers for GMAC0
        do not need the bits for RGMII delay on the MAC side.
        This is possible due to fixes in at803x driver
        since Linux 5.1 and 5.3
      
      Signed-off-by: default avatarMichael Pratt <mcpratt@pm.me>
      56716b57
    • Michael Pratt's avatar
      ath79: add support for Araknis AN-300-AP-I-N · 561f46bd
      Michael Pratt authored
      
      FCC ID: U2M-AN300APIN
      
      Araknis AN-300-AP-I-N is an indoor wireless access point with
      1 Gb ethernet port, dual-band wireless,
      internal antenna plates, and 802.3at PoE+
      
      this board is a Senao device:
      the hardware is equivalent to EnGenius EWS310AP
      the software is modified Senao SDK which is based on openwrt and uboot
      including image checksum verification at boot time,
      and a failsafe image that boots if checksum fails
      
      **Specification:**
      
        - AR9344 SOC		MIPS 74kc, 2.4 GHz WMAC, 2x2
        - AR9382 WLAN		PCI on-board 168c:0030, 5 GHz, 2x2
        - AR8035-A PHY	RGMII GbE with PoE+ IN
        - 40 MHz clock
        - 16 MB FLASH		MX25L12845EMI-10G
        - 2x 64 MB RAM	1839ZFG V59C1512164QFJ25
        - UART console	J10, populated, RX shorted to ground
        - 4 antennas		5 dBi, internal omni-directional plates
        - 4 LEDs		power, 2G, 5G, wps
        - 1 button		reset
      
        NOTE: all 4 gpio controlled LEDS are viewed through the same lightguide
      	therefore, the power LED is off for default state
      
      **MAC addresses:**
      
        MAC address labeled as ETH
        Only one Vendor MAC address in flash at art 0x0
      
        eth0 ETH  *:7d art 0x0
        phy1 2.4G *:7e ---
        phy0 5GHz *:7f ---
      
      **Serial Access:**
      
        the RX line on the board for UART is shorted to ground by resistor R176
        therefore it must be removed to use the console
        but it is not necessary to remove to view boot log
      
        optionally, R175 can be replaced with a solder bridge short
      
        the resistors R175 and R176 are next to the UART RX pin at J10
      
      **Installation:**
      
        Method 1: Firmware upgrade page:
      
          (if you cannot access the APs webpage)
          factory reset with the reset button
          connect ethernet to a computer
          OEM webpage at 192.168.20.253
          username and password 'araknis'
          make a new password, login again...
      
          Navigate to 'File Management' page from left pane
          Click Browse and select the factory.bin image
          Upload and verify checksum
          Click Continue to confirm
          wait about 3 minutes
      
        Method 2: Serial to load Failsafe webpage:
      
          After connecting to serial console and rebooting...
          Interrupt uboot with any key pressed rapidly
          execute `run failsafe_boot` OR `bootm 0x9fd70000`
          wait a minute
          connect to ethernet and navigate to
          192.168.20.253
          Select the factory.bin image and upload
          wait about 3 minutes
      
      **Return to OEM:**
      
        Method 1: Serial to load Failsafe webpage (above)
      
        Method 2: delete a checksum from uboot-env
        this will make uboot load the failsafe image at next boot
        because it will fail the checksum verification of the image
      
          ssh into openwrt and run
          `fw_setenv rootfs_checksum 0`
          reboot, wait a minute
          connect to ethernet and navigate to
          192.168.20.253
          select OEM firmware image and click upgrade
      
        Method 3: backup mtd partitions before upgrade
      
      **TFTP recovery:**
      
        Requires serial console, reset button does nothing
      
        rename initramfs-kernel.bin to '0101A8C0.img'
        make available on TFTP server at 192.168.1.101
        power board, interrupt boot with serial console
        execute `tftpboot` and `bootm 0x81000000`
      
        NOTE: TFTP may not be reliable due to bugged bootloader
      	set MTU to 600 and try many times
      
      **Format of OEM firmware image:**
      
        The OEM software is built using SDKs from Senao
        which is based on a heavily modified version
        of Openwrt Kamikaze or Altitude Adjustment.
        One of the many modifications is sysupgrade being performed by a custom script.
        Images are verified through successful unpackaging, correct filenames
        and size requirements for both kernel and rootfs files, and that they
        start with the correct magic numbers (first 2 bytes) for the respective headers.
      
        Newer Senao software requires more checks but their script
        includes a way to skip them.
      
        The OEM upgrade script is at
        /etc/fwupgrade.sh
      
        OKLI kernel loader is required because the OEM software
        expects the kernel to be less than 1536k
        and the OEM upgrade procedure would otherwise
        overwrite part of the kernel when writing rootfs.
      
      Note on PLL-data cells:
      
        The default PLL register values will not work
        because of the external AR8035 switch between
        the SOC and the ethernet port.
      
        For QCA955x series, the PLL registers for eth0 and eth1
        can be see in the DTSI as 0x28 and 0x48 respectively.
        Therefore the PLL registers can be read from uboot
        for each link speed after attempting tftpboot
        or another network action using that link speed
        with `md 0x18050028 1` and `md 0x18050048 1`.
      
        The clock delay required for RGMII can be applied at the PHY side,
        using the at803x driver `phy-mode` setting through the DTS.
        Therefore, the Ethernet Configuration registers for GMAC0
        do not need the bits for RGMII delay on the MAC side.
        This is possible due to fixes in at803x driver
        since Linux 5.1 and 5.3
      
      Signed-off-by: default avatarMichael Pratt <mcpratt@pm.me>
      561f46bd
    • Michael Pratt's avatar
      ath79: improve factory.bin for some Senao devices · 07723492
      Michael Pratt authored
      
      Some boards with firmware made with Senao SDK based on Linux 3.3
      have the following lines in the OEM upgrade script at
      /etc/fwupgrade.sh
      
      	local append=""
      	local CONF_TAR="/tmp/sysupgrade.tgz"
      	[ -f "$CONF_TAR" ] && append="-j $CONF_TAR"
      
      and
      
      	\# check FWINFO filename
      	[ -z $(ls FWINFO* | grep -i ${modelname}) ] && errcode="1"
      
      This addition also prevents needing to factory reset after flashing
      for some boards that also have these lines in the script
      
      	\# Support downgrade but do default (Smart v2.x.x.x -> senaowrt v1.x.x.x)
      	[ $(ls FWINFO* | grep -i ${modelname} | cut -d "-" -f4 | cut -c 2) -lt 2 ] && append=""
      
      Signed-off-by: default avatarMichael Pratt <mcpratt@pm.me>
      07723492
    • INAGAKI Hiroshi's avatar
      realtek: add support for Panasonic Switch-M8eG PN28080K · e83ab243
      INAGAKI Hiroshi authored
      
      Panasonic Switch-M8eG PN28080K is a 8 + 1 port gigabit switch, based on
      RTL8380M.
      
      Specification:
      
      - SoC		: Realtek RTL8380M
      - RAM		: DDR3 128 MiB (Winbond W631GG8KB-15)
      - Flash		: SPI-NOR 32 MiB (Macronix MX25L25635FMI-10G)
      - Ethernet	: 10/100/1000 Mbps x8 + 1
        - port 1-8	: TP, RTL8218B (SoC)
        - port 9	: SFP, RTL8380M (SoC)
      - LEDs/Keys	: 7x / 1x
      - UART		: RS-232 port on the front panel (connector: RJ-45)
        - 3:TX, 4:GND, 5:GND, 6:RX (pin number: RJ-45)
        - 9600n8
      - Power		: 100-240 VAC, 50/60 Hz, 0.5 A
        - Plug	: IEC 60320-C13
      - Stock OS	: VxWorks based
      
      Flash instruction using initramfs image:
      
      1.  Prepare the TFTP server with the IP address 192.168.1.111
      2.  Rename the OpenWrt initramfs image to "0101A8C0.img" and place it to
          the TFTP directory
      3.  Download the official upgrading firmware (ex: pn28080k_v30000.rom)
          and place it to the TFTP directory
      4.  Boot M8eG and interrupt the U-Boot with Ctrl + C keys
      5.  Execute the following commands and boot with the OpenWrt initramfs
          image
      
          rtk network on
          tftpboot 0x81000000
          bootm
      
      6.  Backup mtdblock files to the computer by scp or anything and reboot
      7.  Interrupt the U-Boot and execute the following commands to re-create
          filesystem in the flash
      
          ffsmount c:/
          ffsfmt c:/
      
          this step takes a long time, about ~ 4 mins
      
      8.  Execute the following commands to put the official images to the
          filesystem
      
          updatert <official image>
      
          example:
      
            updatert pn28080k_v30000.rom
      
          this step takes about ~ 40 secs
      
      9.  Set the environment variables of the U-Boot by the following commands
      
          setenv loadaddr 0xb4e00000
          setenv bootcmd bootm
          saveenv
      
      10: Download the OpenWrt initramfs image and boot with it
      
          tftpboot 0x81000000 0101A8C0.img
          bootm
      
      11: On the initramfs image, download the sysupgrade image and perform
          sysupgrade with it
      
          sysupgrade <imagename>
      
      12: Wait ~ 120 seconds to complete flashing
      
      Note:
      
      - "Switch-M8eG" is a model name, and "PN28080K" is a model number.
        Switch-M8eG has an another (old) model number ("PN28080"), it's not a
        Realtek based hardware.
      
      - Switch-M8eG has a "POWER" LED (Green), but it's not connected to any
        GPIO pin.
      
      - The U-Boot checks the runtime images in the flash when booting and
        fails to execute anything in "bootcmd" variable if the images are not
        exsisting.
      
      - A filesystem is formed in the flash (0x100000-0x1DFFFFF) on the stock
        firmware and it includes the stock images, configuration files and
        checksum files. It's unknown format, can't be managed on the OpenWrt.
        To get the enough space for OpenWrt, move the filesystem to the head
        of "fs_reserved" partition by execution of "ffsfmt" and "updatert".
      
      - On the other devices in the same series of Switch-M8eG PN28080K, the
        INT pin on the PCA9555 is not connected to anywhere.
      
      Back to the stock firmware:
      
      1. Delete "loadaddr" variable and set "bootcmd" to the original value
      
         on U-Boot:
      
           setenv loadaddr
           setenv bootcmd 'bootm 0x81000000'
      
         on OpenWrt:
      
           fw_setenv loadaddr
           fw_setenv bootcmd 'bootm 0x81000000'
      
      2. Perform reset or reboot
      
        on U-Boot:
      
          reset
      
        on OpenWrt:
      
          reboot
      
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      Reviewed-by: default avatarSander Vanheule <sander@svanheule.net>
      e83ab243
    • INAGAKI Hiroshi's avatar
      realtek: enable pca953x driver for rtl838x subtarget · da1347d6
      INAGAKI Hiroshi authored
      
      The system status LED on Panasonic Switch-M8eG PN28080K is connected to
      a PCA9539PW. To use the LED as a status LED of OpenWrt while booting,
      enable the pca953x driver and built-in to the kernel.
      Also enable CONFIG_GPIO_PCA953X_IRQ to use interrupt via RTL83xx GPIO.
      
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      Acked-by: default avatarSander Vanheule <sander@svanheule.net>
      da1347d6
    • Martin Kennedy's avatar
      realtek: add ZyXEL GS1900-24 v1 support · d1a86907
      Martin Kennedy authored
      
      The ZyXEL GS1900-24 v1 is a 24 port switch with two SFP ports, similar to
      the other GS1900 switches.
      
      Specifications
      --------------
      * Device:    ZyXEL GS1900-24 v1
      * SoC:       Realtek RTL8382M 500 MHz MIPS 4KEc
      * Flash:     16 MiB
      * RAM:       Winbond W9751G8KB-25 64 MiB DDR2 SDRAM
      * Ethernet:  24x 10/100/1000 Mbps, 2x SFP 100/1000 Mbps
      * LEDs:
        * 1 PWR LED (green, not configurable)
        * 1 SYS LED (green, configurable)
        * 24 ethernet port link/activity LEDs (green, SoC controlled)
        * 2 SFP status/activity LEDs (green, SoC controlled)
      * Buttons:
        * 1 "RESET" button on front panel (soft reset)
        * 1 button ('SW1') behind right hex grate (hardwired power-off)
      * Power:     120-240V AC C13
      * UART:      Internal populated 10-pin header ('J5') providing RS232;
                   connected to SoC UART through a SIPEX 3232EC for voltage
                   level shifting.
      
      * 'J5' RS232 Pinout (dot as pin 1):
        2) SoC RXD
        3) GND
        10) SoC TXD
      
      Serial connection parameters: 115200 8N1.
      
      Installation
      ------------
      
      OEM upgrade method:
      
      * Log in to OEM management web interface
      
      * Navigate to Maintenance > Firmware > Management
      
      * If "Active Image" has the first option selected, OpenWrt will need to be
        flashed to the "Active" partition. If the second option is selected,
        OpenWrt will need to be flashed to the "Backup" partition.
      
      * Navigate to Maintenance > Firmware > Upload
      
      * Upload the openwrt-realtek-rtl838x-zyxel_gs1900-24-v1-initramfs-kernel.bin
        file by your preferred method to the previously determined partition.
        When prompted, select to boot from the newly flashed image, and reboot
        the switch.
      
      * Once OpenWrt has booted, scp the sysupgrade image to /tmp and flash it:
      
        > sysupgrade /tmp/openwrt-realtek-rtl838x-zyxel_gs1900-24-v1-squashfs-sysupgrade.bin
      
      U-Boot TFTP method:
      
      * Configure your client with a static 192.168.1.x IP (e.g. 192.168.1.10).
      
      * Set up a TFTP server on your client and make it serve the initramfs
        image.
      
      * Connect serial, power up the switch, interrupt U-boot by hitting the
        space bar, and enable the network:
      
        > rtk network on
      
      > Since the GS1900-24 v1 is a dual-partition device, you want to keep the
        OEM firmware on the backup partition for the time being. OpenWrt can
        only be installed in the first partition anyway (hardcoded in the
        DTS). To ensure we are set to boot from the first partition, issue the
        following commands:
      
        > setsys bootpartition 0
        > savesys
      
      * Download the image onto the device and boot from it:
      
        > tftpboot 0x81f00000 192.168.1.10:openwrt-realtek-rtl838x-zyxel_gs1900-24-v1-initramfs-kernel.bin
        > bootm
      
      * Once OpenWrt has booted, scp the sysupgrade image to /tmp and flash it:
      
        > sysupgrade /tmp/openwrt-realtek-rtl838x-zyxel_gs1900-24-v1-squashfs-sysupgrade.bin
      
      Signed-off-by: default avatarMartin Kennedy <hurricos@gmail.com>
      d1a86907
    • John Audia's avatar
      kernel: bump 5.10 to 5.10.104 · 3f5b2d25
      John Audia authored
      
      All patches automatically rebased.
      
      Build system: x86_64
      Build-tested: bcm2711/RPi4B, mt7622/RT3200
      Run-tested: bcm2711/RPi4B, mt7622/RT3200
      
      Signed-off-by: default avatarJohn Audia <graysky@archlinux.us>
      3f5b2d25
    • Joe Mullally's avatar
      ramips: Apply pinctrl DTS changes to TL-WPA8631P · 8d255512
      Joe Mullally authored
      
      Applies changes from 7774b860 to new device committed later. Fix some
      whitespace in the DTS. Use standard model name format in DTS.
      
      Fixes: 6c743c30 ("ramips: Add support for TP-Link TL-WPA8631P v3")
      Signed-off-by: default avatarJoe Mullally <jwmullally@gmail.com>
      Reported-by: default avatarArınç ÜNAL <arinc.unal@arinc9.com>
      8d255512
    • Sven Schwermer's avatar
      ath79: Add LED labels for Airtight C-75 · 591a2b95
      Sven Schwermer authored
      
      Keep labels since OpenWrt userland tooling (get_dt_led) depends on them
      to find the LED instances referenced by the led-* aliases.
      
      The label for the amber power LED was removed in 4eefdc7a.
      
      Signed-off-by: default avatarSven Schwermer <sven@svenschwermer.de>
      591a2b95
    • Chukun Pan's avatar
      ramips: update WLAN MAC address of JCG Y2 · 7fa227ea
      Chukun Pan authored
      
      MAC addresses on OEM firmware:
        04:xx:xx:xx:xx:c8  factory 0x4     wlan2g
        06:xx:xx:xx:xx:c8  [not on flash]  wlan5g
      
      Signed-off-by: default avatarChukun Pan <amadeus@jmu.edu.cn>
      7fa227ea
    • Chukun Pan's avatar
      ramips: update WLAN MAC address of Phicomm K2P · 285e636b
      Chukun Pan authored
      
      The wireless mac address difference of this machine is similar
      to that of D-Link DIR-853-R1, so use the same practice.
      
      Signed-off-by: default avatarChukun Pan <amadeus@jmu.edu.cn>
      285e636b
    • Dawsen Gao's avatar
      ramips: Add support for Dual-Q H721 · b3da44b6
      Dawsen Gao authored
      
      Dual-Q H721 is a router platform board, it is the smaller model of
      the U7621-06.
      
      The device has the following specifications:
      
      MT7621AT (880 MHz)
      256 of RAM (DDR3)
      16 MB of FLASH (MX25l12805d SPI)
      5x 1 Gbps Ethernet (MT7621 built-in switch)
      1x M.2 (NGFF) 3.7V 3A max for 5G M.2 Modem work at USB3.0 mode
      1x Minipcie 3.7V 3A max for LTE Modem work at USB2.0 Mode
      2x Minipcie for WIFI card
      4x Lan+1x Wan 10/100M/1000M RJ45 port
      14x LEDs (1x GPIO-controlled)
      1x reset button
      1x UART header (4-pins)
      1x mico SD-card reader
      1x DC jack for main power (5~27 V)
      
      The following has been tested and is working:
      
      Ethernet switch
      miniPCIe slots (tested with Wi-Fi cards and LTE modem cards)
      miniSIM slot (works with normal size simcard)
      sysupgrade
      reset button
      micro SD-card reader
      
      Installation:
      
      This board has no locked down bootloader. The seller can be asked to
      install openwrt, so upgrades are standard sysupgrade method.
      
      Recovery:
      
      This board contains a Chinese, closed-source bootloader called Breed
      (Boot and Recovery Environment for Embedded Devices). Breed supports web
      recovery and to enter it, you keep the reset button pressed for around
      5 seconds during boot. Your machine will be assigned an IP through DHCP
      and the router will use IP address 192.168.1.1. The recovery website is
      in Chinese, but is easy to use. Click on the second item in the list to
      access the recovery page, then the second item on the next page is where
      you select the firmware. In order to start the recovery, you click the
      button at the bottom.
      
      Signed-off-by: default avatarDawsen Gao <dawsen_gao@163.com>
      [change author name (used SoB one), add ethernet pinctrl,
       apply sorting to device recipe]
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      b3da44b6
  2. Mar 11, 2022
  3. Mar 10, 2022
  4. Mar 09, 2022
    • Dmitry Chigiryov's avatar
      ramips: allow USB power control on TP-Link MR3020v3 · 9d06f1a6
      Dmitry Chigiryov authored
      
      By switching EPHY_LED4_N_JTRST_N from EPHY_LED4_N to GPIO#39
      we can control USB port power an all current revisions of MR3020v3.
      It was not a thing on some first revisions, pin was unused.
      But for now on all current MR3020v3 boards EPHY_LED4_N_JTRST_N pin
      is connected to USB power key.
      Also it was not used as EPHY indicator on any revision of the board.
      
      Signed-off-by: default avatarDmitry Chigiryov <dmitry.chigiryov@ya.ru>
      [changed author address (used SoB one)]
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      9d06f1a6
    • Sungbo Eo's avatar
      ramips: fix DEVICE_VENDOR for unbranded devices · 94d4269e
      Sungbo Eo authored
      
      In commit ee66fe4e ("ramips: convert DEVICE_TITLE to new variables"),
      DEVICE_VENDOR of some unbranded devices were set incorrectly:
      * WR512-3GN is not a dev board from Ralink.
      * "XDX-RN502J" is the whole model name and should be not split.
      
      This patch sets their DEVICE_VENDOR to "Unbranded", and changes their DTS
      model properties accordingly.
      
      Ref: d0bf15f2 ("ramips: add support for A5-V11 board (resubmit)")
      Ref: 9085b05d ("ramips: rt305x: support for wr512-3gn-like routers")
      Ref: 0e486d2f ("ramips: add support for unbranded XDX-RN502J board")
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      94d4269e
    • Kim Namu's avatar
      ramips: mt7621: add support for Zbtlink ZBT-WG1608 · 2876f753
      Kim Namu authored
      
      Zbtlink ZBT-WG1608 is a Wi-Fi router intendent to use with WWAN (4G/5G)
      modems.
      
      Specifications:
      * SoC: MediaTek MT7621A
      * RAM: 256/512 MiB
      * Flash: 16/32 MiB (SPI NOR)
      * Wi-Fi:
        * MediaTek MT7603E : 2.4Ghz
        * MediaTek MT7613BE : 5Ghz
      * Ethernet: 10/100/1000 Mbps Ethernet x5 ports (4xLAN + WAN)
      * M.2: 1x slot with USB&SIM
        * EM7455/EM12-G/EM160R/RM500Q-AE
      * USB: 1x 3.0 Type-A port
      * External storage: 1x microSD (SDXC) slot
      * UART: console (115200 baud)
      * LED:
        * 1 power indicator
        * 1 WLAN 2.4G controlled (wlan 2G)
        * 3 SoC controlled (wlan 5G, wwan, internet)
        * 5 per Eth phy (4xLAN + WAN)
      
      MAC Addresses:
      * LAN    : f8:5e:3c:xx:xx:e0 (Factory, 0xe000 (hex))
      * WAN    : f8:5e:3c:xx:xx:e1 (Factory, 0xe006 (hex))
      * 2.4 GHz: f8:5e:3c:xx:xx:de (Factory, 0x0004 (hex))
      * 5 GHz  : f8:5e:3c:xx:xx:df (Factory, 0x8004 (hex))
      
      Installation:
      * Vendor's firmware is OpenWrt (LEDE) based, so the sysupgrade image can
        be directly used to install OpenWrt. Firmware must be upgraded using the
        'force' and 'do not save configuration' command line options (or
        correspondig web interface checkboxes) since the vendor firmware is from
        the pre-DSA era.
      
      Recovery Mode:
       * Press reset button, power up the device, wait for about 10sec.
       * Upload sysupgrade image through the firmware recovery mode web page at
        192.168.1.1.
      
      Signed-off-by: default avatarKim Namu <namu@theseed.io>
      2876f753
    • Ray Wang's avatar
      ramips: add support for Asus RT-AC1200 · 3c4810fe
      Ray Wang authored
      Asus RT-AC1200 is a 2.4/5GHz dual band AC router,
      based on MediaTek MT7628AN.
      
      Specification:
      * SoC: MT7628AN
      * RAM: DDR2 64 MiB
      * Flash: 16 MiB NOR (W25Q128BV)
      * Wi-Fi:
        * 2.4GHz: SoC Built-in
        * 5GHz: MT7612EN
      * Ethernet: 5x 100Mbps
        * Switch: SoC built-in
      * USB: 1x 2.0
      
      Flash Layout:
       0x0000000-0x0030000 : "bootloader"
       0x0030000-0x0040000 : "nvram"
       0x0040000-0x0050000 : "factory"
       0x0050000-0x1000000 : "firmware"
      
      MAC address:
       LAN: factory 0x28
       WAN: factory 0x22
       2.4G: factory 0x4
       5G: factory 0x8004
      
      Installation via **recovery** mode:
      1. Download the Asus recovery firmware (windows) tool from
         http://dlcdnet.asus.com/pub/ASUS/LiveUpdate/Release/Wireless/Rescue.zip
      
      
      2. Set your ethernet IP manually 192.168.1.5 / 255.255.255.0 with NO
         gateway.
      3. Plug in your ethernet to LAN port 1 on the router.
      4. Load up the recovery software with the firmware file, but don't press
         "Upload" yet.
      5. Plug in the router to power WHILE HOLDING the reset button in. While
         CONTINUING to hold the button, select "Upload" Continue to hold the
         reset button in until it finishes and verifies!
      6. If that doesn't work try pressing "Upload" first just before you do
         step 5. At some point while holding reset the rescue tool will finally
         detect and upload the firmware. That's when you can let go of the
         reset button.
      7. The router will reboot and not much will happen. Wait a minute or 2.
      8. Power off and on the router again. Voila. Set everything your Ethernet
         IP back to DHCP (automatically) and you're good to go.
      
      Revert to stock firmware:
      1. Install stock image via recovery mode.
      
      Tested-by: default avatarIvan Pavlov <AuthorReflex@gmail.com>
      Signed-off-by: default avatarRay Wang <raywang777@foxmail.com>
      3c4810fe
  5. Mar 08, 2022
  6. Mar 07, 2022
    • INAGAKI Hiroshi's avatar
      realtek: add support for I-O DATA BSH-G24MB · 7b197705
      INAGAKI Hiroshi authored
      
      I-O DATA BSH-G24MB is a 24 port gigabit switch, based on RTL8382M.
      
      Specification:
      
      - SoC		: Realtek RTL8382M
      - RAM		: DDR2 128 MiB (Nanya NT5TU128M8HE-AC)
      - Flash		: SPI-NOR 16 MiB (Macronix MX25L12835FM2I-10G)
      - Ethernet	: 10/100/1000 Mbps x24
        - port 1-8	: RTL8218B
        - port 9-16	: RTL8218B (SoC)
        - port 17-24	: RTL8218B
      - LEDs/Keys	: 2x, 1x
      - UART		: pin header on PCB
        - JP2: 3.3V, TX, RX, GND from rear side
        - 115200n8
      - Power		: 100 VAC, 50/60 Hz
        - Plug	: IEC 60320-C13
      
      Flash instruction using sysupgrade image:
      
      1. Boot BSH-G24MB normally
      2. Connect BSH-G24MB to the DHCP enabled network
      3. Find the device's IP address and open the WebUI and login
         Note: by default, the device obtains IP address from DHCP server of
               the network
      4. Open firmware update page ("ファームウェア アップデート")
      5. Rename the OpenWrt sysupgrade image to "bsh-g24mb_v100.image" and
         select it
      6. Press apply ("適用") button to perform update
      7. Wait ~150 seconds to complete flashing
      
      Note:
      
      - BSH-G24MB has a power-related LED ("電源"), but it's not connected to
        the GPIO of the SoC or RTL8231 and cannot be controlled. Instead of
        it, use system status LED on other than running-state.
      
      - "sys_loop" LED indicates system status and loop-detection status in
        stock firmware.
      
      - BSH-G24MB has 2x os-image partitions named as "RUNTIME"/"RUNTIME2" in
        16 MiB SPI-NOR flash and the size of image per partition is only
        6848 KiB. The secondary image is never used on stock firmware, so also
        use it on OpenWrt to get more space.
      
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      7b197705
    • Rafał Miłecki's avatar
      bcm4908: fix init on CFE devices · c45b5abf
      Rafał Miłecki authored
      
      exit in preinit script was stopping whole process
      
      Fixes: 93259e8c ("bcm4908: support "rootfs_data" on U-Boot devices")
      Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
      c45b5abf
  7. Mar 06, 2022
    • Bjørn Mork's avatar
      realtek: net: dsa: configure better brport flags when ports leave the bridge · 0890fb2d
      Bjørn Mork authored
      
      Ensures that the DSA driver sets exactly the same default flags as the
      bridge when a port joins or leaves.  Without this we end up with a
      confusing flag mismatch, where DSA and bridge ports use different sets
      of flags.
      
      This is critical as the "learning" mismatch will be harmful to the
      network, causing all traffic to be flooded on all ports.
      
      The original commit was buggy, trying to set the flags one-by-one in a
      loop.  This was not supported by the API and the end result was that
      all but the last flag were cleared.  This bug was implicitly fixed
      upstream by commit e18f4c18ab5b ("net: switchdev: pass flags and mask
      to both {PRE_,}BRIDGE_FLAGS attributes").
      
      This is a minimum temporary stop measure fix for the critical lack of
      "learning" only.  The major API change associated with a full v5.12+
      backport is neither required nor wanted. A simpler fix, moving the
      call to dsa_port_bridge_flags() out of the loop,  has therefore been
      merged into this modified backport.
      
      Fixes: afa3ab54 ("realtek: Backport bridge configuration for DSA")
      Signed-off-by: default avatarBjørn Mork <bjorn@mork.no>
      Acked-by: default avatarDaniel Golle <daniel@makrotopia.org>
      Tested-by: default avatarStijn Tintel <stijn@linux-ipv6.be>
      [fix typos in commit message]
      Signed-off-by: default avatarStijn Tintel <stijn@linux-ipv6.be>
      0890fb2d
    • INAGAKI Hiroshi's avatar
      ramips: use parser_trx for Buffalo WCR-1166DS · f7f9e6bd
      INAGAKI Hiroshi authored
      Buffalo WCR-1166DS uses trx-fomatted firmware and the custom magic
      number (0x5C436F74, "\Cot") is required for OpenWrt installation from
      OEM WebUI.
      But the current mtdsplit_trx doesn't support the custom magic number and
      fail to parse and split to kernel and rootfs when the factory image is
      flashed. Then, the kernel fails to mount rootfs automatically and panics.
      
      Before the commit fddc78bc, mtdsplit_trx
      was patched in ramips target and the device-specific magic number was
      supported only for WCR-1166DS[1].
      But the patch was not inherited to the later version of the kernel and
      deleted by the above commit, then, the custom magic number support was
      broken.
      
      [1]: https://github.com/openwrt/openwrt/blob/05d6e92594c507dcd1f4be6c1bcb2282fe1abe1f/target/linux/ramips/patches-4.4/0400-mtd-mtdsplit-add-support-for-custom-trx-magic-for-Buffalo-WCR-1166DS.patch#L27
      
      
      
      log (factory image):
      
      [    1.165312] spi-mt7621 10000b00.spi: sys_freq: 193333333
      [    1.195782] spi-nor spi0.0: w25q128 (16384 Kbytes)
      [    1.205353] 7 fixed-partitions partitions found on MTD device spi0.0
      [    1.217938] Creating 7 MTD partitions on "spi0.0":
      [    1.227436] 0x000000000000-0x000000030000 : "u-boot"
      [    1.238427] 0x000000030000-0x000000040000 : "u-boot-env"
      [    1.250123] 0x000000040000-0x000000050000 : "factory"
      [    1.261306] 0x000000050000-0x000000810000 : "firmware"
      [    1.282051] 0x000000810000-0x000000fd0000 : "firmware2"
      [    1.293594] 0x000000fd0000-0x000000fe0000 : "glbcfg"
      [    1.304719] 0x000000fe0000-0x000000ff0000 : "board_data"
      ...
      [    1.452424] /dev/root: Can't open blockdev
      [    1.460619] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
      [    1.475434] Please append a correct "root=" boot option; here are the available partitions:
      [    1.491986] 1f00             192 mtdblock0
      [    1.491989]  (driver?)
      [    1.504938] 1f01              64 mtdblock1
      [    1.504941]  (driver?)
      [    1.517885] 1f02              64 mtdblock2
      [    1.517888]  (driver?)
      [    1.530831] 1f03            7936 mtdblock3
      [    1.530834]  (driver?)
      [    1.543777] 1f04            7936 mtdblock4
      [    1.543781]  (driver?)
      [    1.556724] 1f05              64 mtdblock5
      [    1.556727]  (driver?)
      [    1.569672] 1f06              64 mtdblock6
      [    1.569675]  (driver?)
      [    1.582617] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
      [    1.598976] Rebooting in 1 seconds..
      
      This patch fixes this issue by using parser_trx with specifying custom
      magic number in dts instead of mtdsplit_trx.
      
      log (fixed factory image):
      
      [    1.202044] spi-mt7621 10000b00.spi: sys_freq: 193333333
      [    1.225369] spi-nor spi0.0: w25q128 (16384 Kbytes)
      [    1.235015] 7 fixed-partitions partitions found on MTD device spi0.0
      [    1.247603] Creating 7 MTD partitions on "spi0.0":
      [    1.257106] 0x000000000000-0x000000030000 : "u-boot"
      [    1.269447] 0x000000030000-0x000000040000 : "u-boot-env"
      [    1.281192] 0x000000040000-0x000000050000 : "factory"
      [    1.294208] 0x000000050000-0x000000810000 : "firmware"
      [    1.305774] 2 trx partitions found on MTD device firmware
      [    1.316540] Creating 2 MTD partitions on "firmware":
      [    1.326399] 0x00000000001c-0x000000214754 : "linux"
      [    1.336063] mtd: partition "linux" doesn't start on an erase/write block boundary -- force read-only
      [    1.357070] 0x000000214754-0x0000007c0000 : "rootfs"
      [    1.366994] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
      [    1.386368] mtd: device 5 (rootfs) set to be root filesystem
      [    1.398700] 1 squashfs-split partitions found on MTD device rootfs
      [    1.411027] 0x000000520000-0x0000007c0000 : "rootfs_data"
      [    1.422841] 0x000000810000-0x000000fd0000 : "firmware2"
      [    1.436282] 0x000000fd0000-0x000000fe0000 : "glbcfg"
      [    1.447408] 0x000000fe0000-0x000000ff0000 : "board_data"
      ...
      [    1.611216] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
      
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      f7f9e6bd
    • INAGAKI Hiroshi's avatar
      ramips: switch parser of trx for mt76x8 subtarget · 5403defb
      INAGAKI Hiroshi authored
      
      This patch enable parser_trx and disable mtdsplit_trx for mt76x8
      subtarget.
      The trx format is used only on Buffalo WCR-1166DS in mt76x8 subtarget
      and the parser need to be switched to parser_trx to use the custom magic
      number in the header for WCR-1166DS.
      
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      5403defb
    • INAGAKI Hiroshi's avatar
      kernel: backport patch to allow using parser_trx from ramips · d339de2e
      INAGAKI Hiroshi authored
      
      This patch adds a patch to allow using parser_trx from ramips target,
      mainly for Buffalo devices.
      
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      d339de2e
    • INAGAKI Hiroshi's avatar
      kernel: move parser_trx patches of custom magic to generic · cc49abc0
      INAGAKI Hiroshi authored
      
      This patch moves the patches of parser_trx in mediatek target to
      generic/backport-5.10 to use the changes from ramips target and
      backport the additional patch of the parser.
      
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      cc49abc0
    • INAGAKI Hiroshi's avatar
      ramips: update MAC address configuration for Buffalo WCR-1166DS · 770cfe9b
      INAGAKI Hiroshi authored
      
      This patch converts MAC address configuration of Buffalo WCR-1166DS in
      02_network to use the generic function of OpenWrt. And also, add
      label_mac.
      
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      770cfe9b
    • INAGAKI Hiroshi's avatar
      ramips: increase spi frequency for Buffalo WCR-1166DS · 621d88d7
      INAGAKI Hiroshi authored
      
      Use higher frequency than current and up the speed to access to the
      flash on WCR-1166DS.
      
      Signed-off-by: default avatarINAGAKI Hiroshi <musashino.open@gmail.com>
      621d88d7
    • Joe Mullally's avatar
      ramips: Add support for TP-Link TL-WPA8631P v3 · 6c743c30
      Joe Mullally authored
      
      AV1300 Gigabit Passthrough Powerline ac Wi-Fi Extender
      
      Specifications
      --------------
      * SoC: MediaTek MT7621AT
      * CPU: 880 MHz MIPS 1004KEc dual-core CPU
      * RAM: 64 MiB DDR2 (Zentel A3R12E40DBF-8E)
      * Flash: 8 MiB SPI NOR (GigaDevice GD25Q64CSIG)
      * Ethernet: SoC built-in Switch 5x 1GbE
        * Port 0: PLC (connected through AR8035-A)
        * Port 1-3: LAN
      * WLAN: 2x2 2.4GHz 300 Mbps + 2x2 5GHz 867 Mbps (MT7603EN + MT7613BEN)
      * PLC: HomePlug AV2 (Qualcomm QCA7500)
      * PLC Flash: 2MiB SPI NOR (GigaDevice GD25Q16CSIG)
      * Buttons: Reset, LED, Pair, Wi-Fi
      * LEDs: Power (green), PLC (green/amber), LAN (green), 2.4G (green),
        5G (green)
      * UART: J1 (57600 baud)
        * Pinout: (3V3) (GND) (RX) (TX)
        * Visually identify GND from connection to PCB ground plane
      
      Installation
      ------------
      Installation is possible from the OEM web interface. Make sure to install
      the latest OEM firmware first, so that the PLC firmware is at the latest
      version. However, please first check the OpenWRT Wiki page for
      confirmation that your OEM firmware version is supported.
      
      Signed-off-by: default avatarJoe Mullally <jwmullally@gmail.com>
      6c743c30
  8. Mar 05, 2022
    • Langhua Ye's avatar
      mediatek: add support for Ruijie RG-EW3200GX PRO · ce8a33b0
      Langhua Ye authored
      
      X32 Pro is another product  name for it in the Chinese market.
      
      Specifications:
      - SoC: MT7622B
      - RAM: 256MB
      - Flash: XMC XM25QH128C or Winbond WQ25Q128JVSQ 16MB SPI NOR
      - Ethernet: 5x1GbE
      - Switch: MT7531BE
      - WiFi: 2.4G: MT7622 5G: MT7915AN+MT7975AN
      - 3LEDs: System LED(blue) + Mesh LED(green) + Mesh LED(red)
      - 2Keys: Mesh button + Reset button
      - UART: Marked J19 on board. 3.3v, 115200n1
      - Power: 12V 2.5A
      
      MAC addresses as verified by OEM firmware:
      use   address    source
      WAN   *:F4       ethaddr@product_info
      LAN   *:F5
      5g    *:F6
      2g    *:F7
      
      Flash instruction:
      1. Serve the initramfs.img using a TFTP server with address 10.10.10.3.
      2. Interrupt the uboot startup process via UART.
      3. Select "System Load Linux to SDRAM via TFTP" item.
      4. (important) Back up firmware(mtd7) partitions with:
              dd if=/dev/mtd7 of=/tmp/firmware.bin
         and then download the firmware.bin image via SCP.
      5. Flash the OpenWrt sysupgrade firmware.
      
      Recovery stock firmware:
      1. Transfer the firmware.bin image to the device.
      2. Flash the image with:
              mtd write firmware.bin firmware
      
      Signed-off-by: default avatarLanghua Ye <y1248289414@outlook.com>
      ce8a33b0
    • Langhua Ye's avatar
      kernel: add support for XMC XM25QH128C · df1383f7
      Langhua Ye authored
      The XMC XM25QH128C is a 16MB SPI NOR chip. The patch is verified on Ruijie RG-EW3200GX PRO.
      Datasheet available at https://www.xmcwh.com/uploads/435/XM25QH128C.pdf
      
      
      
      Signed-off-by: default avatarLanghua Ye <y1248289414@outlook.com>
      df1383f7
    • Rui Salvaterra's avatar
      kernel: bump 5.10 to 5.10.103 · 05ed7dc5
      Rui Salvaterra authored
      
      Patches automatically rebased.
      
      Signed-off-by: default avatarRui Salvaterra <rsalvaterra@gmail.com>
      05ed7dc5
Loading