Commit Graph

15748 Commits (f89a20a89aebe4767c606b4e04a6a3906e1ee26c)

Author SHA1 Message Date
John Crispin d2654729ac ramips: update DTS file for Planex DB-WRT01
update DTS files to use jedec,spi-nor compatible string for m25p80 to fix probe issues.

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

SVN-Revision: 49209
8 years ago
Rafał Miłecki 2be5203055 bcm53xx: bump maximum TRX size for devices with serial flash
It was already increased for NAND devices so do the same for the ones
with serial memory.

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

SVN-Revision: 49207
8 years ago
John Crispin 890eb0c126 ramips: fix support Planex MZK-750DHP.
fix script for Planex MZK-750DHP.
modification of the GPIO definition.
add Profile.

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

SVN-Revision: 49205
8 years ago
John Crispin 4a5158bd2a ramips: rt3352 usbphy fix in dts-file
Add missing rt3352 usb phy. Fix ticket #20499.

Signed-Off-By:Serge Vasilugin <vasilugin@yandex.ru>

SVN-Revision: 49204
8 years ago
Hauke Mehrtens 95f0d4fcfd oxnas: clean-up and improve profiles
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 49198
8 years ago
Hauke Mehrtens 012da658a4 oxnas: add support for Akitio MyCloud mini
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 49197
8 years ago
Luka Perkov d1005862c2 imx6: images: add bootfs.tar.gz build artifact
In order to create a bootable block storage device, both bootfs and rootfs
tarballs are required. However, our current scheme does not export a bootfs
tarball so add the packaging of it here.

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

SVN-Revision: 49196
8 years ago
Hauke Mehrtens e958d49fd1 ar71xx: add config ATH79_MACH_TL_WA901ND_V4 for kernel 4.4
This config option was not added in commit r49158.

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

SVN-Revision: 49195
8 years ago
Hauke Mehrtens 9759aba429 ar71xx: fix build error
This fixes a build error introduced in r49193.

This closes #22230

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

SVN-Revision: 49194
8 years ago
Hauke Mehrtens 00675abc3b ar71xx: fix build with kernel 4.4
The file linux/mdio-gpio.h was moved to linux/platform_data/mdio-gpio.h
in kernel 4.4

Reported-by: Arjen de Korte <arjen+openwrt@de-korte.org>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 49193
8 years ago
Hauke Mehrtens 8a7b28071f x86: fix platform_export_bootpart() for Xen virtual disks
Virtual disk devices in a Xen virtual machine (DomU) can be /dev/xvda,
/dev/xvdb and so on with partitions like /dev/xdva1. Devices named like
this where not considered before. This resulted in a non working
sysupgrade, because the boot partition could not be found.

Signed-off-by: Alexander Dahl <alex@netz39.de>
Suggested-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 49190
8 years ago
Hauke Mehrtens f0b3964f1b kernel: update kernel 4.4 to version 4.4.7
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 49176
8 years ago
Rafał Miłecki e920824fdd kernel: backport patch making bcm47xxsflash arch independent
This will be needed to use bcm47xxsflash on ARM for BCM53573.

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

SVN-Revision: 49168
8 years ago
Rafał Miłecki 490861a3f5 kernel: use upstream fixes for bgmac and BCM4709(4)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 49167
8 years ago
Rafał Miłecki d30766c986 bcm53xx: backport BCM5301X earlycon and USB VCC patches
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 49166
8 years ago
John Crispin 3bf88dc041 ramips: remove accidentally comitted code
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 49161
8 years ago
Rafał Miłecki 93550152ed bcm53xx: add switch config workaround for R8500 and DIR-885L
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 49160
8 years ago
Rafał Miłecki e2893fa8c3 bcm53xx: fix regression in generating network config
Syntax error was added in r49122.

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

SVN-Revision: 49159
8 years ago
John Crispin 5f1a82ec4f ar71xx: add TP-Link TL-WA901ND-v4 support
Signed-off-by: Tiziano Bacocco <tizbac2@gmail.com>

SVN-Revision: 49158
8 years ago
John Crispin d9799dea89 ar71xx: add support for Compex WPJ342
OpenWrt can be flashed with following uboot commands:

tftpboot 0x80500000 openwrt-ar71xx-generic-wpj342-16M-squashfs-sysupgrade.bin
erase 0x9f030000 +$filesize
cp.b $fileaddr 0x9f030000 $filesize

Signed-off-by: Christian Mehlis <christian@m3hlis.de>

SVN-Revision: 49157
8 years ago
John Crispin 2cba297ea0 ar71xx: fix nondeterministic hangs during bootconsole/console handover
Reconfiguring the UART when the FIFO is not empty may cause the boot to
hang. This hang is extremely suspectible to timing differences; recompiling
the kernel with the same configuration, but different UTS_VERSION
timestamps can yield images that hang more or less often. Sometimes images
are produced that hang reproducibly.

This patch should also make it into one of the next linux-stable releases,
but it's better to get this fixed as soon as possible.

Fixes #21773, #21857.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 49156
8 years ago
John Crispin 240ed52317 ar71xx: add OM5P-ACv2 to the OM5P-AC profile
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

SVN-Revision: 49155
8 years ago
John Crispin 063a6499db ar71xx: extract ath10k wifi board.bin for the OpenMesh OM5P-ACv2 board
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

SVN-Revision: 49154
8 years ago
John Crispin 3dabaef6a1 ar71xx: enable sysupgrade for the OpenMesh OM5P-ACv2
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

SVN-Revision: 49151
8 years ago
John Crispin 7461604bd9 ar71xx: add user-space support for the OpenMesh OM5P-ACv2
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

SVN-Revision: 49150
8 years ago
John Crispin 886cb9a744 ar71xx: add kernel support for the OpenMesh OM5P-ACv2 board
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

SVN-Revision: 49149
8 years ago
John Crispin 0211fa1253 ar71xx: create profile and build image for the OpenMesh OM5P-AC board
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

SVN-Revision: 49148
8 years ago
John Crispin 0c0dc3b2bf ar71xx: extract ath10k wifi board.bin for the OpenMesh OM5P-AC board
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

SVN-Revision: 49147
8 years ago
John Crispin 0ae22974eb ar71xx: enable sysupgrade for the OpenMesh OM5P-AC
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

SVN-Revision: 49144
8 years ago
John Crispin 2fa2d97ae2 ar71xx: add user-space support for the OpenMesh OM5P-AC
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

SVN-Revision: 49142
8 years ago
John Crispin 69965212bd ar71xx: add kernel support for the OpenMesh OM5P-AC board
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

SVN-Revision: 49141
8 years ago
John Crispin 0039bc665c lantiq-dsl: add missing blank in dsl output
blank inserted before ACTATP

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>

SVN-Revision: 49137
8 years ago
John Crispin c701c3ce77 lantiq-dsl: bugfix latency values swapped for lucistat
swapped wrong latency output

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>

SVN-Revision: 49136
8 years ago
John Crispin 7beb53b1a5 lantiq-dsl: bugfix db negative sign after comma
If db is negative minus sign was shown after comma

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>

SVN-Revision: 49135
8 years ago
John Crispin 9ef282cd96 arc770: enable unaligned access handling simulation in software
This enables misaligned access handling by software in Linux kernel.

With some wireless drivers (ath9k-htc and mt7601u for example) we see
misaligned accesses here and there and to cope with that without
fixing stuff in the drivers we're just gracefully handling it on ARC.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>

SVN-Revision: 49134
8 years ago
John Crispin cac43c0b71 arc770: build kmod-ath9k-htc wpad-mini by default
AXS101 beind a development board lacks built-in wireles inerfaces.
So we have to use external USB dongles to turn the board into
wireless router.

The best USB Wi-Fi dongles to work in AP-mode seem to be based on
ath9k-htc chipset.

And so with that change we add support of mentioned dongles in
default and axs101 builds.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>

SVN-Revision: 49133
8 years ago
John Crispin 8bda1ae2cc mediatek: update patches
adds a few ethernet fixes

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 49132
8 years ago
John Crispin 8b8dfeb027 ramips: Disable the SD driver by default on MT7621
The SD driver has been a long and dragging issue on the MT7621 platforms as it hasn't worked for
months resulting in unbootable devices. Until it's fixed, disable it in the default profiles.

Reports / Discussed here:

https://dev.openwrt.org/ticket/21392
https://dev.openwrt.org/ticket/21834
https://dev.openwrt.org/ticket/21995
https://forum.openwrt.org/viewtopic.php?id=59092

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>

SVN-Revision: 49131
8 years ago
John Crispin 0ffa58009a ramips: Fixes for LinkIt 7688
Misc fixes for LinkIt 7688 board:

