Commit Graph

16202 Commits (80403e4558107a3019cfe5ef69eac22bb7866123)

Author SHA1 Message Date
Ram Chandra Jangir 5e49c57956 ipq806x: Add support for linux-4.4
1)Changes

- Rebased the patches for linux-4.4.7
- Added patch to fix spi nor fifo and dma support
- Added patch to configure watchdog barktime

2)Testing

Tested on IPQ AP148 Board:
 a. NOR boot and NAND boot
 b. ethernet network and ath10k wifi
 c. ubi sysupgrade

UnTested
 dwc3 usb has not been validated on IPQ board(AP148)

3)Known Issues:
 Once we flash ubi image on AP148, and if we reset the board, uboot on
 first boot creates PEB and LEB for dynamic sized partitions, which is incorrect
 and not what linux expects which causes errors when trying to mount rootfs.
 In order to test this, we can use the below steps:
  a. Flash the ubi image on board and don't reset the board
  b. load the kernel fit image in RAM and boot from there.

Signed-off-by: Ram Chandra Jangir <rjangi@codeaurora.org>
8 years ago
Ash Benz 7eb1a7e956 include/image.mk: move build step tplink-safeloader to image.mk
Move tplink-safeloader from target/linux/ar71xx/image/tp-link.mk to include/image.mk

Signed-off-by: Ash Benz <ash.benz@bk.ru>
8 years ago
Mathias Kresin b2b917cd06 lantiq: do not build images which exceed the flash size
The user benpicco in #openwrt reported that images are build which are
bigger that the available flash size.

He provided a proof of concept fix and gave permission to me to send it
for inclusion.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years ago
Mathias Kresin db66b157db lantiq: VGV7510KW22 - enable the IP101A phy
The RJ45 WAN port is used for xDSL as well as the IP101A.

The pins 1,2,3,6 of the RJ45 are connected to the IP101A and the
pins 4,5 are connected to the xdsl chip.

Drop the ip101a-rst node. It can't be controlled and is not required
at all.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years ago
Mathias Kresin 4d5db712e3 lantiq: VGV7510KW22 - fix pinmux configuration
The STP pinmux was initially added in assumption LAN2 led is driven by
it. It worked somehow because STP group and gphy0 led0 share the GPIO.
Do it the right way by adding the gphy0 led0 the gphy function.

According to the author, the SPI node is a copy & paste leftover. Which
makes sense since nothing is connected to the SPI bus on this device.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years ago
Mathias Kresin a9f7586ad2 lantiq: VGV7519 - fix brn partition layout
Use the brnboot partition layout as it is listed in the OpenWrt wiki
article for this board.

Configure the brnboot root selector for this device as well.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years ago
Mathias Kresin 28faa3f292 lantiq: VGV7519 - get mac address from board_config partition
Use the mac address stored in the board_config partition instead of a
static one.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years ago
Mathias Kresin 1e395608cc lantiq: VGV7519 - add vlan support
Add the lantiq,switch property to enable vlans and setup them up.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years ago
Mathias Kresin 1deab53d88 lantiq: VGV7519 - add second usb port
Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years ago
Mathias Kresin 79d92bb7ac lantiq: VGV7519 - cleanup pinmux configuration
Cleanup the pinmux configuration by removing the unused spi node. Nothing is connected to the SPI bus on devices.

The stp_out pinmux child node covers the same GPIOs as the already used
stp group.

The same applies to the gphy-leds_out pinmux node and the "gphy0
led1" as well as "gphy1 led0" groups.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years ago
Mathias Kresin 8a382f1221 lantiq: VGV7519 - remove/merge redundant parts in dts
Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years ago
Mohammed Berdai f778cdd9c9 lantiq: fix ARV4518PWR01 network
This patch fixes the missing Lan interface config in the file
/etc/config/network for ARV4518PWR01/A which results in eth0 and br-lan
being down and therefore no way to access the router unless via UART-TTL.

Signed-off-by: Mohammed Berdai <mohammed.berdai@gmail.com>
8 years ago
Álvaro Fernández Rojas 2a57a54d49 ramips: add backported MT7628 pinmux fixes
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years ago
Cezary Jackiewicz 71e0ef3978 ar71xx: add GPIO pin for usb power switch for RouterBOARD 912
RB912 has one usb shared between external USB and miniPCIe slot. GPIO52 can
reroute power to external USB (=1) or internal miniPCIe slot (=0)

Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
8 years ago
John Crispin 7d67f79cb5 mediatek: more mtd fixes
this fixes full builds when ALL_KMODS is selected

Signed-off-by: John Crispin <john@phrozen.org>
8 years ago
John Crispin a42e84b2db lantiq: fix regression in VG3503J.dts
9d0608eef3 - "lantiq: VG3503J - merge profiles"

resulted in the dts file missing the version string.

Signed-off-by: John Crispin <john@phrozen.org>
8 years ago
John Crispin 1eac53ba92 mediatek: update mtd backport
Signed-off-by: John Crispin <john@phrozen.org>
8 years ago
Jo-Philipp Wich 4ed8e57fd9 sdk: remove redundant symbol declaration
Commit d79f8909c1 introduced CONFIG_ALL,
CONFIG_ALL_KMODS and CONFIG_ALL_NONSHARED as menuconfig choices to the SDK,
therefor we can drop the hardcoded CONFIG_ALL symbol declaration now.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Jo-Philipp Wich 9eeb267c06 sdk: stop shipping a .config
Now that the most important options are exposed via menuconfig in the SDK we
can stop shipping a (possibly outdated) copy of .config from the emitting
buildroot.

Leaving out .config has two positive side effects:

 - A simple "make" run without any prior config will launch menuconfig, forcing
   interactive users to make appropriate choices

 - Buildbot systems (e.g. our phase2 builder) can issue a "make defconfig" to
   obtain a .config enabling all packages by default

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Jo-Philipp Wich 52836866c9 kirkwood: add missing kernel symbol
The query for ARMADA_THERMAL is stalling the kconfig process and as long as we
do not package it, simply disable the symbol.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Jo-Philipp Wich 1012701014 x86: generalize partition discovery for sysupgrade
Generalize the partition discovery in sysupgrade in order to fix sysupgrade
and config backup/recovery on MMC block devices which use a different naming
scheme compared to mtdblock or sd* devices.

