aboutsummaryrefslogtreecommitdiffstats
path: root/target
Commit message (Collapse)AuthorAgeFilesLines
* kernel: bump 4.9 to 4.9.106Koen Vandeputte2018-06-073-163/+185
| | | | | | | | | Refreshed all patches Compile-tested on: ar71xx Runtime-tested on: ar71xx Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
* ath79: add WLAN, Ethernet-Switch with LAN/WAN and Status LED to DorinCatrinel Catrinescu2018-06-073-6/+15
| | | | Signed-off-by: Catrinel Catrinescu <cc@80211.de>
* zynq: remove support for kernel 4.4Luis Araneda2018-06-071-752/+0
| | | | Signed-off-by: Luis Araneda <luaraneda@gmail.com>
* zynq: switch to kernel 4.14Luis Araneda2018-06-071-2/+2
| | | | | | | | Also, remove the source-only qualifier Run-tested: ZedBoard Signed-off-by: Luis Araneda <luaraneda@gmail.com>
* zynq: refresh kernel 4.14 configurationLuis Araneda2018-06-071-101/+78
| | | | Signed-off-by: Luis Araneda <luaraneda@gmail.com>
* zynq: copy config to kernel 4.14Luis Araneda2018-06-071-0/+752
| | | | | | | The file will be used as a base configuration for kernel 4.14 Signed-off-by: Luis Araneda <luaraneda@gmail.com>
* zynq: fix detection of the zybo boardLuis Araneda2018-06-071-3/+8
| | | | | | | | | | The board_name was being tested for "xlnx,zynq-zybo", but the .dts compatible string is "digilent,zynq-zybo" Also, sorted the boards alphabetically, and added an error message for unsupported boards Signed-off-by: Luis Araneda <luaraneda@gmail.com>
* zynq: remove hard-coded network configurationLuis Araneda2018-06-072-20/+0
| | | | | | | | | | This is no longer necessary since commit 57776e6 (base-files: remove default /etc/config/network, generate it via board.d instead) Run-tested: ZedBoard Signed-off-by: Luis Araneda <luaraneda@gmail.com>
* zynq: reworked image creation processLuis Araneda2018-06-073-198/+30
| | | | | | | | | | | | | | | | | | | After commit a1248da (zynq: convert to new image build code), all boards, became unbootable, entering into a boot loop. Replace the compressed kernel zImage by an uncompressed Image, which is compressed after with gzip. Also, enable the creation of an initramfs image by default. Change images' filename to match the compatible string from the respective .dts file (<vendor>_<model>). Also, use the shared mkits.sh script and remove the target specific one. Fixes: FS#1204 Run-tested: ZedBoard Signed-off-by: Luis Araneda <luaraneda@gmail.com>
* ramips: fix reboot with W25Q256 with 4-address-mode enabledDaniel Golle2018-06-071-0/+73
| | | | | | | | | | | | | | | Some board vendors actually changed the loader to expect the chip to come up in 4-address-mode and flipped the ADP bit in the flash chip's configuration register which makes it come up in 4-address-mode. Hence it doesn't make sense to avoid switching to 4-address-mode on those boards but the opposite as otherwise reboot hangs eg. on the WrtNode2 boards. Fix this by checking the ADP register and only using SPI_NOR_4B_READ_OP on chips which have ADP==0 (come up in 3-byte mode). See also datasheet section 7.1.11 Power Up Address Mode (ADP) Fixes: 22d982ea0 ("ramips: add support for switching between 3-byte and 4-byte addressing on w25q256 flash") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* ar71xx: switch CPE/WBS 210/510 to okli-loaderMatthias Schiffer2018-06-061-1/+4
| | | | | | | | | | | | | | | | | | | | | We recently increased the kernel partition size of the CPE/WBS 210/510. This works fine for new installations of the factory image, but on sysupgrades, the partition table read by the bootloader is not adjusted. This limits the maximum size of the kernel loaded by the bootloader to the old partition size. While adjusting the partition table would be a cleanest solution, such a migration would have to happen before an upgrade to a new version with a newer kernel. This is error-prone and would require a two-step upgrade, as we mark the partition table partition read-only. Instead, switch from the lzma-loader with embedded kernel to the okli-loader, so only the tiny lzma-loader is loaded by the bootloader as "kernel", and the lzma-loader will then load the rest of the kernel by itself. Fixes: e39847ea2f70 ("ar71xx: increase kernel partition size for CPE/WBS 210/510") Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* ath79: lzma-loader: sync with ar71xx targetMatthias Schiffer2018-06-067-11/+29
| | | | | | | | | | | | | | Import all improvements made in the lzma-loader since development on the ath79 target started. This also reverts fe594bf90d09 ("ath79: fix loader-okli, lzma-loader"), as is obsoleted by 2ad60168b6af ("ar71xx: lzma-loader: move padding workaround to gzip step"). Likely, many of the changes should be ported to the ramips lzma-loader as well, but I don't have a device to test this. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* ar71xx: make loader-okli build step more genericMatthias Schiffer2018-06-061-2/+3
| | | | | | Add support for different loader types. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* ar71xx: lzma-loader: constify kernel argv arrayMatthias Schiffer2018-06-061-1/+1
| | | | | | | By making the kernel argv array const, the .data section can always be omitted from the laoder binary. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* ar71xx: lzma-loader: set page size to 4KBMatthias Schiffer2018-06-061-1/+1
| | | | | | | | The text section in the ELF loader is aligned to the maximum page size, which defaults to 64KB. Reduce it to the actual page size to avoid wasting flash space for this alignment. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* ar71xx: lzma-loader: move padding workaround to gzip stepMatthias Schiffer2018-06-062-2/+5
| | | | | | | | | | | | | | | | | | | | | | | Some devices (TP-Link TL-WR1043ND v1) don't boot reliably when the uncompressed loader is too small. This was workarounded in the loader by adding 512KB of padding to the .data section of the loader binary. This approach had two issues: - The padding was only working when .data was non-empty (otherwise the section would become NOBITS, omitting it in the binary). .data was only empty when no CMDLINE was set, leading to further workarounds like fe594bf90d09 ("ath79: fix loader-okli, lzma-loader"), and this workaround was only effective because a missing "const" led to the kernel argv being stored in .data instead of .rodata - The padding was not only added to the compressed .gz loader, but also uncompressed .bin and .elf loaders. The prevented embedding the kernel cmdline in the loader for non-gz loader types. To fix both issues, move the creation of the padding from the linker script to the gzip step. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* kernel: bump 4.14 to 4.14.48Stijn Tintel2018-06-0545-381/+548
| | | | | | | | | | | | | | | | | | Remove upstreamed patches: generic/pending/101-clocksource-mips-gic-timer-fix-clocksource-counter-w.patch generic/pending/103-MIPS-c-r4k-fix-data-corruption-related-to-cache-coherence.patch generic/pending/182-net-qmi_wwan-add-BroadMobi-BM806U-2020-2033.patch lantiq/0025-MIPS-lantiq-gphy-Remove-reboot-remove-reset-asserts.patch Update patches that no longer apply: generic/pending/811-pci_disable_usb_common_quirks.patch ath79/0009-MIPS-ath79-add-lots-of-missing-registers.patch Fixes CVE-2018-6412. Compile-tested: octeon, x86/64. Runtime-tested: octeon, x86/64. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* kernel: modules: package module for Exar 8250 UARTsDaniel Golle2018-06-051-0/+81
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: backport patch to fix dst handling for offloaded connectionsFelix Fietkau2018-06-051-0/+49
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mvebu: fix broken console on WRT32X (venom)Michael Gray2018-06-013-0/+208
| | | | | | | | | | | | | | | The console bootarg is being corrupted on boot, causing various issues including broken sysupgrade. Utilising the bootargs mangle patch from other targets, hardcode the console arguments and fetch the rootfs from the bootloader. Kernel command line: console=ttyS0,115200 root=/dev/mtdblock8 Bootloader command line (ignored): console= root=/dev/mtdblock8 Please cherry pick to 18.06 too Signed-off-by: Michael Gray <michael.gray@lantisproject.com>
* oxnas: bring in new oxnas targetDaniel Golle2018-06-0138-0/+6350
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reboot the oxnas target based on Linux 4.14 by rebasing our support on top of the now-existing upstream kernel support. This commit brings oxnas support to the level of v4.17 having upstream drivers for Ethernet, Serial and NAND flash. Botch up OpenWrt's local drivers for EHCI, SATA and PCIe based on the new platform code and device-tree. Re-introduce base-files from old oxnas target which works for now but needs further clean-up towards generic board support. Functional issues: * PCIe won't come up (hence no USB3 on Shuttle KD20) * I2C bus of Akitio myCloud device is likely not to work (missing debounce support in new pinctrl driver) Code-style issues: * plla/pllb needs further cleanup -- currently their users or writing into the syscon regmap after acquireling the clk instead of using defined clk_*_*() functions to setup multipliers and dividors. * PCIe phy needs its own little driver. * SATA driver is a monster and should be split into an mfd having a raidctrl regmap, sata controller, sata ports and sata phy. Tested on MitraStar STG-212 aka. Medion Akoya MD86xxx and Shuttle KD20. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* oxnas: kill old oxnas targetDaniel Golle2018-06-0162-15085/+0
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: re-add export ipv6_push_frag_opts for tunneling now patchHans Dedecker2018-06-012-0/+31
| | | | | | | The patch got removed by commit 7dca1bae82 (kernel: bump to 4.9.105) but is still required as ipv6_push_frag_opts needs to be exported. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* Revert "ramips: Move PCI driver to files directory"John Crispin2018-06-012-837/+842
| | | | | | This reverts commit a098a78a33a6b096d15c9982b5d6457988e09f03. Signed-off-by: John Crispin <john@phrozen.org>
* Revert "ramips: Remove redundant owner assignment"John Crispin2018-06-011-0/+1
| | | | | | This reverts commit 2ad4daf5794b08878467c1dac5bef7487109e4da. Signed-off-by: John Crispin <john@phrozen.org>
* Revert "ramips: improve interrupt mapping"John Crispin2018-06-012-14/+69
| | | | | | This reverts commit 5f7396ebef09b224edf08b0bda113613a42f0928. Signed-off-by: John Crispin <john@phrozen.org>
* Revert "ramips: remove conditional compilation."John Crispin2018-06-011-8/+58
| | | | | | This reverts commit 1f786257147f978ce4c5750fdc404851453fafcb. Signed-off-by: John Crispin <john@phrozen.org>
* Revert "ramips: remove unnecessary resource details."John Crispin2018-06-011-2/+15
| | | | | | This reverts commit edea934799911c54ffa7024ef9a650f9dfc8c695. Signed-off-by: John Crispin <john@phrozen.org>
* Revert "ramips: pci: sync with staging driver"John Crispin2018-06-011-150/+168
| | | | | | This reverts commit e07baec9faf487fd143976636025b5da55e13c20. Signed-off-by: John Crispin <john@phrozen.org>
* Revert "ramips: Add back some non-mt7621 code that staging removed"John Crispin2018-06-011-17/+1
| | | | | | This reverts commit 048e41f6496697863cc7d73ab95fa89a6ddf2470. Signed-off-by: John Crispin <john@phrozen.org>
* Revert "ramips: Fix WiFi after 5f7396ebef09b224edf08b0bda113613a42f0928"John Crispin2018-06-0121-0/+82
| | | | | | This reverts commit 02f815d1907cdd7e042415a2b4a749c819087168. Signed-off-by: John Crispin <john@phrozen.org>
* kernel: bump to 4.9.105Kevin Darbyshire-Bryant2018-06-0135-640/+398
| | | | | | | | | | | | | | | Refresh patches. Drop patches that have been upstreamed: target/linux/ar71xx/patches-4.9/106-01-MIPS-ath79-fix-AR724X_PLL_REG_PCIE_CONFIG-offset.patch target/linux/generic/backport-4.9/095-v4.12-ipv6-Need-to-export-ipv6_push_frag_opts-for-tunnelin.patch target/linux/generic/pending-4.9/180-net-phy-at803x-add-support-for-AT8032.patch target/linux/generic/pending-4.9/181-net-usb-add-lte-modem-wistron-neweb-d18q1.patch target/linux/generic/pending-4.9/182-net-qmi_wwan-add-BroadMobi-BM806U-2020-2033.patch Compile & run tested: ar71xx Archer C7 v2 Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
* ath79: correct wmac names in dtsAlex Maclean2018-06-012-2/+2
| | | | Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* ath79: add TP-Link TL-WR703N portAlex Maclean2018-06-013-0/+150
| | | | Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* ath79: add TP-Link TL-WR740N/ND v2 portAlex Maclean2018-06-015-0/+197
| | | | Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* ath79: add pinmux node to ar724x.dtsiAlex Maclean2018-06-011-0/+15
| | | | Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* ath79: add AR7240 dtsiAlex Maclean2018-06-011-0/+66
| | | | Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* ath79: add tiny subtargetAlex Maclean2018-06-018-79/+120
| | | | Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* ath79: fix glinet ar150 lan/wan orderingJohn Crispin2018-06-011-0/+4
| | | | | | LAN and WAN were swapped Signed-off-by: John Crispin <john@phrozen.org>
* Revert "kernel: backport export ipv6_push_frag_opts for tunneling now"Daniel Golle2018-06-012-31/+0
| | | | | | | | | This reverts commit daa73b63d5dc5eb264341336c0d7cd64d750664d. The fix has already been imported by commit b7735d8113 ("kernel: import follow-up fix for previous backport"). The patch won't apply twice. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: backport export ipv6_push_frag_opts for tunneling nowHans Dedecker2018-05-312-0/+31
| | | | | | | Patch is required on top of commit 6c81c27efa as ipv6_push_frag_opts needs to be exported for usage in ip6_tunnel.c Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* kernel: import follow-up fix for previous backportDaniel Golle2018-05-311-0/+36
| | | | | | | | Buildbots complaining made me wonder what's going on... ERROR: "ipv6_push_frag_opts" [net/ipv6/ip6_tunnel.ko] undefined! Fixes: 6c81c27efa ("kernel: backport fix for missing tunnel encapsulation limit option") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: backport fix for missing tunnel encapsulation limit optionHans Dedecker2018-05-301-0/+50
| | | | Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* ramips: Use generic board detect for GnuBee devicesRosen Penev2018-05-306-9/+6
| | | | | | | | | | | This is a port of an old commit from mkresin's tree: 09260cdf3e9332978c2a474a58e93a6f2b55f4a8 This has the potential to break sysupgrade but it should be fine as there is no stable release of LEDE or OpenWrt that support these devices. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* ramips: Fix a few other GnuBee DTS differencesRosen Penev2018-05-302-1/+4
| | | | | | | | | | I was carrying a local commit that added the sdhci stuff and missed it as a result. Also fix the rgmii3 thing in the PC2 DTS file as that's bogus and causes a dmesg warning that it's bogus. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* ramips: Fix WiFi after 5f7396ebef09b224edf08b0bda113613a42f0928Rosen Penev2018-05-3021-82/+0
| | | | | | | | | | | | | That commit exposed a bug in the DTS files used by mt7621 where the wrong reg value for pcie1 (and potentially pcie2) was being used. This was causing WiFi failures for interfaces in pcie1. eg. 2.4GHz working but not 5GHz. As all of these dts entries are already specified in mt7621.dtsi, remove them. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* kernel: bump 4.14 to 4.14.44Stijn Tintel2018-05-29127-1350/+454
| | | | | | | | | | | | | | Refresh patches. Remove upstreamed patch: generic/pending/181-net-usb-add-lte-modem-wistron-neweb-d18q1.patch Update patches that no longer applies: generic/hack/901-debloat_sock_diag.patch Compile-tested on: x86/64. Runtime-tested on: x86/64. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* mediatek: add missing symbols for mt7622John Crispin2018-05-281-1/+1
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* mediatek: add missing symbolsJohn Crispin2018-05-272-8/+8
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* ar71xx: add support for GL.iNet GL-AR750SLuo chongjun2018-05-2712-0/+234
| | | | | | | | | | | | | | | | | | | This patch adds supports for GL-AR750S. Specification: - SOC: QCA9563 (775MHz) - Flash: 16 MiB (W25Q128FVSG) - RAM: 128 MiB DDR2 - Ethernet: 2x 1Gbps LAN + 1x 1Gbps WAN - Wireless: 2.4GHz (bgn) and 5GHz (ac) - USB: 1x USB 2.0 port - Button: 1x switch button, 1x reset button - LED: 3x LEDS (green) Flash instruction: Apply factory image via web-gui. Signed-off-by: Luo chongjun <luochongjun@gl-inet.com>