- Copy the right wireless firmware for the mt7688
- Add back '0065-mt7688-fixes.patch', left out after the move to Linux 4.4.
- Remove SPI_DEV from linux config which otherwise causes a massive warning
- Add wmac to LINKIT7688.dts so wireless works

Signed-off-by: Adam Kent <adam@semicircular.net>

SVN-Revision: 49130
8 years ago
John Crispin 3ad1820e83 ramips: Adjust image size limit for the D-Link DIR-860L B1
Currently the maximum image size defaults to 8Mbyte even though this model has 16Mbyte of flash memory.

Tested and works on my device.

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>

SVN-Revision: 49129
8 years ago
John Crispin 1eb8b0674d ramips: fix for Planex MZK-WDPR (lcd control gpio).
add lcd control gpio pin for Planex MZK-WDPR.
LCD board initial timming is GPIO control.

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

SVN-Revision: 49128
8 years ago
John Crispin e626a0d877 ramips: mt7621: fix Ubiquiti EdgeRouter X profile
Remove unnecessary packages to reduce image size so it fits in initramfs (to enable upgrading from factory firmware).

Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 49127
8 years ago
John Crispin 37f1022d73 ramips: mt7621: sync MQmaker WiTi profile name to dts name
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 49126
8 years ago
John Crispin 14177319ea ramips: enable device profiling by dts
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 49125
8 years ago
John Crispin 133f890a12 ramips: mt7621: add a device to TARGET_DEVICES after it's definition
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 49124
8 years ago
John Crispin a9466914f5 ramips: mt7621: fix initramfs image for ubnt-erx
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 49123
8 years ago
Rafał Miłecki 997a3cb41c bcm53xx: add basic support for Netgear R7900
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 49122
8 years ago
Rafał Miłecki c658bd634c bcm53xx: add PCI iproc patch adding abort handler
This prevents die() during PCI bus probe.

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

SVN-Revision: 49121
8 years ago
Rafał Miłecki 51d887ba00 Revert "bcm53xx: revert patch removing imprecise abort workaround"
This reverts commit r48961. It didn't fix PCIe host driver issue as
there are more aborts triggered by it.

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

SVN-Revision: 49120
8 years ago
Rafał Miłecki faf172875e bcm53xx: use the final fix for iproc bcma regression
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 49114
8 years ago
Rafał Miłecki 970dc268e7 bcm53xx: drop unneeded 4.3 SPROM patch
4.3 isn't oficially used anymore but it may be useful for debugging PCI
host driver regression. SPROM driver doesn't seem to work correctly with
4.3:
[    2.336686] bcma: bus0: Using fallback SPROM failed (err -2)
[    2.342366] bcma: bus0: No SPROM available
but it at least compiles now.

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

SVN-Revision: 49113
8 years ago
John Crispin 8e2a35afc6 ar71xx: WPN824N: enable buttons
Enable buttons connected to the GPIOs of the AR9285.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>

SVN-Revision: 49109
8 years ago
John Crispin 38a48a9b42 ar71xx: WPN824N: set WLAN LED name
Make use of ap9x_pci_setup_wmac_led_name() to set the name of the WLAN
LED.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>

SVN-Revision: 49108
8 years ago
John Crispin 3c91d5a479 ar71xx: fix the revision of a few TP-LINK devices in AR71XX_MODEL to match labels/image names
Let's not confuse users about the revisions of their devices when we can
easily avoid it.

Not tested on real hardware.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 49107
8 years ago
John Crispin 85c540b94e ar71xx: avoid AR71XX_MODEL ending with a space on some TP-LINK-like devices
Instead of adding the space when combining $model and $hwver, add the space
to the beginning of $hwver, so the resulting string won't end with a space
when $hwver is set to the empty string.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 49106
8 years ago
John Crispin dfed41d3d8 ar71xx: check both HWID and HWREV on upgrades of TP-LINK devices
There's no reason for us to be more lenient than the stock firmware, so
better check the HWREV as well to avoid bricked devices.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 49105
8 years ago
John Crispin 79d02229cc ramips: move different subtarget image generation to separate makefiles to improve maintainability
- all subtarget specific defines are in their own files
- common defines left in main Makefile
- each subtarget makefile idefed with SUBTARGET
- all subtargets compile tested
- few seems to be broken/unneeded things marked with FIXME

Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 49104
8 years ago
John Crispin 12334f58fe brcm2708: add brcmfmac43430-firmware-sdio for Rasberry Pi 3
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 49103
8 years ago
John Crispin ba2d1ccffa ar71xx: WNR2200: enable control of all LEDs and buttons
This patch provides full GPIO support for WNR2200 (LEDs and buttons).
It exposes all LEDs to operating system, including Ethernet ones.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>

SVN-Revision: 49101
8 years ago
John Crispin 3da1ef38c1 ar71xx: WNR2200: fix for random WLAN MAC
Fix for invalid/random/duplicate WLAN MAC address in WNR2200.
Permanent platform MAC is calculated and assigned during system startup.
WLAN MAC follows wired Ethernet interface addresses.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>

SVN-Revision: 49100
8 years ago
John Crispin c8dd53e591 ar71xx: Add TL-WR841N/ND v11 support
This patch adds support for the TP-Link TL-WR841N/ND to trunk. It is
similar to the already supported v10 - see [1]. I have added support
based on that topic; in the meantime it has been confirmed working
(see the forum thread, and also [2]).

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

[1]: https://forum.openwrt.org/viewtopic.php?id=61309
[2]: https://forum.openwrt.org/viewtopic.php?id=63657

SVN-Revision: 49099
8 years ago
John Crispin 41ba4b04c8 mediatek: update patches
add fixes for
* ethernet
* cpufreq
* nand
* a7-timer

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 49098
8 years ago
Rafał Miłecki 53a74644b0 kernel: update kernel 3.18 to version 3.18.29
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 49096
8 years ago
Rafał Miłecki e3e8a85c4f bcm53xx: improve USB 2.0 PHY support for BCM4709 and BCM47094
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 49094
8 years ago
Rafał Miłecki de2f31c3f5 bcm53xx: support USB 3.0 PHY on BCM4707 rev. 6 and BCM47094
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 49091
8 years ago
Rafał Miłecki 7b61ed5254 bcm53xx: simpify USB 3.0 PHY initialization
We can use one code path for BCM4707 rev. 4 and BCM53018.

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

SVN-Revision: 49090
8 years ago
Luka Perkov 8258f8edb6 ar71xx: cosmetic fix of alfa ap120c/ap96 ordering
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 49086
8 years ago
Luka Perkov ebaba15331 ar71xx: add support for ap120c
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 49082
8 years ago
John Crispin 98a01048b8 ar71xx: migrate tplink cpe510 to new build steps
cpe510: Tested sysupgrade and initramfs.
Untested: webIf w/ factory.bin & recovery.bin

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 49081
8 years ago
John Crispin e0a3a84521 ar71xx/image: allow builds of loader without cmdline injecting
On most platforms the cmdline is supplied by the loader to the kernel.
When using an elf loader with cmdline the size is bloated by 512k.
For loader-elf platforms like the cpe510 better use loader-elf but patch
the cmdline into the kernel.

wdr1043: Tested loader still works using sysupgade image.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 49080
8 years ago
John Crispin 5bac8f0fd4 ar71xx/image: introduce LOADER_TYPE to support elf loaders
The loader decompress a lzma compressed kernel. Some bootloaders
only support elf files like the tplink cpe510

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 49079
8 years ago
John Crispin 7f64d9a0cb zynq: Simplify boot-img build
by adding Device/DefaultConfig macro to define the dts and device in
lower case.

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

SVN-Revision: 49077
8 years ago
John Crispin 5b2d89f060 ar71xx: WNR1000v2: enable control of all LEDs and buttons
This patch provides full GPIO support for WNR1000v2 (LEDs and buttons).
It exposes all LEDs to operating system, including Ethernet ones.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>

SVN-Revision: 49076
8 years ago
John Crispin 9213fefb4d ar71xx: Add QCA955X GPIO mux and function definitions
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

SVN-Revision: 49075
8 years ago
John Crispin 0afb47718e ar71xx: Add support for ath79_gpio_function_* on QCA955X
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

SVN-Revision: 49074
8 years ago
John Crispin 58143e9b65 Revert "ar71xx: Clear bits in ath79_setup_qca955x_eth_cfg"
Not all mach-* files set all boards correctly in ETH_CFG. They depend on
some preset values by u-boot which were not previously modified by
ath79_setup_qca955x_eth_cfg. Avoiding to modify them in this function keeps
it backward compatible for these boards.

