summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
Commit message (Collapse)AuthorAgeFilesLines
...
* ramips: Add support for GL-MT300NJohn Crispin2016-03-104-1/+7
| | | | | | | | 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-104-0/+8
| | | | | | | | 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-083-0/+5
| | | | | | | | | | | 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: 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: 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: Added support for ZBT-826 / ZBT-1026John Crispin2016-03-014-0/+10
| | | | | | | | | 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: 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: Add support for Phicomm PSG1208John Crispin2016-02-155-1/+10
| | | | | | | | | | 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: Add support for Netgear EX2700John Crispin2016-02-125-1/+11
| | | | | | | | | | | | | | | | 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
* ralink: add WRTnode2 platform and led supportJohn Crispin2016-01-014-0/+15
| | | | | | Signed-off-by: xzmu <xzmu@wrtnode.com> SVN-Revision: 48049
* ramips: add a script to fix up the broken mac address on the witi boardFelix Fietkau2016-01-011-0/+79
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48027
* ramips: add support for Ubiquiti EdgeRouter X (UBNT-ERX)John Crispin2015-12-124-1/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This router is based on MT7621 SoC, no wifi, no usb, nand. Works: * Boots. * Ethernet. * Switch. * Button (reset). * Flashing OpenWrt from stock firmware. * Upgrading OpenWrt. Doesn't work: * No GPIO leds. All leds are controlled by switch, but stock firmware was able to control them. * SoC has crypto engine but no open driver. * SoC has nat acceleration, but no open driver. * This router has 2MB spi flash soldered in but MT nand/spi drivers do not support pin sharing, so it is not accessable and disabled. Stock firmware could read it and it was empty. * PoE out. Router has serial pins populated. If looking at the top of the router, then counting from Eth sockets pins go as: 'GND, RX, TX, GND'. 3.3v, 57600. U-boot bootloader supports tftpboot, controlled from serial. This router has two kernel partitions: 'live' and 'backup'. They are swapped during flashing (on both stock and OpenWrt). Active partition is controlled by a flag in a factory partition. U-boot has custom command to switch active kernel partition. Kernel partitions are 'bare flash' 3MB. Stock bootloader has no UBI support. Stock rootfs is UBIFS. Flashing procedure. Stock firmware uses custom kernel patch to mount squashfs from a file that is located on UBIFS volume. This makes wiping out this volume from within stock firmware difficult. Instead this patch builds image that is flashable by stock firmware and contains initrams image (with minimal set of packages to fit into kernel partition). Once this is flashed one can reboot into initramfs OpenWrt and use sysupgrade to flash OpenWrt including rootfs into nand. Note: factory image is only built if initramfs image is enabled. Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> SVN-Revision: 47881
* all: drop old uci-defaults.shJo-Philipp Wich2015-12-112-2/+2
| | | | | | | | | Replace former uci-defaults.sh implementation with the uci-defaults-new.sh one and update all users accordingly. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47867
* ramips: add additional support for MQmaker WiTi boardJohn Crispin2015-12-114-0/+6
| | | | | | | | | | | | | | The board is based on mt7621AT cpu, and has 16mb nor flash, 256mb of ram, 2 sata ports, microsd card slot, 1 USB 3.0 port and at least one 2.4 and one 5 ghz antenna. This is the 6th submission that adds support for XHCI in the device tree file, along with switching the location of the 2 radio's and addition of the kmod-i2c-mt7621 in the default packages of the profile. Signed-off-by: Sebastian Careba <nitroshift@yahoo.com> SVN-Revision: 47845
* ramips: Fix support for PBR-M1 boardJohn Crispin2015-12-112-8/+8
| | | | | | | | | | The PBR-M1 support in current OpenWrt is for the early demo board and it doesn't work on the final board.This patch fixes the support for it. The LED called pbr-m1:buzzer is a beeper connected to GPIO26 so I used gpio-beeper instead of gpio-leds. Signed-off-by: 郭传鈜 <gch981213@gmail.com> SVN-Revision: 47844
* all: remove dummy ucidef_set_interface_loopback() from board.dJo-Philipp Wich2015-12-031-2/+0
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47744
* board.d: remove redundant ucidef_set_interfaces_lan_wan() callsJo-Philipp Wich2015-12-031-19/+0
| | | | | | | | | | This removes calls to ucidef_set_interfaces_lan_wan() and ucidef_set_interfaces_lan() on boards where all relevant info can be inferred from the switch definition. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47722
* board.d: merge ucidef_add_switch() and ucidef_add_switch_ports()Jo-Philipp Wich2015-12-031-40/+20
| | | | | | | | | | | | This changes uci-defaults-new.sh, config_generate and all relevant board.d files in order combine ucidef_add_switch() and ucidef_add_switch_ports() into a single function. Also removes now superfluous enable and reset arguments. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47721
* base-files: uci-defaults-new: remove reset/enable args of ucidef_add_switch()Jo-Philipp Wich2015-12-031-2/+4
| | | | | | | | | | | | | | | Out of 69 switch definitions, only 3 pass something different than "1" as values for reset and enable, with one of those three being invalid. This change ... * removes the reset and enable arguments from ucidef_add_switch() * unconditionally writes reset:1 and enable:1 to JSON * converts the three users of nonstandard values to ucidef_add_switch_attr() Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47720
* ramips: switch ucidef_add_switch_vlan() to ucidef_add_switch_ports()Jo-Philipp Wich2015-12-031-38/+41
| | | | | | | | | | This migrates the final board.d user of ucidef_add_switch_vlan() to the new ucidef_add_switch_ports() approach, fixing some logic errors for a few boards along the way. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47717
* ramips: hg255d: replace ucidef_set_led_interface() with ucidef_set_led_netdev()Jo-Philipp Wich2015-11-261-1/+1
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47657
* ralink: add support for netis WF-2881John Crispin2015-11-245-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | netis WF-2881 is an MT7621AT based router with MT7602EN, MT7612EN. It has 128MB DDR3, 128MB SLC NAND FLASH, 5-port Gbps switch and 1x USB 3.0. The following patch adds support for this device. this device only works on top of UBI. Tested and working: * ethernet * both WiFi radios * USB 3.0 * buttons (reset button) * ethernet switch and USB diag LEDs * UART * GPIOs * sysupgrade Tested and not working * failsafe Signed-off-by: YounJae Rho <luxflow@live.com> SVN-Revision: 47619
* ramips: add support for Youku YK1John Crispin2015-11-244-2/+12
| | | | | | | | | Changes since V1: I resend this patch for current trunk.The former V1 patch is for CC branch. Signed-off-by: Shonn Lu <countrysideboy@qq.com> SVN-Revision: 47617
* ramips: minor tweak to the lks7688 baord nameJohn Crispin2015-11-051-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 47388
* ramips: add feature to blink led on sysupgradeJohn Crispin2015-11-032-1/+11
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 47373
* ramips: add support for ZBT WG2626John Crispin2015-11-024-2/+8
| | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 47351
* ramips: preinit: use iproute2 instead of vconfigJohn Crispin2015-11-021-2/+2
| | | | | | | | | | | | | | | Replace use of vconfig with the corresponding iproute2 syntax in /lib/preinit/07_set_preinit_iface_ramips The switch reset work-around needed on some ramips targets used the deprecated vconfig tool to bring up the pre-init/failsafe interface. This doesn't work on recent builds where vconfig is no longer being deployed, resulting in the device being unreachable when triggered into failsafe mode. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 47349
* ramips: add support for Dovado tiny ACJohn Crispin2015-11-025-0/+17
| | | | | | | | | | | | | | | | Add support for Dovado tiny AC wifi router. Soc: mt7620a ram: 64MB flash: 8MB 1x usb 2.0 two gigabit lan ports 5ghz wlan is not supported on this board since there is no gpl driverfor mt7610e wifi chip. Signed-off-by: Andrej Vlasic <andrej.vlasic0@gmail.com> SVN-Revision: 47348
* ramips: add function to change rt2x00 wifi eeprom macJohn Crispin2015-11-021-0/+12
| | | | | | | | | Some boards like dovado tiny ac have generic ralink mac in onflash wifi eeprom. Add eeprom_set_macaddr function to rt2x00 eeprom extract script which changes mac addr insde eeprom dump. Signed-off-by: Andrej Vlasic <andrej.vlasic0@gmail.com> SVN-Revision: 47347
* ramips: add support for the Asus RP-N53 in the "02_network" boot scriptJohn Crispin2015-11-021-1/+2
| | | | | | | | This patch adds a case for the Asus RP-N53 in the "02_network" boot script. Without this, the lan interface does not get configured on startup, effectively bricking the device. Signed-off-by: Alberto Mattea <alberto@mattea.info> SVN-Revision: 47345
* ramips: add LinkIt Smart7688 supportJohn Crispin2015-10-193-0/+18
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 47203
* ramips: Add base-files for HiWiFi HC5x61 modelsJohn Crispin2015-10-055-10/+45
| | | | | | | | | | | | | | | HiWiFi HC5661/5761/5861 models are manufactured by http://www.hiwifi.com. These models have similar hardware specs(MT7620A + 128M DDR2 + 16M flash). This patch adds support for them. The original author is Justin Liu (rssnsj@gmail.com). I ported the patch to trunk and submitted it here with his approval. v3 fix 1: Fixed model order 2: Remove manufacturer name from model name 3: Use a hacky but prettier way to get mac address. Signed-off-by: Xiaoning Kang <kangxn@163.com> SVN-Revision: 47111
* ramips: add proper mt7688 detectionJohn Crispin2015-09-161-2/+2
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46957
* ramips: Added WIZnet WizFi630A Platform based on Ralink RT5350John Crispin2015-09-144-0/+17
| | | | | | | | This patch is to add the WIZnet WizFi630A board as a new platform. The board is in mini pci express form factor. Signed-off-by: Tobias Welz <tw@wiznet.eu> SVN-Revision: 46921
* ramips: add support for Planex DB-WRT01John Crispin2015-09-145-0/+9
| | | | | | | | | | This patch add support for Planex DB-WRT01. DANBOARD route on the MT7620A SoC with two Ethernet port and a 802.11n 2.4 GHz radio. DANBOARD is Cartoon character. Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com> SVN-Revision: 46918
* ramips: base-files: optimize etc/diag.sh and etc/board.d/01_leds scriptsJohn Crispin2015-08-172-424/+235
| | | | | | | | | | | | | | | | | | | | | | | | Instead of using board name provided explicitly as text in LED name, ex.: [...] mlwg2) status_led="mlwg2:blue:system" [...] use $board variable, which allows to combine together multiple boards with same color and LED names, ex: [...] mlw221|\ mlwg2) status_led="$board:blue:system" [...] The above approach allows to shrink size of code in base-files/etc/board.d/01_leds and base-files/etc/diag.sh scripts dramatically. One thing to keep in mind here is that we assume to use proper and consistent LED naming scheme ("device:color:led-name"). Signed-off-by: Piotr Dymacz <pepe2k@gmail.com> SVN-Revision: 46665
* ramips: use consistent naming scheme for LEDsJohn Crispin2015-08-172-345/+427
| | | | | | | | | | | | | The upstream LED naming convention is "device:color:led-name", but it seems that many of supported boards in OpenWrt don't follow this approach. The following patch fixes this inconsistency in dts{,i} files and updates base-files scripts for ramips target: * fixes wrong indentation * keeps case statements structure in same convention as in other scripts (no empty line after ";;", no indentation for case...esac body) * fixes wrong LED names for some of boards (makes them the same as in dts{,i} files) * combines boards with same configuration (ex. set_wifi_led "rt2800pci-phy0::radio" in 01_leds) Signed-off-by: Piotr Dymacz <pepe2k@gmail.com> SVN-Revision: 46664
* ramips: reorder the sysupgrade scriptJohn Crispin2015-08-171-13/+13
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 46660
* ramips: remove unnecessary LED declaration for WT1520 in diag.shJohn Crispin2015-08-171-3/+0
| | | | | | | | This device doesn't have defined LEDs in its dts file. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com> SVN-Revision: 46635
* ramips: fix indentation, case statements structure and optimize ↵John Crispin2015-08-171-220/+170
| | | | | | | | | | | | | | | | | | | base-files/etc/board.d/02_network The following patch: * fixes wrong indentation * combines together boards with same configuration * removes unnecessary spaces * removes empty lines after ";;" and uses only "|\" (for consistency) * orders boards alphabetically in base-files/etc/board.d/02_network script. One bug was left untouched: freestation5 board is listed twice in case statement, in ramips_setup_macs(). Signed-off-by: Piotr Dymacz <pepe2k@gmail.com> SVN-Revision: 46634
* ramips: be consistent with case statement in base-files/lib/upgrade/platform.shJohn Crispin2015-08-171-117/+117
| | | | | | | | Always use "|\" (without spaces) and keep boards in alphabetical order. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com> SVN-Revision: 46633
* ramips: remove leading spaces, sort boards and optimize base-files/lib/ramips.shJohn Crispin2015-08-171-217/+217
| | | | | | | | | | | | | | | | | | This patch: * fixes various mistakes (leading spaces, wrong or missing model names) * shortens model strings (we don't need to use whole model string from dts file, make it for consistency and as optimization) * sorts boards alphabetically in base-files/lib/ramips.sh script. Case statement was tested after above changes with simple script, which: * takes model string from dts{,i} file (model = "...") * provides this value as case input ($machine) * returns output ($name) Signed-off-by: Piotr Dymacz <pepe2k@gmail.com> SVN-Revision: 46632
* ramips: remove old code for Edimax BR-6524NJohn Crispin2015-08-173-7/+0
| | | | | | | | | It seems that support for Edimax BR-6524N was dropped long time ago (dts file for this device is missing). This patch removes remaining code. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com> SVN-Revision: 46630
* ramips: fix 7Links PX-4885 dts{, i}, board, image and profile namesJohn Crispin2015-08-174-7/+7
| | | | | | | | The following patch changes 7Links PX-4885 dts{,i} filenames, board, image and profile names from "PX4885" to "PX-4885" (for consistency). Signed-off-by: Piotr Dymacz <pepe2k@gmail.com> SVN-Revision: 46629
* ramips: fix Buffalo WMR-300 dts, board, image and profile namesJohn Crispin2015-08-174-5/+5
| | | | | | | | The following patch changes Buffalo WMR-300 dts filename, board, image and profile names from "WMR300" to "WMR-300" (for consistency). Signed-off-by: Piotr Dymacz <pepe2k@gmail.com> SVN-Revision: 46628
* ramips: fix Omnima models, images and profiles namesJohn Crispin2015-08-175-20/+22
| | | | | | | | | | | | | | | | | | | | Official names for supported Omnima products are (as on website): * Omnima HPM * Omnima MiniEMBWiFi * Omnima MiniEMBPlug This patch changes: * board names * dts filenames * profile names * image filenames * LED names for Omnima devices, for consistency. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com> SVN-Revision: 46627
* ramips: fix Edimax BR-6425 board nameJohn Crispin2015-08-173-3/+3
| | | | | | Signed-off-by: Piotr Dymacz <pepe2k@gmail.com> SVN-Revision: 46626
* ramips: fix Olimex models, images and profiles namesJohn Crispin2015-08-172-6/+6
| | | | | | | | | | | | | | Official names for RT5350F based OLinuXino products are "RT5350F-OLinuXino{,-EVB}" as on official manufacturer website. The following patch: * changes board names from "olinuxino-rt5350f{,-evb}" to "rt5350f-olinuxino{,-evb}" * changes filenames of dts and profile files * changes image filenames for Olimex RT5350F-OLinuXino{,-EVB} devices. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com> SVN-Revision: 46623
* ramips: fix Sitecom WL-341v3 board and image namesJohn Crispin2015-08-172-2/+2
| | | | | | | | | | | | | The following patch changes: * board name from "wl341v3" to "wl-341v3" * dts filename * LED names in dts file for Sitecom WL-341v3 device. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com> SVN-Revision: 46622