aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* lantiq: fix ath9k EEPROM data swapping for some devicesMartin Blumenstingl2016-12-081-14/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The EEPROM data in the flash of the ARV7518PW, ARV8539PW22, BTHOMEHUBV2B and BTHOMEHUBV3A is stored byte-swapped (swab16), meaning that for example the ath9k base_eep_header fields "version" (high and low byte), "opCapFlags" and "eepMisc" are swapped (the latter ones are just 1 byte wide, thus their position is swapped). The old "ath,eep-endian" property enabled the corresponding swapping logic in the ath9k driver (swab16 in ath9k_hw_nvram_swap_data, which is based on the magic bytes in the EEPROM data which have nothing to do with the calibration data - thus this logic should not be used anymore). Since we have switched to the upstream ath9k devicetree bindings there is no binding anymore which enables swab16 in ath9k (as this logic is not recommended anymore as explained above), leading to ath9k initialization errors: ath: phy0: Bad EEPROM VER 0x0001 or REV 0x00e0 (this shows that the version field is swapped, expected values are VER 0x000E and REV 0x0001) Swapping the ath9k calibration data when extracting it from the flash fixes the devices listed above (all other devices do not require additional swapping, since the position of the fields is already as expected by ath9k). This allows ath9k to read the version correctly again, as well as the more important "eepmisc" field (which is used for determining whether the data inside the EEPROM is Big or Little Endian which is required to parse the EEPROM contents correctly). Fixes: a20616863d3 ("lantiq: use ath9k device tree bindings binding/owl-loader") Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
* bcm53xx: update patch adding fake USB doorbellRafał Miłecki2016-12-071-26/+8
| | | | | | | Rob suggested I should use of_machine_is_compatible insteak of a new property and updated patch has been sent. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* dnsmasq: Fix splitting hostid for DHCPv6 static leasesArjen de Korte2016-12-061-1/+1
| | | | | | | | | Correct splitting the 32-bit 'hostid' value to two 16-bit hexadecimal values. Previously, the lower 16-bit value was truncated to an 8-bit value, which would result in hostid values 100 and 200 both to be set to [::0:0] instead of [::0:100] and [::0:200] respectively. Signed-off-by: Arjen de Korte <build+lede@de-korte.org>
* kernel: backport LED patch which will allow better DT integrationRafał Miłecki2016-12-061-0/+53
| | | | | | | It's not used by any driver yet, it may just simplify development and testing new features. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* kernel: fix potential crash in usbport LED trigger driverRafał Miłecki2016-12-062-0/+70
| | | | | | This backports upstream accepted fix. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* ar71xx: fix LEDs and sysupgrade support for TL-WA801ND v3Matthias Schiffer2016-12-064-3/+9
| | | | Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* tools/upslug2: add SHA256 hash to use mirror tarballFelix Fietkau2016-12-051-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* dnsmasq: reload config if host name is modifiedFlorian Eckert2016-12-041-1/+2
| | | | | | | If the hostname in /etc/config/system is modified the dnsmasq will not reread the update host file under /tmp/hosts/dhcp.$cfg. Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
* ramips: Fix led init script for Lenovo Y1/Y1sBangLang Huang2016-12-041-3/+10
| | | | | | | This commit fix the led init script for Lenovo Y1 and Y1S due to the manual and dts file. Signed-off-by: BangLang Huang <banglang.huang@foxmail.com>
* brcm2708: update linux 4.4 patches to latest versionÁlvaro Fernández Rojas2016-12-04531-480/+6619
| | | | | | | As usual these patches were extracted and rebased from the raspberry pi repo: https://github.com/raspberrypi/linux/tree/rpi-4.4.y Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* brcm2708-gpu-fw: update to latest versionÁlvaro Fernández Rojas2016-12-041-8/+8
| | | | | | Also switches hases to SHA256 Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* kernel: bump to 4.4.36Álvaro Fernández Rojas2016-12-044-23/+28
| | | | | | | Refresh patches on all 4.4 supported platforms. Compile & run tested: brcm2708/bcm2710 - Raspberry Pi 3 Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* libs: libnetfilter-queue: update to a newer version in git repoAlexandru Ardelean2016-12-042-34/+36
| | | | | | | | | Last release of libnetfilter-queue was in 2012. There don't seem to be any release tarballs since then. This updates it to a more recent version, pointing to the git repo. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* ppp: Split the ppp-up for the IPv6 partPierre Lebleu2016-12-044-12/+29
| | | | Signed-off-by: Pierre Lebleu <pme.lebleu@gmail.com>
* orion: make image size errors non-fatalFelix Fietkau2016-12-041-8/+4
| | | | | | Fixes build errors on the generic subtarget Signed-off-by: Felix Fietkau <nbd@nbd.name>
* orion: Enable CONFIG_MV_XORFlorian Fainelli2016-12-041-0/+2
| | | | | | | This is helpful for Orion-based NAS boxes that have the XOR engine enabled since it provides faster software RAID. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* orion: Add uboot-envtools in the default package listFlorian Fainelli2016-12-041-1/+2
| | | | | | Makes sense since most, if not all orion platforms use this bootloader. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* kernel: Add missing kernel config symbolFlorian Fainelli2016-12-041-0/+1
| | | | | | Add CONFIG_DW_DMAC_PCI Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* orion: Set appropriate DEVICE_TYPE for harddisk targetFlorian Fainelli2016-12-041-0/+1
| | | | | | | The harddisk target is for NAS boxes, so set the DEVICE_TYPE accordingly so we get a sensible default package selection. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* orion: Switch to kernel 4.4Florian Fainelli2016-12-041-1/+1
| | | | Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* orion: Advertise support for RTCFlorian Fainelli2016-12-041-1/+1
| | | | | | | Otherwise, we can't select RTC_SUPPORT and the corresponding kmod-rtc-* packages. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* orion: Make sub-targets augment FEATURES, not re-define itFlorian Fainelli2016-12-042-2/+2
| | | | Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* kernel: add kernel package for the rs5c372a rtc moduleFlorian Fainelli2016-12-041-0/+16
| | | | | | This RTC is used on the Buffalo Terastation Pro II/Live devices. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* orion: Build images for Buffalo Terastation Pro II/LiveFlorian Fainelli2016-12-042-1/+12
| | | | | | | Enable support for this machine in the kernel and also produce valid image files with the correct machine id. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* orion: Add support for 4.4 kernelFlorian Fainelli2016-12-045-0/+1124
| | | | | | Patches and configuration apply just fine on the Marvell Orion target. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* orion: Fold DT2 setup files into patchFlorian Fainelli2016-12-043-536/+553
| | | | Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* include/kernel: Switch to git download methodFlorian Fainelli2016-12-042-10/+20
| | | | | | | | | Utilize the existing git download logic from include/download.mk and migrate the kernel download over to it. This avoids repeatedly cloning kernel sources after a make target/linux/clean for instance. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> [fix build error]
* include/download.mk: Allow specify DownloadMethod specific optionsFlorian Fainelli2016-12-041-1/+2
| | | | | | | | This is going to be used to migrate the hand rolled git clone for the kernel into using the git download method. The kernel uses custom options that we may have to pass down. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* kernel: Add check to of_scan_flat_dt() before accessing initial_boot_paramsFelix Fietkau2016-12-041-0/+30
| | | | | | | Fixes a bug that affects rt288x Signed-off-by: Tobias Wolf <dev-NTEO@vplace.de> Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: Fix alloc_node_mem_map with ARCH_PFN_OFFSETFelix Fietkau2016-12-041-0/+86
| | | | | | | Fixes a bug that affects rt288x Signed-off-by: Tobias Wolf <github-NTEO@vplace.de> Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: set GPIO reset line for Ubiquiti NanoStation Loco XWFelix Fietkau2016-12-041-0/+17
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: add support for configuring at803x PHY GPIO reset via platform dataFelix Fietkau2016-12-041-0/+68
| | | | | | | Needed to work around ethernet hang issues on Ubiquiti NanoStation Loco XW, because ar71xx is not converted to device tree yet. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: add support for the AT8032 PHYFelix Fietkau2016-12-041-0/+65
| | | | | | This PHY is used on the Ubiquiti Networks NanoStation Loco XW Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: backport some upstream at803x fixesFelix Fietkau2016-12-043-0/+162
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ramips: prevent packet forwarding on mt7620 between switch ports during init ↵Felix Fietkau2016-12-042-5/+7
| | | | | | | | | | | | | | | | (FS#103) By default, forwarding between all ports is allowed on init. This is problematic in cases where some ports are supposed to be isolated from each other, most commonly LAN/WAN separation. REG_ESW_PORT_PCR(port) has a destination mask for a particular port, controlling what other ports it is allowed to send packets to. Instead of initializing all to 0xff (all ports), allow each physical port to send to the CPU port, and the CPU port to send to all other ports. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* base-files: add a hint in sysupgrade that shows what to do when the image ↵Felix Fietkau2016-12-041-0/+3
| | | | | | metadata check fails Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ramips: fix LAN port order of WeVO W2914NS v2Yong-hyu, Ban2016-12-041-1/+4
| | | | Signed-off-by: Yong-hyu, Ban <perillamint@gentoo.moe>
* ramips: fix PBR-D1 button definitionBangLang Huang2016-12-041-2/+2
| | | | | | | Due to the product specification, the button on PBR-D1 should be reset, not wps. Signed-off-by: BangLang Huang <banglang.huang@foxmail.com>
* ramips: add support for PCI based OHCI/EHCI support for F5D8235 V1Tobias Wolf2016-12-042-1/+10
| | | | | | This router uses an PCI attached NEC EHCI controller to support the single USB port. Signed-off-by: Tobias Wolf <github-NTEO@vplace.de>
* ramips: introduce CONFIG_PCI and CONFIG_OF_*PCI for rt288xTobias Wolf2016-12-044-5/+17
| | | | | | This is a prerequisite for F5D8235 V1 to use PCI based OHCI/EHCI. Signed-off-by: Tobias Wolf <github-NTEO@vplace.de>
* ramips: improve F5D8235 V1 supportTobias Wolf2016-12-044-18/+78
| | | | | | | | | | | | | | | | | | | This fixes the partition name for the firmware splitter, the cfi address and adds the mtd-eeprom address for wmac. It adds additional LEDs and make use of them in diag.sh and 01_leds. Please note that the ":blue:wired" LED is used because the ":blue:router" behaviour is unpredictable for failsafe indication. The issue with the router LED is that you have two states only. "off" is steady on and "on" blinks. Therefore the wired LED is more suitable. Furthermore it reuses the correct switch configuration definition to reflect the device ports and numbering. Additionally fixes the issue that the default configuration is not applied as no port 6 exists on this device. Signed-off-by: Tobias Wolf <github-NTEO@vplace.de>
* mvebu: fix sysupgrade for Linksys WRT3200ACMVignesh Balasubramaniam2016-12-041-1/+1
| | | | | | | | | | | | | | | sysupgrade command fails due to missing U-Boot environment-processing binaries on sysupgrade ramdisk. The missing binaries result in the following output: Switching to ramdisk... Performing system upgrade... ash: /usr/sbin/fw_printenv: not found ash: fw_setenv: not found ash: touch: not found cannot find target partition Signed-off-by: Vignesh Balasubramaniam <vigneshb.hp@gmail.com>
* mvebu: fix image validation errorMathias Kresin2016-12-041-2/+2
| | | | | | | | The name from the Device define will be used in the metadata. Due to typo/different spelling, this name might not match the one exported in /lib/mvebu.sh. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: fix image validation errorsMathias Kresin2016-12-0415-15/+20
| | | | | | | The boards did not have the name set that is expected during metadata validation on sysupgrade. Signed-off-by: Mathias Kresin <dev@kresin.me>
* cyassl: update to wolfssl version 3.9.10Hauke Mehrtens2016-12-031-2/+2
| | | | | | | | | | This fixes the following security problems: CVE-2016-7440: Software AES table lookups do not properly consider cache-bank access times CVE-2016-7439: Software RSA does not properly consider cache-bank monitoring CVE-2016-7438: Software ECC does not properly consider cache-bank monitoring SWEET32 Attack Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* valgrind: update to 3.12.0Hauke Mehrtens2016-12-035-101/+8
| | | | | | | | | | Support for MIPS toolchains without FPU support was added upstream, so remove our patch. patches/310-mips-link-tool.patch was a backport form this version of valgrind src/abort.c is not referenced anywhere Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* curl: update to version 7.51.0Hauke Mehrtens2016-12-033-6/+6
| | | | | | | | | | | | | | | | | This fixes the following security problems: CVE-2016-8615: cookie injection for other servers CVE-2016-8616: case insensitive password comparison CVE-2016-8617: OOB write via unchecked multiplication CVE-2016-8618: double-free in curl_maprintf CVE-2016-8619: double-free in krb5 code CVE-2016-8620: glob parser write/read out of bounds CVE-2016-8621: curl_getdate read out of bounds CVE-2016-8622: URL unescape heap overflow via integer truncation CVE-2016-8623: Use-after-free via shared cookies CVE-2016-8624: invalid URL parsing with '#' CVE-2016-8625: IDNA 2003 makes curl use wrong host Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* mbedtls: update to version 2.4.0Hauke Mehrtens2016-12-033-46/+25
| | | | | | This fixes two minor security problems. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* polarssl: update to version 1.3.18Hauke Mehrtens2016-12-032-17/+17
| | | | | | This fixes two minor security problems. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* scripts: getver.sh: append Git short hash to revisionJo-Philipp Wich2016-12-021-1/+1
| | | | | | | | | | | Change getver.sh to append a short Git commit hash to the end of the artifical revision number. This way we still have order- and comparable commit numbers but also a direct relation to the Git commit. The new output format will look like "r2400+2-882472e" for dirty trees or like "r2402-882472e" for clean ones. Signed-off-by: Jo-Philipp Wich <jo@mein.io>