This reverts commit 119b8ab2c2eac237ec4e9c4d0ed53df22b5c6978.

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

SVN-Revision: 49072
8 years ago
John Crispin b269a3520d Revert "ar71xx: Allow to set the RXDV, RXD, TXD, TXE delays for QCA955x"
The default delays RXD 3. RDV 3, TXD 0, TXE 0 doesn't seem to work for some
boards. These boards depend on the preset values of u-boot which may
differ.

This reverts commit f2d4bb96b62512caa161dcc2867c91692fb16a38.

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

SVN-Revision: 49071
8 years ago
John Crispin 26d18d4e07 ar71xx: Use private version of ath79_setup_qca955x_eth_cfg for MR1750
The MR1750 must unset some bits in ETH_CFG which were set by u-boot to work
correctly under OpenWrt. But the global function
ath79_setup_qca955x_eth_cfg will not unset all of them to increase the
backward compatiblity with older mach-* files. A private (simplified)
version for MR1750 can be used instead.

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

SVN-Revision: 49070
8 years ago
John Crispin bdf76faa3e ar71xx: Use private version of ath79_setup_qca955x_eth_cfg for MR900
The MR900 must unset some bits in ETH_CFG which were set by u-boot to work
correctly under OpenWrt. But the global function
ath79_setup_qca955x_eth_cfg will not unset all of them to increase the
backward compatiblity with older mach-* files. A private (simplified)
version for MR900 can be used instead.

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

SVN-Revision: 49069
8 years ago
John Crispin 28b6e5e225 oxnas: set ubifs parameters for Default profile
Work-around obsolete mkfs/ubifs code.
Unlike squashfs, ubifs images should be generated per-device so
minimum I/O unit size, logical erase block size, maximum logical erase
block count can be defined for the specific flash-chips parameters.
Also, generating ubinized images is unrelated to rootfs being ubifs or
squashfs, but rather depends on the device supporting UBI or not.
In the meantime and in order to fix an error which currently causes the
image generation on buildbot to fail, work-around by defining
UBIFS_OPTS for the Default profile.
See also
http://buildbot.openwrt.org:8010/builders/oxnas/builds/246/steps/compile_8/logs/stdio

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 49068
8 years ago
John Crispin dd70bcc089 mediatek: patch block2mtd to allow cmdlineparts to work
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 49067
8 years ago
John Crispin 30d3a8c512 mediatek: update patches
fixes trgmii on old eco and adds nand support

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 49066
8 years ago
John Crispin 5d2f529c9b mediatek: bump to v4.4
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 49064
8 years ago
Gabor Juhos c8a6c583fc generic/4.4: remove ISSI SI25CD512 SPI flash support patch
The flash is already supported in mainline kernel since 4.3-rc1.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 49063
8 years ago
Gabor Juhos fc5c19f45b ramips: lzma-loader: fix O32 ABI conformance
According to the calling convention of the o32 ABI the
caller function must reserve stack space for $a0-$a3
registers in case the callee needs to save its arguments.

The assembly startup code does not reserve stack space
for these registers thus when the main C function needs
to save its arguments, that will cause a stack overflow.

Fix the assembly code to reserve stack space for the
registers to avoid that.

Untested. It seems that the lzma-loader is not used at all?

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 49062
8 years ago
Gabor Juhos 4d0681d865 lantiq: lzma-loader: fix O32 ABI conformance
According to the calling convention of the o32 ABI the
caller function must reserve stack space for $a0-$a3
registers in case the callee needs to save its arguments.

The assembly startup code does not reserve stack space
for these registers thus when the main C function needs
to save its arguments, that will cause a stack overflow.

Fix the assembly code to reserve stack space for the
registers to avoid that.

Compile tested only.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 49061
8 years ago
Gabor Juhos 395fff6f8b brcm47xx: lzma-loader: fix cache invalidation
The current code only partially invalidates both caches
because the cache size and cache-line size values are
incorrectly passed to the C code.

Fix the assembly code to pass the arguments in the correct
order.

Compile tested only.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 49060
8 years ago
Gabor Juhos f8933cbd5f brcm47xx: lzma-loader: remove trailing whitespaces from head.S
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 49059
8 years ago
Gabor Juhos 7d8d26272b adm5120: lzma-loader: fix cache invalidation
The current code only partially invalidates both caches
because the cache size and cache-line size values are
incorrectly passed to the C code.

Fix the assembly code to pass the arguments in the correct
order.

Compile tested only.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 49058
8 years ago
Gabor Juhos ae8f6f1a28 adm5120: lzma-loader: remove trailing whitespaces from head.S
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 49057
8 years ago
Gabor Juhos 8cd8698b6f generic: lzma-loader: fix cache invalidation
The current code only partially invalidates both caches
because the cache size and cache-line size values are
incorrectly passed to the C code.

Fix the assembly code to pass the arguments in the correct
order.

Tested on RB532.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 49056
8 years ago
Gabor Juhos 479a0ef957 generic: lzma-loader: remove trailing whitespaces from start.S
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 49055
8 years ago
John Crispin 1cdd3403ba ar71xx: WNR1000v2: fix for random WLAN MAC
Fix for invalid/random WLAN MAC address in WNR1000v2. Permanent platform
MAC is calculated and assigned during system startup. WLAN MAC follows
wired Ethernet interface addresses. This is the same fix as for WNR2000v3
and WNR612v2.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>

SVN-Revision: 49051
8 years ago
John Crispin d6d0597cdf lantiq: use upstream mechanism to append device tree file
Instead of using our patch-dtb program just place the device tree
behind the kernel binary and then let the in kernel mechanism fetch it.
This also adds support for having the device tree file in the boot
loader.

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

SVN-Revision: 49050
8 years ago
John Crispin cc82da0bc1 ramips: MiWifi-Nano - change gpios to leds, add to default build group
1) Use leds to indicate:
Red - Power
Amber - Radio On
Blue - Wifi associated
2) Add profile to default build group for MT7628 subtarget

Signed-off-by: Noble Pepper <openwrtmail@noblepepper.com>

SVN-Revision: 49045
8 years ago
John Crispin e9db6eb8b2 oxnas: sync cpu-hotplug with mach-realview
Make mach-oxnas/hotplug.c look more similar to mach-realview/hotplug.c,
just cosmetics and maintainability concerns, no functional changes.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 49044
8 years ago
John Crispin b64f159bc8 oxnas: add spinlock in pinctrl driver
Try to address a race-condition in pinctrl-oxnas.c

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 49043
8 years ago
John Crispin daf7ab04ba oxnas: also reset GPIO B registers on boot
Clear both, SYS_CTRL_*_SEL and SEC_CTRL_*_SEL on boot instead of
writing to SYS_CTRL_*_SEL twice which looks like a copy-paste error.
Thanks to anonymous to bring this up in #21892!

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 49042
8 years ago
John Crispin 174bc392ff oxnas: switch to new image generation template
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 49041
8 years ago
John Crispin 3cea0747d6 oxnas: add Default profile and reorganize device profiles
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 49040
8 years ago
Hauke Mehrtens fcbc97ad78 kernel: update kernel 4.1 to version 4.1.20
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 49035
8 years ago
Hauke Mehrtens 7ed9ee6f30 kernel: add missing kernel options
This was found by the build bot.

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

SVN-Revision: 49033
8 years ago
Hauke Mehrtens b3aae4c672 kernel: update kernel 4.4 to version 4.4.6
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 49032
8 years ago
John Crispin 4d6c4994fc ar71xx: Use PHY fixups for Open Mesh MR1750
The delays of PHY/MAC on the MR1750 are done by u-boot and OpenWrt in
different ways. u-boot only modifies the ETH_CFG of the QCA955x based on
the link speed. But OpenWrt can only modify the PHY delays based on the
link speed.

This can lead to communication problems when u-boot initializes the ETH_CFG
for a specific link speed (e.g. 10BASE-T) but then OpenWrt the sets the PHY
delays to an incompatible value.

Instead reset the ETH_CFG delay bits of the QCA955x to a specific value and
only rely on the AT803x PHY settings.

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

SVN-Revision: 49031
8 years ago
John Crispin ebcce35be4 ar71xx: Use PHY fixups for Open Mesh MR900
The delays of PHY/MAC on the MR900 are done by u-boot and OpenWrt in
different ways. u-boot only modifies the ETH_CFG of the QCA955x based on
the link speed. But OpenWrt can only modify the PHY delays based on the
link speed.

This can lead to communication problems when u-boot initializes the ETH_CFG
for a specific link speed (e.g. 10BASE-T) but then OpenWrt the sets the PHY
delays to an incompatible value.

