Skip to content
Snippets Groups Projects
  1. Mar 10, 2019
    • Danijel Tudek's avatar
      lantiq: add support for AVM FRITZ!Box 7362 SL · eae6cac6
      Danijel Tudek authored
      
      Hardware:
      - SoC: Lantiq VRX288
      - RAM: Winbond W971GG6JB 1 Gb (128 MiB)
      - Flash:
        - SPI: 8 Mb (1 MiB) for bootloader and tffs
        - NAND: 1 Gb (128 MiB) for OS
      - xDSL: Lantiq VRX208
      - WLAN: Atheros AR9381
      - DECT: Dialog Semiconductors SC14441
      
      Everything except FXS/DECT works
      (no drivers for AVM's FXS implementation with SC14441).
      
      Installation via FTP:
      1. Use scripts/flashing/eva_ramboot.py to send initramfs-kernel.bin
      to the device when powering on.
      Standard AVM procedures with finding the correct IP address and
      the right moment to open FTP apply here (approx. 4 seconds on 7362SL).
      IMPORTANT: set lzma compression in ramdisk options, bootloader stalls
      when receiving uncompressed images.
      
      2. Transfer sysupgrade.bin image with scp to /tmp directory
      and run sysupgrade
      
      3. First boot might take a bit longer if linux_fs_start was set to 1,
      in that case the device will reboot twice, first time it will fail to load
      second kernel (overwritten by ubifs), set linux_fs_start to 0 and reboot.
      
      OpenWrt uses the entire NAND flash. Kernel uses 4 MiB and rootfs uses
      the rest of 124 MiB, overwriting everything related to FRITZ!OS - both
      OS images, config and answering machine/media server data.
      To return to FRITZ!OS, use AVM's recovery image.
      
      Signed-off-by: default avatarDanijel Tudek <danijel.tudek@gmail.com>
      eae6cac6
    • Danijel Tudek's avatar
      lantiq: move common FRITZ736X bits into dtsi · 5026f435
      Danijel Tudek authored
      
      Move common FRITZ736X bits into dtsi file
      as a preparation for FRITZ7362SL support.
      
      Signed-off-by: default avatarDanijel Tudek <danijel.tudek@gmail.com>
      5026f435
    • Andy Binder's avatar
      lantiq: add support for AVM FRITZ!Box 7412 · 20f48c8a
      Andy Binder authored
      
      Hardware:
      
      SoC: Lantiq VRX 220
      CPU Cores: 2x MIPS 34Kc at 500 MHz
      RAM: 128 MiB 250 MHz
      Storage: 128 MiB NAND flash
      Ethernet: built-in Fast Ethernet switch, only port 2 is used
      Wireless: Atheros AR9287-BL1A b/g/n with 2 pcb antennas
      Modem: built-in A/VDSL2 modem
      DECT: Dialog SC14441
      LEDs: 1 two-color, 4 one-color
      Buttons: 2
      FXS: 1 port via TAE or RJ12 connector
      Everything except FXS/DECT works
      (no drivers for AVM's FXS implementation with SC14441).
      
      Installation:
      
      Use the eva_ramboot.py script to load an initramfs image on the
      device. Run it a few seconds after turning the device on.
      $ scripts/flashing eva_ramboot 192.168.178.1 bin/targets/lantiq/xrx200/openwrt-lantiq-xrx200-avm_fritz7412-initramfs-kernel.bin
      If it fails to find the device try the ip address 169.254.120.1.
      (Firmware updates or the recovery tool apparently change it.)
      
      IMPORTANT: set lzma compression in ramdisk options, bootloader stalls
      when receiving uncompressed images.
      
      The device will load it in ram and boot it. You can reach it under
      the openwrt default ip address 192.168.1.1.
      
      Check if the key linux_fs_start is not set to 1 in tffs:
      $ fritz_tffs_nand -d /dev/mtd1 -n linux_fs_start
      If it is set to 1, the bootloader will select the wrong set of
      partitions. Restart the box and install an FritzOS upgrade or do a
      recovery. Afterwards start again at step 1.
      
      Run sysupgrade to persistently install OpenWRT.
      
      Signed-off-by: default avatarValentin Spreckels <Valentin.Spreckels@Informatik.Uni-Oldenburg.de>
      Signed-off-by: default avatarAndy Binder <AndyBinder@gmx.de>
      20f48c8a
  2. Mar 06, 2019
    • Christian Lamparter's avatar
      lantiq: enlarge ZyXEL P-2812HNU-F1 kernel partition (FS#2124) · 33727ece
      Christian Lamparter authored
      The current snapshot release kernel with it's 2119245 Byte
      size is too big to fit into the 2097152 (2MiB) area that
      was set aside for the kernel. Which causes the device to
      fail to boot (after an update or even during a fresh install)
      
       NAND read: device 0 offset 0x60000, size 0x200000
        2097152 bytes read: OK
       ## Booting kernel from Legacy Image at 80800000 ...
          Image Name:   MIPS OpenWrt Linux-4.14.98
          Created:      2019-02-13   9:37:36 UTC
          Image Type:   MIPS Linux Kernel Image (lzma compressed)
          Data Size:    2119245 Bytes = 2 MiB
          Load Address: 80002000
          Entry Point:  80002000
          Verifying Checksum ... Bad Data CRC
       ERROR: can't get kernel image!
      
      This patch fixes the problem by enlarging the kernel partition
      at the cost of the ubi/data partition behind it. The patch
      also adds a KERNEL_SIZE variable to the image Makefile to
      prevent silent corruptions from happening in the future.
      
      Please note: The u-boot environment for the router also
      needs to be updated. So please attach an appropriate
      serial converter cable and enter the following commands
      into the u-boot prompt:
      
       setenv nboot 'nand read 0x80800000 0x60000 0x300000; bootm 0x80800000'
       saveenv
      
      The wiki has been updated accordingly:
      <https://openwrt.org/toh/zyxel/p2812hnu-f1
      
      >
      
      Fixes: FS#2124
      Suggested-by: Mafketel (User on bugs.openwrt.org)
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      33727ece
  3. Jan 26, 2019
  4. Dec 17, 2018
    • Petr Štetiar's avatar
      treewide: dts: Remove default-state=off property from all gpio LED nodes · 0d23fd2a
      Petr Štetiar authored
      
      >From the Documentation/devicetree/bindings/leds/common.txt:
      
      - default-state : The initial state of the LED. Valid values are "on", "off",
        and "keep". If the LED is already on or off and the default-state property is
        set the to same value, then no glitch should be produced where the LED
        momentarily turns off (or on). The "keep" setting will keep the LED at
        whatever its current state is, without producing a glitch.  The default is
        off if this property is not present.
      
      So setting the default-state of the LEDs to `off` is redundant as `off`
      is default LED state anyway. We should remove it as almost every new
      PR/patch submission contains this property by default which seems to be
      just copy&paste from some DTS file already present in the tree.
      
      Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
      0d23fd2a
  5. Nov 26, 2018
  6. Aug 27, 2018
  7. Aug 16, 2018
    • Mathias Kresin's avatar
      lantiq: add support for upgrade led · c9e9a787
      Mathias Kresin authored
      
      Indicate a (sys)upgrade via leds as well. It brings the lantiq diag.sh
      script en par with the other implementations using devicetree aliases
      to define multiple leds for boot status indication.
      
      By default, use the boot finished led to indicate an upgrade for now.
      
      Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
      c9e9a787
  8. Jul 18, 2018
    • Johann Neuhauser's avatar
      lantiq: add support for FritzBox 7312 · 02d53e6a
      Johann Neuhauser authored
      
      The FritzBox 7312 is also known as 1&1 WLAN-MODEM. The device is almost
      the same as FB7330, but only one ETH-Port and no USB.
      
      Hardware
      SoC: Lantiq Xway ARX188 PSB 50812 EL
      RAM: 64MB DDR1 (Zentel A4S12D40FTP-G5)
      Ethernet: Atheros 8030
      Wireless: Atheros AR9227 b/g/n 2x2
      DSL: Lantiq ADSL2+
      DECT: Dialog SC14441
      Buttons: WiFi, DECT
      LEDs: Power/DSL, Fon, DECT, WLAN, Info
      
      LEDs
      Power: GPIO#44 (active low)
      Internet: GPIO#47 (active low)
      DECT: GPIO#38 (active low)
      WLAN: GPIO#37 (active low)
      Info: GPIO#35 (active low)
      
      The Fon LED is labeled as internet in avm gpl sources.
      
      Buttons
      WLAN: GPIO#1 (active low)
      DECT: GPIO#2 (active low)
      
      Phy
      GPIO#03: 25 MHz
      GPIO#34: Reset (active low)
      GPIO#39: Int
      GPIO#42: MII MDIO
      GPIO#43: MII MDC
      
      PCIe
      GPIO#21: reset (active low)
      
      Installation:
      
      To install OpenWrt via Eva bootloader, within the first seconds after
      power on a ftp connection need to be established to the FRITZ!Box at
      192.168.178.1 and the the following ftp commands need to be run:
      
        ftp> quote USER adam2
        ftp> quote PASS adam2
        ftp> binary
        ftp> debug
        ftp> passive
        ftp> quote MEDIA FLSH
        ftp> put /path/to/openwrt-lantiq-xway-avm_fritz7312-squashfs-sysupgrade.bin mtd1
        ftp> quote REBOOT
      
      Signed-off-by: default avatarJohann Neuhauser <johann@it-neuhauser.de>
      02d53e6a
  9. Jul 03, 2018
    • Michael Kuron's avatar
      lantiq: enlarge AVM Fritz!Box 3370 flash · d0b89e48
      Michael Kuron authored
      
      Increase the available flash memory size in AVM Fritz!Box 3370 by
      incorporating the unused extra partitions located after the ubi partition.
      
      Note that users upgrading from a previous OpenWRT version need to
      re-install from the boot loader to pick up the new partition layout.
      
      Available flash space for rootfs+overlay increases from 48MB to 124MB.
      
      Reverting to the OEM firmware is still possible (via the recovery utility
      provided by AVM) as the OEM firmware appears to reformat the config and
      nand-filesystem partitions upon first boot if necessary. The
      reserved-kernel and reserved-filesystem partitions are overwritten by the
      OEM firmware when installing an update, so their contents do not matter.
      
      Boot loader and device-specific information (MAC addresses, calibration
      data, etc.) are not located in NAND flash and remain unharmed by this
      changed.
      
      Tested with OEM firmware 06.54 on device with HWRevision 5 and Micron
      flash chip.
      
      Signed-off-by: default avatarMichael Kuron <m.kuron@gmx.de>
      d0b89e48
  10. May 17, 2018
    • Mathias Kresin's avatar
      lantiq: kernel 4.14: use vbus-supply devicetree property · d8b47521
      Mathias Kresin authored
      
      It isn't a phy supply, as the phy is still up if the GPIO is low. It
      rather is the supply for the vbus. A correct setting/definition will be
      relevant as soon as USB peripheral mode is supported.
      
      Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
      d8b47521
    • Mathias Kresin's avatar
      lantiq: complete AVM FRITZ!Box 3370 support · 0b62fe5e
      Mathias Kresin authored
      
      Rename the image and use a compatible string which indicates that only
      hardware revision 2 and higher is supported.
      
      It allows to use the wireless LED, as HWRev 1 uses GPIO#39 for the
      wireless LED and starting with HWRev 2 GPIO#35 is used for the wireless
      LED and GPIO#39 for IFX_GPIO_MODULE_EXTPHY_MDIO.
      
      The HWREV can be checked by connecting to the fritzbox right after power
      on via ftp:
      
        ftp> quote GETENV HWSubRevision
      
      Within the same HW revision 5 of the Fritz!Box 3370 different NAND flash
      chips are used. Usually it isn't a big deal but depending on the used
      NAND flash chip, the ECC calculation is done different (and incompatible
      of course).
      
      Boards with a Micron MT29F1G08ABADA NAND flash chip are using the NAND
      chip to calculate the ECC (on-die). Boards with a Hynix HY27UF081G2M NAND
      flash chip are doing the ECC calculation in software.
      
      Supporting both with a single DTS isn't possible. It might be possible
      to add a patch selecting the ECC mode dynamicaly based on the found NAND
      flash chip. But such a patch has no chance to get accepted upstream and
      most likely need to be touched with every kernel update.
      
      Instead two images are created. One for Micron NAND flash chip and one
      for Hynix NAND flash chip. So far no pattern is known to identify the
      used flash chip without opening the box.
      
      Add the power off GPIO. At least EVA version 2186 sets/keeps the GPIO as
      input, which will cause a reboot 30sec after power on. For boards with
      EVA version 2186 the installation is tricky as it has to be finished
      within the 30sec time frame.
      
      The EVA version can be checked by connecting to the fritzbox right after
      power on via ftp:
      
        ftp> quote GETENV urlader-version
      
      The ath9k eeprom/caldata is at a different and offset and stored in
      reverse order (from the last byte to the beginning) on the flash.
      Reverse the bits to bring the data into the format expected by the
      ath9k driver.
      
      Since the ath9k eeprom is stored in reverse order on flash, we can not
      use the mac address from the on flash eeprom. Get the MAC address from
      the tffs instead.
      
      Within the same HW revision 5 of the Fritz!Box 3370 both version of the
      vr9 SoC are used. During preparation of kernel 4.14 support, all
      devicetree source files were changed to load the vr9 v1.1 and vr9 v1.2
      gphy firmware, which fixed the embedded phys for boards using the
      version 1.2 of the vr9 SoC.
      
      While at it, add a trigger to make use of the LAN LED. Setup the
      build-in switch and add a hint for LuCI two show the ports in order
      matching the labels on the case
      
      Add support for the second USB port and provide the volatage GPIOs. Use
      GPIO#21 as PCIe reset pin. The lan led is connected to GPIO#38.
      
      Name the rootfs partition ubi and remove the mtd/rootfs related kernel
      bootargs to use the OpenWrt autoprobing based on the partition name.
      
      Enable sysupgrade support to allow an upgrade from a running system.
      Since sysupgrade wasn't supported till now, drop image build code which
      was added to allow a sysupgrade from earlier OpenWrt versions.
      
      Build images that allow an (initial) installation via EVA bootloader.
      
      To install OpenWrt via Eva bootloader, within the first seconds after
      power on a ftp connection need to be established to the FRITZ!Box at
      192.168.178.1 and the the following ftp commands need to be run:
      
        ftp> quote USER adam2
        ftp> quote PASS adam2
        ftp> binary
        ftp> debug
        ftp> passive
        ftp> quote SETENV linux_fs_start 0
        ftp> quote MEDIA FLSH
        ftp> put /path/to/openwrt-lantiq-xrx200-FRITZ3370-eva-kernel.bin mtd1
        ftp> put /path/to/openwrt-lantiq-xrx200-FRITZ3370-eva-filesystem.bin mtd0
      
      Signed-off-by: default avatarAndrea Merello <andrea.merello@gmail.com>
      Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
      0b62fe5e
  11. Apr 04, 2018
  12. Mar 06, 2018
  13. Feb 20, 2018
Loading