The change also adds the find applet to the ramdisk utilities so that upgrade
code can rely on it.

The commit is based on the initial submission by Russell Senior at
http://patchwork.ozlabs.org/patch/625440/ .

Signed-off-by: Russell Senior <russell@personaltelco.net>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Daniel Dickinson d79f8909c1 sdk: Allow to change ALL* package settings in SDK
It is desirable to be able to use ./scripts/feeds install -a
when in the SDK without being forced to build a great number
of packages that are not actually wanted.

We therefore add the option of changing the various ALL package
build options so that we can default to packages not being built
unless we select them.

Signed-off-by: Daniel Dickinson <lede@daniel.thecshore.com>
8 years ago
Cezary Jackiewicz af1e70b4a7 ramips: Add status led for Xiaomi MiWiFi Nano
Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
8 years ago
John Crispin bf6634339a ramips: fix timing issues when using MT7621 spi
Signed-off-by: John Crispin <john@phrozen.org>
8 years ago
Claudio Leite 35782e104a mvebu: configure switch on WRT1200AC and WRT1900ACv2/S
Also collapses the three identical configurations into one block.

Signed-off-by: Claudio Leite <leitec@staticky.com>
8 years ago
Alexander Couzens bf27ac019c ar71xx/cpe510: use second wifi calibration table
The cpe510 has two calibration tables. The first calibration
table requires to modify ath9k driver to work (patched tx gain table).

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
8 years ago
Alexander Couzens c5ff273d85 ar71xx/cpe510: split profile into 2 profiles cpe210 and cpe510
Split profile into 2GHz and 5GHz. The 5GHz devices are
quite "special". The 2 GHz works perfect.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
8 years ago
Sven Eckelmann f21de7d9a8 ar71xx: add MR1750v2 to the MR1750 profile
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
8 years ago
Sven Eckelmann c4e3706533 ar71xx: extract ath10k wifi board.bin for the OpenMesh MR1750v2 board
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
8 years ago
Sven Eckelmann 77cb985022 ar71xx: enable sysupgrade for the OpenMesh MR1750v2
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
8 years ago
Sven Eckelmann 58dc285cd6 ar71xx: add user-space support for the OpenMesh MR1750v2
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
8 years ago
Sven Eckelmann f7719dca71 ar71xx: add kernel support for the OpenMesh MR1750v2
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
8 years ago
Sven Eckelmann 634f681da4 ar71xx: add OM2P-HSv3 to the OM2P profile
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
8 years ago
Sven Eckelmann 222dfb3d6a ar71xx: enable sysupgrade for the OpenMesh OM2P-HSv3
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
8 years ago
Sven Eckelmann e10d12411c ar71xx: add user-space support for the OpenMesh OM2P-HSv3
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
8 years ago
Sven Eckelmann 8010e8a370 ar71xx: add kernel support for the OpenMesh OM2P-HSv3
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
8 years ago
Sven Eckelmann 823cea2d5d ar71xx: Allow OpenMesh CE images with more than 3 files
The CE image format used by OpenMesh can contain extra blocks which
are not used for flashing. Only the first three embedded images
(fwupgrade.cfg, kernel, rootfs) are required in this order to successfully
flash an image via sysupgrade. All extra embedded images should be ignored
for the available devices.

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
8 years ago
Sven Eckelmann d1b4a8cfcf ar71xx: Move OpenMesh image target validation into subfunction
The platform_check_image_openmesh function used break statements to signal
that the board name matched the image target. This worked because the
sysupgrade binary checked the image inside a loop. The break statement
stopped the loop and skipped any additional check.

Instead the check should be done without such sideeffects by simply
combining the board names and image targets. Only a mismatch should cause a
negative result for the caller and skipping of the additional checks.

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
8 years ago
Sven Eckelmann 6150c15ad1 ar71xx: Generate sysupgrade images for OpenMesh devices
Some OpenWrt based firmwares like Gluon expect that a sysupgrade image
exists when a device firmware can be updated via sysupgrade. This image
wasn't created until now because OpenMesh devices use the same image for
factory and sysupgrade flash. Copying the image from *factory.bin to
*sysupgrade.bin is therefore enough to make the sysupgrade functionality
visible.

Reported-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
8 years ago
Sven Eckelmann 9b6b75d09d ar71xx: Add support for initramfs images for OpenMesh devices
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
8 years ago
Felix Fietkau f85e5e6778 ar71xx: move nand device image definitions to a separate file
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau dcc2ea3cf5 ar71xx: move generic device image definitions to a separate file
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 054df4fda4 ar71xx: split ubnt image building code into a separate file
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 736fc38d33 ar71xx: split legacy image building code into a separate file
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 64b8bb3b69 ar71xx: split tp-link image building code into a separate file
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Russell Senior 0fd183c155 x86_64: enable mmc to support booting off sd
Improved support for PCEngines APU

Signed-off-by: Russell Senior <russell@personaltelco.net>
8 years ago
Russell Senior f89a20a89a ath25: update kernel from 3.18 to 4.4
Summary of changes:
	* moved config-3.18 to config-4.4 and patches-3.18 to patches-4.4
	* removed most of the first two patches, that seem to be upstream already
	* changed deprecated/removed IRQF_DISABLED to zero following examples in upstream kernel patches
	* added config line to disable device-tree to satisfy kernel configuration
	* add new image generation code

Build tested and run tested on an Accton MR3201A.

Signed-off-by: Russell Senior <russell@personaltelco.net>
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Signed-off-by: John Crispin <john@phrozen.org>
8 years ago
John Crispin c7efbd7dbb ramips: Add specific compatible properties for esw
Currently, for RT5350 and MT7628, esw is marked as compatible with
"ralink,rt3050-esw". While this is true, the switches within RT5350
and MT7628 actually support more functionality than the RT3050 switch.

One such example is per-VLAN untagging, which is an important feature.

RT3352 is another example of this, but it already has an additional
compatible property, which allows to differentiate it from RT3050.

This commit adds such more specific properties for RT5350 and MT7628
as well.

Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
8 years ago
John Crispin f5f173e2b7 mediatek: update patches
* fixes NAND
* adds latest ethernet patches

