aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
Commit message (Collapse)AuthorAgeFilesLines
* ar71xx: YunCore AP90Q image supports also AP80QPiotr Dymacz2018-02-224-5/+5
| | | | | | | Vendor released new model (AP80Q) which is identical from hardware point of view with already supported AP90Q. Include AP80Q in machine name. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: add support for YunCore T830Piotr Dymacz2018-02-2213-0/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | YunCore T830 is a simple N300 router with 5-port FE switch, detachable antennas and USB 2.0 port. Specification: - 650/597/216 MHz (CPU/DDR/AHB) - 128 MB of RAM (DDR2) - 16 MB of FLASH (SPI NOR) - 5x 10/100 Mbps Ethernet - 2T2R 2.4 GHz (QCA9531), with ext. PA (SKY65174-21) and LNA - two external, detachable antennas (RP-SMA) - 1x USB 2.0 - 8x LED (7 driven by GPIO) - 1x button (reset) - DC jack for main power input (12 V) - UART and JTAG headers on PCB Flash instruction: 1. First, gain root access to the device, following below steps: - Login into web gui (default password/IP: admin/192.168.188.253). - Go to "Advanced" -> "Management" -> "System" and download backup of configuration (bakfile.bin). - Open the file as tar.gz archive, edit/update "shadow" file and change hash of root password to something known. - Repack the archive, rename it back to "bakfile.bin" and use to restore configuration of the device. - After that, device will reboot and can be accessed over SSH. 2. Then, install OpenWrt: - Login over SSH and issue command: fw_setenv bootcmd "bootm 0x9f050000 || bootm 0x9fe80000" - Upload "sysupgrade" image and install it (only if previous command succeeded) with command: "sysupgrade -n -F openwrt-...". Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: add support for Samsung WAM250Piotr Dymacz2018-02-2212-1/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Samsung WAM250 is a dual-band (selectable, not simultaneous) wireless hub, dedicated for Samsung Shape Wireless Audio System. The device is based on Atheros AR9344. FCC ID: A3LWAM250. Specification: - 560/450/225 MHz (CPU/DDR/AHB) - 64 MB of RAM (DDR2) - 16 MB of FLASH (SPI NOR) - 2x 10/100 Mbps Ethernet - 2T2R 2.4/5 GHz (AR9344), with ext. PA (SE2598L, SE5003L) and LNA - 1x USB 2.0 - 4x LED (all are driven by GPIO) - 2x button (reset, wps/speaker add) - DC jack for main power input (14 V) - UART header on PCB (J4, RX: 3, TX: 5) Flash instruction: This device uses dual-image (switched between upgrades) with a common jffs2 config partition. Fortunately, there is a way to disable this mode so that more flash space can be used by OpenWrt image. You can easily access this device over telnet, using root/root credentials (the same also work for serial console access). 1. Make sure that your device uses second (bootpart=2) image using command: "fw_printenv bootpart". 2. If your device uses first image (bootpart=1), perform upgrade to the latest vendor firmware (after the update, device should boot from second partition) using web gui (default login: admin/1234567890). 3. Rename "sysupgrade" image to "firmware.bin", download it (you can use wget, tftp or ftpget) to "/tmp" and issue below commands: mtd_debug erase /dev/mtd3 0 $(wc -c /tmp/firmware.bin | awk -F' ' '{print $1}') mtd_debug write /dev/mtd3 0 $(wc -c /tmp/firmware.bin) fw_setenv bootpart fw_setenv bootcmd "bootm 0x9f070000" reboot Revert to vendor firmware instruction: 1. Download vendor firmware to "/tmp" device and issue below commands: fw_setenv bootpart 1 sysupgrade -n -F SS_BHUB_v2.2.05.bin Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: fix COMFAST CF-E375AC supportPiotr Dymacz2018-02-225-37/+34
| | | | Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: add support for COMFAST CF-E385ACPiotr Dymacz2018-02-229-38/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | COMFAST CF-E385AC is an AC2200 ceiling mount AP with PoE support, based on Qualcomm/Atheros QCA9558 + QCA9984 + QCA8337N. Specification: - 720/600/200 MHz (CPU/DDR/AHB) - 256 MB of RAM (DDR2) - 16 MB of FLASH (SPI NOR) - 2x 10/100/1000 Mbps Ethernet, with PoE support - 3T3R 2.4 GHz (QCA9558), with external LNA and PA (SE2576L) - 4T4R 5 GHz (QCA9984), with external FEM (SKY85728-11) - 7x internal antennas - 1x RGB LED (driven by GPIO) - 1x button (reset) - UART, LEDs/GPIO and USB headers on PCB - external watchdog (Pericon Technology PT7A7514) Flash instruction: Original firmware is based on OpenWrt. Use sysupgrade image directly in vendor GUI. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: remove unnecessary packages from COMFAST devicesPiotr Dymacz2018-02-221-5/+9
| | | | | | | swconfig and uboot-envtools packages are not required by any of the supported COMFAST devices. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: rename COMFAST CF-E355AC to CF-E355AC v1Piotr Dymacz2018-02-226-27/+52
| | | | | | | | There are now supported two versions of the CF-E355AC board which differ in 802.11ac radio chip. Include version number in board, model, image filename, etc., also for the v1. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: image: simplify Embedded Wireless definitionsPiotr Dymacz2018-02-221-7/+2
| | | | Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: image: generic: use simply expanded variablesPiotr Dymacz2018-02-221-16/+16
| | | | Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: image: generic: clean up trailing whitespacePiotr Dymacz2018-02-221-1/+1
| | | | Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: add support for COMFAST CF-E355AC v2Ding Tengfei2018-02-228-3/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | COMFAST CF-E355AC v2 is a ceiling mount AP with PoE support, based on Qualcomm/Atheros QCA9531 + QCA9886. Short specification: - 2x 10/100 Mbps Ethernet, with PoE support - 128MB of RAM (DDR2) - 16 MB of FLASH - 2T2R 2.4 GHz, 802.11b/g/n - 2T2R 5 GHz, 802.11ac/n/a, WAVE 2 - built-in 4x 3 dBi antennas - output power (max): 500 mW (27 dBm) - 1x RGB LED, 1x button - built-in watchdog chipset Flash instruction: Original firmware is based on OpenWrt. Use sysupgrade image directly in vendor GUI. Signed-off-by: Ding Tengfei <dtf@comfast.cn> [updated kernel config for both boards] Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: disable 40Mhz refclk for QCA953xSven Eckelmann2018-02-228-50/+32
| | | | | | | | | | | | | | | | | | The "QCA9531 v2.0 802.11n 2x2 2.4 GHz Premium SOC for WLAN Platforms" datasheet (80-Y7991-1 Rev. C - October 2014) doesn't specify support for a 40 Mhz reference clock. The register description for "Bootstrap Options" (page 31) defines following states for the bit 4 (REF_CLK): * 0 - CLK25 (default) * 1 - (reserved) Devices like the TP-Link CPE210 v2 has this bit set to 1 but is using a 25 Mhz reference clock. OpenWrt is still interpreted this bit as 40 Mhz and then break the bootup of the system due to this incorrect interpretation. Signed-off-by: Sven Eckelmann <sven@narfation.org> [refreshed patches] Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: add support for WHQX E1700AC/E600G/E600GAC v2Peng Zhang2018-02-2215-6/+453
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WHQX E1700AC v2 is based on Qualcomm QCA9563 + QCA9880 + QCA8334. Specification: - 750/400/250 MHz (CPU/DDR/AHB) - 128 MB of RAM (DDR2) - 8/16 MB of FLASH (SPI NOR) - 3T3R 2.4 GHz (QCA9563) with external FEM (SKY85309-11) - 3T3R 5 GHz (QCA9880) with external FEM (SKY85728-11) - 2x 10/100/1000 Mbps Ethernet (one port with PoE support) - 1x miniPCIe slot (USB 2.0 bus only) - 1x microSIM slot - 1x USB 2.0 - 5x LED (4 driven by GPIO) - 1x button (reset) - 1x 2-pos switch - 1x DC jack for main power input (9-48 V) - UART (J5) and LEDs (J13) headers on PCB WHQX E600G is based on Qualcomm QCA9531. Specification: - 650/391/216 MHz (CPU/DDR/AHB) - 64/128 MB of RAM (DDR2) - 8/16 MB of FLASH (SPI NOR) - 2T2R 2.4 GHz (QCA9531) with external PA (LXK-6601) - 2x 10/100 Mbps Ethernet (one port with PoE support) - 1x miniPCIe slot (with PCIe and USB 2.0 buses) - 1x microSIM slot - 5x LED (4 driven by GPIO) - 1x button (reset) - 1x DC jack for main power input (9-48 V) - UART (J100), SIM (J34), JTAG (J5) and LEDs (J7) headers on PCB WHQX E600GAC is based on Qualcomm QCA9531 + QCA9887. Specification: - 650/391/216 MHz (CPU/DDR/AHB) - 64/128 MB of RAM (DDR2) - 8/16 MB of FLASH (SPI NOR) - 2T2R 2.4 GHz (QCA9531) - 1T1R 5 GHz (QCA9887) with external FEM (SKY85703-11) - 2x 10/100 Mbps Ethernet - 6x LED (1x RGB, 5 driven by GPIO) - 1x button (reset) - 1x DC jack for main power input (9-12 V) - UART (J100), USB (J102), JTAG (J5) and LEDs (J7) header on PCB Important notice: First version of these boards are using different mtd layout, with ART data at the end. You should not use v2 images on v1 board because it will result in lost of ART data! Flash instruction (using U-Boot CLI and tftp server): 1. Configure PC with static IP 192.168.1.10 and tftp server. 2. Rename "sysupgrade" filename to "firmware.bin" and place it in tftp server directory. 3. Connect PC with one of RJ45 ports, power up the board and press "enter" key to access U-Boot CLI. 4. Use the following command to update the device to OpenWrt: "run lfw". Flash instruction (using U-Boot web-based recovery): 1. Configure PC with static IP 192.168.1.xxx(2-254)/24. 2. Connect PC with one of RJ45 ports, press the reset button, power up the board and keep button pressed for around 6-7 seconds, until LEDs start flashing. 3. Open your browser and enter 192.168.1.1, select "sysupgrade" image and click the upgrade button. Signed-off-by: Peng Zhang <sd20@qxwlan.com> [reworked: image generation code, mach-* files, commit description, fixed minor code style issues, rebased on master] Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: fix typos and indentation in Kconfig.openwrtPiotr Dymacz2018-02-221-3/+3
| | | | Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: include vendor name for GL iNet productsKyson Lok2018-02-224-5/+4
| | | | | | | This patch include GL.iNet vendor name in the machine name for GL.iNet vendor products. Signed-off-by: Kyson Lok <kysonlok@gmail.com>
* ar71xx: uniform GL iNet products mach nameKyson Lok2018-02-223-4/+4
| | | | | | | The mach name of GL AR150 and GL AR300 is inconsistent with other products. Signed-off-by: Kyson Lok <kysonlok@gmail.com>
* ramips: mt7621: fix usb initRoman Yeryomin2018-02-221-0/+1
| | | | | | | | | | In 4.14 reg-names is required to identify resources. Otherwise init fails with: [ 5.900501] xhci-mtk 1e1c0000.xhci: invalid resource [ 5.910499] xhci-mtk: probe of 1e1c0000.xhci failed with error -22 Signed-off-by: Roman Yeryomin <roman@advem.lv>
* octeontx: remove lots of bogus kernel config overridesFelix Fietkau2018-02-221-73/+3
| | | | | | Some of them break when building with all modules enabled Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: add missing symbolTim Harvey2018-02-221-0/+1
| | | | Signed-off-by: Tim Harvey <tharvey@gateworks.com>
* octeontx: remove undefs of CONFIG_NET_VENDOR_*Tim Harvey2018-02-221-52/+0
| | | | Signed-off-by: Tim Harvey <tharvey@gateworks.com>
* octeontx: remove unnecessary CONFIG_DEBUG_INFOTim Harvey2018-02-221-1/+0
| | | | | Cc: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
* octeontx: add fpu supportTim Harvey2018-02-221-1/+1
| | | | | Cc: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
* octeontx: remove CFLAGSTim Harvey2018-02-221-1/+0
| | | | | | | | You should not define CFLAGS for the toolchain as this will also leak into other targets if they share the same toolchain. Cc: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
* octeontx: add FAT FS support to kernelTim Harvey2018-02-221-0/+2
| | | | | | | The CN80XX Boot firmware uses an embedded FAT12 filesystem. For some reason busybox can't mount this unless its enabled static in the kernel. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
* octeontx: add USB_PCI supportTim Harvey2018-02-221-3/+4
| | | | | | The CN80XX XHCI is supported through PCI Signed-off-by: Tim Harvey <tharvey@gateworks.com>
* imx6: disable dma on uartKoen Vandeputte2018-02-221-0/+23
| | | | | | | | | | | | | | | | | | | | | | | When this target got updated to 4.14, this patch got removed to re-evaluate if it was still needed. Extensive testing now shows this issue is still present. Let's re-add the patch to fix it for now. As the uart bus is very low bandwidth .. performance impact is negligible. Boot log: [ 22.513051] imx-uart 2020000.serial: DMA transaction error. [ 22.522721] imx-uart 2020000.serial: DMA transaction error. As a sidenote: The patch mentiones an issue with RS485, but the bootlog errors above were recorded with the uart ports in standard RS232 mode. Compile/Run-tested on imx6/GW5200 Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
* kernel: refresh patchesKoen Vandeputte2018-02-228-32/+34
| | | | | | Some fuzz was introduced due to the netfilter-offload series Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
* kernel: avoid stripping retpoline flag with CONFIG_MODULE_STRIPPEDFelix Fietkau2018-02-211-11/+4
| | | | | | Fixes kernel warning when loading modules Signed-off-by: Felix Fietkau <nbd@nbd.name>
* netfilter: add a xt_FLOWOFFLOAD target for NAT/routing offload supportFelix Fietkau2018-02-211-0/+446
| | | | | | | | | | This makes it possible to add an iptables rule that offloads routing/NAT packet processing to a software fast path. This fast path is much quicker than running packets through the regular tables/chains. Requires Linux 4.14 Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: backport netfilter NAT offload support to 4.14Felix Fietkau2018-02-2142-0/+11306
| | | | | | | | | This only works with nftables for now, iptables support will be added later. Includes a number of related upstream nftables improvements to simplify backporting follow-up changes Signed-off-by: John Crispin <john@phrozen.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: backport a series of netfilter cleanup patches to 4.14Felix Fietkau2018-02-2116-0/+3232
| | | | | | Preparation for backporting upstream NAT offload support Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ramips: fix MT7621 switch driver IRQ storm on init with linux 4.14Felix Fietkau2018-02-211-4/+7
| | | | | | | | The hardware emits some interrupts while initializing and handling them can mess up the state or cause infinite loops. Fix this by disabling IRQs during init and re-enabling them afterwards Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: fix MIPS GIC clock source counter width (affects MT7621)Felix Fietkau2018-02-211-0/+23
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ramips: fix MT7621 PCI driver on 4.14Felix Fietkau2018-02-211-1/+1
| | | | | | The .map_irq hook can now be called after init. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: fix return value of usb_xhci_needs_pci_resetFelix Fietkau2018-02-201-2/+5
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: fix disabling common usb quirks on 4.14Felix Fietkau2018-02-201-7/+5
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ramips: add support for Tama W06INAGAKI Hiroshi2018-02-205-0/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tama Electric Axing W06 is a 2.4 GHz band 11n router, based on Mediatek MT7688AN. Specification: - MT7688AN (575 MHz) - 64 MB of RAM (DDR2 SDRAM) - 16 MB of Flash (SPI) - 1T1R 2.4 GHz - 1x 10/100/1000 Mbps Ethernet - 4x LEDs (GPIO connected: 3), 1x button - 1x USB 2.0 Type-A (host) - UART header on PCB (GND, RX, TX, Vcc from RJ45 side) Flash instruction using sysupgrade image: 1. Connect micro-USB cable for power supply into W06 and turn on the router 2. Connect to wifi with SSID "tama-*" with password. Complete SSID and password are listed on the back of the router 3. Access to 192.168.1.1 and login with user name "admin" and password empty 4. In firmware update(ファームウェア更新) page, click "参照" button and click "ブラウザー" button to open file browser, select the sysupgrade image and press OK button 5. Wait ~150 seconds to complete flashing Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
* ramips: improve GnuBee Personal Cloud Two supportMathias Kresin2018-02-207-36/+22
| | | | | | | | | | | | | | | | | | Use the generic board detection for the GnuBee Personal Cloud Two instead of the target specific one as all recent additions are doing. Fixup the pinmux to set all pins used as GPIO to the function GPIO. Request pins where used. Drop the i2c from the dts. There is nothing connected. While at it fix an indentation issue and use references instead of duplicating the whole node path. Use the same switch config as for the GB-PC1 and drop the led trigger for the not supported IP1001 phy connected to second rgmii. Fixes: c60a21532bc9 ("ramips: Add support for the GnuBee Personal Cloud Two") Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: use generic board detection for D-Link DAP-1522 A1Mathias Kresin2018-02-205-8/+5
| | | | | | | Use the generic board detection for the D-Link DAP-1522 A1 instead of the target specific one as all recent additions are doing. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: kernel 4.14: update dts filesHauke Mehrtens2018-02-2038-159/+794
| | | | | | | | | | | | | | | | | | | | Updated the devicetree source files to make use of the following upstreamed drivers: - xrx200 ethernet phy - reset controller unit - dwc2 - fpi Use our custom xrx200 ethernet phy compatible to support boards, which have switched the vr9 revision during lifetime, with a single devicetree source file. By switching to the dwc2 driver + usb phy framework, we don't need to used our custom gpio power patch and can use a fixed regulator instead. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: kernel 4.14: cleanup dts filesMathias Kresin2018-02-2055-4194/+4033
| | | | | | | Move common used parts to dtsi. Add labels to nodes and reference nodes via labels in dts files. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: kernel 4.14: fix usbMathias Kresin2018-02-202-0/+62
| | | | | | | | | | On danube the USB0 registers are at 1e101000 similar to all other lantiq SoCs. On Danube and AR9 the USB core is connected to the AHB bus, hence we need to enable the AHB Bus as well. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: kernel 4.14: autoselect matching vr9 rev firmwareMathias Kresin2018-02-201-0/+45
| | | | | | | | | | | | Add a custom xrx200 ethernet phy compatible to load the firmware matching the vr9 revision without specifing an expected revision. We have quite a few boards in the tree were later produced ones are using a more recent vr9. It is impossible to distinguish which revision of the vr9 is used without opening the case and removing a heatsink for some of them. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: kernel 4.14: don't use CPU interrupt controller IPI IRQ domain supportMathias Kresin2018-02-201-0/+271
| | | | | | | | | | | | | | | | This reverts kernel commit 1eed40043579 ("MIPS: smp-mt: Use CPU interrupt controller IPI IRQ domain support"). With the patch applied, the kernel hangs during boot if SMP is active. The Lantiq IRQ controller gets registered first and it directly handles the MIPS native SW1/2 and HW0 - HW5 IRQs. It looks like this controller already registers IRQ 0 - 7 and the generic driver only gets the following IRQs starting later. The upstream discussion can be found at https://www.linux-mips.org/archives/linux-mips/2017-05/msg00059.html. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: kernel 4.14: select MFD SYSCON for aseMathias Kresin2018-02-201-0/+24
| | | | | | Enable syscon to use it for the RCU MFD on Amazon SE as well. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: kernel 4.14: update patches and configHauke Mehrtens2018-02-2035-3208/+333
| | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: kernel 4.14: copy patches, config and dts filesHauke Mehrtens2018-02-20114-0/+28761
| | | | | | | This just copies the patches, configuration and dts files into the directories hich are used for kernel 4.14. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* lantiq: make dts files and kernel config kernel version specificMathias Kresin2018-02-2080-2/+1
| | | | | | | | | | Move the devicetree source files to a kernel specific directory in preparation of adding kernel 4.14 support. Rename the subtarget kernel config files to match a specific kernel version. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: rename gphy firmwareMathias Kresin2018-02-2019-30/+30
| | | | | | | | | | Rename the gphy firmware to match the name requested by kernel 4.14 and update the devicetree source files to use the new name. Update the u-boot lantiq Makefile to be compatible with the new names as well. Signed-off-by: Mathias Kresin <dev@kresin.me>
* mxs: drop support for 4.9Michael Heimpold2018-02-203-486/+0
| | | | Signed-off-by: Michael Heimpold <mhei@heimpold.de>