summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
Commit message (Collapse)AuthorAgeFilesLines
* ramips: Add support for ZBT WG3526John Crispin2016-04-217-1/+153
| | | | | | | | | | | | | | | | | | The WG3526 is the follow-up to the 2626 and is mostly the same, with the excaption that the mt7602 has been replaced with the mt7603. The internal wifi setup has also changed slightly. Based on my tests, everything that worked on the 2626 works on the 3526 and with roughly the same performance. v1->v2: * Remove some references to 2626 that I had missed in the dts. v2->v3: * Update patch to match new file structure. * Removed SD driver to be consistent with other MT7621 targets. Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com> SVN-Revision: 49213
* ramips: awake rt305x USB controllerJohn Crispin2016-04-211-0/+15
| | | | | | | | | | | | | Because of Ralink uboot set USB controller into sleep mode [1] we check it and awake controller before any registers access. Fix ticket #21396 [2] [1] http://marc.info/?l=linux-usb&m=137398626102108&w=2 [2] https://dev.openwrt.org/ticket/21396 Signed-Off-By: Serge Vasilugin <vasilugin@yandex.ru> SVN-Revision: 49212
* ramips: add support for ELECOM WRH-300CRJohn Crispin2016-04-218-2/+172
| | | | | | | | | | | | | | ELECOM WRH-300CR is MT7620N based very small Wi-Fi router with 64MiB DDR2 SDRAM, 16MiB SPI Flash, one fast ethernet port, and (internal but easy-to-access) UART. it also has internal USB hub and USB card reader which provide one USB port, one SD card slot, and one microSD card slot. Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com> Signed-off-by: FUKAUMI Naoki <naobsd@gmail.com> SVN-Revision: 49211
* ramips: update DTS file for Planex DB-WRT01John Crispin2016-04-211-1/+1
| | | | | | | | 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
* ramips: fix support Planex MZK-750DHP.John Crispin2016-04-205-4/+41
| | | | | | | | | | fix script for Planex MZK-750DHP. modification of the GPIO definition. add Profile. Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com> SVN-Revision: 49205
* ramips: rt3352 usbphy fix in dts-fileJohn Crispin2016-04-201-1/+8
| | | | | | | | Add missing rt3352 usb phy. Fix ticket #20499. Signed-Off-By:Serge Vasilugin <vasilugin@yandex.ru> SVN-Revision: 49204
* kernel: update kernel 4.4 to version 4.4.7Hauke Mehrtens2016-04-161-3/+3
| | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 49176
* ramips: remove accidentally comitted codeJohn Crispin2016-04-091-95/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 49161
* ramips: Disable the SD driver by default on MT7621John Crispin2016-04-094-4/+4
| | | | | | | | | | | | | | | | 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
* ramips: Fixes for LinkIt 7688John Crispin2016-04-093-1/+78
| | | | | | | | | | | | | 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
* ramips: Adjust image size limit for the D-Link DIR-860L B1John Crispin2016-04-092-0/+96
| | | | | | | | | | 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
* ramips: fix for Planex MZK-WDPR (lcd control gpio).John Crispin2016-04-091-0/+10
| | | | | | | | | 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
* ramips: mt7621: fix Ubiquiti EdgeRouter X profileJohn Crispin2016-04-091-1/+2
| | | | | | | | 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
* ramips: mt7621: sync MQmaker WiTi profile name to dts nameJohn Crispin2016-04-091-3/+3
| | | | | | Signed-off-by: Roman Yeryomin <roman@advem.lv> SVN-Revision: 49126
* ramips: enable device profiling by dtsJohn Crispin2016-04-091-0/+1
| | | | | | Signed-off-by: Roman Yeryomin <roman@advem.lv> SVN-Revision: 49125
* ramips: mt7621: add a device to TARGET_DEVICES after it's definitionJohn Crispin2016-04-091-4/+12
| | | | | | Signed-off-by: Roman Yeryomin <roman@advem.lv> SVN-Revision: 49124
* ramips: mt7621: fix initramfs image for ubnt-erxJohn Crispin2016-04-091-46/+20
| | | | | | Signed-off-by: Roman Yeryomin <roman@advem.lv> SVN-Revision: 49123
* ramips: move different subtarget image generation to separate makefiles to ↵John Crispin2016-04-018-935/+865
| | | | | | | | | | | | | | 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
* ramips: lzma-loader: fix O32 ABI conformanceGabor Juhos2016-03-211-0/+3
| | | | | | | | | | | | | | | | | | | 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
* ramips: MiWifi-Nano - change gpios to leds, add to default build groupJohn Crispin2016-03-203-23/+21
| | | | | | | | | | | | 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
* ramips: Add support for Xiaomi MiWiFi NanoJohn Crispin2016-03-166-0/+126
| | | | | | | | | | | | | | | 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
* ramips: Add support for GL-MT750John Crispin2016-03-107-1/+177
| | | | | | | | 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
* ramips: Add support for GL-MT300NJohn Crispin2016-03-107-1/+173
| | | | | | | | 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
* ramips: Add support for GL-MT300AJohn Crispin2016-03-107-0/+190
| | | | | | | | 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
* ramips: add support for Planex MZK-WDPR.John Crispin2016-03-085-0/+84
| | | | | | | | | | | 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
* ramips: convert the remaining subtargets to 4.4Felix Fietkau2016-03-0789-35482/+65
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48954
* ramips: fix subtarget kernel version assignment (only mt7621 is ready for now)Felix Fietkau2016-03-072-1/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48953
* ramips: add linux 4.4 support, update mt7621 subtarget to 4.4Felix Fietkau2016-03-0769-13/+30076
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48951
* ramips: mt7621: fix WF-2881 for ubi splitJohn Crispin2016-03-042-14/+5
| | | | | | | | This patch fix firmware split for WF-2881 which was previously manually partitioned. Signed-off-by: YounJae Rho <luxflow@live.com> SVN-Revision: 48908
* ramips: Add profiles for JCG routersJohn Crispin2016-03-042-0/+60
| | | | | | | | | | 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
* ramips: Add JCG routers to base-filesJohn Crispin2016-03-044-0/+18
| | | | | | | | | | 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
* ramips: Add device tree for JCG JHR-N926RJohn Crispin2016-03-041-0/+127
| | | | | | | | | | | | | | | | 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
* ramips: Add device tree for JCG JHR-N825RJohn Crispin2016-03-041-0/+81
| | | | | | | | | | | | 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
* ramips: Add device tree for JCG JHR-N805RJohn Crispin2016-03-041-0/+89
| | | | | | | | | | | | 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
* ramips: Incorrect file mode changeJohn Crispin2016-03-034-0/+0
| | | | | | | | | | | 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
* ramips: enable mt76 on mt7688 by defaultFelix Fietkau2016-03-022-0/+4
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48886
* ramips: Added support for ZBT-826 / ZBT-1026John Crispin2016-03-017-0/+155
| | | | | | | | | 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
* ramips: add sysupgrade support for mt7628Felix Fietkau2016-02-281-0/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48813
* ramips: create device tree node for MT7628 WMAC in preparation for future ↵Felix Fietkau2016-02-282-0/+17
| | | | | | | | work on driver support in mt76 Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48812
* ramips: fix GPIO names for RT5350F-OLinuXino-EVBJohn Crispin2016-02-261-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* ramips: mt7620: fix failsafe switch configJohn Crispin2016-02-251-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | 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
* ramips: build factory images for Netgear EX2700John Crispin2016-02-252-1/+27
| | | | | | | | | | | | | | | | 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
* ramips: fix WSR-1166 partition tableFelix Fietkau2016-02-221-2/+2
| | | | | | | | | - 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
* ralink: fix mt7628 ehci supportJohn Crispin2016-02-192-7/+61
| | | | | | | | the u2_phy init was missing Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 48747
* ralink: unbreak port4 on mt7620John Crispin2016-02-191-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 48746
* ramips: Add support for Phicomm PSG1208John Crispin2016-02-158-1/+142
| | | | | | | | | | 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
* ramips: Support LEDs on D-Link DIR-860L B1John Crispin2016-02-121-0/+20
| | | | | | | | Adds the required gpio definitions. Signed-off-by: Johannes Wienke <languitar@semipol.de> SVN-Revision: 48715
* ramips: Add support for Netgear EX2700John Crispin2016-02-128-1/+177
| | | | | | | | | | | | | | | | 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
* ramips: fix build error on oversized images by putting the dir-860l-b1 size ↵Felix Fietkau2016-02-081-2/+2
| | | | | | | | check at the end of the chain Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48681
* ramips: HLK-RM04 - Enable GPIO14 for WPS buttonJohn Crispin2016-02-084-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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