Instead reset the ETH_CFG delay bits of the QCA955x to a specific value and
only rely on the AT803x PHY settings.

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

SVN-Revision: 49030
8 years ago
John Crispin 22c5f96c6b ar71xx: Allow to set the RXDV, RXD, TXD, TXE delays for QCA955x
Some u-boot versions for QCA955x change the delays based on the link speed
during boot. This usually breaks the support of other linkspeeds when
OpenWrt is booted. It also conflicts with the
at803x_platform_data::fixup_rgmii_tx_delay. OpenWrt has to set its own
values in QCA955X_GMAC_REG_ETH_CFG.

The default RGMII values from the Atheros u-boot are currently used to
preset the existing mach files. These may have to be adjusted for boards
using different values but which are not currently set them explicitely in
OpenWrt.

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Cc: Gabor Juhos <juhosg@openwrt.org>
Cc: Imre Kaloz <kaloz@openwrt.org>
Cc: Christian Beier <cb@shoutrlabs.com>
Cc: Chris R Blake <chrisrblake93@gmail.com>
Cc: Benjamin Berg <benjamin@sipsolutions.net>
Cc: Heiner Kallweit <hkallweit1@gmail.com>
Cc: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Cc: Matthias Schiffer <mschiffer@universe-factory.net>
Cc: Dirk Neukirchen <dirkneukirchen@web.de>
Cc: Christian Mehlis <christian@m3hlis.de>
Cc: Luka Perkov <luka@openwrt.org>
Cc: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 49029
8 years ago
John Crispin be68f34708 ar71xx: Clear bits in ath79_setup_qca955x_eth_cfg
Some u-boot versions for QCA955x set currently not cleared bits depending
on the used link speed. This breaks the rx/tx under OpenWrt. The mach-*.c
file is responsible to select the correct configuration bits and thus the
ath79_setup_qca955x_eth_cfg has to clear the unset.

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

SVN-Revision: 49028
8 years ago
John Crispin eff9a4b176 ar71xx: Extend the list of bits in QCA955X_GMAC_REG_ETH_CFG
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>

SVN-Revision: 49027
8 years ago
John Crispin 3fd98db818 ar71xx: Add support for the OMYlink OMY-X1
This patch adds support for the OMYlink OMY-X1

https://wiki.openwrt.org/toh/omylink/omy-x1

http://www.omylink.com/

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

SVN-Revision: 49026
8 years ago
John Crispin 99414dbcf1 ramips: Add support for Xiaomi MiWiFi Nano
Xiaomi MiWiFi Nano is based on Mediatek MT7628 with 64MB ram 16MB flash

Signed-off-by: Noble Pepper <openwrtmail@noblepepper.com>

v3  includes changes suggested by L. D. Pinney & Karl Palsson-
Eliminate en25q64 (4MB) flash chip
Alphabetization
Remove hyphen in model
Rename profile from miwifinano.mk to xiaomi.mk
Add gpios that are attached to leds

SVN-Revision: 49024
8 years ago
John Crispin 553c1b793f brcmfmac: Add Raspberry Pi 3 support
- Enable SDIO support on brcmfmac.
- Disable power managment for brcm2708 target.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Reviewed-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 49023
8 years ago
Luka Perkov 5a864190f0 kirkwood: refresh patches
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 49022
8 years ago
Luka Perkov b5bcd4cf36 kirkwood: drop 3.18
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 49021
8 years ago
Luka Perkov 3ffb5cec14 kirkwood: switch to 4.4
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 49020
8 years ago
Luka Perkov 5c457db8e5 kirkwood: add 4.4 support
Dropped patches because they applied upstream:

- 120-iomega_ix2_200.patch
- 150-pogoplug_e02.patch

Tested on dockstar and goflexnet.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 49019
8 years ago
Luka Perkov 76c2c676ec kirkwood/goflexnet/goflexhome: change mtd layout to use the last 3 mb
Previous the uboot was overwriting the device-tree's mtd layout to use
the last 3 mb.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 49015
8 years ago
Luka Perkov ab13a001dd kirkwood/goflexhome/goflexnet: merge "root" and unused mtd partitions into one volume "ubi"
The kernel will automatic attach mtd partitions named 'ubi' to ubi0.
Renaming the "root" partition into "ubi" will safe arguments
from the kernel cmdline.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 49014
8 years ago
Luka Perkov 33f76a486d linux/kirkwood: migrate goflexhome/goflexnet to new ubi style
Also using the new image build step format

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 49013
8 years ago
Luka Perkov e9e16bef08 kirkwood/dockstar: rename partition into ubi to use auto detection of target mtd
the kernel tries to use "ubi" or "data" labeled partition to find it's root filesystem.
dockstar don't need anymore mtdparts= nor root= bootarguments

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 49011
8 years ago
Luka Perkov afa1c47e71 kirkwood/dockstar: use ubi(kernel, squashfs, ubifs) images
The new image requires `bootz` because of devicetree appending.
To flash a new image boot initramfs:

  tftpboot 0x800000 openwrt-kirkwood-dockstar-initramfs-kernel.bin
  bootz 0x800000

  # detach if already attached
  ubidetach -p /dev/$(grep ubi /proc/mtd|awk -F: '{print $1}')
  # scp openwrt-kirkwood-dockstar-squashfs-factory.bin /tmp
  ubiformat -f /tmp/openwrt-kirkwood-dockstar-squashfs-factory.bin
  # attach is important to resize rootfs_data otherwise it wont boot
  ubiattach -p /dev/$(grep ubi /proc/mtd|awk -F: '{print $1}')

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 49010
8 years ago
Luka Perkov 1b9c171f88 kirkwood: add DEVICE_VAR KERNEL_IN_UBI for kernel as volume in ubi images
depending on KERNEL_IN_UBI, the image.mk will create a ubi volume for the kernel

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 49009
8 years ago
Luka Perkov ef75442989 kirkwood: add feature devicetree
this platform already uses devicetree

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 49008
8 years ago
Rafał Miłecki 210803df03 brcm47xx: image: create standard TRX images using new building system
Apart from using our new building system there are 2 more changes:

1) Limit amount of images
So far we were generating all standard images (optimized one and two
with no loader) for every SUBTARGET. This is not needed, as e.g. the
only device requiring gzipped kernel is legacy Huawei E970.

2) Change output names
The new image building system requires specifying device name. This
forced picking some and resulted in:
openwrt-brcm47xx-$(SUBTARGET)-squashfs.trx
openwrt-brcm47xx-$(SUBTARGET)-squashfs-gz.trx
openwrt-brcm47xx-$(SUBTARGET)-squashfs-noloader-nodictionary.trx
becoming:
openwrt-brcm47xx-$(SUBTARGET)-standard-squashfs.trx
openwrt-brcm47xx-$(SUBTARGET)-standard-noloader-gz-squashfs.trx
openwrt-brcm47xx-$(SUBTARGET)-standard-noloader-nodictionarylzma-squashfs.trx

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

SVN-Revision: 49006
8 years ago
John Crispin 300be15e84 oxnas: complete NAND driver clean-up
some bit rot was accidentally left-out in r48986, remove it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 48997
8 years ago
John Crispin be79629259 ramips: Add support for GL-MT750
This patch adds support for GL-MT750.
GL-MT750 is powered by MT7620A and MT7610e, dual band 802.11ac, 2.4G 300Mbps and 5G 450Mbps.
It has 5 LANs, MMC interface, USB, a lot of IOs and PoE support.

SVN-Revision: 48994
8 years ago
John Crispin be53e5a154 ramips: Add support for GL-MT300N
This patch adds support for GL-MT300N.
GL-MT300N is powered by MT7620N with 16MB flash, 64MB RAM,
2 LANs, USB, UART, GPIO and PoE support.

SVN-Revision: 48993
8 years ago
John Crispin 96ee39b184 ramips: Add support for GL-MT300A
This patches adds support for GL-MT300A.
GL-MT300A is powered by MT7620A. It has 16MB flash, 128MB RAM,
Two LANs, USB, UART and MMC daughter board.

SVN-Revision: 48992
8 years ago
John Crispin 61f27ca3e4 oxnas: clean-up NAND driver to fix probing issue
A re-write of the driver based on xway_nand.c and constants as
well as the cmd_ctrl() function from the original oxnas_nand.c
resulted in a extremely similar looking file (see diffsize),
and fixes the issue of NAND not being detected on newer kernels.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 48986
8 years ago
John Crispin f78f271c1e brcm2708: update patches to latest version
As usual these patches were extracted from the raspberry repo:
https://github.com/raspberrypi/linux/commits/rpi-4.4.y

