aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
Commit message (Collapse)AuthorAgeFilesLines
* AA: ramips: select kmod-rt2800-soc by default (#15429)Felix Fietkau2014-04-011-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@40353 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: update wlan firmware hotplug script for new eeprom sizeFelix Fietkau2013-07-151-7/+7
| | | | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> Backport of r37112 git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@37333 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: ramips: add support for DIR-620D1Jo-Philipp Wich2013-05-0610-2/+85
| | | | | | | | Both DIR-615H1 and DIR-620D1 are ralink rt3352 based router. But DIR-620D1 have 8MB flash and USB port. Signed-off-by: Serge Vasilugin <vasilugin@yandex.ru> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@36557 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [ramips] backport esw led switch fixJohn Crispin2013-02-251-0/+4
| | | | | | | | fixes #12989 Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@35782 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: ramips: fix ASUS WL-330N3G MAC addressGabor Juhos2012-12-241-3/+3
| | | | | | | | | | | | | | | | | Backport of r34877. The ASUS WL-330N and WL-330N3G has the MAC address stored at offset 4, not 40. This is verified by reading original ASUS firmware GPL_WL-330N3G_source.1028/user/rc/common_ex.c and GPL_WL-330N_source.1021/user/rc/common_ex.c. Tested on WL-330N3G, it now gets the same MAC as is printed on the label on the router. Signed-off-by: Jan Kardell <jan.kardell@arkub.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34879 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: ramips: fix wifi EEPROM extraction on DIR-615-Dx modelsGabor Juhos2012-12-241-2/+2
| | | | | | | | | | Backport of r34876. Patch from #12636. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34878 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: ramips: fix serial console for Belkin F5D8235 v1/v2Gabor Juhos2012-12-021-1/+1
| | | | | | | | | | Backport of r34445. Based on a patch from #12533. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34446 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: ramips: ramips_eth: use Kconfig definition to enable debugGabor Juhos2012-11-251-1/+1
| | | | | | | | | | | | Backport of r34332. The Kconfig identifier to enable debugging in the driver was different from the actually used one. Fix that. Signed-off-by: Paul Fertser <fercerpav@gmail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34376 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: ramips: add DIR-615 D userspace supportGabor Juhos2012-11-255-1/+7
| | | | | | | | | | | | | | | | | Backport of r34331. Commit 7c8edac25f23c4fc14239fdc293caa1317649944 introduced new machine and Makefile changes to build images for this target. However, without the userspace bits a ramips machine can't use wifi as the necessary "eeprom" data is to be extracted by a hotplug script; also, sysupgrade support and default led configuration are missing. An IRC user reported these changes allowed him to use wifi on his hardware. Signed-off-by: Paul Fertser <fercerpav@gmail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34375 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: ramips: set clk_is_20mhz for rt2x00 on RT3352/RT5350Gabor Juhos2012-11-252-0/+10
| | | | | | | | | Backport of r34270. Signed-off-by: Daniel Golle <dgolle@allnet.de> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34363 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [ramips] backport ethernet fixJohn Crispin2012-11-131-17/+29
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34183 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: ramips: enable USB power on the DIR-645Gabor Juhos2012-11-051-0/+5
| | | | | | | | | | Backport of r34082. Closes #12422. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34085 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: ramips: add restorefactory to default package set for ALL0239-3G and ↵Gabor Juhos2012-11-051-2/+2
| | | | | | | | | | ALL0256N Backport of r34078. Signed-off-by: Daniel Golle <dgolle@allnet.de> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34080 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: ramips: use correct key code for the RFKILL switch on the TEW-691GRGabor Juhos2012-10-261-1/+1
| | | | | | | | Backport of r33943. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33947 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: ramips: disable 5GHz on the built in wireless mac of the TEW-69{1,2}GRGabor Juhos2012-10-192-0/+2
| | | | | | | | Backport of r33864. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33882 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: ramips: add profile and build image for the TEW-691GR boardGabor Juhos2012-10-192-0/+15
| | | | | | | | Backport of r33852. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33881 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: ramips: add user-space support for TEW-691GRGabor Juhos2012-10-195-0/+12
| | | | | | | | Backport of r33851. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33880 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: ramips: rt3883: add initial support for the TRENDnet TEW-691GR boardGabor Juhos2012-10-195-1/+111
| | | | | | | | | | Backport ofr r33850. No wireless support. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33879 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: ramips: add profile and build image for the TEW-692GR boardGabor Juhos2012-10-192-0/+34
| | | | | | | | Backport of r33849. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33878 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: ramips: add user-space support for the TEW-692GR boardGabor Juhos2012-10-195-0/+20
| | | | | | | | Backport of r33847. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33876 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: ramips: rt3883: add initial support for TRENDnet TEW-692GR boardGabor Juhos2012-10-195-0/+159
| | | | | | | | | | Backport of r33846. No wireless support. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33875 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: ramips: add profile and build image for the DIR-645 boardGabor Juhos2012-10-192-0/+61
| | | | | | | | Backport of r33845. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33874 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: ramips: add user space support for the DIR-645Gabor Juhos2012-10-196-0/+50
| | | | | | | | Backport of r33844. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33873 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: ramips: rt3883: add inital support for the DIR-645 boardGabor Juhos2012-10-195-1/+162
| | | | | | | | Backport of r33843. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33872 3c298f89-4303-0410-b956-a3cf2f4a3e73
* AA: ramips: use get_magic_long in sysupgrade image checkGabor Juhos2012-10-191-2/+2
| | | | | | | | Backport of r33842. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33871 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add image for ALL0256N-8MGabor Juhos2012-10-041-0/+1
| | | | | | | | | | | | The new version of the ALL0256N now got 8MB SPI NOR flash instead of 4MB. In order to expose the whole amount of flash, add another image which contains the corresponding GENERIC_8M mtdparts. [juhosg: change suffix from '8m' to '8M'] Patch by: Daniel Golle <dgolle@allnet.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33614 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add memory detection code for RT5350Gabor Juhos2012-09-272-1/+44
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33571 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: allow to use custom code for memory size detectionGabor Juhos2012-09-272-6/+13
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33570 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [ramips] make uci-defaults switch detection work on rt5350John Crispin2012-09-251-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33549 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [ramips] add ethernet support for rt5350John Crispin2012-09-252-18/+106
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33548 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [ramips] make ramips ethernet use a register mapping tableJohn Crispin2012-09-251-29/+79
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33547 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [ramips] unbreak port mapping detectionJohn Crispin2012-09-251-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33536 3c298f89-4303-0410-b956-a3cf2f4a3e73
* D-Link DAP-1350; Avoid bricking esw configJohn Crispin2012-09-151-1/+1
| | | | | | | | | | | | | | | | | | | | | This is a patch to connect eth0.1 (lan) to the only ethernet connector available. D-Link DAP-1350 goes bricked with AA 12.09-beta. This is because the current esw configuration for the board connects eth0.2 (wan) to the *ONE and ONLY* ethernet connector available, preventing initial access to the board through 192.168.1.1 on eth0.1 after flashing, effectively bricking the board. There are things that should be done to make this board really useful, but for AA 12.09, this one liner is indispensable. Signed of by Yoichi Shinoda <shinoda@jaist.ac.jp> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33411 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips/rt3883: fix a typo in the ASUS profileJohn Crispin2012-09-151-1/+1
| | | | | | Signed-off-by: Daniel Golle <dgolle@allnet.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33410 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips/rt305x: add initial support for Rt5350 SoCGabor Juhos2012-09-125-2/+41
| | | | | | | | | | | | | Somehow detecting the RAM size in common/setup.c doesn't work here, it always detects 64M and then crashes on devices with less RAM. Probably using MEMC_REG_SDRAM_CFG1 to know the RAM size is how it could be, for now I use the mem=32M kernel parameter to get stuff working. Signed-off-by: Daniel Golle <dgolle@allnet.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33381 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add missing andmask to ramips_esw register read for recv_good value.Gabor Juhos2012-09-051-1/+3
| | | | | | | | | | | | | Add missing andmask to ramips_esw register read for recv_good value. Without the mask, recv_bad leaks into the recv_good packet count. Didn't notice the bug before since you don't usually get bad packets, so I only saw it when I was playing with overlength packets earlier... Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33322 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Use doubletagging to disable ramips_esw vlan by default, it seems ↵Gabor Juhos2012-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | more reliable. Use doubletagging to disable ramips_esw vlan by default, it seems more reliable. Daniel Golle found an issue where sometimes (possibly only for RT3352) the default vlan disable method (clearing en_vlan, untag, doubletag and putting all ports into vlan 0) doesn't work and the packets get sent out vlan-tagged with vlan 0. Instead switch to using the doubletagging method (allow doubletagged packets, put all ports into vlan 0 with untag enabled) by default. Unless someone figures out a way to really globally disable vlan for this switch, this seems like the best (most reliable) option. I did some tests regarding maximum packet size and did not see any difference between the two methods, both allow for slightly bigger packets than the ramips_main.c ethernet driver (ping stops going through above "ping -s 1472" (1514 bytes), on the switch packets are recv_good until "ping -s 1490", or about 1532 bytes). Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33321 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add rssileds to package set in profile for devices which got them.Gabor Juhos2012-09-051-1/+1
| | | | | | Signed-off-by: Daniel Golle <dgolle@allnet.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33316 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add kmod-usb-ohci to defaults packages in profile of ALL5002Gabor Juhos2012-08-291-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33307 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: make built-in switch transparent for ALL0256N and ALL5002Gabor Juhos2012-08-293-3/+6
| | | | | | | | This allows them to transparently communicate with an external VLAN switch. Signed-off-by: Daniel Golle <dgolle@allnet.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33305 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Power down phy on disabled switch portsGabor Juhos2012-08-291-5/+67
| | | | | | | | | | | | | | Power down phy on disabled switch ports. Haven't measured this myself yet, but according to this http://www.8devices.com/community/viewtopic.php?f=6&t=156 it can save about 300mW of power. [juhosg: fix checkpatch warning] Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33304 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add support for 8devices Carambola dev board.Gabor Juhos2012-08-2911-0/+62
| | | | | | | | | | | | Add support for 8devices Carambola dev board. The Carambola is a small RT3050-based development board with two ethernet ports, on-board chip antenna, usb and plenty of accessible gpio ports, sold by 8devices. Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33303 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Rename POC registersGabor Juhos2012-08-291-31/+31
| | | | | | | | | | | | | | | | | | Rename POC registers. The current code uses POC1-POC3. The datasheet uses: POC1: Port Control 0 POC1: Port Control 1 POC2: Port Control 2 So the first POC1 is a typo that should have been POC0, rename the registers to POC0-POC2 accordingly. Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33302 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Minor ramips_esw.c cleanupGabor Juhos2012-08-294-62/+18
| | | | | | | | | | | | Stop handling VLAN setup in the kernel. Removes the obsolete RT305X_ESW_VLAN_CONFIG_BYPASS option I added for WL-351 and add some extra comments. Also removes the en_vlan per-port flag that isn't very useful really, it now is only controlled by the global enable_vlan flag. Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33301 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add switch setup to uci network defaultsGabor Juhos2012-08-291-1/+26
| | | | | | | | | | | | | | Add switch setup to uci network defaults. The 'lan' attribute is used to decide into which vlan to put the port. Currently 'disable' is never set, but the intention is to use this for devices like the 8devices Carambola, which only has two ports hooked up to the SoC. Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33300 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: Add swconfig support to ramips_esw.cGabor Juhos2012-08-292-35/+755
| | | | | | | | | | | | | | | | | | | Add swconfig support to ramips_esw.c This patch adds swconfig support for ramips_esw: Tested on both D-LINK DIR-300 B1 and Sitecom WL-351 (external rtl8366rb on internal port 5). I've made sure that in the enable_vlan=0 case it behaves like a dumb switch, so external switches should work fine with vlans and verified this on the WL-351. The current state shown by swconfig is always read directly from HW registers, new settings only show after 'swconfig dev rt305x set apply'. Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33299 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: ramips_esw.c indentation cleanupGabor Juhos2012-08-291-11/+11
| | | | | | | | | | Minor indentation cleanup. Prepare for the main swconfig patch by cleaning up indentation a bit. Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33298 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: fix board parameter for the NBG-419N (#12061)Gabor Juhos2012-08-221-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33229 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add profile for Allnet devicesGabor Juhos2012-08-221-0/+41
| | | | | | Signed-off-by: Daniel Golle <dgolle@allnet.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33225 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: add RSSI leds for uci-defaults for ALL0256NGabor Juhos2012-08-221-0/+4
| | | | | | Signed-off-by: Daniel Golle <dgolle@allnet.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33220 3c298f89-4303-0410-b956-a3cf2f4a3e73