aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
Commit message (Collapse)AuthorAgeFilesLines
* kernel: bump to 4.4.35Kevin Darbyshire-Bryant2016-11-2948-306/+189
| | | | | | | | | | | Refresh patches on all 4.4 supported platforms. 077-0005-bgmac-stop-clearing-DMA-receive-control-register-rig.patch removed as now upstream. Compile & run tested: ar71xx - Archer C7 v2 Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
* lantiq: drop obsolete patchMathias Kresin2016-11-291-31/+0
| | | | | | | | | | | | ifxhcd never had roothub support but since kernel 3.x it was expected that a roothub always exists. The patched fixed a null pointer deref in the usb subsystem because of the missing roothub. Since ifxhcd is gone, this whole patch isn't required any longer. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: use BT HomeHub 5 Type A OEM partition layoutMathias Kresin2016-11-294-35/+36
| | | | | | | | | | | | | | | | | | | | This way the on nand bad block table is preserved and used. Add support for nand OOB ECC checksums as well. It should fix all reported ubi errors, which were all related to bad nand blocks and a purged on nand bad block table. The existing ubi partition will be reused, which eliminates the need to touch the caldata during initial install. The BT u-boot has support for loading a kernel from an ubi volume. It isn't necessary any longer to replace the BT u-boot with a custom compiled one to use LEDE. It is required to restore the BT Firmware and install LEDE from scratch to switch to the new partition layout. An image for restoring the BT firmware and installing LEDE is provided at https://github.com/mkresin/lede/releases. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: backport kernel patch to pass of node to nand_dt_initMathias Kresin2016-11-292-2/+27
| | | | | | | | | | | | | | | | | | | Backport upstream commit a61ae81a1907af1987ad4c77300508327bc48b23. The actually purpose of the patch was to do some cleanup. As a side effect of this cleanup, the device node is now passed to nand_dt_init. This allows to use the common nand device tree properties - nand-bus-width - nand-on-flash-bbt - nand-ecc-mode - nand-ecc-step-size - nand-ecc-strength for the plat_nand driver. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: drop ath9k device tree binding & ath9k pci fixupMathias Kresin2016-11-291-304/+7
| | | | | | | | | | Due to the addition of the bindings to the ath9k driver, this code isn't used any longer. The fixup is now done by the owloader. Rename the ath_eep.c file to ath5k_eep.c to indicate that this files includes ath5k related code only. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: use ath9k device tree bindings binding/owl-loaderMartin Blumenstingl2016-11-2914-141/+305
| | | | | | | | | | | | | | | | | This moves the extraction of the eeprom/calibration data to a hotplug firmware script. Additionally it modifies all .dts to configure ath9k directly from within the .dts. The owl-loader approach enables support on devices with exotic eeprom data locations (such as unaligned positions on the flash or data inside an UBI volume). Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> [add ath9k caldata mac address patcher] [fixes DGN3500 wifi mac] [fixes BTHOMEHUBV3A wifi mac] [set invalid mac for BTHOMEHUB2B, FRITZ3370, FRITZ7320 & FRITZ7360SL to restore previous random mac behavior] Signed-off-by: Mathias Kresin <dev@kresin.me>
* ar71xx: fix syntax error in /lib/ar71xx.shMatthias Schiffer2016-11-291-4/+4
| | | | | | | | Remove all comments in ubnt_xm_board_detect(), as it's not possible to add comments to specific lines of the case construct anyways. Fixes: 9a5801e7 "ar71xx: add model detection for UBNT Rocket Ti" Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* ar71xx: add model detection for UBNT Rocket TiMatthias Schiffer2016-11-291-1/+2
| | | | | Based-on-patch-by: Neal Oakey <neal.oakey@bingo-ev.de> Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* brcm47xx: fix initramfs image build errorFelix Fietkau2016-11-291-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* brcm47xx: merge cpu cache workaround patches into one, ensure they get ↵Felix Fietkau2016-11-292-177/+115
| | | | | | compiled out on mips74k Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: remove squashfs-64k rootfs image from bin directory, the generic one ↵Felix Fietkau2016-11-291-1/+0
| | | | | | is enough Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: remove split kernel/rootfs images where the sysupgrade image can be ↵Felix Fietkau2016-11-291-17/+1
| | | | | | written to flash directly Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: remove 2MB flash variant of WP543Felix Fietkau2016-11-292-7/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: remove legacy devices that cannot be supported due to kernel ↵Felix Fietkau2016-11-292-38/+0
| | | | | | partition size limits Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: remove legacy gzip imagesFelix Fietkau2016-11-291-6/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: remove obsolete jffs2 image building codeFelix Fietkau2016-11-292-27/+7
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: use upstream accepted bcm47xxpart parsing fixRafał Miłecki2016-11-281-0/+3
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* bcm53xx: use upstream accepted fix for ARM core abortsRafał Miłecki2016-11-282-42/+75
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* lantiq: add Falcon supportHauke Mehrtens2016-11-2720-1/+1494
| | | | | | | | | | | | This adds support for the Intel Falcon SoC for GPON. Support for the Falcon SoC was removed in commit c8218363951 svn rev: 40392 from OpenWrt, this commit adds it again. This patch adds a new subtarget for the Falcon SoC, but it still misses all the drivers needed to control the GPON part. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* lantiq: add swconfig to the default packagesMathias Kresin2016-11-273-46/+28
| | | | | | | | | | | | The DEVICE_PACKAGES are not included in the initramfs image in case TARGET_PER_DEVICE_ROOTFS is set. This might produces initramfs images with a not working network configuration because of a missing swconfig. Workaround the issues by adding the essential swconfig package to the default packages selection and deselect swconfig for boards not having swconfig included before via device packages. Signed-off-by: Mathias Kresin <dev@kresin.me>
* treewide: fix button keys codes used in dtsMathias Kresin2016-11-2722-26/+27
| | | | | | Use keycodes that matches the intended use case based on the label. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: add size checks/append metadata where missingMathias Kresin2016-11-273-30/+22
| | | | Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: fix Airlink AR670W factory imageMathias Kresin2016-11-272-8/+7
| | | | | | | Move the mkwrgimg build step to the makefile. It will be required by other boards as well. Signed-off-by: Mathias Kresin <dev@kresin.me>
* mvebu: fix typo in image metadata supportMathias Kresin2016-11-271-2/+2
| | | | Signed-off-by: Mathias Kresin <dev@kresin.me>
* ipq806x: more dts cleanupMathias Kresin2016-11-278-110/+80
| | | | | | | | | | | | | | | | | | | | | | | Remove the wifi5g LED from the the d7800, r7500 and r7800. Albeit this GPIO is mentioned in the GPL tarball, it doesn't do anything. The 2.4/5 GHz LEDs are connected to the wifi chips and not be controlled from the the userspace. Use the LEDs names/colours as they are used in the board manuals. Merge redundant LED configurations. Use the phy[0|1]tpt trigger for the wireless LEDs. Remove the workarounds for the not controllable wireless LEDs. Fix spi compatible strings and remove superfluous spi-max-frequency parameters. If there are two power leds, use one for indicating normal operation and one for failsafe/upgrade. Keep the on/off state of the main power led during boot. Use the usb pinmux settings from the nbg6817 gpl sources. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ipq806x: clean up dts filesHenryk Heisig2016-11-279-284/+533
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set the pinmux to the values found in the GPL tarballs of the boards. Remove pinmux which are is not used (like nand pinmux for spi flash boards). This allows to use the wan orange led of the C2600 which had a wrong pinmux before. Might fix buttons or leds of other boards as well. Fix the LED color and the ledswitch key code of the C2600. Rename the ledgnr to ledswitch. Add support for indication the boot state using LEDs to the D7800, NBG6817, R7500 and R7500v2. Change GPIO active to readable values in D7800, EA8500, R7500, R7500v2 and R7800. Change gpioexport to gpio pinmux. Add proper "drive strenght" to i2c4_pins and use it for RPM on C2600, D7800, EA8500, R7500, R7500v2. Remove pcie pinmux from D7800. Move pinctrl to correct place in NBG6817 and R7800. Signed-off-by: Henryk Heisig <hyniu@o2.pl>
* lantiq: specify the PCIe controller's interrupt, size and address cellsMartin Blumenstingl2016-11-261-2/+10
| | | | | | This allows adding devices to the PCIe controller in the .dts files. Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
* lantiq: Register the device tree node with the PCIe controllerMartin Blumenstingl2016-11-261-1/+9
| | | | | | | This allows specifying PCI devices as children of the PCIe controller node to pass configuration data to them. Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
* ramips: Add missing chunked-io directive to W2914NSV2.dtsiYong-hyu, Ban2016-11-261-0/+1
| | | | | | | | | Fix bug that LEDE failed to boot with this message: WARNING: CPU: 2 PID: 1 at drivers/spi/spi-mt7621.c:214 mt7621_spi_transfer_one_message+0x28c/0x620() Signed-off-by: Yong-hyu, Ban <perillamint@gentoo.moe>
* ramips: SamKnows SK-WB8 DTS cleanupAndrew Yong2016-11-261-11/+6
| | | | | | Use gpio.h definition of GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW. Remove unused backup partition to increase available JFFS space. As long as U-Boot env variable "bootcount" is < 3 (reset to 0 after boot by init script) SamKnow's U-Boot will not attempt to boot from the backup flash address (0xe30000). Signed-off-by: Andrew Yong <me@ndoo.sg>
* Revert "mvebu: simplify etc/board.d/02_network"Felix Fietkau2016-11-251-1/+5
| | | | | | | This reverts commit 539ae47103b7de5cecb1a94beab0acb97ef7df1d. According to reports, this introduces a regression on WRT3200ACM Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ramips: remove kmod-ledtrig-usbdev from recently added devicesMathias Kresin2016-11-241-2/+2
| | | | | | None of the devices uses an usb led at all. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ar71xx: move DomyWifi DW33D to nand subtargetPiotr Dymacz2016-11-243-15/+11
| | | | | | | | | This device uses NAND FLASH, so it should be kept in nand subtarget. Also, inlcude in packages kmod-usb-ledtrig-usbport instead of obsolete kmod-ledtrig-usbdev. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ipq806x: add support for TP-Link Archer VR2600vSebastian Quilitz2016-11-248-2/+467
| | | | | | | | | | | | | | | | | | This router is similar to the C2600. Ethernet on WAN + LAN, switch, sysupgrade, LEDs, buttons and WiFi on 2G + 5G do work. The xDSL modem and the POTS/DECT interface are not supported yet. It is not possible to flash LEDE via the TP-Link webinterface. The image need to be signed. The first 0x200 bytes of the image is the TP-Link header including the signature. The signature is not validated by the bootloader. The LEDE image is zeroed in this area. To install LEDE it is necessary to solder a four pin header to JP2. Connect a serial interface to this header and interrupt the autostart of kernel. Transfer the sysupgrade image via TFTP and write it to the serial flash at 0x320000. Signed-off-by: Sebastian Quilitz <zeraphim@x-pantion.de>
* sunxi: enable CONFIG_VHOST_NET like on x86Felix Fietkau2016-11-241-2/+1
| | | | | | | Other virtualization options are already enabled, so this is only a small addition Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: add missing config symbolsFelix Fietkau2016-11-241-0/+6
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* target: sunxi: enable builtin crypto-hw module sun4i-ssYousong Zhou2016-11-241-0/+5
| | | | | | | CONFIG_CRYPTO_DEV_SUN4I_SS was previously set to y but did not take effect because of the absence of CONFIG_CRYPTO_HW=y Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* apm821xx: make it possible to update the dtb partition on the WNDR4700Christian Lamparter2016-11-242-6/+6
| | | | | | | | | | | | | | | | | | | | Currently, the device-tree partition is marked as read-only. Hence, userspace tools like mtd can't write into the partition. This however will be necessary in case the DTB needs to be updated. This patch also adds the kernel.dtb image, so the compiled DTB is exported as a file and available in the binary directory along the firmware images. Note: the u-boot does expects the dtb to be a uimage. To update the dtb manually: 1. copy the generated dtb to the router. 2. mtd erase /dev/mtd2 3. mtd write wndr4700.dtb /dev/mtd2 Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* target: sunxi: enable kvm supportYousong Zhou2016-11-241-16/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | Unlike x86, kvm for arm has to be built into the kernel. The kernel config was prepared with the following command make kernel_menuconfig CONFIG_TARGET=platform Then enable ARM_LPAE, VIRTUALIZATION, KVM in that order Other config changes are done by the build system. The following text tries to explain some of them, for archive purposes probably... - BUILD_BIN2C. It was dropped probably because the prompt is empty and no other config option selects it. bin2c is a host executable for converting binary content to a piece of c code for inclusion - CRYPTO_DEV_SUN4I_SS. It was dropped because the dependency CRYPTO_HW was not enabled. Setting that aside, packaging it as a loadbable module in lieu of other sunxi specific modules seems more appropriate - PGTABLE_LEVELS. It was changed from 2 to 3 because 3 is the default when ARM_LPAE is enabled - HAVE_KERNEL_GZIP, etc.. These are enabled in generic config - SCHED_INFO, ZLIB_INFLATE. These were dropped probably for the same reason as for BUILD_BIN2C Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* uml: clean up the kernel config and add squashfs+ext4/f2fs supportFelix Fietkau2016-11-244-19/+22
| | | | | | Replaces plain ext4 images Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mvebu: simplify etc/board.d/02_networkPaul Wassi2016-11-241-5/+1
| | | | | | | Unify switch configuration on Linksys WRTxx00AC series. LAN = eth0, WAN = eth1 Signed-off-by: Paul Wassi <p.wassi@gmx.at>
* mvebu: use image metadata for firmware validationFelix Fietkau2016-11-242-22/+6
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lantiq: write protect vgv7519 u-boot and u-boot-env partitionsEddi De Pieri2016-11-231-0/+2
| | | | Signed-off-by: Eddi De Pieri <eddi@depieri.net>
* ramips: Add device DLINK DWR-512-BGiuseppe Lippolis2016-11-235-0/+142
| | | | | | | | | | | | | | | | | | | | | | The Dlink DWR-512-B modem is a ralink 5350 processor based embedding a 3G mini-pcie router. The oem JBOOT bootloader has to be replaced by a RT5350 SDK U-Boot such as https://github.com/stevenylai/ralink_sdk - U-Boot configured for the RT5350 256MiB SDR. Main reason to change the bootloader is the encrypted header used to store the kernel image. In this way an image can only be generated using the propietary binboy tool (included in the GPL distribution from Dlink). The binboy tool doesn't allow to modify the kernel/rootfs partition scheme. This is considered a big constraint (limited kernel size and inefficient usage of flash space). For interested people I pubblished the details of my investigation about the encrypted firmware header here: http://lists.infradead.org/pipermail/lede-dev/2016-October/003435.html Signed-off-by: Giuseppe Lippolis <giu.lippolis@gmail.com>
* ramips: do not append metadata to CY-SWR1100 factory imageMathias Kresin2016-11-231-1/+1
| | | | Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: cleanup dts files of mt7621 based boardsMathias Kresin2016-11-2320-184/+130
| | | | | | | | | | | | | | | | | | | | Fix a typo in mt7621.dtsi compatible string. Disable spi, sdhci and pci in mt7621.dtsi and enable the nodes in the indiviual board dts files. The nodes require further device specific configuration anyway. Remove the m25p80@0 spi child node from mt7621.dtsi and add the chunked-io parameter to the individual board dts files. Fix the spi flash compatible string for the WNDR3700V5. Drop the mt7621-eval-board compatible string for all boards which are not the eval board. Drop the linux,modalias parameter from spi flash node. Remove the xhci node from board files, it is already enabled in dtsi. Disable xhci for boards not having usb ports populated. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: order mt7621.mk alphabeticalMathias Kresin2016-11-231-94/+94
| | | | Signed-off-by: Mathias Kresin <dev@kresin.me>
* brcm63xx: Livebox 1: add userspace board supportDaniel Gonzalez Cabanelas2016-11-213-0/+12
| | | | | | | | | | Fix configuration files for the Livebox 1 routers. - Add status led - Set eth0 as the LAN port, for coherence with RedBoot and comfortability. - Add led triggers Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com> Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: Livebox 1: relocate the kernel to fix bootDaniel Gonzalez Cabanelas2016-11-212-2/+2
| | | | | | | | Fix Image generation for the Livebox 1 - missing "relocate-kernel", wrong "LOADADDR", fix it Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com> Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: Livebox 1: fix part probe nameDaniel Gonzalez Cabanelas2016-11-211-1/+1
| | | | | | | | Fix the DTS file for the Livebox 1 routers: - part probe wrong, it should be RedBoot (uppercase matters) Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com> Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>