summaryrefslogtreecommitdiffstats
path: root/target/linux
Commit message (Collapse)AuthorAgeFilesLines
* ar71xx: hiwifi-hc6361: lift size limit on kernel and rootfs partsYousong Zhou2016-06-222-19/+20
| | | | | | | | | | | | | | | | | | | | | | The patch has been run-tested and the relevant dmsg logs are as the following [ 0.762447] Creating 5 MTD partitions on "spi0.0": [ 0.767217] 0x000000000000-0x000000010000 : "u-boot" [ 0.775139] 0x000000010000-0x000000020000 : "bdinfo" [ 0.781014] 0x000000020000-0x000000fe0000 : "firmware" [ 0.810558] 2 uimage-fw partitions found on MTD device firmware [ 0.815043] 0x000000020000-0x000000170000 : "kernel" [ 0.821925] 0x000000170000-0x000000fe0000 : "rootfs" [ 0.827587] mtd: device 4 (rootfs) set to be root filesystem [ 0.831937] 1 squashfs-split partitions found on MTD device rootfs [ 0.837983] 0x0000005c0000-0x000000fe0000 : "rootfs_data" [ 0.845621] 0x000000fe0000-0x000000ff0000 : "backup" [ 0.851445] 0x000000ff0000-0x000001000000 : "art" While at it, convert to new build method Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* kernel: Move append-dtb to common image-commandsBen Whitten2016-06-225-29/+7
| | | | | | This build step is used by various targets, move it to a common section. Signed-off-by: Ben Whitten <ben.whitten@gmail.com>
* lantiq: Slow down SPI flash on the DGN3500Daniel Gimpelevich2016-06-221-1/+1
| | | | | | | | | | | The bootloader uses 30 MHz as the SPI frequency for flash on the Germany and North America models, and 50 MHz for it on the worldwide model, but the Lantiq SPI driver in OpenWrt and LEDE may access the flash differently such that writes are capped at 20 MHz, leading to read errors reported on the worldwide model at 30 MHz. Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us> Acked-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
* lantiq: remove gr7000 supportJohn Crispin2016-06-223-161/+0
| | | | | | this seems to have never worked as the wrong SoC is selected Signed-off-by: John Crispin <john@phrozen.org>
* ipq806x: add initial support for Netgear R7800Pavel Kubelun2016-06-2210-12/+1597
| | | | Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: move ath10k firmware selection into device profilesPavel Kubelun2016-06-222-1/+8
| | | | Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: move smb208 nodes into a regulator subnodePavel Kubelun2016-06-221-0/+69
| | | | Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* lantiq: make EASY80920 work with both chip versionsHauke Mehrtens2016-06-211-1/+2
| | | | | | | | | The EASY80920 is available with the A1X and the A2X chip version depending on the board version. Add both firmware versions to device tree and make the driver load the correct version depending on the chip version. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* lantiq: use new partition layout for EASY80920NANDHauke Mehrtens2016-06-211-6/+30
| | | | | | This matches the EASY80920NAND boards with UGW. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* lantiq: build fullimage.img for EASY80920NANDHauke Mehrtens2016-06-211-0/+22
| | | | | | | | This image format is used by Lantiq's / Intel's UGW version 6.1 to 7.1. These images can be flashed onto a board with the SoC vendor boot loader as a replacement for the vendor firmware. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* lantiq: remove patch adding support for building without reset controllerHauke Mehrtens2016-06-211-45/+0
| | | | | | | | The lantiq kernel arch code selects CONFIG_RESET_CONTROLLER always, so it is always selected when the lantiq target is build. we do not need support for unselected CONFIG_RESET_CONTROLLER option. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* brcm2708: properly detect the Raspberry Pi ZeroÁlvaro Fernández Rojas2016-06-213-2/+6
| | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* brcm63xx: simplify block size and image offset optionsÁlvaro Fernández Rojas2016-06-211-34/+45
| | | | | | | | Instead of having CFE_EXTRAS for every device that need specific block sizes and image offset, let's define a couple of vars which can be customized for each device. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* brcm63xx: add sysupgrade imagesÁlvaro Fernández Rojas2016-06-212-20/+31
| | | | | | | | | | Some devices require padded images in order to prevent CFE from flashing them to the wrong offset. For small flashes (4/8) this is no big deal, but for larger flashes (16/32) this implies 8 and 16 MB images, which is way too large and some devices aren't capable of flashing them through sysupgrade. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* lantiq: fix typo in new image generationBen Mulvihill2016-06-211-1/+1
| | | | | | | Fix typo in commit a6f7536a73c93794812d5e810fb41c3d0ff1fb27 (new image generation) Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
* brcm63xx: merge DSL-274X-F1 profilesJonas Gorski2016-06-211-16/+6
| | | | | | | The only difference is a field in the image tag header, so just define two images for it instead of treating them as separate devices. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: move the bootargs into the dtb filesJonas Gorski2016-06-2184-3/+334
| | | | | | Instead of using a fixed commandline, allow one per device. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: use upstreamed compatible name for the periph intcJonas Gorski2016-06-2111-11/+11
| | | | | | | This makes the eventual migration to bmips easier, as dts files will require less changes. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: fix external IRQsDaniel Gonzalez2016-06-211-9/+9
| | | | | | | | | | | | | External IRQs are currently broken, fix the BCM6345_EXT_IRQ driver. Since the adoption of the new driver irq-bcm6345-ext, in Chaos Calmer, external IRQs don't work. It seems there were some minor errors at the initial development of the driver. This patch fixes the ticket https://dev.openwrt.org/ticket/21613 Signed-off-by: Daniel Gonzalez <dgcbueu@gmail.com> Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: fix single profile selectionÁlvaro Fernández Rojas2016-06-211-0/+1
| | | | | | | Fixes commit c6990347. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* bcm53xx: backport BCM5301X patches for SRABRafał Miłecki2016-06-205-1/+170
| | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* kernel: backport bgmac changes from net-nextRafał Miłecki2016-06-209-11/+329
| | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* kernel: rename bgmac patches that went into the same kernelRafał Miłecki2016-06-204-0/+0
| | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* ramips: remove duplicate i2c dts infoMichael Lee2016-06-204-24/+0
| | | | Signed-off-by: Michael Lee <igvtee@gmail.com>
* ramips: update i2c driversMichael Lee2016-06-202-371/+611
| | | | | | | | | | | | | | | | | * add rt_i2c structure to store driver data * rewrite read/write check function and add i2c error status check. so we don't need to wait until time out. * add 10 bits address support. according to the data sheet i think it is possible. but i haven't verify it. * the most important is start transfer only need once. otherwise it cause I2C_STARTERR status. * add set i2c clock speed register by dts options "clock-frequency". not just hard code it. * add mt7621 i2c driver. i just copy i2c-ralink.c and change register names. and the hardware don't support error status. so i remove it. but the logic is the same. Signed-off-by: Michael Lee <igvtee@gmail.com>
* ipq806x: fix MAC_POWER_SEL switch configurationJosh Bendavid2016-06-205-6/+6
| | | | | | Fixes instability/corruption on the ethernet interface connected to port0 on the switch. Signed-off-by: Josh Bendavid <joshbendavid@gmail.com>
* lantiq: BTHOMEHUBV5A - use the power event code for the restart buttonMathias Kresin2016-06-201-1/+1
| | | | | | | | | | The restart event code is used in LEDE to trigger a factory reset on long press as well. By using the power event code, the restart functionality can be used without being prone to trigger a factory reset. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: diag - switch off the power led on failsafeMathias Kresin2016-06-201-0/+4
| | | | | | | | | | | | | | This patch is a follow up to commit 4cf3fd4 "add support for indicating the boot state using three leds". At the time of writing the patch, I wasn't aware that it's possible to switch info failsafe after boot (factory reset). Enabling the failsafe led without disabling the running led causes an unexpected led colour on devices using a single multicolour led to indicate the boot state. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: fix build of NAND sysupgrade imagesMathias Kresin2016-06-201-57/+45
| | | | | | | | | | | | | The *_UBIFS_OPTS variables need to be prefixed with DEVICE_ to match the profile name. The conditions need to be evaluated after the *_UBIFS_OPTS are set, otherwise the variables are always empty. Do not append or pass the DEVICE_ prefixed profile name to the images. Use the name that is passed by the Image/Build/Profile/ step. Signed-off-by: Mathias Kresin <dev@kresin.me>
* bcm53xx: properly support sysupgrade using Seama on NAND devicesRafał Miłecki2016-06-201-1/+48
| | | | | | It updates kernel and then formats UBI without loosing erase counters. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* kernel: rename B53 symbols to avoid upstream kernel conflictRafał Miłecki2016-06-2013-52/+52
| | | | | | | | | In kernel 4.7 there is upstreamed b53 driver using (mostly?) the same symbols as our b53 does. Change our symbols so both drivers can coexist in kernel tree. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Acked-by: Jonas Gorski <jonas.gorski@gmail.com>
* kernel: mtdsplit: calculate kernel partition precisely for SeamaRafał Miłecki2016-06-201-2/+2
| | | | | | | | | So far "kernel" partition didn't contain just a kernel. It also included Seama header and meta data. This was making kernel update complex and it wasn't trivial to read kernel size. Fix it by making "kernel" parition contain just a kernel image. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* kernel: backport cosmetic ubifs patchDaniel Golle2016-06-181-0/+42
| | | | | | | | | | | | | | | Despite the MS_SILENT flag being set when probing for ubifs rootfs a logline indicating an error is generated during boot: UBIFS error (pid: 1): cannot open "ubi0:rootfs", error -19 This leads to confusion and there shouldn't be lines containing the word 'error' twice in a bootlog if actually everything is fine (just the rootfs happens to be something else than ubifs) The patch added has been submitted and was accepted upstream, see: http://lists.infradead.org/pipermail/linux-mtd/2016-June/068056.html http://patchwork.ozlabs.org/patch/637491 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* lantiq: clean up / fix LegacyDevice template handlingFelix Fietkau2016-06-171-15/+7
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lantiq: get rid of ifneq() checks inside command templatesFelix Fietkau2016-06-171-34/+34
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lantiq: small fix for legacy profile buildsJohn Crispin2016-06-171-36/+7
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* octeon: fix image buildJo-Philipp Wich2016-06-171-1/+1
| | | | | | | | | | | The generic sysupgrade image attempted to use the wrong filesystem type due to premature variable interpolation leading to the following error on the buildbot system: cp: cannot stat `.../root.squashfs': No such file or directory make[4]: *** [.../tmp/lede-octeon-generic-ext4-sysupgrade.tar] Error 1 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* medaitek: convert the NAND target to UBIJohn Crispin2016-06-177-192/+62
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* ar71xx: WDR4300: Fixed default VLAN orderDavid Pinilla Caparrós2016-06-171-1/+1
| | | | | | Reordered the VLANs so the LAN ports are set to VLAN 1 and the WAN port is set to VLAN 2, as in the other routers in the config file. Moreover, this model had this VLAN mapping in OpenWRT Chaos Calmer. It seems that the VLAN were switched when fixing a bug in the port mapping ( OpenWRT changeset 47799 ) Signed-off-by: David Pinilla Caparrós <dpinitux@gmail.com>
* Revert "ramips: update i2c drivers"John Crispin2016-06-172-611/+371
| | | | | | | | This reverts commit d8202a84096831d4e6e2a522476bd6a0d46e6413. the commit broke I2C on various boards. Signed-off-by: John Crispin <john@phrozen.org>
* ipq806x: activate ATAG DTB mangle and EA8500 rootblock in dtsAdrian Panella2016-06-173-1/+190
| | | | | | | | | | | | | | The command-line arguments provided by the boot loader will be appended to a new device tree property: bootloader-args. If there is a property "append-rootblock" in DT under /chosen and a root= option in bootloaders command line it will be parsed and added to DT bootargs with the form: <append-rootblock>XX. Only command line ATAG will be processed, the rest of the ATAGs sent by bootloader will be ignored. This is usefull in dual boot systems, to get the current root partition without afecting the rest of the system. Signed-off-by: Adrian Panella <ianchi74@outlook.com>
* cns3xxx: fix RX softIRQ loopKoen Vandeputte2016-06-171-2/+2
| | | | | | | | | | Already reschedule when 1 or more frames came in. Checking for a full queue could produce a re-schedule loop as the checked RX ring location could contain undefined values depending on activity in previous loops. Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
* netlogic: R.I.PJohn Crispin2016-06-1710-370/+0
| | | | | | | I asked florian and he is ok with this. i think no one apart from him has access to these boards. Signed-off-by: John Crispin <john@phrozen.org>
* lantiq: convert remaining legacy targets to the new image generation codeJohn Crispin2016-06-178-98/+101
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* Revert "ar71xx/cpe510: use second wifi calibration table"Alexander Couzens2016-06-161-1/+1
| | | | | | | | Using the high power table can damage the device in some cases. This reverts commit bf27ac019c137e7baf90ca6ef0e40945ae871797. Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* Revert "lantiq: Use correct macaddr generating logic for the DGN3500"Felix Fietkau2016-06-151-5/+0
| | | | | | | This reverts commit 492964e741f1e0254b6ed7c0a095551a31d25dc9, which makes no sense. /etc/board.d cannot be used for system init stuff. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* realview: sync kernel config fileJohn Crispin2016-06-151-13/+29
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* lantiq: refresh patchesFelix Fietkau2016-06-156-100/+89
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: refresh patchesFelix Fietkau2016-06-154-28/+24
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: replace SMP cacheflush fix with some patches from linux-mti.gitFelix Fietkau2016-06-153-17/+354
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>