- Disable unused MFD RPISENSE driver.
- Disable ethernet HW checksums in order to avoid kernel exceptions.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 48985
8 years ago
John Crispin 05d73a2a73 ar71xx: Arduino Yun board 'WLAN RST' button support
This patch adds support for Arduino Yun board "WLAN RST" button.

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>

SVN-Revision: 48983
8 years ago
John Crispin 69b28c5382 brcm63xx: fix BCM3368 interrupt controller addresses
Looks like the addresses for BCM3368 were wrongly defined when DT
support was introduced.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 48980
8 years ago
John Crispin 01ca7a34f0 brcm63xx/lzma-loader: fix O32 ABI conformance
According to the calling convention of the o32 ABI the caller
function must reserve stack space for $a0-$a3 registers in case
the callee needs to save its arguments.

The assembly code of the loader does not reserve stack space for
these registers thus when the 'loader_main' function needs to save
its arguments, those will be stored in the 'workspace' area instead
of the stack.

Because the workspace area is also used by other part of the code, the
saved register values gets overwritten and this often leads to failed
kernel boots.

Fix the code to reserve stack space for the registers to avoid this
error.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
[noltari: apply the fix for brcm63xx too]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 48979
8 years ago
John Crispin 346b1905fb ar71xx: add support for the Telldus TellStick ZNet Lite
Signed-off-by: Micke Prag <micke.prag@telldus.se>

SVN-Revision: 48977
8 years ago
Rafał Miłecki 4e6e23582b brcm47xx: image: move disabled devices to the new building system
This only drops WGR614 V9 which has 2 MiB flash and it's unlikely to get
any interest.

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

SVN-Revision: 48975
8 years ago
Rafał Miłecki 9a6ad203f6 brcm47xx: image: switch Linksys WRT54G3GV2-VF to the new building system
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48974
8 years ago
Rafał Miłecki ee76a07fbf brcm47xx: image: switch Netgear WGT634U to the new building system
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48973
8 years ago
Rafał Miłecki 0d3da888d2 brcm47xx: image: switch rest of 64k block devices to the new building system
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48972
8 years ago
Rafał Miłecki 5e2930a888 brcm47xx: image: switch Motorola devices to the new building system
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48971
8 years ago
Rafał Miłecki 6eb0df3543 brcm47xx: image: switch D-Link DWL-3150 to the new building system
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48970
8 years ago
John Crispin 1b9985cfe2 ramips: add support for Planex MZK-WDPR.
add support for Planex MZK-WDPR.
MZK-WDPR(MZK-WDPR-R01) is internet radio tuner.
This patch is "network board" in MZK-WDPR.
LCD board is non OpenWrt Platform.

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

SVN-Revision: 48968
8 years ago
John Crispin 993989880a brcm2708: add Raspberry Pi 3 support
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 48967
8 years ago
John Crispin cd2114e19c 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>

SVN-Revision: 48966
8 years ago
Rafał Miłecki baf0b18653 bcm53xx: update bcm47xx_sprom to the latest 4.6 queued version
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48963
8 years ago
Rafał Miłecki 81edbe39b8 bcm53xx: fix SPROM driver compilation with ssb/bcma as module
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48962
8 years ago
Rafał Miłecki 9f116fae92 bcm53xx: revert patch removing imprecise abort workaround
It seems it still happens on some devices.

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

SVN-Revision: 48961
8 years ago
Rafał Miłecki 0e2f0196a2 kernel: backport bcma 4.6 changes for flashes
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48960
8 years ago
Felix Fietkau b9f52b6b86 kernel: add MIPS kernel fix for an uninitialized CPU map
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48956
8 years ago
Felix Fietkau 46c7d0d1ab kernel: remove linux 4.3 support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48955
8 years ago
Felix Fietkau 3abf5ce656 ramips: convert the remaining subtargets to 4.4
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48954
8 years ago
Felix Fietkau f73d8fb81b ramips: fix subtarget kernel version assignment (only mt7621 is ready for now)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48953
8 years ago
Felix Fietkau d041e8b44b ramips: add linux 4.4 support, update mt7621 subtarget to 4.4
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48951
8 years ago
Felix Fietkau dc3a7131a9 lantiq: print profile name in dsl lucistat
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 48949
8 years ago
Felix Fietkau 06b630047f lantiq: add dsl firmware to default packages
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 48942
8 years ago
Felix Fietkau 4ac99abeb3 lantiq: do not set default firmware file
We are now shipping a DSL firmware, do not set it by default to some
file name.

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

