Skip to content
Snippets Groups Projects
  1. Jan 15, 2022
    • 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
  2. Aug 18, 2021
    • Adrian Schmutzler's avatar
      ramips: convert most mtd-mac-address cases in DTSI to nvmem · ba3d92c5
      Adrian Schmutzler authored
      
      Convert most of the cases from mtd-mac-address to nvmem where
      MAC addresses are set in the DTSI, but the partitions are only
      located in the device DTS. This posed some problems earlier, since
      in these cases we are using partitions before they are defined,
      and the nvmem system did not seem to like that.
      
      There have been a few different resolution approaches, based on
      the different tradeoffs of deduplication vs. maintainability:
      
       1. In many cases, the partition tables were identical except for
          the firmware partition size, and the firmware partition was
          the last in the table.
          In these cases, the partition table has been moved to the
          DTSI, and only the firmware partition's "reg" property has
          been kept in the DTS files. So, the updated nvmem definition
          could stay in the DTSI files as well.
      
       2. For all other cases, splitting up the partition table would
          have introduced additional complexity. Thus, the nodes to be
          converted to nvmem have been moved to the DTS files where the
          partitioning was defined.
      
       3. For Netgear EX2700 and WN3000RP v3, the remaining DTSI file
          was completely dissolved, as it was quite small and the name
          was not really nice either.
      
       4. The D-Link DIR-853 A3 was converted to nvmem as well, though
          it is just a plain DTS file not taken care of in the first
          wave.
      
      In addition, some minor rearrangements have been made for tidyness.
      
      Not covered (yet) by this patch are:
      
       * Various unielec devices
       * The D-Link DIR-8xx family
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      ba3d92c5
  3. Oct 02, 2020
    • Adrian Schmutzler's avatar
      ramips: remove model name from LED labels · c846dd91
      Adrian Schmutzler authored
      
      Like in the previous patch for ath79 target, this will remove the
      "devicename" from LED labels in ramips as well.
      
      The devicename is removed in DTS files and 01_leds, consolidation
      of definitions into DTSI files is done where (easily) possible,
      and migration scripts are updated.
      
      For the latter, all existing definitions were actually just
      devicename migrations anyway. Therefore, those are removed and
      a common migration file is created in target base-files. This is
      actually another example of how the devicename removal makes things
      easier.
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      c846dd91
  4. Sep 25, 2020
    • Adrian Schmutzler's avatar
      ramips: move dts-v1 statement to top-level DTSI files · 621297e8
      Adrian Schmutzler authored
      
      The "/dts-v1/;" identifier is supposed to be present once at the
      top of a device tree file after the includes have been processed.
      
      In ramips, we therefore requested to have in the DTS files so far,
      and omit it in the DTSI files. However, essentially the syntax of
      the parent mtxxxx/rtxxxx DTSI files already determines the DTS
      version, so putting it into the DTS files is just a useless repetition.
      
      Consequently, this patch puts the dts-v1 statement into the top-level
      SoC-based DTSI files, and removes all other occurences.
      Since the dts-v1 statement needs to be before any other definitions,
      this also moves the includes accordingly where necessary.
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      621297e8
  5. Apr 12, 2020
    • Chuanhong Guo's avatar
      ramips: replace pinctrl property names · b756ea2a
      Chuanhong Guo authored
      
      Upstream pinctrl driver in drivers/staging uses
      groups/function/ralink,num-gpios instead of
      ralink,group/ralink,function/ralink,nr-gpio
      Replace these properties in dts as well as the pinctrl driver in
      patches-4.14.
      This commit is created using:
      sed -i 's/ralink,group/groups/g'
      sed -i 's/ralink,function/function/g'
      sed -i 's/ralink,nr-gpio/ralink,num-gpios/g'
      
      Signed-off-by: default avatarChuanhong Guo <gch981213@gmail.com>
      b756ea2a
  6. Dec 23, 2019
  7. Sep 28, 2019
  8. Jul 10, 2019
  9. May 17, 2019
    • Kristian Evensen's avatar
      ramips: Add support for ZBT WE826-E · 86937671
      Kristian Evensen authored
      
      ZBT WE826-E is a dual-SIM version of the ZBT WE826. The router has the
      following specifications:
      
      - MT7620A (580 MHz)
      - 128MB RAM
      - 32MB of flash (SPI NOR)
      - 5x 10/100Mbps Ethernet (MT7620A built-in switch)
      - 1x microSD slot
      - 1x miniPCIe slot (only USB2.0 bus)
      - 2x SIM card slots (standard size)
      - 1x USB2.0 port
      - 1x 2.4GHz wifi (rt2800)
      - 10x LEDs (4 GPIO-controlled)
      - 1x reset button
      
      The following have been tested and working:
      - Ethernet switch
      - wifi
      - miniPCIe slot
      - USB port
      - microSD slot
      - sysupgrade
      - reset button
      
      Installation and recovery:
      
      In order to install OpenWRT the first time or recover the router, you
      can use the web-based recovery system. Keep the reset button pressed
      during boot and access 192.168.1.1 in your browser when your machine
      obtains an IP address.  Upload the firmware to start the recovery
      process.
      
      How to swap SIMs:
      
      You control which SIM slot to use by writing 0/1 to
      /sys/class/gpio/gpio13/value. In order for the change to take effect,
      you can either use AT-commands (AT+CFUN) or power-cycle the modem (write
      0/1 to /sys/class/gpio/gpio14/value).
      
      Signed-off-by: default avatarKristian Evensen <kristian.evensen@gmail.com>
      86937671
  10. Apr 14, 2019
    • Eike Feldmann's avatar
      ramips: add support for Rakwireless RAK633 · 9e0fb5a2
      Eike Feldmann authored
      
      It's OEM module with 2*26 pin header, similar to LinkIt Smart 7688 or
      Vocore2.
      
      Specification:
      
      CPU:       MT7628 580 MHz. MIPS 24K
      RAM:       64 MB
      Flash:     8 MB
      WIFI:      802.11n/g/b 20/40 MHz
      USB:       1x Port USB 2.0
      Ethernet:  5 Port ethernet switch
      UART:      2x
      
      Installation: Use the installed uboot Bootloader. Connect a serial cable
      to serialport 0. Turn power on.  Choose the option: "Load system code
      then write to Flash via TFTP".  Choose the local device IP and the TFTP
      server IP and the file name of the system image.  After if the
      Bootloader will copy the image to the local flash.
      
      Notes: The I2C Kernel module work not correctly. You can send and
      receive data. But the command i2cdetect doesn’t work. FS#845
      
      Signed-off-by: default avatarEike Feldmann <eike.feldmann@outlook.com>
      [commit subject and message touches, DTS whitespace fixes, wifi LED
      rename, pinctrl fixes, network settings fixes, lan/wmac mac addresses,
      removed i2c kernel modules]
      Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
      9e0fb5a2
  11. Feb 05, 2019
  12. Nov 26, 2018
    • Mathias Kresin's avatar
      ramips: improve Skylab SKW92A support · 8ec1a66c
      Mathias Kresin authored
      
      Use the generic board detection instead of the target specific one as
      all recent additions are doing.
      
      Add the wireless led according the gpio number from the datasheet.
      Rename the board part of the leds to match the name used for the
      compatible string. Finally, do not hijack the wps led for boot status
      indication longer than necessary.
      
      Merge userspace config into existing cases.
      
      Include the manufacture Name in the dts model string.
      
      Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
      8ec1a66c
    • Russell Senior's avatar
      ramips: add support for Skylab SKW92A in EVB · e42327aa
      Russell Senior authored
      Specifically, SKW92A_E16, described here:
      
        http://www.skylabmodule.com/wp-content/uploads/SkyLab_SKW92A_V1.04_datasheet.pdf
      
      Specification:
      - MediaTek MT7628N/N (580 Mhz)
      - 64 MB of RAM
      - 16 MB of FLASH
      - 2T2R 2.4 GHz
      - 5x 10/100 Mbps Ethernet
      - 2x u.FL
      - Power by micro-USB connector at USB1 on EVB
      - UART via micro-USB connector at USB3 on EVB (57600 8n1)
      - 5x Ethernet LEDs
      - 1x WLAN LEDs
      - 1x WPS LED connected by jumper wire from I2S_CK on J20 to WPS_LED pin hole next
        to daughter board on EVB
      - WPS/Reset button (S2 on EVB)
      - RESET button (S1 on EVB) is *not* connected to RST hole next to daughter board
      
      Flash instruction:
      
      >From Skylab firmware:
      
      1. Associate with SKYLAP_AP
      2. In a browser, load: http://10.10.10.254/
      
      
      3. Username/password: admin/admin
      4. In web admin interface: Administration / Upload Firmware, browse to
         sysupgrade image, apply, flash will fail with a message:
         Not a valid firmware. *** Warning: "/var/tmpFW" has corrupted data!
      5. Telnet to 10.10.10.254, drops you into a root shell with no credentials
      6. # cd /var
      7. # mtd_write -r write tmpFW mtd4
         Unlocking mtd4 ...
         Writing from tmpFW to mtd4 ... [e]
      8. When flash has completed, you will have booted into your firmware.
      
      >From U-boot via TFTP and initramfs:
      
      1. Place openwrt-ramips-mt76x8-skw92a-initramfs-kernel.bin on a TFTP server
      2. Connect to serial console at USB3 on EVB
      3. Connect ethernet between port 1 (not WAN) and your TFTP server (e.g.
         192.168.11.20)
      4. Start terminal software (e.g. screen /dev/ttyUSB0 57600) on PC
      5. Apply power to EVB
      6. Interrupt u-boot with keypress of "1"
      7. At u-boot prompts:
         Input device IP (10.10.10.123) ==:192.168.11.21
         Input server IP (10.10.10.3) ==:192.168.11.20
         Input Linux Kernel filename (root_uImage) ==:openwrt-ramips-mt76x8-skw92a-initramfs-kernel.bin
      8. Move ethernet to port 0 (WAN) on EVB
      9. At new OpenWrt console shell, fetch squashfs-sysupgrade image and flash
         with sysupgrade.
      
      >From U-boot via TFTP direct flash:
      
      1. Place openwrt-ramips-mt76x8-skw92a-squashfs-sysupgrade.bin on a TFTP server
      2. Connect to serial console at USB3 on EVB (57600 8N1)
      3. Connect ethernet between port 1 (not WAN) an your TFTP server (e.g.
         192.168.11.20)
      4. Start terminal software (e.g. screen /dev/ttyUSB0 57600) on PC
      5. Apply power to EVB
      6. Interrupt u-boot with keypress of "2"
      7. At u-boot prompts:
         Warning!! Erase Linux in Flash then burn new one. Are you sure?(Y/N) Y
         Input device IP (10.10.10.123) ==:192.168.11.21
         Input server IP (10.10.10.3) ==:192.168.11.20
         Input Linux Kernel filename (root_uImage) ==:openwrt-ramips-mt76x8-skw92a-squashfs-sysupgrade.bin
      8. When transfer is complete or as OpenWrt begins booting, move ethernet to
         port 0 (WAN).
      
      Signed-off-by: default avatarRussell Senior <russell@personaltelco.net>
      e42327aa
  13. Oct 07, 2018
  14. Aug 04, 2018
  15. Jul 16, 2018
  16. Aug 03, 2017
  17. Mar 24, 2017
  18. Feb 02, 2017
  19. Jan 02, 2017
    • L. D. Pinney's avatar
      ramips: MiWiFi Nano fixes · b28e94d4
      L. D. Pinney authored
      
      Use the the dt-bindings macros and add the reset button.
      
      Set the correct polarity for the LEDs and drop the default state.
      Remove all trigger for the LEDs. According to the manual the LEDs are
      only used to show the operation state, where blue means normal
      operation.
      
      Use the MAC-Addresses stored in EEPROM for the ethernet and the
      wireless interface.
      
      Signed-off-by: default avatarL. D. Pinney <ldpinney@gmail.com>
      [use leds only for boot status indication, add proper commit message]
      Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
      b28e94d4
  20. Jun 03, 2016
  21. May 18, 2016
  22. May 12, 2016
  23. May 10, 2016
  24. Mar 20, 2016
  25. Mar 16, 2016
  26. Feb 28, 2016
  27. Dec 18, 2015
  28. Feb 19, 2015
  29. Feb 09, 2015
  30. Jan 02, 2015
  31. Nov 15, 2014
  32. Nov 06, 2014
  33. Sep 17, 2013
  34. Jul 26, 2013
  35. Jul 24, 2013
  36. Jun 23, 2013
Loading