aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
Commit message (Collapse)AuthorAgeFilesLines
* ramips: fix DTB generationJohn Crispin2016-05-101-1/+1
| | | | | | using preprocessor style includes when calling dtc directly. Signed-off-by: John Crispin <john@phrozen.org>
* ramips: Change all '/include/' clauses to '#include' so preprocessing canStanislav Galabov2016-05-10175-176/+176
| | | | | | be done properly for the entire device trees. Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
* ramips: Add hex prefix (0x) to dtsi reg properties where needed.Stanislav Galabov2016-05-109-29/+29
| | | | Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
* ramips: introduce serial0 aliasesStanislav Galabov2016-05-1010-10/+32
| | | | | | | This patch introduces serial0 aliases in the ramips DTS files, which can then be used to denote the active console instead of relying on bootargs. Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
* kernel: update kernel 4.4 to version 4.4.9Álvaro Fernández Rojas2016-05-102-6/+6
| | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* ramips: mt7620: [UPSTREAM] fix USB frequency scalingD. Andrei Măceș2016-05-101-0/+33
| | | | | | | The logic for the SoC check got inverted. We need to check if it's not a MT76x8. Signed-off-by: D. Andrei Măceș <dmaces@nd.edu>
* ramips: Fix alphabetical sorting for 02_networkVittorio Gambaletta (VittGam)2016-05-101-11/+11
| | | | Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
* ramips: Don't use a VLAN for the single ethernet port of the A5-V11.Vittorio Gambaletta (VittGam)2016-05-101-5/+2
| | | | | | | | | | This router only has one ethernet port, so a VLAN is useless here, now that the rt3050 TCP bug that happened without VLANs has been fixed for a very long time. Add this router to the VLAN-less config that is used by other single-port routers. Also fix MAC address detection code since this router has no WAN port. Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
* ramips: Fix network for routers without VLANs on eth0.Vittorio Gambaletta (VittGam)2016-05-101-6/+2
| | | | | | | | | | | | | | Some routers only have one port, so eth0 is used without VLANs for them. Revision r47720 introduced some changes, but wrongly confused "enable" with "reset". VLANs need to be disabled for those routers, and the switch may be reset. Fix this, by explicitly disabling VLANs instead of resetting the switch for these routers. Also merge duplicate configuration for the "m2m". Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
* ramips: Drop hacky switch workaround for failsafe on rt3x5x and rt5350.blogic2016-05-101-28/+9
| | | | | | | | | | | | The new rt3050 switch driver doesn't have problems with TCP when not using VLANs. This piece of code also broke failsafe for all routers where the LAN port is not wired to port 0 of the internal switch. Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> SVN-Revision: 49293
* ramips: Disable all ethernet ports except port 0 on A5-V11.blogic2016-05-101-1/+2
| | | | | | | | | Port 0 is the only ethernet port on this router, so disable all other PHYs in order to save power. Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> SVN-Revision: 49292
* ramips: Disable all ethernet ports except port 4 on HT-TM02.blogic2016-05-101-0/+1
| | | | | | | | | Port 4 is the only ethernet port on this router, so disable all other PHYs in order to save power. Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> SVN-Revision: 49291
* ramips: Get rt3050 ethernet ports to be disabled from the device tree.blogic2016-05-101-0/+81
| | | | | | | | | | | | | | | This patch allows configuring ports to be disabled in the device tree; this saves power, since disabling ports here actually disables power to ethernet PHYs. Line 444 enables all ethernet ports, so line 487 is getting zero ports to be disabled, except for port 5 in SoCs where this is not implemented as it will be sticky disabled in register POC0. Because of this, the code will still read the switch configuration and OR it to the device tree setting. Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> SVN-Revision: 49290
* ramips: Fix comment in rt3050 ethernet switch driver.blogic2016-05-101-0/+24
| | | | | | | | | | | | Line 444 is actually enabling all switch ports by setting the disable bits to 0. This needs to be done because the bootloader sets all ports to disabled by default (which is the case for at least one router based on RT5350). So, this patch fixes the comment in line 443. Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> SVN-Revision: 49289
* ramips: Fix documentation for the rt3050 switch driver.blogic2016-05-101-0/+23
| | | | | | | | The prefix used in the driver is now "mediatek" instead of "ralink". Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> SVN-Revision: 49288
* ramips: Fix multicast ICMPv6 for the rt3050 ethernet switch.blogic2016-05-101-0/+26
| | | | | | | | | | | | | | | | | | The FCT2 esw register should be set to 0x2500C to have "unknown IPv6 multicast" packets broadcasted to every port, instead of dropped. The previous value only let those packets go through ports 1 and 3. "Unknown IPv6 multicast" packets include packets needed by ICMPv6 echo requests addressed to well-known addresses, such as ff02::1 (MAC address is 33:33:00:00:00:01 in this case). Please note that by default ICMPv6 echo requests to ff02::1 are not replied to by the router because of ip6tables considering those packets to be invalid. But this is another bug/patch. ;) Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> SVN-Revision: 49287
* ramips: add support for Planex MZK-EX750NP.blogic2016-05-108-1/+174
| | | | | | | | | | | add support for Planex MZK-EX750NP. MZK-EX750NP is MT7620A and MT7610E based 11ac wifi repeater. Built-in power supply. 64MiB RAM, 8MiB SPI Flash, non Wired Ethernet. Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com> SVN-Revision: 49268
* image / basefiles: make console password configurableJohn Crispin2016-04-181-1/+1
| | | | | Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com> Signed-off-by: John Crispin <john@phrozen.org>
* target: globally remove ARCH_PACKAGES overridesJo-Philipp Wich2016-04-176-6/+0
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* ramips: Add support for the Netgear WNDR3700v5John Crispin2016-04-268-0/+171
| | | | | | | | | | https://wiki.openwrt.org/toh/netgear/wndr3700 wndr3700v5 uses the single-core dual thread MediaTek MT7621S SoC. Signed-off-by: L. D. Pinney <ldpinney@gmail.com> SVN-Revision: 49247
* ramips: add support for Planex MZK-EX300NPJohn Crispin2016-04-268-1/+153
| | | | | | | | | | MZK-EX300NP is MT7620A based wifi repeater. Built-in power supply. 64MiB RAM, 8MiB SPI Flash, non Wired Ethernet. Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com> SVN-Revision: 49235
* ramips: add support for Planex CS-QR10John Crispin2016-04-268-1/+187
| | | | | | | | | | | | CS-QR10 is MT7620A based IP Camera. the camera and sound does not work with kernel 4.4. - camera chip is sn9c291. - sound chip is wm8960. Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com> SVN-Revision: 49234
* ramips: fix build of targetHauke Mehrtens2016-04-241-10/+10
| | | | | | | | | | | Makes the patches apply again by fixing the white space broken patch. This problem was introduced in r49212. Closes #22248 and #22259 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 49221
* 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