aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/lib
Commit message (Collapse)AuthorAgeFilesLines
* target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGCJohn Crispin2014-06-021-1/+1
| | | | | | | | | | | | | | | | | | | ARGC is a 'C-ism', but not known/valid in shell-syntax - insert the correct var $# (=number of args) here. under normal conditions this had no impact, but we should at least correct it. the error was observable like this: root@box:~ [ -e "/etc/functions.sh" ] && . /etc/functions.sh root@box:~ [ -e "/lib/functions.sh" ] && . /lib/functions.sh root@box:~ . /lib/upgrade/platform.sh root@box:~ . /lib/upgrade/common.sh root@box:~ platform_check_image /tmp/myfirmware.bin ash: bad number root@box:~ echo $? 0 Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40915 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: Add support for samsung cy-swr1100 wireless routerJohn Crispin2014-06-023-0/+5
| | | | | | | | | | | | It is base on rt3662 soc with dual band 802.11n wireless router. Use rtl8367R switch chip. This patch adds a profile for this board. It use seama image header. so i also enable it on kernel config. Signed-off-by: michael lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40908 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Support for Teltonika RUT5XXJohn Crispin2014-06-022-0/+4
| | | | | | | | | | | | Hi Hartmut, Thanks for your feedback, I have reformated the patch accordingly. Added support for Teltonika RUT5XX hardware. Signed-off-by: Steffen Weinreich <steve@weinreich.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40907 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add support for the 7Links PX-4885 wireless router.John Crispin2014-04-223-0/+5
| | | | | | | | | | | | | The 7Links PX-4885 is a small battery-powered wireless router. It is based on a RT5350F WiSoC and features one ethernet port and one USB port. It is a Hame MPR-A1 clone, except it has different GPIOs, a different battery and more RAM (32 MB). This patch adds a profile for this board, the corresponding device tree file and the adequate base-files changes (incl. sysupgrade). Signed-off-by: Hugo Grostabussiat <bonstra@bonstra.fr.eu.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40554 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add Airlink101 AR725W userland supportJohn Crispin2014-04-222-0/+4
| | | | | | Signed-off-by: Claudio Leite <leitec@staticky.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40550 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: add support for wrtnodeJohn Crispin2014-03-072-0/+5
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39786 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: add support for na930John Crispin2014-02-181-0/+3
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39611 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add userspace support for the Edimax BR-6475nDJohn Crispin2014-01-153-0/+14
| | | | | | | | | The rt2x00 wifi driver may still need updating to function with this device. Signed-off-by: Christopher Lais <chris+openwrt@zenthought.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39298 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: add HLK-RM04 supportJohn Crispin2014-01-123-0/+5
| | | | | | | | https://github.com/JiapengLi/OpenWrt-HiLink-HLK-RM04 Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39237 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add support for RT-N14U (mt7620n based) boardJohn Crispin2013-12-252-0/+4
| | | | | | | | | | | | | | | | | added dts file and userspace scripts modified to support Asus RT-N14U board current support status: usb works ethernet works buttons reset, wps leds asus:blue:[usb|lan|wan|air|power] i2c not tested uart not tested wifi not yet Signed-off-by: Pavel Löbl <lobl.pavel@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39163 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: add support for ralink mt7620 nand eval boardJohn Crispin2013-11-181-0/+3
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38848 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: add mt7620n supportJohn Crispin2013-11-161-0/+3
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38823 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: add support for 2 new mt7620 boards made by buffaloJohn Crispin2013-10-281-0/+6
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38550 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: fix asiarf image generationJohn Crispin2013-10-071-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38324 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: DIR610A1 Fix remaining issuesJohn Crispin2013-10-071-0/+1
| | | | | | | | | | | | This patch fixes: - Ethernet and Wireless LEDs - Wireless MAC Address - Remove whitespaces from dts file Signed-off-by: Flavio Silveira <fggs@terra.com.br> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38321 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: fix DIR-320-B1 board detectionJohn Crispin2013-09-301-1/+1
| | | | | | | | https://dev.openwrt.org/ticket/14226 Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38264 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: add support for dalink dcs930l ipcamJohn Crispin2013-09-192-0/+4
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38053 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ralink: DIR-300 B7 and DIR-320/NRU B1 on Ralink RT5350John Crispin2013-09-183-1/+11
| | | | | | | | https://dev.openwrt.org/ticket/14129 Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38040 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: DIR-610-A1 SupportJohn Crispin2013-08-142-1/+5
| | | | | | | | http://patchwork.openwrt.org/patch/3933/ Signed-off-by: Flavio Silveira <fggs@terra.com.br> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37785 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add support for dir810l and asus rp-n53John Crispin2013-08-142-0/+8
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37780 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add Poray IP2202 supportJohn Crispin2013-08-013-0/+5
| | | | | | Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37640 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add Poray X8 supportJohn Crispin2013-08-013-2/+7
| | | | | | Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37639 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add Poray X5/X6 SupportJohn Crispin2013-08-013-2/+7
| | | | | | Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37638 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add Poray M4 4M/8M supportJohn Crispin2013-08-013-1/+6
| | | | | | Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37637 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add Poray M3 supportJohn Crispin2013-08-013-0/+9
| | | | | | Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37636 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add MPR-A1 supportJohn Crispin2013-07-273-0/+5
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37568 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Basic support for the AsiaRF RT5350 based AWM002 module and ↵John Crispin2013-07-243-0/+5
| | | | | | | | | | | evaluation board. Basic support for the AsiaRF RT5350 based AWM002 module and evaluation board. http://www.asiarf.com/Smallest-Tiny-Ralink-802-11n-Wireless-AP-Router-Module-Board-AWM002-product-view-375.html Signed-off-by Jon Smirl <jonsmirl@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37521 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add support for Huawei HG255D in trunkJohn Crispin2013-07-222-0/+4
| | | | | | | | | | HG255D is a kind of popular low-end home gateway in China, this patch bring the the trunk support for it. It is adapted from a local Chinese community (www.right.com.cn), so credit should given to them. This patch is tested to work except trivial LED issues. Signed-off-by: Leon Xu <ylxu72@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37505 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add sysupgarde support for wl-330n3gJohn Crispin2013-07-171-0/+1
| | | | | | | | https://dev.openwrt.org/ticket/13891 Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37376 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: move ESW reset to preinit on RT305x/RT5350John Crispin2013-06-241-11/+4
| | | | | | | | | | | RT305x/RT5350 SoCs require the switch to be reset before touching the ethernet interface, otherwise the driver will panic. As we already init the ethernet in preinit we therefor need to reset the switch before that. Signed-off-by: Felix Kaechele <felix@fetzig.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37027 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: input/button drivers get loaded before preinit by procdJohn Crispin2013-06-211-12/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37000 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add HAME MPR-A2 supportJohn Crispin2013-06-104-0/+17
| | | | | | | | | | This patch adds support for HAME MPR-A2 router using a DTS file. The platform is Ralink RT5350. http://wiki.openwrt.org/toh/hame/mpr-a2 Signed-off-by: Dmitry Shmygov <shmygov@rambler.ru> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36898 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add support for belkin F7C027 wemo/homeautomatisation plugJohn Crispin2013-06-102-0/+4
| | | | | | Signed-off-by: Alexander Couzens <lynxis@fe80.eu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36897 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: remove now unneeded user-space board detectionJohn Crispin2013-04-251-20/+0
| | | | | | | | | | | | Now that ALL5002 and ALL5003 each got their own DTS and board names, remove the now no longer needed user-space part which previously differentiated between ALL5002 and ALL5003. Signed-off-by: Daniel Golle <dgolle@allnet.de> Patchwork: http://patchwork.openwrt.org/patch/3558/ Acked-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36436 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: introduce DTS for ALL5003John Crispin2013-04-253-3/+8
| | | | | | | | | | | | | Prior to the switch to 3.8, ALL5002 and ALL5003 boards shared mach-all5002.c. With the change to DTS, this is no longer accurate, as ALL5002 is based on Rt3352 SoC while ALL5003 is based on Rt5350 SoC, therefore the corresponding rt5350.dtsi need to be included for ALL5003. Signed-off-by: Daniel Golle <dgolle@allnet.de> Patchwork: http://patchwork.openwrt.org/patch/3557/ Acked-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36435 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: set preinit interface to eth0 by default.John Crispin2013-04-251-0/+12
| | | | | | | | | | | | This makes any ramips device accessible via ethernet in failsafe mode. Based on: https://dev.openwrt.org/changeset/36322 Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Patchwork: http://patchwork.openwrt.org/patch/3567/ Acked-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36434 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add Alpha ASL-26555 support.John Crispin2013-04-253-0/+5
| | | | | | | | | | | | | | | | This board uses a TrendChip SOC with its own RAM/Flash for ADSL support. We know both SOCs are connected through ethernet and use some kind of protocol for UART communication, but due to the lack of GPL sources we couldn't get it to work. For this reason the network is configured only for LAN. There are two versions (Chile 8MB and Spain 16MB). Wiki: http://wiki.openwrt.org/toh/alpha/asl26555 Signed-off-by: Esteban Benito <estebanjbs@gmail.com> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Patchwork: http://patchwork.openwrt.org/patch/3571/ Acked-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36433 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add support of D-link DIR-620D1John Crispin2013-04-253-0/+5
| | | | | | | Signed-off-by: Serge Vasilugin <vasilugin@yandex.ru> Acked-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36432 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [ramips] Add Netgear WNCE2001 (OF version)John Crispin2013-04-094-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Netgear WNCE2001. This is a small RT3052 device with 4MB spi flash and 32MB ram. 2 built-in antennas, 1x fastE, no USB, reset & wps switch. On my model the AP/RT switch is unpopulated, but I verified the gpio mapping for it. The stock firmware is running an unprotected tftpd which allows you to read any file from the filesystem. Serial port is present on testpads (See image on the wiki page). There are more testpads below the shield near the SoC, which may have JTAG. Slight annoyance: The bootloader is checksumming kernel&rootfs, but can be tricked by zeroing checksum and length fields in the checksum partition, see target/linux/ramips/base-files/lib/preinit/04_disable_wnce2001_flash_checksumming The manufacturer image is very similar to the DAP one, so I slightly modified mkdapimg to support generating it. The resulting openwrt-ramips-rt305x-wnce2001-squashfs-factory-(worldwide|northamerica).bin can be used to flash from stock to OpenWRT using the stock firmware upgrade function, without using the serial port. http://www.netgear.com/landing/wnce2001.aspx http://wiki.openwrt.org/toh/netgear/wnce2001 Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36289 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [ramips] add profile for tenda w150m boardJohn Crispin2013-04-033-0/+5
| | | | | | | | http://patchwork.openwrt.org/patch/3371/ Signed-off-by: Chi Zhang <zhangchi866@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36176 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [ramips] add Huawei D105John Crispin2013-04-033-0/+5
| | | | | | | | http://patchwork.openwrt.org/patch/3510/ Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36173 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [ramips] add profile for the Edimax 3g-6200NL boardJohn Crispin2013-04-033-0/+5
| | | | | | | | http://patchwork.openwrt.org/patch/3214/ Signed-off-by: Cédric Le Moing <cedric.le-moing@laposte.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36172 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add user-space support for the Upvel UR-326N4G boardGabor Juhos2013-03-112-0/+4
| | | | | | | | | [juhosg: fix mac address setup] Patch from: Дмитрий Лебедев <lebedev@trendnet.ru> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35971 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add user-space detection for ALL5002/ALL5003Gabor Juhos2013-03-031-0/+19
| | | | | | | Signed-off-by: Daniel Golle <dgolle@allnet.de> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35852 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: indicate support for ALL5003Gabor Juhos2013-03-031-1/+1
| | | | | | | | | | | add ALL5003 to board description in mach-all5002.c adapt detection in user-space accordingly (no functional changes) Signed-off-by: Daniel Golle <dgolle@allnet.de> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35851 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: enhance user-space board detectionGabor Juhos2013-03-032-3/+24
| | | | | | | | | | Similar to ar71xx, detect only once and cache the strings in /tmp/sysinfo/model and /tmp/sysinfo/boardname. Signed-off-by: Daniel Golle <dgolle@allnet.de> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35850 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: fix whitespace in /lib/ramips.shGabor Juhos2013-03-031-3/+3
| | | | | | | Signed-off-by: Daniel Golle <dgolle@allnet.de> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35849 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: use the new macaddr_* helpers instead of maccalcGabor Juhos2013-02-161-2/+2
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35615 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: use the mtd_get_mac_* helpersGabor Juhos2013-02-162-45/+9
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35613 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add user-space support for the Omnima EMB HPM boardGabor Juhos2013-02-023-0/+5
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35467 3c298f89-4303-0410-b956-a3cf2f4a3e73