Signed-off-by: John Crispin <john@phrozen.org>
8 years ago
Mathias Kresin abfdddfb3c lantiq: VG3503J - use the 11G firmware
Use the 11G firmware for the phys as the oem firmware does.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years ago
Mathias Kresin 9d0608eef3 lantiq: VG3503J - merge profiles
The only difference between the VG3503J profiles is the version of the
gphy firmware that gets loaded. This can be handled perfect fine in one
device tree source file.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years ago
Mathias Kresin 21bdd79b33 lantiq: disable phy led complex (test) functions by default
They can be added using the phy led device tree bindings if required.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years ago
John Crispin 9e41c3f54e imx6: move profile definitions to the image/Makefile
Signed-off-by: John Crispin <john@phrozen.org>
8 years ago
Cezary Jackiewicz 2965430999 ramips: cleanup for Hame MPR-A2
- disable all ethernet ports except port 0 on MPR-A2

Port 0 is the only ethernet port on this router, so disable all other PHYs in order to save power.

- don't use a VLAN for the single ethernet port of the MPR-A2

Like A5-V11, this router only has one ethernet port.

Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
8 years ago
Felix Fietkau df98acc6a1 mvebu: backport upstream ethernet driver improvements and enable buffer manager support
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau e90245237c oxnas: use global UBIFS_OPTS, all profiles use the same settings
Fixes build when selecting a device profile

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 848cacb21d mvebu: fix device I/O coherency issues
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 638a5682e1 kernel: remove bogus CONFIG_LOG_BUF_SHIFT overrides
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau a080b10331 mvebu: correct patch name of the crypto sram fix
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 629636dd25 mvebu: fix bus ranges for the crypto processor sram
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 22cc151e93 mvebu: tune kernel config for performance
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau f849c2c832 mvebu: enable core drivers in the kernel config instead of packaging them
Simplify profile package selection

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau a5a3b59bf5 mvebu: add some more flash driver fixes
Disable marvell,nand-keep-config property on WRT1900AC to allow the
flash driver to properly probe the chip

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 008579f2ff mvebu: rename recently added flash driver fix
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau f0dd81043c mvebu: prevent crash in the flash driver in case of a spurious interrupt
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 566343246f mvebu: backport an upstream NAND flash driver fix
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 5166732a4e ramips: use green power LED as status indicator for Buffalo WSR-1166 and WSR-600
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 72568ea3bd ar71xx: remove linux 4.1 support
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Álvaro Fernández Rojas 8998dc14a5 brcm2708: fix SUBTARGET checks for bcm2709/bcm2710
This regression was introduced in commit cf58007a

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years ago
Felix Fietkau 24b8d31bad mvebu: update to linux 4.4
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 8eab383782 mvebu: fix portability issues in the image makefile code
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau cf58007abc bcm2708: explicitly check for SUBTARGET instead of using the device SUBTARGETS variable
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 323d37cbb6 arm64: update to linux 4.4
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 647e6379af kernel: add missing config symbols for 4.4
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 82dcbec727 ramips: remove fake vlan rx offload from ethernet driver
The network stack does not need it to do GRO

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Alexander Couzens 94e23bf740 ar71xx/cpe510: enable LNA for CPE210/220/510/520
The LNA improves the rx path. Within a simple test setup
it improved the signal from -60dbm to -40dbm.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
8 years ago
Daniel Golle 118b5ae7b2 oxnas: drop compatibility with old kernels from mach-ox820
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 years ago
Daniel Golle 97ce23c347 oxnas: drop compatibility with old kernels from pinctrl
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 years ago
Daniel Golle f90f379a7f oxnas: drop compatibility with old kernels from irq-rps
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 years ago
Daniel Golle 53a9809080 oxnas: drop compatibility with old kernels from dwmac-oxnas
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 years ago
Daniel Golle c43635bc5c oxnas: sync 010-arm_introduce-dma-fiq-irq-broadcast with cns3xxx
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 years ago
Álvaro Fernández Rojas c4664b0f91 kernel: update kernel 4.4 to version 4.4.11
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years ago
Felix Fietkau 2c83003143 kernel: fix unaligned access issue in the bridge multicast-to-unicast patch
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Álvaro Fernández Rojas 3bc90f9626 ramips: use backported upstream patches
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years ago
Felix Fietkau 9d37095fd0 ar71xx: fix a remaining unaligned access issue
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 934daa7b50 kirkwood: move ubi/ubifs options to the image makefile
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 311faaa1bd lantiq: move ubi/ubifs options to the image makefile
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Daniel Dickinson 9fd8e55132 imagebuilder: Fix sorting package list breaks opkg dependency handling for provides
When imagebuild sorts package lists it breaks opkg's ability to realize
that a providers for a Provides has already been installed, when the sort
results in the provider being later in the list of packages that a package
which depends on a Provides (and hence the provider is not yet installed
for opkg to realize the provider was available doesn't not handle the case
of a package that is to be installed satisfying a dependency, only one that
is already installed (or which it schedules to be installed, which in the
absence of an installed provider is whichever provider happens to be the
default)

Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
8 years ago
Álvaro Fernández Rojas 638d509817 ramips: fix pinctrl regression
This regression was introduced in commit 9195d8da.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years ago
Álvaro Fernández Rojas 29db5cae43 ramips: fix spidev generic nodes
Use linux,spidev compatible string.
Move MZK-DP150N spidev to spi1 node.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years ago
Felix Fietkau 98204836a4 ar71xx: fix register address calculation for DDR flushing
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Álvaro Fernández Rojas 021c893658 ramips: fix size-cells on spi nodes
size-cells should be 0 in order to avoid dummy values in reg properties.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years ago
Felix Fietkau b8a129638e kernel: add back the macronix software protection disable patch
It was accidentally left out when 4.4 support was added

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Rafał Miłecki 01714243b9 bcm53xx: drop Copyright header from two of my bash scripts
Both scripts modified by this patch were added by me. First of all I
incorrectly added OpenWrt as Copyright holder. It was wrong because:
1) I simply can't transfer my moral rights according to the Polish law
2) Transfering copyrights (economic rights) requires an agreement which
   I didn't sign with OpenWrt(.org).
Other than that I don't find these trivial scripts important enough to
put info about *my* copyrights in a header so this patch just drops them
completely.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
8 years ago
John Crispin 2a6b899589 ramips: fix 8M WT3020 image creation
fix image size for 8M version : 4M -> 8M