SVN-Revision: 48941
8 years ago
Felix Fietkau 4802f611cb ar71xx: fix qca956x ethernet initialization
Complete internal switch initialization for QCA956X.
Set default mdio device if the interface mode of GE0 is not SGMII (fix ticket #21520).

Signed-off-by: Weijie Gao <hackpascal@gmail.com>

SVN-Revision: 48937
8 years ago
Felix Fietkau c865ae03f6 ar71xx: enable USB packages for WNR2200 (fixes #21984)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48936
8 years ago
Rafał Miłecki dab0569b97 bcm53xx: use SPROM driver queued for 4.6
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48935
8 years ago
Hauke Mehrtens e9d7ee4f41 kernel: update kernel 4.4 to version 4.4.4
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 48933
8 years ago
Hauke Mehrtens 21cf64b4ad kernel: fix section mismatch in crashlog
The function memblock_insert_region() is in the section
__init_memblock, also put crashlog_init_memblock there.

This fixes this section mismatch warning:
The function memblock_insert_region.isra.1() references
the function __meminit crashlog_init_memblock().
This is often because memblock_insert_region.isra.1 lacks a __meminit
annotation or the annotation of crashlog_init_memblock is wrong.

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

SVN-Revision: 48931
8 years ago
Hauke Mehrtens 683c046673 kernel: add missing config options
The buildbots complained about these config options being missing for arm64:
CONFIG_DUMMY_CONSOLE_COLUMNS=80
CONFIG_DUMMY_CONSOLE_ROWS=25

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

SVN-Revision: 48929
8 years ago
Felix Fietkau 3f971c0dc8 ar71xx: WNR612v2: enable control of all LEDs and buttons
This patch provides full GPIO support for WNR612v2 (LEDs and buttons).
It exposes all LEDs to operating system, including Ethernet ones.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>

SVN-Revision: 48924
8 years ago
Felix Fietkau 94b8a6b5cf ar71xx: WNR2000v3: add speed_mask to Ethernet port LED initialization
This patch add speed_mask parameter to Ethernet port LED initialization
during system startup. LEDs are configured to show amber light for 10 Mbps
link and green for 100 Mbps as described on device label.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>

SVN-Revision: 48923
8 years ago
Felix Fietkau 53b3872ddf ar71xx: WNR2000v3: enable control of all LEDs and buttons
This patch provides full GPIO support for WNR2000v3 (LEDs and buttons).
It exposes all LEDs to operating system, including Ethernet ones.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>

SVN-Revision: 48922
8 years ago
Felix Fietkau 6bece706ec mac80211: ath9k: enable GPIO buttons
Enable platform-defined GPIO button support for ath9k device.
Key poller is activated for attached platform buttons.
Requires ath9k GPIO chip access.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>

SVN-Revision: 48921
8 years ago
John Crispin fbb2449953 AP121 target: fix board detection in ar71xx.sh
Signed-off-by: Attila Lendvai <attila@lendvai.name>

SVN-Revision: 48916
8 years ago
John Crispin 3a03c08c82 AR8216: improve mmd register access
Combine all bus operations for one MMD access in one function.
Protecting all these bus operations with one lock also helps
to avoid potential issues due to bus operations intercepting
the register and data write.

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

SVN-Revision: 48914
8 years ago
John Crispin d3776bdfc9 AR8216: make ARL age time configurable
The default TTL for address resolution table entries is 5 minutes
for all members of the AR8216 family. This can cause issues if
e.g. Wifi clients roam to another AP and their MAC appears on
another switch port suddenly. Then the client may not be reachable
until the old ARL entry expires.
I would have expected the switch to invalidate old entries if it
detects the same MAC on another port. But that's not the case.

Therefore make the TTL for ARL entries configurable.
The effective TTL will always be a multiple of 7 seconds.

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

SVN-Revision: 48913
8 years ago
John Crispin 4eaa750089 AR8216: remove redundant port number in MIB header line
The line before includes the port number anyway so there's no need
to duplicate the port number in the MIB info header.

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

SVN-Revision: 48912
8 years ago
John Crispin f03ec2baf7 AR8216: complement MIB counters with info in GiB / MiB / KiB
The decimal values especially for TxByte and RxGoodByte are hard to read
once bigger amounts of data have been transferred.
Therefore complement the decimal values with info in GiB / MiB / KiB.

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

SVN-Revision: 48911
8 years ago
John Crispin 76e1efc042 AR8216: don't display MIB counters if all are empty
For unused switch ports all MIB values are zero. Displaying ~40 empty
MIB counters is just confusing and makes it hard to read the output of
swconfig dev <dev> show.
Therefore, if all MIB counters for a port are zero, just display
an info that the MIB counters are empty.

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

SVN-Revision: 48910
8 years ago
John Crispin f07a57c0e8 imx6: image: Add missing kernel prefix
Signed-off-by: Petr Štetiar <ynezz@true.cz>

SVN-Revision: 48909
8 years ago
John Crispin 77da9390da ramips: mt7621: fix WF-2881 for ubi split
This patch fix firmware split for WF-2881 which was previously manually partitioned.

Signed-off-by: YounJae Rho <luxflow@live.com>

SVN-Revision: 48908
8 years ago
John Crispin 9d828931f1 ramips: Add profiles for JCG routers
This patch adds profiles and support for building factory and
sysupgrade images for JHR-N805R, JHR-N825R and JHR-N926R.

Signed-off-by: Reinhard Max <reinhard@m4x.de>
Reviewed-by: Torsten Duwe <duwe@lst.de>

SVN-Revision: 48906
8 years ago
John Crispin 43dd2b9965 ramips: Add JCG routers to base-files
This patch adds support for JHR-N805R, JHR-N825R and JHR-N926R to
various scripts in the base-files directory.

Signed-off-by: Reinhard Max <reinhard@m4x.de>
Reviewed-by: Torsten Duwe <duwe@lst.de>

SVN-Revision: 48905
8 years ago
John Crispin ca64f498f0 ramips: Add device tree for JCG JHR-N926R
Add a device tree for JCG JHR-N825R

This router is based on a RT3052 and has 4MB of CFI flash and 32MB of
SDRAM. As a special feature, it comes with a two digit seven segment
display that is connected to a pair of daisy-chained 74164 shift
registers that can be controlled via GPIOs.

For details, see https://wikidevi.com/wiki/JCG_JHR-N825R .

Signed-off-by: Reinhard Max <reinhard@m4x.de>
Reviewed-by: Torsten Duwe <duwe@lst.de>

SVN-Revision: 48904
8 years ago
John Crispin 97ca4cbc94 ramips: Add device tree for JCG JHR-N825R
Add a device tree for JCG JHR-N825R

This router is based on a RT3052 and has 4MB of CFI flash and 32MB of
SDRAM. For details, see https://wikidevi.com/wiki/JCG_JHR-N825R .

Signed-off-by: Reinhard Max <reinhard@m4x.de>
Reviewed-by: Torsten Duwe <duwe@lst.de>

SVN-Revision: 48903
8 years ago
John Crispin 73f4c3f2ab ramips: Add device tree for JCG JHR-N805R
Add a device tree for JCG JHR-N805R

This router is based on a RT3050 and has 4MB of SPI flash and 16MB of
SDRAM. For details, see https://wikidevi.com/wiki/JCG_JHR-N805R .

Signed-off-by: Reinhard Max <reinhard@m4x.de>
Reviewed-by: Torsten Duwe <duwe@lst.de>

SVN-Revision: 48902
8 years ago
John Crispin e4dc6acd31 ramips: Incorrect file mode change
Commit d0f5ab6d95a1 ("ramips: Added support for ZBT-826 / ZBT-1026")
incorrectly changed the mode of the ramips shell scripts from 755 to 644.
I.e., they are not excutable any more and for example devices will be left
with broken configs.

Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>

SVN-Revision: 48893
8 years ago
John Crispin 74c6b21973 target/mpc85xx: check for 'generic' subtarget for initramfs image file
Copy 'cuImage.tl-wdr4900-v1-initramfs' only for the 'generic' subtarget.
This is a follow-up to:
 http://git.openwrt.org/?p=openwrt.git;a=commitdiff;h=b889fe55c1844aec2c03da28fecb03e958c21f18

We build our initramfs images more rarely, so it took a while
to catch this too.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>

SVN-Revision: 48892
8 years ago
Felix Fietkau 15517811e4 ramips: enable mt76 on mt7688 by default
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48886
8 years ago
Felix Fietkau a8c15c0204 mac80211: ath9k: enable platform WLAN LED name
Enable platform-supplied WLAN LED name for ath9k device.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
Acked-by: Hartmut Knaack <knaack.h@gmx.de>

SVN-Revision: 48879
8 years ago
Hauke Mehrtens 7768735873 kernel: update kernel 3.18 to version 3.18.27
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 48874
8 years ago
John Crispin 7d008e8bf0 ar71xx: Add OOLITE to the Gainstrong profile, removed standalone profile.
This patch moves the OOLITE profile code into the overarching Gainstrong
profile and deletes the old single profile file.

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

SVN-Revision: 48866
8 years ago
John Crispin 96eb5c6fa8 ramips: Added support for ZBT-826 / ZBT-1026
Support for these MT7620-based routers: https://wiki.openwrt.org/toh/zbt/we-826
Based on Oskari’s patches found here: https://dev.openwrt.org/ticket/19996

Signed-off-by: Jamie Stuart <jamie@onebillion.org>

SVN-Revision: 48865
8 years ago
Felix Fietkau 619a58d641 ar71xx, firmware-utils: split ubdev01 flash layout from XM
The ubdev01 profile defines its own MTDPARTS with smaller firmware
partition, so give it its own UBNT_BOARD in mkfwimage.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 48828
8 years ago
Felix Fietkau 28458bd057 ramips: add sysupgrade support for mt7628
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48813
8 years ago
Felix Fietkau dc6533d982 ramips: create device tree node for MT7628 WMAC in preparation for future work on driver support in mt76
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48812
8 years ago
Felix Fietkau ce9dc109a4 Revert "ar71xx: WNR612v2: exclude USB modules from image"
This reverts commit r48778. The issue has now been fixed properly

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48808
8 years ago
Rafał Miłecki 578e8d6c58 kernel: use upstream accepted bcm47xxpart patches
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48805
8 years ago
Felix Fietkau 1185e645a7 kernel: disable MIPS VDSO by default until the cache issues have been resolved
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48802
8 years ago
John Crispin ae27fab5cf ar71xx: Renamed Gainstrong MiniBox profile to Gainstrong (manufacturer) and updated copyright
This is the first patch of a series of three to tidy up the profiles for
Gainstrong devices. Right now there are two Gainstrong profiles, each
for a single device built by this manufacturer. This patch renames the
MiniBox profile to Gainstrong and updates the copyright notice.

The series applies cleanly to current trunk. Resent with the architecture in
the subject, forgot that the first time.

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

SVN-Revision: 48797
8 years ago
John Crispin f998540e80 ramips: fix GPIO names for RT5350F-OLinuXino-EVB
Hi,

the board in subject (RT5350F-OLinuXino-EVB) still ships from vendor
with a RC3 image built upon a .dts file which declares GPIO12 and GPIO14
as relay2 and relay1 respectively, as you can see from their rt5350f
branch on GitHub.

For some reason in the official stable build both the GPIOs are swapped
and the wrong names are declared in the gpio-export directive.

I'm submitting this patch which should roll back the wrong changes, so
that we get backward compatibility with any script developed on RC3
which controls the relays.

After patching correct operation is restored:

root@OpenWrt:/# cat /sys/kernel/debug/gpio
GPIOs 0-21, platform/10000600.gpio, 10000600.gpio:
 gpio-0   (button              ) in  hi
 gpio-12  (relay2              ) out lo
 gpio-14  (relay1              ) out lo

Thank you,

Signed-off-by: Lorenzo Cafaro <lorenzo@ibisco.net>

SVN-Revision: 48796
8 years ago
John Crispin cbfec477ce mpc85xx/tl-wdr4900: correct address of the gpio controller
since linux 3.19 the address of the gpio-controller changed

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 48794
8 years ago
Hauke Mehrtens eea54160a1 kernel: deactivate the vdso gettimeofday function.
The vdso version of this function has some problems with the cache.
Very often it works on dated data which causes problem. We are
currently working on fixing this in upstream Linux kernel.

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

SVN-Revision: 48787
8 years ago
Hauke Mehrtens cb04b8d582 kernel: update kernel 4.4 to version 4.4.3
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 48783
8 years ago
Felix Fietkau 5be9e97a82 ar71xx: WNR612v2: fix for random WLAN MAC
Fix for invalid/random WLAN MAC address in WNR612v2. Permanent platform
MAC is calculated and assigned during system startup. WLAN MAC follows
wired Ethernet interface addresses. This is the same fix as for WNR2000v3.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>

SVN-Revision: 48779
8 years ago
Felix Fietkau e0d358c436 ar71xx: WNR612v2: exclude USB modules from image
Netgear WNR612v2 has no USB port yet default system image
includes USB kernel modules. This patch fixes that.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>

SVN-Revision: 48778
8 years ago
Felix Fietkau 3964ac919a ar71xx: WNR2000v3: fix for random WLAN MAC
Fix for invalid/random WLAN MAC address in WNR2000v3. Permanent platform
MAC is calculated and assigned during system startup. WLAN MAC follows
wired Ethernet interface addresses.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>

SVN-Revision: 48777
8 years ago
Felix Fietkau d527b82862 switch: allow Ethernet port LEDs to show specific port speeds only
This patch adds speed_mask special file to LEDs connected to switch ports
via 'switch' trigger. It allows to choose which speeds to signal when link
is up. If router has more than one LED per port, they may light up
differently depending on how fast connection is. Default setting is 'all
speeds' so backward compatibility with system scripts (for example uci) is
maintained.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>

SVN-Revision: 48775
8 years ago
Felix Fietkau f61a80444c switch: make LED port_mask file write handler use kstrtoul() function
This patch changes swconfig_trig_port_mask_store() handler to utilize
kstrtoul() function instead of call to obsolete simple_strtoul(). Thanks
to this change, new handler takes less memory and makes port_mask special
file accept not only hexadecimal, but also decimal and octal numbers.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>

SVN-Revision: 48774
8 years ago
John Crispin 074cc7ac38 ramips: mt7620: fix failsafe switch config
As indicated in the bug tracker[1], failsafe mode is broken on at least some
devices using the mt7620 switch (and possibly mt7621). The thread explicitly
mentions the Xiaomi MiWifi, and the Nexx WT3020, and an unspecified device
using the mt7621 switch; the issue also applies to the Netgear EX2700.

The problem is that failsafe mode uses eth0, but enable_vlan is always set to 1
by the switch driver. Connecting to and/or pinging the device fails. This patch
fixes the failsafe preinit config, by making sure that vlan support is disabled.
It currently only fixes the switch config on mt7620, but might apply to the
mt7621 as well, so the patch has been designed with this in mind.

A similar (line wrapped) patch was submitted in December by Simon Peter, but never
accepted and/or discussed.

This patch applies to both Chaos Calmer and trunk.

[1] https://dev.openwrt.org/ticket/18768

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>

SVN-Revision: 48772
8 years ago
John Crispin cb49742f99 ramips: build factory images for Netgear EX2700
This patch adds support for building factory and sysupgrade images
for the Netgear EX2700 that don't require modification of u-boot
environment variables.

The bootloader on this device expects the kernel partition to end
on a 64k block boundary. The last 64 byte of the kernel partition
must contain a valid uImage header - in the stock firmware, this is
the uImage header of the root filesystem. For this patch, we're using
the uImage header of a 0 byte partition (ex2700-fakeroot.uImage).

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>

SVN-Revision: 48771
8 years ago
John Crispin 56714adb4b ar71xx: correct imagename for TPlink WA730RE
- insert missing "-" to separate model and version

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>

SVN-Revision: 48769
8 years ago
John Crispin 2a58dbda98 ar71xx: correct imagename for TPlink WA701ND
- it seems there was never a 701N-model build

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>

SVN-Revision: 48768
8 years ago
John Crispin bf49188bb1 ar71xx: matchup of TPlink WR841N(D)-names
- remove the suffix (N, ND) to indicate that the image is for all
  WR841-models
- some of these models have a "N"-suffix, others have (ND)-suffix,
  but the boards are the same - only difference is the detachable
  antenna on "D"-models
- discussed this idea to remove the suffix in IRC with jow and Borromini

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>

SVN-Revision: 48767
8 years ago
John Crispin 0834f9f076 brcm2708: remove linux 4.1 support
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 48766
8 years ago
John Crispin b3dc9566a4 brcm2708: switch to linux 4.4 and update patches
As usual these patches were extracted from:
https://github.com/raspberrypi/linux/commits/rpi-4.4.y

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 48765
8 years ago
Zoltan Herpai 9c0d3fcf82 sunxi: add descriptor files for wifi+bt modules (AP6181/6210), add brcmfmac to bananapro profile
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 48757
8 years ago
Rafał Miłecki 9e9617a864 kernel: replace bgmac patches for BCM47094 with final ones
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48756
8 years ago
Rafał Miłecki 319863f60e kernel: mtdsplit: support uimage with UBI
This patch adds uimage firmware split support for ubi.

Signed-off-by: YounJae Rho <luxflow@live.com>

SVN-Revision: 48755
8 years ago
Rafał Miłecki 1a57ce0c03 kernel: mtdsplit: add missing digest field to Seama header
Seama format has 2 similar headers: container (seal) header and entity
header. The first one has size always set to 0 and doesn't contain MD5
digest.

When dealing with Seama on a flash we deal directly with an entity. You
can see mtdsplit_parse_seama reads from offset 0 and expects entity to
be there. Seama container is used by bootloader / interface only which
extract entity out of it and flash it.

That said we should fix our header struct. This is important as we
calculate possible rootfs offset assuming it may be placed right after
Seama entity. So far calculate offset was always 16B too low.

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

SVN-Revision: 48754
8 years ago
Felix Fietkau 29bbc6e6be ar71xx: reset ethernet tx ring on fast reset to prevent packet loss / irq issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48753
8 years ago
Felix Fietkau 0ec9253b9d ramips: fix WSR-1166 partition table
- Fix typo in board_data partition start address
- Increase board_data partition size in order to exploit all flash size

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>

SVN-Revision: 48751
8 years ago
John Crispin fc47eb0794 ralink: fix mt7628 ehci support
the u2_phy init was missing

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 48747
8 years ago
John Crispin 1e218001b5 ralink: unbreak port4 on mt7620
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 48746
8 years ago
Jo-Philipp Wich c834c83f0f ar71xx: add missing symbol to Linux 4.4 config (#21878)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 48742
8 years ago
John Crispin cb5711d72a archs38: remove network config override
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 48741
8 years ago
John Crispin 73015c4cb3 linux: add support of Synopsys ARCHS38-based boards
This patch introduces support of new boards with ARC HS38 cores.

ARC HS38 is a new generation of ARC cores which utilize ARCv2 ISA.
As with ARC770 we're addind support for 2 boards for now:

 [1] Synopsys SDP board (AXS103)
     This is the same base-board as in AXS101 but with
     FPGA-based CPU-tile where ARCHs38 core is implemented.

 [2] nSIM
     Again this is the same simulation engine but configured for
     new instruction set and features of new CPU.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Felix Fietkau <nbd@openwrt.org>
Cc: Jo-Philipp Wich <jow@openwrt.org>
Cc: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 48740
8 years ago
Luka Perkov 4d966e4dde mvebu: add SolidRun ClearFog A1 support
Signed-off-by: Andrej Vlasic <andrej.vlasic@sartura.hr>

SVN-Revision: 48736
8 years ago
John Crispin dbd35c7ca9 kernel: add missing symbols to config-4.4
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 48730
8 years ago
John Crispin 717bbc3550 at91: udc driver was missing deps
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 48726
8 years ago
John Crispin e4db453eab mvebu: add missing symbols.
this broke full builds of the mvebu target

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 48725
8 years ago
John Crispin 8b38a9450b ramips: Add support for Phicomm PSG1208
This patch adds support for Phicomm PSG1208.This is a router with MT7620A SoC with 8M flash and 64M ram.
The WPS led is uesd as status_led because the power light can't be controlled with GPIO.
It seems that the 5g wifi led is connected to MT7612E and it can't be controlled with GPIO too.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>

SVN-Revision: 48721
8 years ago
Jo-Philipp Wich 473e9cad43 ar71xx: add missing kernel symbol (#21849)
Also reorder subtarget kernel configs.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 48717
8 years ago
John Crispin ba53b33453 ramips: Support LEDs on D-Link DIR-860L B1
Adds the required gpio definitions.

Signed-off-by: Johannes Wienke <languitar@semipol.de>

SVN-Revision: 48715
8 years ago
John Crispin cede06cebc ar71xx: Support for Ubiquiti UniFi AP AC LITE
Add support for the Ubiquiti UniFi AP AC LITE
Signed-off-by: P.Wassi <p.wassi at gmx.at>

SVN-Revision: 48711
8 years ago
John Crispin 13a85914ae ar71xx: Make code formatting consistent on ath79/machtypes.h
Signed-off-by: Tiziano Bacocco <tizbac2@gmail.com>

SVN-Revision: 48706
8 years ago
John Crispin d6cb792d21 ar71xx: Added support for TL-WA801NDv3
Signed-off-by: Tiziano Bacocco <tizbac2@gmail.com>

SVN-Revision: 48705
8 years ago
John Crispin 9cf8461394 ar71xx: WNR2000v3: exclude USB modules from image
Netgear WNR2000v3 has no USB port yet default system image
includes USB kernel modules. This patch fixes that.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>

SVN-Revision: 48701
8 years ago
John Crispin 48f82b53d0 use "-gt" instead of ">" with [ in /lib/functions/lantiq_dsl.sh
Avoids inadvertent file creation when executing
`/etc/init.d/dsl_control status`.

Signed-off-by: Jonathan A. Kollasch <jakllsch@kollasch.net>

SVN-Revision: 48700
8 years ago
John Crispin 9f9682a79b ramips: Add support for Netgear EX2700
This patch adds support for the Netgear EX2700 and builds an approriate
sysupgrade image.

What's missing is the option to build a factory image flashable via the
router's stock web interface, but this approach is hindered by the fact
that u-boot operforms an additional integrity check, which expects a
uImage header in the last 64 bytes of the "kernel" partition, which
the bootloader expects to be 960k, a size exceeded by the standard
OpenWrt kernel.

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>

SVN-Revision: 48698
8 years ago
John Crispin 2d45ad07fc zynq: add new target
Add support for Xilinx ZC702 Dev board

Zynq target is using 4.4 kernel and mainline 2016.1 u-boot.

Patch is tested with Xilinx ZC702 Dev board with SD boot mode.

known issues:
 - no QSPI driver in 4.4 kernel: no QSPI flash support
 - USB is not working in 4.4 kernel

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

 create mode 100644 package/boot/uboot-zynq/Makefile
 create mode 100644 target/linux/zynq/Makefile
 create mode 100644 target/linux/zynq/base-files.mk
 create mode 100755 target/linux/zynq/base-files/etc/board.d/02_network
 create mode 100644 target/linux/zynq/base-files/etc/config/network
 create mode 100644 target/linux/zynq/base-files/etc/inittab
 create mode 100644 target/linux/zynq/config-4.4
 create mode 100644 target/linux/zynq/image/Makefile
 create mode 100755 target/linux/zynq/image/mkits.sh
 create mode 100644 target/linux/zynq/patches-4.4/0001-arm-dts-zynq-zc702.dts-Set-default-rdinit-to-sbin-in.patch
 create mode 100644 target/linux/zynq/profiles/zc702.mk

SVN-Revision: 48697
8 years ago
Felix Fietkau 376e3ade79 ag71xx: fix build error with debugfs code
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48695
8 years ago
Felix Fietkau 37dd95b772 ag71xx: increase rx ring size to improve performance
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48694
8 years ago
Felix Fietkau 11ca71cfdb ag71xx: store ring size order instead of ring size to avoid div/mod
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48693
8 years ago
Felix Fietkau 033fbb7778 ag71xx: increase tx ring size to improve performance
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48692
8 years ago
Felix Fietkau b7a2c533da ag71xx: optimize icache footprint of the receive poll function
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48691
8 years ago
Felix Fietkau 2c17b8bcc5 kernel: fix uninitialized variable in bridge multicast-to-unicast patch on 4.3
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48690
8 years ago
Jo-Philipp Wich 2d04407e40 mvebu: fix WRT1900AC v1 LED driver module
Update OpenWRT build tree to reflect changes in TLC-591xx LED family driver.

In kernels < 4.0 the driver was present in form of a patch for the TLC-59116 chip,
and was upstreamed later in kernels > 4.0 to support the entire chip family.

Signed-off-by: Sebastian Careba <nitroshift@yahoo.com>
[jow: fix Kconfig symbol name]
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 48684
8 years ago
Jo-Philipp Wich 4aeeead303 x86: preserve partition table on sysupgrade
With this patch sysupgrade will write directly to the partitions
instead of to the main disk.  The UUID is copied from the image
to the MBR as well.  This prevents the mbr from being completely
overwritten and losing the partition table.  The -p option has
been added to maintain the original behavior and overwite the
entire disk with the new image.  Tests have been added to ensure
that the image partitions match up with the active partitions.

Signed-off-by: Rob Mosher <nyt-openwrt@countercultured.net>

SVN-Revision: 48682
8 years ago
Felix Fietkau 6b73b7a8ec ramips: fix build error on oversized images by putting the dir-860l-b1 size check at the end of the chain
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48681
8 years ago
Jo-Philipp Wich d07d65ec30 generic: add missing kconfig symbol
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 48675
8 years ago
Jo-Philipp Wich 6ec31a8487 x86: remove unrelated config override
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 48668
8 years ago
John Crispin e68281e613 brcm2708: add missing symbols
enable CONFIG_PWM
enable the RASPI PWM stuff
fix buildbot w. 4.1

compile tested only

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>

SVN-Revision: 48667
8 years ago
John Crispin 6801c4e33e ramips: HLK-RM04 - Enable GPIO14 for WPS button
The top half of UARTF on the HLK-RM04 is used for GPIO.

  mode 1   mode 2
   RIN     GPIO14
   DSR_N   GPIO13
   DCD_N   GPIO12
   DTR_N   GPIO11
   RXD     GPIO10
   CTS_N   GPIO09
   TXD     GPIO08
   RTS_N   GPIO07

This patch applies 3'b101 mode to UARTF:

   GPIO14
   GPIO13
   GPIO12
   GPIO11
   RXD
   CTS_N
   TXD
   RTS_N

Because the base rt5350.dtsi file forces 3'b000 mode, remove the pin setting from this file and apply it directly to the files that inherit from it (WIZFI630A.dts and WT1520.dtsi).  This change makes the rt5350.dtsi file consistent with the mt7620a.dtsi file.

Signed-off-by: John Clark <inindev@gmail.com>

SVN-Revision: 48665
8 years ago
John Crispin 7f672e66f8 rampis: HLK-RM04 - Setup I2C as GPIO
The I2C function of the RT5350 SoC on the HLK-RM04 is used for GPIO1 and GPIO2.

Take note that the I2C_SD pin is GPIO1 on the RT5350 and is exposed on the HLK-RM04 as GPIO0
Likewise the I2C_SCLK pin is GPIO2 on the RT5350 and is exposed on the HLK-RM04 as GPIO1

 group   mode 1    mode 2   hlk-rm04 pin & export
  i2c    i2c_sd    gpio1   (pin 8, hlk-rm04:gpio0)
  i2c    i2c_sclk  gpio2   (pin 9, hlk-rm04:gpio1)

reference:
  http://www.hlktech.net/product_detail.php?ProId=39
  http://cdn.sparkfun.com/datasheets/Wireless/WiFi/RT5350.pdf

Signed-off-by: John Clark <inindev@gmail.com>

SVN-Revision: 48664
8 years ago
John Crispin 480e15f2ce ramips: HLK-RM04 - Fix push button functions
The RESET button of the HLK-RM04 is connected to GPIO0, linux function 0x198
The WPS button of the HLK-RM04 is connected to GPIO14, linux function 0x211

Signed-off-by: John Clark <inindev@gmail.com>

SVN-Revision: 48663
8 years ago
John Crispin 1f26091242 ramips: HLK-RM04 - Remove power LED config
The power LED on the HLK-RM04 is hard wired to the power bus and is not under GPIO control, remove the bogus config for it.
(Note that GPIO0 is actually connected to the RESET button.)

Signed-off-by: John Clark <inindev@gmail.com>

SVN-Revision: 48662
8 years ago
John Crispin a0e8833cb5 lantiq: VGV7510KW22/VGV7519 update spi pinmux group
With the backport of the kernel 4.5 pinctrl-xway patches (3551609d &
826bca29) the pinmux group "spi" was splitted into "spi_di", "spi_do" &
"spi_clk". But the no longer existing group "spi" is still used by some
device tree source files.

This fixes the detection of the wireless chipset of the VGV7510KW22.

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

SVN-Revision: 48658
8 years ago
John Crispin 7c0009a52e lantiq: BTHOMEHUBV5A - explicit select the flash device
The stock u-boot doesn't disable unused flash banks. Therefore, the nand
driver tries to initialize a not connected NOR flash and the device
hangs on boot.

Workaround the issue by selecting the second flash bank (NAND).

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 48657
8 years ago