aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
Commit message (Collapse)AuthorAgeFilesLines
* ramips: use the ralink,mtd-eeprom device tree propertyMathias Kresin2016-11-091-14/+3
| | | | | | | | | | | | | | | | | | | | | Use the ralink,mtd-eeprom instead of invoking the userspace firmware loader. Set the label and compatible string according to the the PCI binding documentation. Use the wifi@0,0 label and the pci0,0 compatible string in case the PCI vendor and device id is unknown. It should work anyway since the compatible string isn't evaluated (yet). This commit might fixes the PCIe wireless for the Buffalo WHR-600D. This board was mentioned in the board 10-rt2x00-eeprom firmware hotplug script but never had the correct eeprom name set to trigger the firmware from flash extraction. Use the usual eeprom for the soc wmac of the Dovado Tiny AC. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: Add support for Wavlink WL-WN575A3Roger Pueyo Centelles2016-11-084-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds support for the Wavlink WL-WN575A3, a dual-band wall-plug wireless router with the following specifications: - CPU: MediaTek MT7628AN 580MHz - Flash: 8MB - RAM: 64MB - Ethernet: 2x 10/100 Mbps (switched) - 2.4 GHz: 802.11b/g/n SoC, MIMO 2x2, 20 dBm - 5 GHz: 802.11a/n/ac MT7612E, MIMO 2x2, 20 dBm - Antennas: 4x external (2 per radio), non-detachable - LEDs: 4 programmable + LAN, WAN, POWER - Buttons: reset, WPS Flashing instructions: Factory U-boot launches a TFTP client if WPS button is pressed during power-on. Rename the sysupgrade file and configure a TFTP as follows: - Client (WL-WN575A3) IP: 192.168.10.101 - Server IP: 192.168.10.100 - Filename: firmware.bin Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
* ramips: add support for MikroTik hEX v3 (RB750Gr3)Andrew Yong2016-11-024-0/+8
| | | | | | | | | | | | | | The MikroTik hEX v3 (RB750Gr3) is a MT7621AT board which is similar to most MT7621 reference designs, it can be easily supported by this patch; however, the stock RouterBOOT bootloader has to be replaced by a MT7621 SDK U-Boot such as https://github.com/ndoo/RB750Gr3-U-Boot - U-Boot configured for the RB750Gr3 (16MiB SPI flash, 256MiB DDR3 RAM at 1200MHz). RouterBOOT, the stock bootloader, does not initialize the UART and boots silently, making it preferable to replace it with a MT7621 SDK U-Boot with UART (57600 8N1) that supports HTTP, TFTP or serial upload of sysupgrade firmware and U-Boot. Furthermore, RouterOS, the stock firmware, is contained in a proprietary modification of SquashFS without GPL sources; UART is also disabled in stock firmware. The combination of LEDE firmware generated by this PR and MT7621 SDK U-Boot expects the printed MAC address to reside at offset `0xe000` of the factory partition (absolute offset is `0x4e000`); this is similar to the factory MAC address offset for several other MT7621 devices. A 16MiB flash dump suitable for use with flashrom will be provided if/once this patch is accepted and binaries are built by LEDE buildbot. Alternatively, writing the U-Boot to the SPI flash starting at 0x0 offset and booting the board with serial console attached will allow TFTP, HTTP or serial upload of sysupgrade firmware. Signed-off-by: Andrew Yong <me@ndoo.sg>
* ramips: Archer C50 cleanupHenryk Heisig2016-10-312-8/+7
| | | | | | | | | | | - setting read-only flag to important partitions - enabling PA to improve 2.4 GHz signal strength - add missing leds - rename colour led - add mac adress to 5GHz wlan interface - included <dt-bindings/input/input.h> and <dt-bindings/gpio/gpio.h> Signed-off-by: Henryk Heisig hyniu@o2.pl
* ramips: fix PSG1218 LEDsXuefu Lin2016-10-262-2/+3
| | | | Signed-off-by: Xuefu Lin <xuefulin@gmail.com>
* ramips: add support for Planex VR500.YuheiOKAWA2016-10-155-1/+12
| | | | | | | | | | | | SOC: MT7621A RAM: 256MiB NOR: MX25L51245G Non Wireless Router. Issue: soft reboot problem. SPI Flash do not exit 4byte address mode. Signed-off-by: Yuhei Okawa <tochiro.srchack@gmail.com>
* ramips: use rfkill for wps button on wlan only boardsMathias Kresin2016-10-151-21/+0
| | | | | | | | | | | | | All of the touched boards don't have an ethernet port. Allow to use the wps button on these boards to enable the wireless radio after boot. The force enabled wireless for the DCH-M225 is removed. It is reckless to bring up an unencrypted wireless network by default these days. Using the wps button to bring up the radio seam to me the better approach. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: move edimax images to the new build codeMathias Kresin2016-10-151-6/+7
| | | | | | | | | | | | | | | | Images installed via TFTP recovery or the Edimax webinterface of the 3g-6200n(l) are writting with the edimax header to flash. Use only one image type for these boards. The migration to the factory only images need to be done via TFTP recovery. Use the same start address for the 3g-6200n(l) factory images as the stock firmware images. Thanks to Jan Dostrasil for reporting all the issues of the 3g-6200nl and the patient testing of all changes. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: improve edimax 6200n/nl supportMathias Kresin2016-10-152-3/+6
| | | | | | | | | | Assign the reset functionality to the wps/reset buttons. Use the wlan switch of the 6200n to enable/disable wlan. Add the internet led of the 6200nl and use the led for boot status indication Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: fix edimax 6200nl switch configMathias Kresin2016-10-151-1/+0
| | | | | | | | | | | | | With 3a9752bbd2bc00e407b5dcad21789720f40abf0e and later changes to ramips_set_preinit_iface() the default vlan config applied during preinit was changed. These changes were made without updating the default network config to ensure that vlan interfaces used for lan/wan are still configured. Fix the issue by using the default all LAN portmap and disabling not connected switch ports using portdisable device tree parameter. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: tag the CPU switch portMathias Kresin2016-10-151-1/+1
| | | | | | | | | | | | With de5102651501e51c036f88fe9c4dbf6974e5158a the explicit tagging of the CPU port was removed. This leads to a not working default network config, with vlans enabled but disabled CPU tagging, for boards where all switch ports are having the same role. In case the ports are having different roles set, tagging is is set implicit for the CPU port by ucidef_add_switch(). Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: remove fixed lan/wan interface for switch configsMathias Kresin2016-10-151-1/+0
| | | | | | | | | | Don't set the lan/wan interface when using ucidef_add_switch. This results into a wan interface albeit all ports a annotated as lan ports. ucidef_add_switch takes care of setting the correct lan/wan interface according to the annotation of the ports. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: add support for Zyxel NBG-419N2 (WAP3205v2)Klaus2016-10-044-0/+9
| | | | | | | | | | | applied bb-final-ramips-add-zyxel-nbg-419n2.patch from 123serge123, found at https://yadi.sk/d/1ZV0lKJwbTE65; see https://forum.openwrt.org/viewtopic.php?pid=246905#p246905, modified slightly to fit to CC release and to new lede build system: image/rt305x.mk include file is used now changed NBG-419N2.dts format to fit style of other dts files Signed-off-by: Klaus <k-laus@quantentunnel.de>
* ramips: Add support for Phicomm K2 PSG1218Xuefu Lin2016-10-045-0/+11
| | | | | | | | | - CPU: MT7620A 580MHz - Flash: 8MB - RAM: 64MB - External PA+LNA on both WLAN2.4 and WLAN5 - 4x LAN ethernet and 1x WAN ethernet Signed-off-by: Xuefu Lin <xuefulin@gmail.com>
* ramips: Xiaomi MiWiFi Nano: fix status ledCezary Jackiewicz2016-09-292-2/+2
| | | | | | | - add status led for Xiaomi MiWiFi Nano - revert https://github.com/lede-project/source/commit/af1e70b4a730e91ce1668d506ebc5c1c8cf5abf5 , this should not be added. Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
* ramips : add support for Newifi D1BangLang Huang2016-09-275-0/+21
| | | | Signed-off-by: BangLang Huang <banglang.huang@foxmail.com>
* ramips : add support for PandoraBox D1BangLang Huang2016-09-275-1/+10
| | | | Signed-off-by: BangLang Huang <banglang.huang@foxmail.com>
* ramips: Add support for ZBT-CPE102Cezary Jackiewicz2016-09-275-0/+11
| | | | | | | | | | - CPU: MT7620N 580MHz - Flash: 8MB - RAM: 64MB - build-in minipcie slot for modem 3G/4G - one ethernet port 10/100Mbps Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
* ramips: move /lib/ramips.sh include in /etc/init.d/bootcount into start()Matthias Schiffer2016-09-251-1/+2
| | | | | | Enabling the init script offline will print an error otherwise. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* ramips: do not "local" variables outside of a functionMartin Blumenstingl2016-09-241-1/+1
| | | | | | | | | Older busybox versions allowed using the local keyword outside of functions, whereas 1.25.0 (which was introduced in 06fa1c46fc32) do not allow this anymore (leading to the following error when executing the script: "file: local: line nn: not in a function"). Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
* cleanup ucidef_set_interface* usageMathias Kresin2016-09-101-2/+2
| | | | | | | | - quote the interface name - remove call of not existing function - remove the proto if it's the default proto Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: board.d merge redundant switch/interface configsMathias Kresin2016-09-101-11/+6
| | | | | | Fix alphabetical order distortions as well. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: add support for Mercury MAC1200R v2Daniel Golle2016-09-094-0/+10
| | | | | | | | MT7628AN + MT7612E, 8MB SPI flash, 64MB DDR RAM reset button GPIO is still missing (anyone?) bootloader password is 'slp' Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* ramips: TEW-691GR: fix switch and wirelessMathias Kresin2016-08-201-2/+1
| | | | | | | | | Due to the missing phy-mode setting, the switch wasn't initialised. The wireless requires an eeprom to work. Use the same mac addresses as the stock firmware. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: TEW-692GR: fix switch and wirelessMathias Kresin2016-08-201-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The AR8327 initvals were not copied to the DTS during the switch from mach file to device tree and broke the switch on the device. The former used PORT6 related initvals were wrong and have been corrected. The phy mode setting for the switch was missing in the DTS as well. The wireless requires an eeprom to work. The dual band wireless chips have both bands enabled by default but only one band per chip is working. The stock firmware uses the following mac addresses: LAN: AA:BB:CC:DD:EE:E4 WAN: AA:BB:CC:DD:EE:E4 2.4GHz: AA:BB:CC:DD:EE:E4 5 GHz: AA:BB:CC:DD:EE:E8 Assuming the mac address range :E4 to :E8 is reserved for this device, the MAC addresses were reorder to have a unique MAC address for each interface: LAN: AA:BB:CC:DD:EE:E4 2.4GHz: AA:BB:CC:DD:EE:E4 WAN: AA:BB:CC:DD:EE:E5 5 GHz: AA:BB:CC:DD:EE:E8 Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: Add support for Thunder TimecloudChuanhong Guo2016-08-104-1/+7
| | | | | | | Thunder Timecloud is a small NAS with MT7621A. It has 1 USB port and an SD Card slot. There is no wireless cards. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
* ramips: Add support for TEW-714TRUJimmy Zhong2016-08-104-0/+9
| | | | Signed-off-by: Jimmy Zhong <mb300sd@mb300sd.net>
* ramips: Rename TP-Link Archer C50 LEDsP.Wassi2016-07-261-5/+5
| | | | | | | Rename LEDs in TP-Link Archer C50 from [manufacturer name] to [board name] ("tp-link" -> "c50") Signed-off-by: P.Wassi <p.wassi@gmx.at>
* ramips: Improve TP-Link Archer C20i supportP.Wassi2016-07-262-0/+7
| | | | | | Improve / finalise TP-Link Archer C20i support. Signed-off-by: P.Wassi <p.wassi@gmx.at>
* ramips: unify etc/board.d/01_leds configurationP.Wassi2016-07-241-2/+2
| | | | | | | Introduce an optional parameter at the local set_usb_led and set_wifi_led function such that they can take a triggering device. If no parameter is passed, behaviour is unchanged. Signed-off-by: P.Wassi <p.wassi@gmx.at>
* ramips: dch-m225 don't have ethernet. default enable wifiMichael Lee2016-07-241-0/+21
| | | | Signed-off-by: Michael Lee <igvtee@gmail.com>
* ramips: remove indentation in etc/board.d/01_ledsPaul Wassi2016-07-241-1/+1
| | | | | Remove indentation at end of line in base-files/etc/board.d/01_leds Signed-off-by: Paul Wassi <p.wassi@gmx.at>
* ramips: Add support for D-Link DCH-M225Michael Lee2016-07-116-0/+14
| | | | | | | | D-Link DCH-M225 is based on Mediatek MT7620 with 64MB ram, 8MB flash, 3.5mm audio out support. but no ethernet and usb ports. so you must default enable wifi. Signed-off-by: Michael Lee <igvtee@gmail.com>
* ramips: Add support for the NixCore X1 ModuleL. D. Pinney2016-07-113-0/+5
| | | | | | | | | The NixCore X1 is a Ralink/MediaTek rt5350 WiFi Module. http://nixcores.com/ Signed-off-by: L. D. Pinney <ldpinney@gmail.com> Acked-by: Drew Gaylo <drew@nixcores.com>
* ramips: fix buffalo wmr-300 lan portJohn Crispin2016-07-051-2/+4
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* ramips: set correct LAN/WAN MAC addresses on DIR-860L B1Matthias Schiffer2016-06-301-0/+4
| | | | | Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> Reviewed-by: Jo-Philipp Wich <jo@mein.io>
* ramips: add button support and make LEDs known to userspace for DIR-860L B1Matthias Schiffer2016-06-302-0/+4
| | | | | Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> Reviewed-by: Jo-Philipp Wich <jo@mein.io>
* ramips: fix fixseama call on first bootMatthias Schiffer2016-06-301-3/+3
| | | | | | | | | | | | | Commit "kernel: mtdsplit: calculate kernel partition precisely for Seama" changed the kernel partition to only contain the kernel itself and not the Seama header. Adjust the fixseama call to match what is used on brcm53xx. This fixes failing to boot a second time after flashing the factory image on the affected devices. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> Reviewed-by: Jo-Philipp Wich <jo@mein.io>
* ramips: add suport for ZBT APE522IIRoger Pueyo Centelles2016-06-224-0/+10
| | | | | | | | | The ZBT APE522II is a dual-radio outdoor CPE based on the MT7620a SoC. It has 64 MB RAM, 8 MB flash, 2 Fast Ethernet ports via internal switch (one with 802.3af 48V PoE support), a 802.11b/g/n SoC 2.4 GHz radio and an 802.11a/n/ac MT7612E-based 5 GHz radio. Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
* ramips/base-files: Add support for Archer C50Henryk Heisig2016-06-135-1/+16
| | | | Signed-off-by: Henryk Heisig <hyniu@o2.pl>
* ramips: add support for DuZun DM06Michael Lee2016-06-133-0/+8
| | | | | | | | DuZun DM06 is a develop board based on mt7628 64M RAM, 8M SPI Flash, 1 WAN, 1 LAN. wm8960 codec with line out, line in and speaker output. Signed-off-by: Michael Lee <igvtee@gmail.com>
* ramips: add Widora-NEO board supportYuan Chenmang2016-06-014-1/+7
| | | | | | | | | The Widora board is similar to the Linkit 7688 but features a larger flash capacity. Signed-off-by: Yuan Chenmang <771992497@qq.com> [Jo-Philipp Wich: Reword commit message, cleanup initial PR] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* ramips: Add status led for Xiaomi MiWiFi NanoCezary Jackiewicz2016-05-231-1/+2
| | | | Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
* ramips: cleanup for Hame MPR-A2Cezary Jackiewicz2016-05-231-1/+1
| | | | | | | | | | | | - disable all ethernet ports except port 0 on MPR-A2 Port 0 is the only ethernet port on this router, so disable all other PHYs in order to save power. - don't use a VLAN for the single ethernet port of the MPR-A2 Like A5-V11, this router only has one ethernet port. Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
* ramips: use green power LED as status indicator for Buffalo WSR-1166 and WSR-600Felix Fietkau2016-05-211-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ramips: add status led for ZBT-WE826Andrew Yong2016-05-121-1/+2
| | | | Signed-off-by: Andrew Yong <me@ndoo.sg>
* ramips: add initial support for SamKnows SK-WB8Andrew Yong2016-05-126-0/+21
| | | | Signed-off-by: Andrew Yong <me@ndoo.sg>
* 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>