Signed-off-by: Gerhard Bertelsmann <info@gerhard-bertelsmann.de>
8 years ago
Daniel Golle 055d8d9c61 oxnas: move target-specific modules into target's modules.mk
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 years ago
Felix Fietkau 17de501daa kernel: backport patches for fq_codel queue memory limit support
Use it to replace the reduction in max packets/flows

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 40f08abecf ar71xx: fix typo in pci memory window initialization fix
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Daniel Golle 70eb03469f oxnas: reorganize image build code and nuke profiles
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 years ago
Jo-Philipp Wich d4e552ba16 kernel: fix yaffs2 build with kernel 4.4
Fix YAFFS2 build after upstream nd_set_link() removal by importing
http://permalink.gmane.org/gmane.linux.embedded.yocto.linux-yocto/4373

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Cezary Jackiewicz 5521651863 ar71xx: typo in jjplus profile
Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
8 years ago
John Crispin 1d9c0b2409 ramips: fix ArcherC20i image creation - 3rd try
Signed-off-by: John Crispin <john@phrozen.org>
8 years ago
Felix Fietkau acd7a34494 kernel: enable CONFIG_PANIC_ON_OOPS by default
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 2ecf3af576 kernel: set CONFIG_PANIC_TIMEOUT by default
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau f4c4d501e4 build: remove profile kernel/build system config override support
It has been unused for years

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 7a67b0e362 ar71xx: update to linux 4.4
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 9c556fe73e ar71xx: register the gpio driver earlier
This allows gpio requests from mach files to succeed.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 313474e693 ar71xx: fix a PCI initialization issue in Linux 4.4
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 5b34dffcbd ar71xx: fix DDR write buffer flushing issues with 4.4
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau df93d53a4b mac80211: update to wireless-testing 2016-05-12
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau ce21e18d57 kernel: fix a compiler warning on 64 bit systems
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau ce009d16a1 ramips: fix Archer C20i image build
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Cezary Jackiewicz 0b45bec22c
ar71xx: add support for TP-LINK TL-WR842N/ND v3
- CPU QCA9531-BL3A
- RAM: 64MB
- flash: 16MB
- USB

AP143 platform, similar to tl-wr841n v10/v11, but with USB

Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
8 years ago
John Crispin 5d0eff9801 ramips: set default profile to priority 1
doing so will sort all profiles alphabetically

Signed-off-by: John Crispin <john@phrozen.org>
8 years ago
John Crispin cc831e23e1 ar71xx: add proper support for Archer-C7 V2
This has minor differences to the V1

