1. 22 Dec, 2019 23 commits
  2. 20 Dec, 2019 10 commits
    • Sungbo Eo's avatar
      ar71xx: fix MAC address setup for TL-WDR4300 board · 9b02d32e
      Sungbo Eo authored
      
      
      The current ethernet MAC address setup of TL-WDR4300 board is different
      from the setup of stock firmware:
      
      OpenWrt: lan = label_mac -2, wan = label_mac -2
        stock: lan = label_mac,    wan = label_mac +1
      
      This patch applies to all devices using TL-WDR4300 board:
      TL-WDR3600 v1
      TL-WDR4300 v1
      TL-WDR4300 v1 (IL)
      TL-WDR4310 v1
      Mercury MW4530R v1
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      9b02d32e
    • Sungbo Eo's avatar
      ath79: fix MAC address setup for TP-Link TL-WDR3600/TL-WDR4300 · a4260eaa
      Sungbo Eo authored
      
      
      The current ethernet MAC address setup of TL-WDR4300 board is different
      from the setup of stock firmware:
      
      OpenWrt: lan = label_mac -2, wan = label_mac -2
        stock: lan = label_mac,    wan = label_mac +1
      
      The full address assignment is as follows:
      LAN  label
      WAN  label + 1
      5G   label
      2G   label - 1
      
      This patch changes all devices using TL-WDR4300 board:
      TL-WDR3600 v1 (checked on device)
      TL-WDR4300 v1 (checked on device)
      TL-WDR4300 v1 (IL)
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      [rephrase/extend commit title/message]
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      a4260eaa
    • David Bauer's avatar
      ipq40xx: add support for Aruba AP-303 · 102c8c55
      David Bauer authored
      
      
      Hardware
      --------
      
      SoC:   Qualcomm IPQ4029
      RAM:   512M DDR3
      FLASH: - 128MB NAND (Macronix MX30LF1G18AC)
             - 4MB SPI-NOR (Macronix MX25R3235F)
      TPM:   Atmel AT97SC3203
      BLE:   Texas Instruments CC2540T
             attached to ttyMSM0
      ETH:   Atheros AR8035
      LED:   WiFi (amber / green)
             System (red / green)
      BTN:   Reset
      
      To connect to the serial console, you can solder to the labled pads next
      to the USB port or use your Aruba supplied UARt adapter.
      
      Do NOT plug a standard USB cable into the Console labled USB-port!
      Aruba/HPE simply put UART on the micro-USB pins. You can solder yourself
      an adapter cable:
      
      VCC - NC
       D+ - TX
       D- - RX
      GND - GND
      
      The console setting in bootloader and OS is 9600 8N1. Voltage level is
      3.3V.
      
      To enable a full list of commands in the U-Boot "help" command, execute
      the literal "diag" command.
      
      Installation
      ------------
      
      1. Get the OpenWrt initramfs image. Rename it to ipq40xx.ari and put it
         into the TFTP server root directory. Configure the TFTP server to
         be reachable at 192.168.1.75/24. Connect the machine running the TFTP
         server to the ethernet port of the access point.
      
      2. Connect to the serial console. Interrupt autobooting by pressing
         Enter when prompted.
      
      3. Configure the bootargs and bootcmd for OpenWrt.
         $ setenv bootargs_openwrt "setenv bootargs console=ttyMSM1,9600n8"
         $ setenv nandboot_openwrt "run bootargs_openwrt; ubi part aos1;
           ubi read 0x85000000 kernel; bootm 0x85000000"
         $ setenv ramboot_openwrt "run bootargs_openwrt;
           setenv ipaddr 192.168.1.105; setenv serverip 192.168.1.75;
           netget; set fdt_high 0x87000000; bootm"
         $ setenv bootcmd "run nandboot_openwrt"
         $ saveenv
      
      4. Load OpenWrt into RAM:
         $ run ramboot_openwrt
      
      5. After OpenWrt booted, transfer the OpenWrt sysupgrade image to the
         /tmp folder on the device.
      
      6. Flash OpenWrt:
         $ ubidetach -p /dev/mtd1
         $ ubiformat /dev/mtd1
         $ sysupgrade -n /tmp/openwrt-sysupgrade.bin
      
      To go back to the stock firmware, simply reset the bootcmd in the
      bootloader to the original value:
      
        $ setenv bootcmd "boot"
        $ saveenv
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      102c8c55
    • David Bauer's avatar
      ipq-wifi: add BDF for Aruba AP-303 · 4113d8a2
      David Bauer authored
      
      
      The BDF originates from the vendor-firmware.
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      4113d8a2
    • Sungbo Eo's avatar
      ramips: fix USB LED for Belkin F9K1109v1 · 1f455418
      Sungbo Eo authored
      Device support for Belkin F9K1109v1 was added using set_usb_led()
      although this was removed in 772b27c2 ("ramips: set F5D8235 v1
      usb led trigger via devicetree").
      
      Use ucidef_set_led_usbport() instead.
      
      Fixes: f2c83532
      
       ("ramips: add support for Belkin F9K1109v1")
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      [rephrase commit title and message]
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      1f455418
    • Rafał Miłecki's avatar
      fstools: update to latest git HEAD · 4ebc9dc9
      Rafał Miłecki authored
      
      
      111a43f libblkid-tiny: vfat: Change parsing label in special cases
      f43a1aa libblkid-tiny: vfat: Fix reading labels which starts with byte 0x05
      157924d libblkid-tiny: add blkid_probe_set_id_label() stub
      0c5761f libblkid-tiny: use separated buffer for each block device read
      b82c5c1 libblkid-tiny: add functions for allocating & freeing probe struct
      12851d6 blockd: don't flush devices list on "hotplug" call
      5ea47fe blockd: fix vlist memory corruption
      Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
      4ebc9dc9
    • Adrian Schmutzler's avatar
      sunxi: rename SUNXI_SOC to SOC · b085e058
      Adrian Schmutzler authored
      
      
      This replaces SUNXI_SOC by the newly introduced common SOC device
      variable.
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      b085e058
    • Adrian Schmutzler's avatar
      ramips: rename MTK_SOC to SOC · 58e71e32
      Adrian Schmutzler authored
      
      
      This replaces MTK_SOC by the newly introduced common SOC device
      variable.
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      58e71e32
    • Adrian Schmutzler's avatar
      ath79: rename ATH_SOC to SOC · 95030ac0
      Adrian Schmutzler authored
      
      
      This replaces ATH_SOC by the newly introduced common SOC device
      variable.
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      95030ac0
    • Adrian Schmutzler's avatar
      build: image: add SOC device variable · bc3783d2
      Adrian Schmutzler authored
      
      
      This creates the device variable SOC and adds it to DEFAULT_DEVICE_VARS.
      
      It is supposed to replace target-specific SOC variables like ATH_SOC or
      MTK_SOC and thus unify variable names across targets.
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      bc3783d2
  3. 19 Dec, 2019 7 commits
    • Adrian Schmutzler's avatar
      ath79: harmonize line breaks in image Makefiles · 0757f7fe
      Adrian Schmutzler authored
      
      
      This harmonizes the line wrapping in image Makefile device
      definitions, as those are frequently copy-pasted and are a common
      subject of review comments. Having the treatment unifying should
      reduce the cases where adjustment is necessary afterwards.
      
      Harmonization is achieved by consistently (read "strictly")
      applying certain rules:
      - Never put more than 80 characters into one line
      - Fill lines up (do not break after 40 chars because of ...)
      - Use one tab for indent after wrapping by "\"
      - Only break after pipe "|" for IMAGE variables
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      0757f7fe
    • Adrian Schmutzler's avatar
      ramips: harmonize line breaks in image Makefiles · e417ff88
      Adrian Schmutzler authored
      
      
      This harmonizes the line wrapping in image Makefile device
      definitions, as those are frequently copy-pasted and are a common
      subject of review comments. Having the treatment unifying should
      reduce the cases where adjustment is necessary afterwards.
      
      Harmonization is achieved by consistently (read "strictly")
      applying certain rules:
      - Never put more than 80 characters into one line
      - Fill lines up (do not break after 40 chars because of ...)
      - Use one tab for indent after wrapping by "\"
      - Only break after pipe "|" for IMAGE variables
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      e417ff88
    • Petr Štetiar's avatar
      uci: update to latest Git HEAD · b70052c6
      Petr Štetiar authored
      
      
      165b44413145 uci: Fix extra semicolons warnings
      66264ed9ec9e cmake: add more hardening compiler flags
      cca6f105fae2 libuci: refactor uci_get_errorstr
      750b046eb77f tests: cram: Lua: add test case for uci_get_errorstr
      654d7c33da28 lua: add missing forward declaration
      03dfbbe6fef7 cli: fix format string clang-10 warning
      Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
      b70052c6
    • Karl Palsson's avatar
      uboot-envtools: ath79: fix missing etactica eg200 support · 34466afb
      Karl Palsson authored
      Was inadvertantly missed from the inital forward port from ar71xx to
      ath79.
      
      Fixes: 1588114c
      
       ("ath79: add etactica-eg200 support")
      Signed-off-by: default avatarKarl Palsson <karlp@etactica.com>
      [commit description/subject facelift]
      Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
      34466afb
    • Paul Fertser's avatar
      ath79-tiny: enable 4k sectors · 05d35403
      Paul Fertser authored
      
      
      This enables using 4kiB sectors as erase blocks for 4MiB NOR flash ICs
      that support it.
      
      Writeable jffs2 overlay used to store settings requires a partition with
      at least 5 erase blocks, so using small sectors is essential for devices
      with 4MiB flash.
      
      Sysupgrading a device running firmware without this feature will likely
      not allow to preserve configs automatically but since ath79 is
      considered to be in a "technology preview" state it shouldn't be a
      problem.
      Signed-off-by: default avatarPaul Fertser <fercerpav@gmail.com>
      05d35403
    • Paul Fertser's avatar
      ath79: add D-Link DIR-615 E4 · b14e529d
      Paul Fertser authored
      Specifications:
      
      - FCC ID: KA2IR615E3
      - SoC: MIPS32 24K 400 MHz Atheros AR7240
      - RAM: 32 MiB DDR SDRAM ESMT M13S2561616A-5T
      - Flash: 4 MiB NOR SPI Macronix MX25L3208E
      - Wireless: AR9287 2.4 GHz 802.11n 2T2R, 2x RP-SMA connectors
      - Ethernet: 5x 100BASE-TX Fast Ethernet
      - LEDs: 9x GPIO, 1x ath9k
      - Buttons: 2x tactile switches
      - UART: 3.3 V, 115200 8n1
      - USB: simple hardware modification required, 1x USB 1.1 Full Speed
      
      Partitioning notes:
      
      Vendor firmware (based on CameoAP99) defines two additional partitions:
      "mac" @0x3b0000, size 0x10000 and "lp" @0x3c0000, size 0x30000.
      
      The "mac" partition stores LAN MAC address and hardware board name.
      However, the vendor firmware uses addresses from "nvram" partition, and
      the board name is used only for informational purposes in the Web
      interface (included in the pages' header), not affecting the firmware
      image check.
      
      The "lp" partition is supposed to contain a "language pack" (which can
      be used to add an additional language support to the Web interface) and
      is flashed separately, using the vendor firmware upgrade page.
      
      Since these partitions are absolutely useless for OpenWrt and
      overwriting them doesn't prevent downgrading to obsolete vendor
      firmware, this patch appends the valueable space to "firmware".
      
      Installation instructions:
      
      - Upgrade from OpenWrt ar71xx with "sysupgrade -f -n"
      or
      - Upload as a firmware update via the vendor Web-interface
      or
      - Connect UART and use "loady" to upload and run OpenWrt initramfs
        image, then sysupgrade from it (TFTP client doesn't work)
      or
      - Before powering up hold "reset" button and keep it pressed for about
        15 seconds after, then access fail safe Web server on 192.168.0.1 (the
        old uIP TCP/IP protocol stack is not compatible with modern Linux, the
        kernel, so you'll need to use some other OS to do this). Can be
        performed without a Web-browser too:
          curl http://192.168.0.1/cgi/index
      
       \
            -F Send=@openwrt-ath79-tiny-dlink_dir-615-e4-squashfs-factory.bin
      Signed-off-by: default avatarPaul Fertser <fercerpav@gmail.com>
      b14e529d
    • Michal Cieslakiewicz's avatar
      ath79: enable all space on Netgear ar9344-based WNDR routers · ad6c6361
      Michal Cieslakiewicz authored
      
      
      Netgear WNDR routers (AR9344 models) like WNDR4300 have 128 MiB of flash
      memory but only first 32 MiB are used now - both by vendor's firmware and
      OpenWrt. This patch concatenates two regions of flash memory: ubi part
      of firmware partition and reserved (unused) space beyond 'caldata_backup'
      while preserving ART backup. No data is wiped or moved away.
      This increases area for OS ubi volumes from 23 to 119 Megabytes.
      Signed-off-by: default avatarMichal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
      ad6c6361