Permalink
Commits on Aug 16, 2018
  1. util-linux: Update to 2.32.1

    diizzyy authored and dedeckeh committed Aug 12, 2018
    Update util-linux to 2.32.1
    For release notes see https://lwn.net/Articles/759922/
    
    Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
    Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
  2. ath79: add support for I-O DATA WN-AC1167DGR

    musashino205 authored and mkresin committed Aug 16, 2018
    I-O DATA WN-AC1167DGR is a 2.4/5 GHz band 11ac router, based on
    Qualcomm Atheros QCA9557.
    
    Specification:
    
    - Qualcomm Atheros QCA9557
    - 128 MB of RAM (DDR2)
    - 16 MB of Flash (SPI)
    - 2T2R 2.4/5 GHz wifi
      - 2.4 GHz: SoC internal
      - 5 GHz: QCA988x
    - 5x 10/100/1000 Mbps Ethernet
    - 6x LEDs, 6x keys (4x buttons, 1x slide switch)
    - UART header on PCB
      - Vcc, GND, TX, RX from ethernet port side
      - 115200n8
    
    Flash instruction using factory image:
    
    1. Connect the computer to the LAN port of WN-AC1167DGR
    2. Connect power cable to WN-AC1167DGR and turn on it
    3. Access to "http://192.168.0.1/" and open firmware update page
    ("ファームウェア")
    4. Select the OpenWrt factory image and click update ("更新") button
    5. Wait ~150 seconds to complete flashing
    
    Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
  3. ath79: fix leds and network for TP-Link TL-WR841 v9/v11

    juppin authored and mkresin committed Aug 16, 2018
    Adding tl-wr841-v11 and the rename of tl-wr841n-v9 to tl-wr841-v9 in 01_leds
    and 02_network script files are missing in commits cc35c91 and 8db6522.
    
    Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
    [merged with identical case in 02_network]
    Signed-off-by: Mathias Kresin <dev@kresin.me>
  4. ath79: don't use the pcs,cr5000 wps led as usb led

    mkresin committed Aug 16, 2018
    If it isn't a usb led, it shouldn't be used as one by default. It is up
    to the user to add such a (mis)configuration for the board.
    
    Signed-off-by: Mathias Kresin <dev@kresin.me>
  5. ath79: add support for TP-Link MR-3040 v2

    hanipouspilot authored and mkresin committed Aug 13, 2018
    Add support for the ar71xx supported TP-Link MR-3040 v2.
    
    Signed-off-by: Dmitry Tunin <hanipouspilot@gmail.com>
  6. ath79: add support for Buffalo WHR-G301N

    musashino205 authored and mkresin committed Aug 14, 2018
    Buffalo WHR-G301N is a 2.4 GHz 11n router, based on Atheros AR7240.
    Ported from ar71xx target.
    
    Specification:
    
    - Atheros AR7240
    - 32 MB of RAM
    - 4 MB of Flash
    - 2.4 GHz 2T2R wifi
    - 5x 10/100 Mbps Ethernet
    - 9x LEDs, 4x keys
      - LED: 8x gpio-leds, 1x ath9k-leds
      - key: 2x buttons, 1x slide switch
    - UART header on PCB
      - Vcc, GND, TX, RX from LEDs side
      - 115200n8
    
    Flash instruction using factory image:
    
    1. Connect the computer to the LAN port of WHR-G301N
    2. Connect power cable to WHR-G301N and turn on it
    3. Access to "http://192.168.11.1/" and open firmware update page
    ("ファーム更新")
    4. Select the OpenWrt factory image and click execute ("実行") button
    5. Wait ~150 seconds to complete flashing
    
    Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
    [fix the SUPPORTED_DEVICES to be compatible with the ar71xx image]
    Signed-off-by: Mathias Kresin <dev@kresin.me>
  7. lantiq: add support for upgrade led

    mkresin committed Aug 15, 2018
    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: Mathias Kresin <dev@kresin.me>
  8. treewide: drop unused get_status_led functions

    mkresin committed Aug 15, 2018
    The function isn't used for targets getting the status leds from the
    devicetree.
    
    Signed-off-by: Mathias Kresin <dev@kresin.me>
  9. treewide: fix upgrade led handling

    mkresin committed Aug 15, 2018
    The upgrade led is only used if a running led is defined. If no running
    led is defined, the upgrade led is ignored and upgrade isn't indicated
    at all.
    
    Instead, turn off the running led prior to turning the upgrade led on.
    In most cases there isn't any visual change, but it allows to use an
    independent led for upgrade indication.
    
    Signed-off-by: Mathias Kresin <dev@kresin.me>
  10. treewide: consolidate upgrade state set

    mkresin committed Aug 15, 2018
    Set the (sys)upgrade state when sourcing the stage2 script instead of
    setting the state for each target individual.
    
    This change fixes the, due to a missing state set, not working upgrade
    led on ath79 and apm821xx.
    
    Signed-off-by: Mathias Kresin <dev@kresin.me>
  11. ramips: mt7620: fix bad indent

    mkresin committed Aug 15, 2018
    Fix the indent to make the make it obvious which condition is the
    parent of the loop.
    
    Signed-off-by: Mathias Kresin <dev@kresin.me>
  12. cns3xxx: fix mtu setting with kernel 4.14

    mkresin committed Feb 18, 2018
    Since kernel 4.10 commit 61e84623ace3 ("net: centralize net_device
    min/max MTU checking"), the range of mtu is [min_mtu, max_mtu], which
    is [68, 1500] by default.
    
    It's necessary to set a max_mtu if a mtu > 1500 is supported.
    
    Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
    Signed-off-by: Mathias Kresin <dev@kresin.me>
  13. rpcd: update to latest git HEAD

    jow- committed Aug 16, 2018
    41333ab uci: tighten uci reorder operation error handling
    f91751b uci: tighten uci delete operation error handling
    c2c612b uci: tighten uci set operation error handling
    948bb51 uci: tighten uci add operation error handling
    51980c6 uci: reject invalid section and option names
    
    Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Commits on Aug 15, 2018
  1. openssl: update to version 1.0.2p

    hauke committed Aug 15, 2018
    This fixes the following security problems:
     * CVE-2018-0732: Client DoS due to large DH parameter
     * CVE-2018-0737: Cache timing vulnerability in RSA Key Generation
    
    Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
  2. kernel: bump kernel 4.9 to version 4.9.120

    hauke committed Aug 15, 2018
    The following patch was integrated upstream:
     * target/linux/generic/backport-4.9/500-ext4-fix-check-to-prevent-initializing-reserved-inod.patch
    
    This fixes tries to work around the following security problems:
     * CVE-2018-3620 L1 Terminal Fault OS, SMM related aspects
     * CVE-2018-3646 L1 Terminal Fault Virtualization related aspects
    
    Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
  3. kernel: bump kernel 4.14 to version 4.14.63

    hauke committed Aug 15, 2018
    The following patches were integrated upstream:
     * target/linux/ipq40xx/patches-4.14/050-0006-mtd-nand-qcom-Add-a-NULL-check-for-devm_kasprintf.patch
     * target/linux/mediatek/patches-4.14/0177-phy-phy-mtk-tphy-use-auto-instead-of-force-to-bypass.patch
    
    This fixes tries to work around the following security problems:
     * CVE-2018-3620 L1 Terminal Fault OS, SMM related aspects
     * CVE-2018-3646 L1 Terminal Fault Virtualization related aspects
    
    Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
  4. ath79: use both WNDR3x00 power leds for boot status indication

    hanipouspilot authored and mkresin committed Aug 14, 2018
    Use the orange led by default to match the bootloader/stock firmware
    behaviour. Turn on the green power led after boot to indicate a
    finished boot and the orange one off.
    
    Signed-off-by: Dmitry Tunin <hanipouspilot@gmail.com>
    [reword commit message, keep orange power led enabled during early
    kernel boot]
    Signed-off-by: Mathias Kresin <dev@kresin.me>
  5. ath79: use both DIR-825 B1 power leds for boot status indication

    hanipouspilot authored and mkresin committed Aug 14, 2018
    Use the orange led by default to match the bootloader/stock firmware
    behaviour. Turn on the blue power led after boot to indicate a finished
    boot and the orange one off.
    
    Signed-off-by: Dmitry Tunin <hanipouspilot@gmail.com>
    [reword commit message, keep orange power led enabled during early
    kernel boot]
    Signed-off-by: Mathias Kresin <dev@kresin.me>
  6. ath79: add support for indicating the boot state using multiple leds

    hanipouspilot authored and mkresin committed Aug 14, 2018
    Use diag.sh version used for apm821xx, ipq40xx and ipq806x, which
    supports different leds for the different boot states.
    
    The existing led sequences should be the same as before.
    
    Signed-off-by: Dmitry Tunin <hanipouspilot@gmail.com>
    [reword commit message]
    Signed-off-by: Mathias Kresin <dev@kresin.me>
  7. ramips: add support for D-Link DWR-118-A2

    obsy authored and mkresin committed Apr 19, 2018
    The DWR-118-A2 Wireless Router is based on the MT7620A SoC.
    
    Specification:
    
    - MediaTek MT7620A (580 Mhz)
    - 128 MB of RAM
    - 16 MB of FLASH
    - 1x 802.11bgn radio
    - 1x 802.11ac radio (MT7612EN)
    - 4x 10/100 Mbps Ethernet (1 WAN and 3 LAN)
    - 1x 10/100/1000 Mbps Marvell Ethernet PHY (1 LAN)
    - 2x external, non-detachable antennas
    - 1x USB 2.0
    - UART (J1) header on PCB (57600 8n1)
    - 7x LED (5x GPIO-controlled), 2x button
    - JBOOT bootloader
    
    Known issues:
    - GELAN not working
    - flash is very slow
    
    The status led has been assigned to the dwr-118-a2:green:internet led.
    At the end of the boot it is switched off and is available for other
    operation. Work correctly also during sysupgrade operation.
    
    Installation:
    Apply factory image via http web-gui or JBOOT recovery page
    
    How to revert to OEM firmware:
    - push the reset button and turn on the power. Wait until LED start
      blinking (~10sec.)
    - upload original factory image via JBOOT http (IP: 192.168.123.254)
    
    Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
    Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
  8. ramips: mt7620: enable all ports unconditionally

    CHKDSK88 authored and mkresin committed Jul 18, 2018
    This patch make all mt7620 ephy ports turned on.
    It is necessary for some JBOOT devices.
    
    Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Commits on Aug 14, 2018
  1. libubox: set RPATH for host build

    jow- committed Aug 14, 2018
    This is required for programs that indirectly link libjson-c through the
    libubox blobmsg_json library.
    
    Signed-off-by: Jo-Philipp Wich <jo@mein.io>
  2. netifd: update to latest git HEAD

    dedeckeh committed Aug 14, 2018
    522456b device: gracefully handle device names exceeding IFNAMESIZ
    
    Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
  3. ramips: add support for HiWiFi HC5861B

    dengqf6 authored and mkresin committed Aug 9, 2018
    HiWiFi "Gee Enjoy1200" HC5861B is a dual-band router based on MediaTek MT7628AN
    https://www.hiwifi.com/enjoy-view
    
    Specifications:
    - MediaTek MT7628AN 580MHz
    - 128 MB DDR2 RAM
    - 16 MB SPI Flash
    - 2.4G MT7628AN 802.11bgn 2T2R 300Mbps
    - 5G MT7612EN 802.11ac 2T2R 867Mbps
    - 5x 10/100 Mbps Ethernet
    
    Flash instruction:
    1. Get SSH access to the router
    2. SSH to router with `ssh -p 1022 root@192.168.199.1`, The SSH password is the same as the webconfig one
    3. Upload OpenWrt sysupgrade firmware into the router's `/tmp` folder with SCP
    4. Run `mtd write /tmp/<filename> firmware`
    5. reboot
    
    Everything is working
    
    Signed-off-by: Deng Qingfang <dengqf6@mail2.sysu.edu.cn>
  4. ath79: add support for TP-Link TL-WR941N/ND v2/v3

    981213 authored and mkresin committed Aug 13, 2018
    Specification:
    - SoC: Atheros AR9132
    - Flash: 4 MB
    - RAM: 32 MB
    - Ethernet: Marvell 88E6060 with 5 FE ports.
    
    Flash instruction:
      Upload the generated factory firmware on web interface.
    
    Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
  5. ath79: add support for TP-Link WR841N/ND v11

    juppin authored and mkresin committed Aug 13, 2018
    Specification:
    - SoC: Atheros AR9533
    - Flash: 4 MB
    - RAM: 32 MB
    - Ethernet: 4x LAN (100M) / 1x WAN (100M)
    - WiFi: 2.4G 300M
    
    Flash instruction:
      Flash factory image from stock WebUI.
    
    Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
  6. ath79: move TP-Link WR841v9 aliases node from dtsi to dts

    juppin authored and mkresin committed Aug 13, 2018
    Move the alias node of the TP-Link WR841v9 and rename the phandle of
    the qss led to qss_led in preparation for adding the very similar
    TP-Link WR841v11.
    
    Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
  7. ath79: fix sysupgrade TP-Link WR841v9

    juppin authored and mkresin committed Aug 13, 2018
    Remove SUPPORTED_DEVICES from wr841-v9 because it´s not needed and
    for consistency rename everything to tl-wr841-v9.
    
    Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
  8. firmware-utils/mksercommfw: fix build with clang/macOS

    rmounce authored and mkresin committed Aug 14, 2018
    fixes error: non-void function 'main' should return a value
    
    Fixes: FS#1770
    
    Signed-off-by: Ryan Mounce <ryan@mounce.com.au>
  9. ath79: Add wifi to WNDR3700, WNDR3700v2 and WNDR3800

    hnyman authored and mkresin committed Aug 13, 2018
    Add ath9k wifi capabilities to WNDR3700 family.
    
    * use kmod-owl-loader to load firmware from "art"
    * add wifi to DTS
    * add wifi LEDs
    
    Avoid using the same MAC for eth0 LAN and wlan0 by
    toggling the eth0 MAC into a locally administered MAC.
    That is currently done by in user-space by adding a
    uci config item into /etc/config/network
    (More elegant solution might be setting it already in
    preinit phase.)
    
    Known issues:
    
    * wifi firmware file may not get created on the first boot
      after flashing on time to bring wifi normally up. Likely
      the overlay jffs2 is not yet ready for creating the
      firmware file. "wifi up" may still bring wifi up.
      Wifi will work normally at subsequent boots.
    
    * phy0 and phy1 may get assigned mixed, so that phy0 may
      be the 5GHz radio instead of the normal 2.4GHz, and vice
      versa for phy1. Does not happen always, but may happen.
    
    Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
    [fix the wifi unit address in the dts]
    Signed-off-by: Mathias Kresin <dev@kresin.me>
  10. ath79: add support for Pisen WMM003N (Cloud Easy Power)

    Icenowy authored and mkresin committed Aug 12, 2018
    Pisen WMM003N (sold under the name of Cloud Easy Power) is an
    AR9331-based router and power bank combo device. The device uses a
    stock firmware modified from OpenWRT for TP-Link TL-WR703N; however
    some GPIO definition is different on this device with TL-WR703N. An
    AXP202 PMIC (connected to a 5000mAh battery) and a SD slot are also
    added, and the stock Flash/RAM configuration is 8MiB/64MiB.
    
    The stock firmware is an old and heavily modified OpenWRT-based
    firmware, which has telnetd defaultly open, and the root password is
    "ifconfig" (quotation marks not included). The factory image format is
    not known yet, however the stock firmware ships the OpenWRT's sysupgrade
    command, and it can be used to install a newer firmware.
    
    Due to the lack of the access to the STM8 embedded controller, the SD
    slot is currently not usable (because it's muxed with the on-board USB
    port) and the AXP PMIC cannot be monitored.
    
    Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Commits on Aug 13, 2018
  1. firewall: bump to git HEAD

    stintel committed Aug 13, 2018
    12a7cf9 Add support for DSCP matches and target
    06fa692 defaults: use a generic check_kmod() function
    1c4d5bc defaults: fix check_kmod() function
    
    Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
  2. ar7: remove linux 3.18 support

    xback authored and blogic committed Aug 13, 2018
    This target is on 4.9 currently.
    It seems the support for this old kernel never got dropped.
    
    Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
  3. firmware-utils/mksercommfw: fix musl build

    Andy2244 authored and jow- committed Aug 13, 2018
    * add missing <sys/types.h> for musl
    
    Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
  4. ramips: add missing USB packages into ASL26555-16M

    wigyori committed Aug 13, 2018
    Mirror the package list from the 8M device profile to the
    16M device profile.
    
    Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>