Signed-off-by: John Crispin <john@phrozen.org>
8 years ago
John Crispin 7697aced24 ramips: fix ArcherC20i image creation
Signed-off-by: John Crispin <john@phrozen.org>
8 years ago
Felix Fietkau 27dfe64887 ramips/mt7621: remove cflags override
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau bceafad7c2 kernel: add missing config symbol
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Álvaro Fernández Rojas 424a94d81a brcm2708: convert to the new building system
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years ago
Álvaro Fernández Rojas 20b069c440 ramips: disable unused ethernet ports on VoCore
Only ports 0 and 4 are used so disable the other ones in order to save power.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years ago
Jo-Philipp Wich 45e0f8b826 arm64: add missing kconfig symbol
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Felix Fietkau 80f4988da3 target/imagebuilder: fix using new device profiles
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau fad8bdfa40 kernel: backport patches improving fq_codel drop behavior
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 26c137621f kernel: remove out-of-tree patches for reducing qdisc truesize
The copy overhead can be quite expensive

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 75b069f505 kernel: fold codel default fix into main patch
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 7fab5dc486 ramips: fix indentation of Build/* template commands
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 98010ab489 kernel: remove ocf support, cryptodev-linux should be used instead
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
John Crispin f816472f78 ar71xx: Fix TP-LINK Archer-C5/C7 v2 rfkill
Fix ARCHER_C7_GPIO_BTN_RFKILL, which is attached to GPIO23

Signed-off-by: Lars Buerding <lb.wrt@metatux.net>
8 years ago
John Crispin f10d2bb6d3 ramips: add wmac nodes to all mt7628/88 dts files
Signed-off-by: John Crispin <john@phrozen.org>
8 years ago
Andrew Yong 8c9b8d70b1 ramips: add status led for ZBT-WE826
Signed-off-by: Andrew Yong <me@ndoo.sg>
8 years ago
John Crispin 4220cc3255 ramips: convert mt7620 to new image building code
Signed-off-by: John Crispin <john@phrozen.org>
8 years ago
John Crispin ecbaaa401a ramips: convert mt7688 to new image building code
Signed-off-by: John Crispin <john@phrozen.org>
8 years ago
John Crispin 0f12f32996 ramips: convert mt7628 to new image building code
Signed-off-by: John Crispin <john@phrozen.org>
8 years ago
John Crispin 825717d450 ramips: convert mt7621 to new image building code
Signed-off-by: John Crispin <john@phrozen.org>
8 years ago
John Crispin a55f0c32fa ramips: convert rt2880 to new image building code
Signed-off-by: John Crispin <john@phrozen.org>
8 years ago
P.Wassi 8307c2fe68 ar71xx: Add support for Ubiquiti UniFi AP AC PRO
Add support for the Ubiquiti UniFi AP AC PRO
Signed-off-by: P.Wassi <p.wassi at gmx.at>
8 years ago
P.Wassi c855e70491 ar71xx: Rename unifiac to unifiac-lite
To avoid confusion with different unifiac devices, rename existing target
"unifiac" to "unifiac-lite", before "unifiac-pro" is introduced.

Signed-off-by: P.Wassi <p.wassi at gmx.at>
8 years ago
Stanislav Galabov ffaaa6788a ramips: DTS modifications
This commit makes the following modifications to ramips dts files:
1. Add clkctrl node to all dtsi files (although not used for now)
2. Add clocks and clock-names properties to some nodes (usbphy, pci)
3. Add usbphy node for rt3050 (although not used for now)
4. Add clock-frequency to uart nodes in mt7621.dtsi and mt7628an.dtsi

These modifications, although not fully used at the moment, will make
it easier for FreeBSD to adopt and use LEDE ramips dts files with
minimal changes for easier maintenance.

Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
8 years ago
John Crispin b8ab6af1a9 global: change my email address
Signed-off-by: John Crispin <john@phrozen.org>
8 years ago
Adrián Panella e1041e1bc0 ipq806x: enable fpu
Enable hardfloat to use all the cpu power

Signed-off-by: Adrian Panella <ianchi74@outlook.com>
8 years ago
Kevin Darbyshire-Bryant e288e1bd32 kernel: fq_codel match flows_cnt to limit sizing
OpenWRT changed the default fq_codel sch->limit from 10240 to 1024,
without also adjusting q->flows_cnt.  Eric Dumazet explains below that
you must also adjust the buckets (q->flows_cnt) for this not to break.

Eric explains: Limit of 1024 packets and 1024 flows is not wise I think.
(If all buckets are in use, each bucket has a virtual queue of 1 packet,
which is almost the same than having no queue at all)

I suggest to have at least 8 packets per bucket, to let Codel have a
chance to trigger.  So you could either reduce number of buckets to 128
(if memory is tight), or increase limit to 8192.

flows_cnt is now set to 1024/8=128

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
8 years ago
Andrew Yong 374cae9e6f ramips: add initial support for SamKnows SK-WB8
Signed-off-by: Andrew Yong <me@ndoo.sg>
8 years ago
Stanislav Galabov 9195d8da35 ramips: DTS rework
Add node aliases to dtsi files.
Reword dts files so they're more in-line with upstream.
Fix some more warnings and errors reported by dtc

Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
8 years ago
Felix Fietkau 05459a004a kernel: move the old gpio watchdog driver from generic to brcm47xx
brcm47xx is the only user

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 30cd012860 gemini: delete 3.18 support
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 3f1705d777 bcm53xx: delete old kernel versions
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau b9c6361d5f mxs: delete old kernel versions
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau be83f982a7 sunxi: delete old kernel versions
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 930195737a oxnas: delete linux 4.1 support
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 825ef34f15 x86: remove defunct etherboot image building code
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 900b4865b8 x86: remove obsolete Config.in file
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau cebc410d02 x86: remove rdc specific kernel patch
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 2e5f84fc10 x86: remove legacy script/makefile code for rdc devices
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau ca12fd431d x86: remove obsolete modules.mk
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 018807ded3 x86/xen_domu: enable xen drivers in the kernel config instead of packaging them as modules
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 303a241478 x86: enable grub at_keyboard support for x86_64
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 7d7fb75df5 x86: remove the kvm_guest subtarget
32-bit only hardware that supports kvm is very rare.
It's not worth keeping a separate subtarget for this.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 959bc143a0 x86/64: add more hardware RNG drivers, including for virtio
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau 167404ceb5 x86/64: enable virtualization support for spinlocks to improve kvm performance
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau bc0ea9c273 x86: remove maintainer override for x86_64
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau dee8986b95 x86: remove the ep80579 subtarget, it has been unmaintained for a long time
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Jo-Philipp Wich 33d9d6c375 kernel: add workaround to rebuild vdso-n32.so.dbg too
Building for octeon fails with

  'arch/mips/vdso/vdso-n32.so.dbg' already contains a '.MIPS.abiflags'
  section

if the file already exists from a prior build.

Use the same workaround as the one for vdso.so.dbg committed in
9eb155353a.

Commit 91f205acaf extended the workaround
to cover vdso-o32.so.dbg but missed the vdso-n32.so.dbg which is added
now by this change.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Álvaro Fernández Rojas e32b2f92b1 kernel: update kernel 4.4 to version 4.4.10
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years ago
Álvaro Fernández Rojas e042e0d50f kernel: remove linux 4.3 config
When linux 4.3 support was removed the config was left.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years ago
John Crispin f6059cc118 ramips: fix DTB generation
using preprocessor style includes when calling dtc directly.

Signed-off-by: John Crispin <john@phrozen.org>
8 years ago
Stanislav Galabov f8b6c9d825 ramips: Change all '/include/' clauses to '#include' so preprocessing can
be done properly for the entire device trees.

Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
8 years ago
Stanislav Galabov 600c224213 ramips: Add hex prefix (0x) to dtsi reg properties where needed.
Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
8 years ago
Stanislav Galabov b8f73d7f0a ramips: introduce serial0 aliases
This patch introduces serial0 aliases in the ramips DTS files, which can
then be used to denote the active console instead of relying on bootargs.

Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
8 years ago
Álvaro Fernández Rojas b062266ad6 kernel: update kernel 4.4 to version 4.4.9
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years ago
Russell Senior c3cf3c4ec4 brcm47xx: fix wgt634u port assignment, broken since openwrt r47866
Signed-off-by: Russell Senior <russell@personaltelco.net>
8 years ago
D. Andrei Măceș 823c58a1cf ramips: mt7620: [UPSTREAM] fix USB frequency scaling
The logic for the SoC check got inverted. We need to check if it's
not a MT76x8.

Signed-off-by: D. Andrei Măceș <dmaces@nd.edu>
8 years ago
Vittorio Gambaletta (VittGam) 1570277094 ramips: Fix alphabetical sorting for 02_network
Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
8 years ago
Vittorio Gambaletta (VittGam) 39f035fdc7 ramips: Don't use a VLAN for the single ethernet port of the A5-V11.
This router only has one ethernet port, so a VLAN is useless here, now that the rt3050 TCP bug that happened without VLANs has been fixed for a very long time.

Add this router to the VLAN-less config that is used by other single-port routers.

Also fix MAC address detection code since this router has no WAN port.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
8 years ago
Vittorio Gambaletta (VittGam) ffb7bf7672 ramips: Fix network for routers without VLANs on eth0.
Some routers only have one port, so eth0 is used without VLANs for them.

Revision r47720 introduced some changes, but wrongly confused "enable" with "reset".

VLANs need to be disabled for those routers, and the switch may be reset.

Fix this, by explicitly disabling VLANs instead of resetting the switch for these routers.

Also merge duplicate configuration for the "m2m".

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
8 years ago
blogic 40bfe9f0bd ramips: Drop hacky switch workaround for failsafe on rt3x5x and rt5350.
The new rt3050 switch driver doesn't have problems with TCP when not
using VLANs.

This piece of code also broke failsafe for all routers where the LAN
port is not wired to port 0 of the internal switch.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>

SVN-Revision: 49293
8 years ago
blogic 3f638902b6 ramips: Disable all ethernet ports except port 0 on A5-V11.
Port 0 is the only ethernet port on this router, so disable all other PHYs
in order to save power.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>

SVN-Revision: 49292
8 years ago
blogic d5114b509b ramips: Disable all ethernet ports except port 4 on HT-TM02.
Port 4 is the only ethernet port on this router, so disable all other PHYs
in order to save power.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>

SVN-Revision: 49291
8 years ago
blogic 12758e32d3 ramips: Get rt3050 ethernet ports to be disabled from the device tree.
This patch allows configuring ports to be disabled in the device tree; this
saves power, since disabling ports here actually disables power to ethernet
PHYs.

Line 444 enables all ethernet ports, so line 487 is getting zero ports to be
disabled, except for port 5 in SoCs where this is not implemented as it will
be sticky disabled in register POC0. Because of this, the code will still read
the switch configuration and OR it to the device tree setting.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>

SVN-Revision: 49290
8 years ago
blogic e626d4f702 ramips: Fix comment in rt3050 ethernet switch driver.
Line 444 is actually enabling all switch ports by setting the disable bits
to 0. This needs to be done because the bootloader sets all ports to disabled
by default (which is the case for at least one router based on RT5350).

So, this patch fixes the comment in line 443.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>

SVN-Revision: 49289
8 years ago
blogic e716fce5da ramips: Fix documentation for the rt3050 switch driver.
The prefix used in the driver is now "mediatek" instead of "ralink".

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>

SVN-Revision: 49288
8 years ago
blogic decd89c57f ramips: Fix multicast ICMPv6 for the rt3050 ethernet switch.
The FCT2 esw register should be set to 0x2500C to have "unknown IPv6
multicast" packets broadcasted to every port, instead of dropped.
The previous value only let those packets go through ports 1 and 3.

"Unknown IPv6 multicast" packets include packets needed by ICMPv6 echo
requests addressed to well-known addresses, such as ff02::1 (MAC address
is 33:33:00:00:00:01 in this case).

Please note that by default ICMPv6 echo requests to ff02::1 are not replied
to by the router because of ip6tables considering those packets to be invalid.
But this is another bug/patch. ;)

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>

SVN-Revision: 49287
8 years ago
blogic 75629fb2a8 ar71xx: add TP-Link TL-WR810N support
This patch adds support for the TP-Link TL-WR810N.
https://wiki.openwrt.org/toh/tp-link/tl-wr810n

Signed-off-by: Jens Steinhauser <jens.steinhauser@gmail.com>

SVN-Revision: 49286
8 years ago
blogic d4de9f72f3 lantiq: VGV7510KW22BRN - set the phy clock source
VGV7510KW2 with VRX288 v1.2 has brnboot 1.8 installed. Starting with
this brnboot version, the "GPHY Clock Source" isn't set anymore by
brnboot, with the result that xrx200-net fails to probe/initialize the
phys.

Use the phy clock source device tree binding to specify the clock source.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 49284
8 years ago
blogic 44cace4dab lantiq: add device tree binding for the phy clock source
Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 49283
8 years ago
blogic 60ac485274 lantiq: VGV7510KW22BRN - support dual-image
Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 49282
8 years ago
blogic d7438ce315 lantiq: handle the dual-firmware layout of brnboot
brnboot based devices can have two Image partitions. When flashing
images via the brnboot recovery web interface, the Image partitions are
written alternating.

The current active Image partition is stored in the first byte of the
Primary_Setting partition by using 0x00 for Code_Image_0 and 0x01 for
Code_Image_1.

By using the information about the active "Code Image", it is possible
to ensure that the rootfs belongs to the current booted Image/Kernel.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 49281
8 years ago
blogic b7fc892eb5 lantiq: move partitions into partion table node
Starting with kernel 4.4, the use of partitions as direct subnodes of the
mtd device is discouraged and only supported for backward compatiblity
reasons.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 49280
8 years ago
blogic b695ce2999 lantiq: use sysupgrade.bin postfix for tplink images
Use the same name for TP-Link images as it was with the old image build
code.

Move the BOARD_ID export to the TP-Link image build recipe, to indicate
that the variable is only related in this context.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 49279
8 years ago
blogic 5ed2140162 lantiq: VG3503J - use the same PHY led functionality as the OEM firmware
Based on the vg3503j_gphy_led.sh script published in the VG3503J wiki
article, the OEM Firmware uses the following PHY led functionality:

    gphy led 0: LINK/ACTIVITY
    gphy led 1: LINK
    gphy led 2: ACTIVITY

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 49278
8 years ago
blogic ba3ed629ea ar71xx: Fix eth0 support for Ubiquiti UniFi AP AC
Fix eth0 support for the Ubiquiti UniFi AP AC
Signed-off-by: Paul Wassi <p.wassi at gmx.at>

SVN-Revision: 49277
8 years ago
blogic b529387d8c lantiq: use the same functionality for all ethernet phys led
The VGV7510KW22 has the leds for LAN1-3 connected to pin1 of the phys
and the led for LAN4 connect to pin0 of the phy. This results with the
current configuration in a fast flashing LAN4 led as soon as a network
cable is connected. Something similar was reported on the forum[1] for
the VGV7519 as well.

Since it isn't predicable to which pin a (single) phy led is connected,
use the (default) pin1 functionality

    Constant On: 10/100/1000MBit
    Blink Fast: None
    Blink Slow: None
    Pulse: TX/RX

for all ethernet phy leds.

After checking pictures of all vr9 boards, it looks like only the VG3503J
has more than one led connected per phy. Using the phy led device tree
bindings to assign the functionality to the "additional" leds, the
VG3503J phy leds should behave as before.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

[1] https://forum.openwrt.org/viewtopic.php?pid=321523

SVN-Revision: 49270
8 years ago
blogic 6249269322 lantiq: fix minor typos in 11G/22F phy driver
Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 49269
8 years ago
blogic 6b0425a187 ramips: add support for Planex MZK-EX750NP.
add support for Planex MZK-EX750NP.
MZK-EX750NP is MT7620A and MT7610E based 11ac wifi repeater.
Built-in power supply.
64MiB RAM, 8MiB SPI Flash, non Wired Ethernet.

Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com>

SVN-Revision: 49268
8 years ago
blogic 23596ca527 mediatek: sync patches and add more ethernet stability fixes
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 49265
8 years ago
Stijn Tintel 91f205acaf kernel: add workaround to rebuild vdso-o32.so.dbg
Building for octeon fails with

  'arch/mips/vdso/vdso-o32.so.dbg' already contains a '.MIPS.abiflags'
  section

if the file already exists from a prior build.

Use the same workaround as the one for vdso.so.dbg committed in
9eb155353a.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
8 years ago
Alexander Couzens 4e84c6cbd2 toolchain: rename OpenWrt into LEDE
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
8 years ago
Alexander Couzens 173ac3b7cb sdk: rename OpenWrt into LEDE
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
8 years ago
Alexander Couzens 009a069ec0 imagebuilder: rename OpenWrt into LEDE
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
8 years ago
Jo-Philipp Wich 9eb155353a kernel: add a workaround to rebuild vdso.so.dbg after genvdso
Currently the build fails with

  'arch/mips/vdso/vdso.so.dbg' already contains a '.MIPS.abiflags' section

if the file already exists from a prior build.

Add a makefile rule to force the rebuild of vdso.so.dbg if genvdso has
has been changed to workaround the failure.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Rafał Miłecki cf3b3cfc56 bcm53xx: add m25p80 workaround for SPI flash writing problems
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 49264
8 years ago
John Crispin 090b134786 mediatek: sync and patches add support for several boards
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 49263
8 years ago
Rafał Miłecki 9e4d671f75 bcm53xx: support SPI-NOR on dual flash devices
We need it to access NVRAM.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 49262
8 years ago
Rafał Miłecki 741715331a bcm53xx: switch to m25p80 and drop bcm53xxspiflash
For some time now m25p80 supports 32 MiB flashes and we just needed to
patch spi-nor to support JEDEC incompatible w25q128. Also by switching
to m25p80 we gain accelerated SPI flash reads.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 49260
8 years ago
Rafał Miłecki 73d51d7b5d bcm53xx: support JEDEC incompatible w25q128 in spi-nor
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 49259
8 years ago
Jo-Philipp Wich eb529d2625 lantiq: fix xway image building
Commit 8c130dd (lantiq: use new image build process for some images) broke
image generation for the xway target since the generated macros reference not
existing WBMRA.dts and WBMRB.dts files leading to the following build error:

  mips-openwrt-linux-musl-cpp: error: ../dts/WBMRA.dts: No such file or directory
  mips-openwrt-linux-musl-cpp: warning: '-x assembler-with-cpp' after last input file has no effect
  mips-openwrt-linux-musl-cpp: fatal error: no input files

Previously both the WBMRA and WBMRB profiles shared a common WBMR DT since
the only difference is the embedded firmware kmod package.

Extend the lantiqImage macro to optionally support specifying a different
DTS file and use this facility to let the both WBMR profiles reference the
correct device tree file.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Álvaro Fernández Rojas 7df1964180 brcm2708: removes backported patch (linux-4.4.7)
This regression was introduced while rebasing LEDE's commits over the latest
OpenWrt repository.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years ago
Jo-Philipp Wich f7a2237b86 at91: fix SAMA5D3 subtarget
Add required architecture overrides to enable SAMA5 boards in Kconfig, add
resulting missing symbols, reorder config and remove unrelated XEN setting.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Jo-Philipp Wich ec5680a73d x86: remove old references to kmod-acpi-button
The kmod-acpi-button functionality is included in the kernel where needed
and the corresponding kmod package has been deleted long ago, therfor drop
the remaining references now.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Jo-Philipp Wich c0a287610a uml: revert accidentally committed change
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Jo-Philipp Wich 49ad0c565a tools: fix make_ext4fs build with recent glibc
Update to latest make_ext4fs Git HEAD to fix build with recent glibc version
which does not implicitely includes sysmacros.h anymore.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Álvaro Fernández Rojas 525b311bf8 brcm2708: update linux 4.4 patches to latest version
As usual these patches were extracted 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>
8 years ago
Álvaro Fernández Rojas a90ee92337 kernel: fix ip6_tunnel compilation
Replace undefined iph for ip_hdr(skb)

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years ago
Álvaro Fernández Rojas 3faf65e928 kernel: update kernel 4.4 to version 4.4.8
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years ago
Jo-Philipp Wich b9466382b5 imagebuilder: use correct package directory when bundling kmods and libc
The libc and kernel package files moved since the introduction of shared
packages and the changed output directory layout. This causes the generated
ImageBuilder archive to lack the necessary "libc" and "kernel" meta packages,
leading to opkg install errors later on.

Use the FeedPackageDir macro to figure out the proper source directory to use.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Jo-Philipp Wich 484cb91ad5 sdk: bundle required firmware files
Bundle all firmware files which have been built along with the kernel to fix
packaging of kmods in the SDK environment that rely on in-tree firmwares,
specifically kmod-e100.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
John Crispin dc92917409 image / basefiles: make console password configurable
Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
Signed-off-by: John Crispin <john@phrozen.org>
8 years ago
Jo-Philipp Wich f8ce7e028d sdk: do not exclude ccache executable
Change tar exclude pattern to skip ccache directory contents but not the
ccache executable itself.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Jo-Philipp Wich 0f6f518e7a sdk: fix generation of base feed url
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Jo-Philipp Wich e885286834 target: globally remove ARCH_PACKAGES overrides
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Christian Lamparter 3339f41d26 brcm2708: implement sysupgrade image check
Implement a crude but functioning sysupgrade image check for the
Raspberry Pi. The code only checks if the master boot record boot
signature (0x55aa) is present in the first 512-bytes at the correct
location. This can prevent the odd bricking of a system when flashing
the wrong file.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
8 years ago
Álvaro Fernández Rojas e821fdbadb brcm2708: add missing config symbols
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years ago
Jo-Philipp Wich da46d2b228 imagebuilder: fix standalone operation
Fix standalone ImageBuilders after the package layout rework.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Álvaro Fernández Rojas a8d4d71c41 brcm2708: update to latest version
As usual these patches were extracted from the raspberry pi repo:
https://github.com/raspberrypi/linux/commits/rpi-4.4.y

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years ago
Álvaro Fernández Rojas f233664faa brcm2708-gpu-fw: update to latest version
This update also adds individual download of firmware files instead of fetching
every file on the repository (10-MiB vs 100+MiB).
Also copy Linux license from kernel directory instead of using the rpi-firmware
one.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years ago
Jo-Philipp Wich 924fb794bd x86: search PARTUUID in any block device
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Jo-Philipp Wich 9f422eba7c x86: make sysupgrade work without partx
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
John Crispin fa69553900 branding: add LEDE branding
Signed-off-by: John Crispin <blogic@openwrt.org>
8 years ago
John Crispin ee53a240ac ar71xx: Add support for the OMYlink OMY-G1
https://wiki.openwrt.org/toh/omylink/omy-g1

http://www.omylink.com/

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>

SVN-Revision: 49258
8 years ago
John Crispin be1985471e zynq: Add Zybo device support
Signed-off-by: Jason Wu <jason.wu.misc@gmail.com>

SVN-Revision: 49257
8 years ago
John Crispin 869d3adc37 Zynq: Add Zedboard device support
Tested-by: Joe Zhang <jz21082@gmail.com>
Signed-off-by: Jason Wu <jason.wu.misc@gmail.com>

SVN-Revision: 49256
8 years ago
John Crispin b37ea8c776 zynq: Remove rdinit patch
This is not required as long as CONFIG_TARGET_INIT_CMD is correctly
configured.

Signed-off-by: Jason Wu <jason.wu.misc@gmail.com>

SVN-Revision: 49255
8 years ago
John Crispin 27c10641a0 lantiq: use dwc2 by default on all ar9 boards
The dwc2 USB driver now works on Lantiq ar9, but the
default is still ltq-hcd-ar9. This patch switches to
dwc2 by default.

v2: all ar9 boards (v1 was just for BTHOMEHUBV3A and WBMR)

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>

SVN-Revision: 49254
8 years ago
John Crispin fa1927839e lantiq: install uboot-envtools by default on BTHOMEHUBV3A
The only way to access the u-boot console on the BTHOMEHUBV3A
is by soldering a serial console onto some really tiny pads.

To enable installation without soldering it would be helpful
to be able to modify the uboot environment from within
the ramdisk image used as part of the installation process.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>

SVN-Revision: 49253
8 years ago
John Crispin 544efb9ad1 lantiq: remove read-only flag on two partitions on BTHOMEHUBV3A
Remove read-only flag on two partitions on BTHOMEHUBV3A:
  uboot-config - otherwise fw_setenv command cannot be used.
  ath9k-cal    - so that ath9k calibration data can be copied
                 to the partition on a newly installed board.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>

SVN-Revision: 49250
8 years ago
John Crispin 687ab51fb2 cns3xxx: set both MPS 'and' MRSS to 128
Fixes some DMA issues with this platform. Because this isn't currently accepted,
and can potentially disrupt other platforms (as read in commit log), I will
leave this cns3xxx specific.

Original Patch: https://patchwork.ozlabs.org/patch/600024/

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>

SVN-Revision: 49249
8 years ago
John Crispin 6a111b41bc cns3xxx: backport pci fix for cns3xxx_write_config
Fix is required to properly set pci config bits.
Original Patch: https://patchwork.ozlabs.org/patch/596170/

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>

SVN-Revision: 49248
8 years ago
John Crispin cb049e71cd ramips: Add support for the Netgear WNDR3700v5
https://wiki.openwrt.org/toh/netgear/wndr3700

wndr3700v5 uses the single-core dual thread MediaTek MT7621S SoC.

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>

SVN-Revision: 49247
8 years ago
John Crispin 840bfa8549 ar71xx: Add TP-Link TL-WR740N v6 support to trunk
This patch adds support for the TP-Link TL-WR740N v6 into OpenWrt trunk. Hardware wise, it's very similar to the TL-WR841N v10. See the forum thread [1]. Credit goes to the user 'traveler' who did the legwork and tested builds.

Also thanks to Matthias Schiffer for clarifying the DEVICE_PROFILE settings.

Signed-off by: Stijn Segers <francesco.borromini@inventati.org>

[1]: https://forum.openwrt.org/viewtopic.php?pid=318704

SVN-Revision: 49245
8 years ago
John Crispin 69a368cf7e ar71xx: simplify patch 613 and add missing error handling
Dynamic allocation of label can be simplified.
Also add error handling to deal with failed memory allocation.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

SVN-Revision: 49244
8 years ago
John Crispin 301d48b8f0 mediatek: update patches
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 49243
8 years ago
John Crispin 0a4f2b5920 lantiq: Fix typo in LED diag script.
Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
Acked-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 49242
8 years ago
John Crispin 517a6fab5f lantiq: use new image build process for brnImages
LZMA compress the kernel without dictionary, otherwise brnboot fails to
uncompress the kernel.

The filesystem parameter of mkbrncmdline was dropped since the used
filesystem isn't exported in the kernel build step and at least in my
tests everything works without the parameter. If the parameter is
required for some reason, the static keyword "squashfs" can be used.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 49241
8 years ago
John Crispin 6ade87df0a lantiq: remove orphaned tp-link image build steps
Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 49239
8 years ago
John Crispin 2ef2a6aaf6 lantiq: build sysupgrade images for lantiqImage
Tested with VGV7510KW22NOR.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 49238
8 years ago
John Crispin ef66c8d72e lantiq: new image build process - fix kernel entry address
Set the kernel entry address to the same value as it is used for the old
image build build process.

Fixes boot of uImages on VGV7510KW22NOR and others.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 49237
8 years ago
John Crispin 279eeeb744 ramips: add support for Planex MZK-EX300NP
MZK-EX300NP is MT7620A based wifi repeater.
Built-in power supply.
64MiB RAM, 8MiB SPI Flash, non Wired Ethernet.

Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com>

SVN-Revision: 49235
8 years ago
John Crispin e55d86ef32 ramips: add support for Planex CS-QR10
CS-QR10 is MT7620A based IP Camera.

the camera and sound does not work with kernel 4.4.
 - camera chip is sn9c291.
 - sound chip is wm8960.

Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com>

SVN-Revision: 49234
8 years ago
Rafał Miłecki 83ca0efb3e kernel: backport support for accelerated SPI flash read
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 49233
8 years ago
Rafał Miłecki e53d533a24 bcm53xx: backport BCM5301X DT patch specifying SPI controller
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 49232
8 years ago
Hauke Mehrtens 657a2457a6 ramips: fix build of target
Makes the patches apply again by fixing the white space broken patch.
This problem was introduced in r49212.

Closes #22248 and #22259

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 49221
8 years ago