Commit Graph

773 Commits (6d8163505efd3e72ab987957afa018957f0e3b4c)

Author SHA1 Message Date
Felix Fietkau 41a039f464 mips: use -mno-branch-likely for kernel and userspace, saves ~11k kernel size after lzma and ~12k squashfs size in the default configuration
SVN-Revision: 34909
12 years ago
Gabor Juhos 69da894432 ramips: fix ASUS WL-330N3G MAC address
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>

SVN-Revision: 34877
12 years ago
Gabor Juhos c5a36f13f0 ramips: fix wifi EEPROM extraction on DIR-615-Dx models
Patch from #12636.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34876
12 years ago
Gabor Juhos 8105c6badd ramips: unify eeprom file name for the built-in wireless MAC
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34860
12 years ago
Gabor Juhos c81b4475c9 ramips: rt3883: fix build error
The cpuport_cfg field has been renamed to port0_cfg.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34859
12 years ago
Gabor Juhos b44cdcde8e ramips: add support for 3.7
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34845
12 years ago
Gabor Juhos b81667cb23 ramips: convert to use {e,o}hci-platform driver
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34843
12 years ago
Gabor Juhos e1b5eeeaa4 ramips: Add USB support for DAP-1350 platform.
It seems to work as intended, but only lightly tested.

Patch-by: Bryan Steele <brynet@gmail.com>
SIgned-off-by: Gabor Juhos <juhsog@openwrt.org>

SVN-Revision: 34811
12 years ago
Mirko Vogt e34a4e0c7b Do not use deprecated path to functions.sh (/etc/functions.sh -> /lib/functions.sh)
SVN-Revision: 34793
12 years ago
Gabor Juhos 44b9898251 kernel: update linux 3.6 to 3.6.11
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34748
12 years ago
Gabor Juhos fe8efb72ca ramips: nuke 3.3 support
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34744
12 years ago
Gabor Juhos 2b378d11c8 kernel: update linux 3.6 to 3.6.10
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34639
12 years ago
John Crispin c2ae0ec02a add support for Hauppauge Broadway
This patch introduces OpenWRT support for the base Hauppauge/PCTV Broadway
platform.  It doesn't deal with the TV tuner or transcoder at this point,
but the core functionality is working (Ethernet, wireless, USB, buttons,
LEDs, etc).

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>

SVN-Revision: 34595
12 years ago
Gabor Juhos 2581173660 kernel: update linux 3.6 to 3.6.9
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34578
12 years ago
Gabor Juhos e0e43655ce ramips: fix serial console for Belkin F5D8235 v1/v2
Based on a patch from #12533.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34445
12 years ago
Gabor Juhos 44131bd785 ramips: rt305x: add profile and build image for the Asus RT-N13U
Signed-off-by: Amit Mendapara <mendapara.amit@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34407
12 years ago
Gabor Juhos d3994b7408 ramips: rt305x: add user-space support for the Asus RT-N13U
Signed-off-by: Amit Mendapara <mendapara.amit@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34406
12 years ago
Gabor Juhos 0ec59e6235 ramips: rt305x: add kernel support for the Asus RT-N13U Wireless-N300 Router
The work has been backported from openwrt-dreambox with
some modifications & code cleanup.

* updated config-3.3
* updated config-3.6
* renamed rt-n13 to rt-n13u
* fixed mach-rt-n13u.c

[juhosg: move user-space support and image generation into separate
patches]

Signed-off-by: Amit Mendapara <mendapara.amit@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34405
12 years ago
Gabor Juhos c2f018fca2 remove common symbols from 3.6 configs
The removed symbols are present in the generic configuration.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34404
12 years ago
Gabor Juhos 1f516235ea remove common symbols from 3.3 configs
The removed symbols are present in the generic configuration.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34403
12 years ago
Gabor Juhos 3a4d0ebd5c kernel: update linux 3.6 to 3.6.8
Also refresh the affected patches.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34402
12 years ago
Gabor Juhos 57b7879a4e ramips: ramips_eth: use Kconfig definition to enable debug
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>

SVN-Revision: 34332
12 years ago
Gabor Juhos 21d5df8700 ramips: add DIR-615 D userspace support
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>

SVN-Revision: 34331
12 years ago
Gabor Juhos dd092fd10c ramips: set clk_is_20mhz for rt2x00 on RT3352/RT5350
Signed-off-by: Daniel Golle <dgolle@allnet.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34270
12 years ago
Gabor Juhos ff1e854511 kernel: update linux 3.6 to 3.6.7
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34227
12 years ago
John Crispin dd8c625424 previous commit pushed 1 file too many ;)
SVN-Revision: 34179
12 years ago
John Crispin ced0cf3a94 move ethernet hw init to init/uninit functions
This should fix the stalled irq problem seen by several people.
This is not the real fix, but rather moves the bug to the un/init patch of the driver.
The real bug still needs to be fixed, but this workaround should be suffcient to make
the ethernet stable.

SVN-Revision: 34177
12 years ago
John Crispin 6090ddc896 adds fon20n profile
SVN-Revision: 34112
12 years ago
John Crispin 3991526989 ramips: use kernel 3.6.6
## Booting image at 80800000 ...
   Image Name:   MIPS OpenWrt Linux-3.6.6
   Created:      2012-11-06  14:19:54 UTC

 System Control Status = 0x20440000
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    3560768 Bytes =  3.4 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 32

Starting kernel ...

[    0.000000] Linux version 3.6.6 (daniel@localhost.localdomain) (gcc version 4.6.4 20121001 (prerelease) (Linaro GCC 4.6-2012.10) ) #2 Tue Nov 6 16:19:48 IST 2012
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0001964c (MIPS 24KEc)
[    0.000000] Ralink RT3052 id:1 rev:2 running at 384.00 MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  console=ttyS1,57600n8 board=ALL0239-3G mtdparts=physmap-flash.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,896k(kernel),6976k(rootfs),7872k@0x50000(firmware) rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] __ex_table already sorted, skipping sort
[    0.000000] Writing ErrCtl register=0000c388
[    0.000000] Readback ErrCtl register=0000c388
[    0.000000] Memory: 27048k/32768k available (2015k kernel code, 5720k reserved, 498k data, 2676k init, 0k highmem)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:48
[    0.000000] console [ttyS1] enabled, bootconsole disabled
[    0.000000] console [ttyS1] enabled, bootconsole disabled
[    0.010000] Calibrating delay loop... 255.59 BogoMIPS (lpj=1277952)
[    0.090000] pid_max: default: 32768 minimum: 301
[    0.100000] Mount-cache hash table entries: 512
[    0.110000] NET: Registered protocol family 16
[    0.120000] MIPS: machine is Allnet ALL0239-3G
[    0.140000] bio: create slab <bio-0> at 0
[    0.150000] Switching to clocksource MIPS
[    0.160000] NET: Registered protocol family 2
[    0.170000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.180000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.200000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.210000] TCP: reno registered
[    0.220000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.230000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.240000] NET: Registered protocol family 1
[    5.460000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    5.470000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    5.490000] msgmni has been set to 52
[    5.500000] io scheduler noop registered
[    5.510000] io scheduler deadline registered (default)
[    5.520000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    5.530000] serial8250: ttyS0 at MMIO 0x10000500 (irq = 13) is a 16550A
[    5.550000] serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A
[    5.560000] physmap platform flash device: 00800000 at bf000000
[    5.580000] physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x001000
[    5.600000] Amd/Fujitsu Extended Query Table at 0x0040
[    5.610000]   Amd/Fujitsu Extended Query version 1.3.
[    5.620000] number of CFI chips: 1
[    5.620000] 6 cmdlinepart partitions found on MTD device physmap-flash.0
[    5.640000] Creating 6 MTD partitions on "physmap-flash.0":
[    5.650000] 0x000000000000-0x000000030000 : "u-boot"
[    5.660000] 0x000000030000-0x000000040000 : "u-boot-env"
[    5.680000] 0x000000040000-0x000000050000 : "factory"
[    5.690000] 0x000000050000-0x000000130000 : "kernel"
[    5.700000] 0x000000130000-0x000000800000 : "rootfs"
[    5.710000] mtd: partition "rootfs" set to be root filesystem
[    5.730000] split_squashfs: error occured while reading from "physmap-flash.0"
[    5.740000] 0x000000050000-0x000000800000 : "firmware"
[    5.760000] ramips-wdt ramips-wdt: timeout value must be 0 < timeout <= 33, using 33
[    5.780000] TCP: cubic registered
[    5.780000] NET: Registered protocol family 17
[    5.790000] 8021q: 802.1Q VLAN Support v1.8
[    5.820000] Freeing unused kernel memory: 2676k freed
[    6.490000] Button Hotplug driver version 0.4.1
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
- init -

Please press Enter to activate this console. [   10.150000] Compat-drivers backport release: compat-drivers-2012-09-04-2-gddac993
[   10.170000] Backport based on wireless-testing.git master-2012-09-07
[   10.180000] compat.git: wireless-testing.git
[   10.210000] cfg80211: Calling CRDA to update world regulatory domain
[   10.230000] cfg80211: World regulatory domain updated:
[   10.240000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   10.250000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   10.270000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   10.280000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   10.300000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   10.310000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   10.430000] NET: Registered protocol family 10
[   10.760000] PPP generic driver version 2.4.2
[   10.820000] l2tp_core: L2TP core driver, V2.0
[   10.840000] l2tp_netlink: L2TP netlink interface
[   10.870000] sit: IPv6 over IPv4 tunneling driver
[   10.920000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.060000] NET: Registered protocol family 24
[   11.090000] nf_conntrack version 0.5.0 (464 buckets, 1856 max)
[   11.230000] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[   11.410000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   14.510000] device eth0.1 entered promiscuous mode
[   14.520000] device eth0 entered promiscuous mode
[   14.530000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[   14.550000] br-lan: port 1(eth0.1) entered forwarding state
[   14.560000] br-lan: port 1(eth0.1) entered forwarding state
[   16.560000] br-lan: port 1(eth0.1) entered forwarding state
[   16.600000] ramips-wdt: timeout value 60 must be 0 < timeout <= 33, using 33

BusyBox v1.19.4 (2012-11-06 13:40:37 IST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 BARRIER BREAKER (Bleeding Edge, r34079)
 -----------------------------------------------------
  * 1/2 oz Galliano         Pour all ingredients into
  * 4 oz cold Coffee        an irish coffee mug filled
  * 1 1/2 oz Dark Rum       with crushed ice. Stir.
  * 2 tsp. Creme de Cacao
 -----------------------------------------------------
root@OpenWrt:/#

SVN-Revision: 34111
12 years ago
John Crispin 480892226d ramips: add HAVE_CLK to Kconfig on all ramips socs
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 34110
12 years ago
John Crispin feb31be6af ramips: add linux-3.6 configuration for ramips socs
Signed-off-by: Daniel Golle <dgolle@allnet.de>

 create mode 100644 target/linux/ramips/rt288x/config-3.6
 create mode 100644 target/linux/ramips/rt305x/config-3.6
 create mode 100644 target/linux/ramips/rt3883/config-3.6

SVN-Revision: 34109
12 years ago
John Crispin ca1fcaed5b ramips: port patches to linux-3.6
Signed-off-by: Daniel Golle <dgolle@allnet.de>

 create mode 100644 target/linux/ramips/patches-3.6/001-mips-add-cp0-compare-irq-function.patch
 create mode 100644 target/linux/ramips/patches-3.6/010-mtd_fix_cfi_cmdset_0002_erase_status_check.patch
 create mode 100644 target/linux/ramips/patches-3.6/011-mtd-cfi_cmdset_0002-force-word-write.patch
 create mode 100644 target/linux/ramips/patches-3.6/100-mips-ralink-core.patch
 create mode 100644 target/linux/ramips/patches-3.6/101-rt288x_serial_driver_hack.patch
 create mode 100644 target/linux/ramips/patches-3.6/102-rt288x-pci-driver-hook.patch
 create mode 100644 target/linux/ramips/patches-3.6/103-ethernet.patch
 create mode 100644 target/linux/ramips/patches-3.6/104-ramips-watchdog-driver.patch
 create mode 100644 target/linux/ramips/patches-3.6/105-ramips-spi-driver.patch
 create mode 100644 target/linux/ramips/patches-3.6/105-usb_dwc_otg.patch
 create mode 100644 target/linux/ramips/patches-3.6/106-rt3883-pci-support.patch
 create mode 100644 target/linux/ramips/patches-3.6/200-rt3883-ehci-glue.patch
 create mode 100644 target/linux/ramips/patches-3.6/201-rt3883-ohci-glue.patch

SVN-Revision: 34108
12 years ago
Gabor Juhos a0dd47bbed ramips: enable USB power on the DIR-645
Closes #12422.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34082
12 years ago
Gabor Juhos 829aaedcbf ramips: add restorefactory to default package set for ALL0239-3G and ALL0256N
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 34078
12 years ago
Gabor Juhos e91dc2e5b3 target: refresh all target configs with kconfig.pl
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33987
12 years ago
Gabor Juhos db5eea6acd ramips: use correct key code for the RFKILL switch on the TEW-691GR
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33943
12 years ago
Gabor Juhos b530d9d2b3 ramips: disable 5GHz on the built in wireless mac of the TEW-69{1,2}GR
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33864
12 years ago
Gabor Juhos 6ca2970e4b ramips: add profile and build image for the TEW-691GR board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33852
12 years ago
Gabor Juhos 21180e29f7 ramips: add user-space support for TEW-691GR
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33851
12 years ago
Gabor Juhos 25d53c4c28 ramips: rt3883: add initial support for the TRENDnet TEW-691GR board
No wireless support.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33850
12 years ago
Gabor Juhos 462a53c367 ramips: add profile and build image for the TEW-692GR board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33849
12 years ago
Gabor Juhos d3c368c324 ramips: add user-space support for the TEW-692GR board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33847
12 years ago
Gabor Juhos 7f8b7207c9 ramips: rt3883: add initial support for TRENDnet TEW-692GR board
No wireless support.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33846
12 years ago
Gabor Juhos bf9ae9432b ramips: add profile and build image for the DIR-645 board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33845
12 years ago
Gabor Juhos 06edafd079 ramips: add user space support for the DIR-645
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33844
12 years ago
Gabor Juhos d1a253a2fd ramips: rt3883: add inital support for the DIR-645 board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33843
12 years ago
Gabor Juhos e962c16a88 ramips: use get_magic_long in sysupgrade image check
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33842
12 years ago
Gabor Juhos d832cd11f8 ramips: add image for ALL0256N-8M
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>

SVN-Revision: 33614
12 years ago
Gabor Juhos e3bcbeb427 ramips: add memory detection code for RT5350
SVN-Revision: 33571
12 years ago
Gabor Juhos 80d2da9f0f ramips: allow to use custom code for memory size detection
SVN-Revision: 33570
12 years ago
John Crispin d8c04821c3 make uci-defaults switch detection work on rt5350
SVN-Revision: 33549
12 years ago
John Crispin 34d57ebd8b add ethernet support for rt5350
SVN-Revision: 33548
12 years ago
John Crispin af0cd76937 make ramips ethernet use a register mapping table
SVN-Revision: 33547
12 years ago
John Crispin 394a560a9a unbreak port mapping detection
SVN-Revision: 33536
12 years ago
John Crispin 223db72385 D-Link DAP-1350; Avoid bricking esw config
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>

SVN-Revision: 33411
12 years ago
John Crispin bf355f8ee9 ramips/rt3883: fix a typo in the ASUS profile
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33410
12 years ago
Gabor Juhos 0a42b02126 ramips/rt305x: add initial support for Rt5350 SoC
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>

SVN-Revision: 33381
12 years ago
Gabor Juhos d8b2fef763 ramips: Add missing andmask to ramips_esw register read for recv_good value.
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>

SVN-Revision: 33322
12 years ago
Gabor Juhos 04c6143ca9 ramips: Use doubletagging to disable ramips_esw vlan by default, it seems 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>

SVN-Revision: 33321
12 years ago
Gabor Juhos 6c7b776ae0 ramips: add rssileds to package set in profile for devices which got them.
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33316
12 years ago
Gabor Juhos b0da5b73b8 ramips: add kmod-usb-ohci to defaults packages in profile of ALL5002
SVN-Revision: 33307
12 years ago
Gabor Juhos 54d8a55eed ramips: make built-in switch transparent for ALL0256N and ALL5002
This allows them to transparently communicate with an external VLAN switch.

Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33305
12 years ago
Gabor Juhos bc4763a399 ramips: Power down phy on disabled switch ports
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>

SVN-Revision: 33304
12 years ago
Gabor Juhos 1617f226a9 ramips: Add support for 8devices Carambola dev board.
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>

SVN-Revision: 33303
12 years ago
Gabor Juhos bb0785880a ramips: Rename POC registers
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>

SVN-Revision: 33302
12 years ago
Gabor Juhos f1b9d77912 ramips: Minor ramips_esw.c cleanup
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>

SVN-Revision: 33301
12 years ago
Gabor Juhos 1f3400d3b4 ramips: Add switch setup to uci network defaults
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>

SVN-Revision: 33300
12 years ago
Gabor Juhos 3b17f1deb8 ramips: Add swconfig support to ramips_esw.c
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>

SVN-Revision: 33299
12 years ago
Gabor Juhos 358c7e47f2 ramips: ramips_esw.c indentation cleanup
Minor indentation cleanup.

Prepare for the main swconfig patch by cleaning up indentation a bit.

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>

SVN-Revision: 33298
12 years ago
Gabor Juhos cebaa557be ramips: fix board parameter for the NBG-419N (#12061)
SVN-Revision: 33229
12 years ago
Gabor Juhos eb54a05e89 ramips: add profile for Allnet devices
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33225
12 years ago
Gabor Juhos d77418d67e ramips: add RSSI leds for uci-defaults for ALL0256N
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33220
12 years ago
Gabor Juhos 67e6461ad7 ramips: add board alias for the ALL0239-3G
Generate image for the ALL0239-3G which can be flashed through the
chipset-vendor SDK based firmware's web-interface and bootloader.

The bootloader seems to ignore uImage checksum errors, but does complain about
them once the 0xDEADC0DE was replaced by an actual JFFS2 page.

I'm working on implementing fixtrx for uImage in the mtd package to solve this.

Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33206
12 years ago
Gabor Juhos 89606b61b1 ramips: add support for D-Link DIR-615 H1
rt2x00 still needs some patching as the radio doesn't come to life.
Installation via webflash.

[juhosg: fix whitespace issues, remove rt305x_register_usb
from machine setup because the board has no USB port]

Signed-off-by: Mikko Hissa <mikko.hissa@uta.fi>

SVN-Revision: 33205
12 years ago
Gabor Juhos 82759a1716 ramips: rename rt3352 usb platform devices
In order to get OHCI/EHCI working on the Rt3352, the platform device must be
named so rt3883-?hci will recognize it.

Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33145
12 years ago
Gabor Juhos 1525620b0e ramips: watchdog: use maximum possible timeout by default
As the userspace has no means to determine the maximum possible timeout, use
that as the default and let the userspace lower it when necessary.

As the result the usual OpenWrt install (with busybox's watchdog trying to set
the timeout to 60s on start) is using a 33s timeout on an RT3052 clocked at
384MHz instead of the current 20s default.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>

SVN-Revision: 33144
12 years ago
Gabor Juhos 615a619bc7 ramips: provide means to specify custom "image name" for uImages, use for DIR-620
D-Link's DIR-620 allows to flash a uImage directly from its web-interface but
for that the image name should be set to DIR_620.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>

SVN-Revision: 33143
12 years ago
Gabor Juhos 9365113040 ramips: add D-Link DIR-620 A1 support
Full functionality runtime tested, installation via OEM web-interface requires
a follow-up patch.

Thanks go to Sergey Vasilyugin for his patch that pointed me at the missing
bits (including the antiparallel wps led).

Signed-off-by: Paul Fertser <fercerpav@gmail.com>

SVN-Revision: 33142
12 years ago
Florian Fainelli 1627b2bb4b move rt305x-dwc driver to target specific modules.mk
SVN-Revision: 32864
12 years ago
John Crispin 5e52619b76 DWC otg usb: compilation fixes and trivial bugfix in slave mode
Signed-of-by: Nikolai Zhubr <n-a-zhubr@yandex.ru>

SVN-Revision: 32823
12 years ago
John Crispin 799d6deab0 D-Link DAP-1350 initial support
The initial support for the D-Link DAP-1350.
USB related functionality is not tested.

Signed-off-by: Yoichi Shinoda <shinoda@jaist.ac.jp>

SVN-Revision: 32821
12 years ago
John Crispin 03be8d08ac initial LED configuration for Fonera 2.0n
Setup initial configuration for Wifi and USB LEDS of a Fonera 2.0n (ramips)

Signed-off-by: Malte Forkel <malte.forkel@berlin.de>

SVN-Revision: 32819
12 years ago
John Crispin 2d2479a033 add ALL5002 userspace support
detect EEPROM, MAC addresses and support sysupgrade for the ALL5002

Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 32816
12 years ago
John Crispin e219c3ac3a enable OHCI/EHCI glue on Rt305x, so it is available for Rt3352F.
Hope that this works, didn't have a chance to actually test it...

Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 32815
12 years ago
John Crispin a65eee9ac3 add image build for ALL5002
add image build for ALL5002

Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 32814
12 years ago
John Crispin 0a08a776fb add support for Allnet ALL5002 to kernel
support ALL5002 in ramips/rt305x branch of the kernel.

Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 32813
12 years ago
John Crispin 6641024f50 uart_clk on Rt3352F is always 40MHz
Currently, sys_clk/10 is used which is just wrong.
cpu_clk/10 would work for systems with 400MHz CPU clock.

Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 32812
12 years ago
Gabor Juhos 372945185d ramips: rt305x: add support for Edimax 3G-6200N
Support for Edimax 3G-6200N router with USB.

Signed-off-by: Lukasz Golebiowski <lgolebio@gmail.com>

SVN-Revision: 32682
12 years ago
Vasilis Tsiligiannis eee358338c ramips: mac address detection for Fonera 2.0n
Detect and apply MAC address of a Fonera 2.0n (ramips)

Signed-off-by: Malte Forkel <malte.forkel@berlin.de>
Signed-off-by: Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr>

SVN-Revision: 32490
12 years ago
Gabor Juhos 833b4af816 ramips: rt305x: add support for the Petatel PSR-680W Wireless CDMA Router
This patch adds support for the Korean made Petatel PSR-680W Wireless CDMA Router.
The platform is based on Ralink RT3052.
http://wiki.openwrt.org/toh/petatel/psr-680w

Signed-off-by: Dmitry Shmygov <shmygov at rambler.ru>

SVN-Revision: 32450
12 years ago
John Crispin a4d96aae8d bump to 3.3.8
SVN-Revision: 32055
12 years ago
Gabor Juhos ffbb4f88a9 ramips: use the generic uci-default functions for initial LED setup
SVN-Revision: 31993
12 years ago
Gabor Juhos c71838faa1 ramips: WAN LED for D-Link DIR-300-B1
Add led devices for D-Link DIR-300-B1 WAN LED.

Note that the GPIO state is also ANDed with the esw switch port 4
LED state, which is why I've set the amber LED to default-on.

Closes: https://dev.openwrt.org/ticket/11326

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>

[ juhosg:
- fix comment style in mach-dir-300-revb.c,
- remove the PPP specific LED setup, not everyone uses a PPP connection
  on the WAN interface]

SVN-Revision: 31989
12 years ago
Gabor Juhos 1c552ba8e5 ramips: rt3883: add device registration code for the SPI controller
SVN-Revision: 31922
12 years ago
Gabor Juhos 9c241983fc ramips: allow to use the SPI driver on RT3662/RT3883
SVN-Revision: 31921
12 years ago
Gabor Juhos 78a750dcce ramips: rt3883: fix GPIO reservation for the SPI pins
SVN-Revision: 31920
12 years ago
Gabor Juhos 0622fdd82c ramips: rt305x: remove superfluous controller_data assignment
SVN-Revision: 31919
12 years ago
Gabor Juhos 7f5bec0642 ramips: make rt2x00 firmware extraction quiet
SVN-Revision: 31918
12 years ago
Gabor Juhos 2ae5581447 kernel: update linux 3.3 to 3.3.7
SVN-Revision: 31848
12 years ago
Gabor Juhos e4720dfa95 ramips: Add byte queue limits support to net/ethernet/ramips_main.c
Add byte queue limits support to net/ethernet/ramips_main.c

"Byte queue limits are a mechanism to limit the size of the transmit
hardware queue on a NIC by number of bytes. The goal of these byte
limits is too reduce latency (HOL blocking) caused by excessive
queuing in hardware (aka buffer bloat) without sacrificing
throughput."

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>

SVN-Revision: 31844
12 years ago
Gabor Juhos 1d286fd755 ramips: Enable sysupgrade for Sitecom WL-351
Sysupgrade works just fine on my Sitecom WL-351 after adding this
oneliner.

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>

SVN-Revision: 31843
12 years ago
Gabor Juhos 39994008cb linux: move certain disabled symbols to the generic configs
* CONFIG_ARCH_DMA_ADDR_T_64BIT
  * CONFIG_ARCH_HAS_ILOG2_U32
  * CONFIG_ARCH_HAS_ILOG2_U64
  * CONFIG_ARCH_PHYS_ADDR_T_64BIT
  * CONFIG_ARCH_SUPPORTS_MSI
  * CONFIG_GENERIC_CPU_DEVICES
  * CONFIG_HWMON_DEBUG_CHIP
  * CONFIG_I2C_PXA_PCI
  * CONFIG_LEDS_GPIO
  * CONFIG_MINIX_FS_NATIVE_ENDIAN
  * CONFIG_MLX4_CORE
  * CONFIG_POWER_SUPPLY
  * CONFIG_POWER_SUPPLY_DEBUG
  * CONFIG_QUOTACTL
  * CONFIG_SDIO_UART
  * CONFIG_SENSORS_K10TEMP
  * CONFIG_SENSORS_SCH56XX_COMMON
  * CONFIG_SENSORS_VIA_CPUTEMP
  * CONFIG_SERIO_AMBAKMI
  * CONFIG_SERIO_I8042
  * CONFIG_SERIO_LIBPS2
  * CONFIG_SERIO_PCIPS2
  * CONFIG_SERIO_RAW
  * CONFIG_SERIO_SERPORT
  * CONFIG_SPI_BITBANG
  * CONFIG_SPI_GPIO

SVN-Revision: 31737
12 years ago
Gabor Juhos b472e5d12e kernel: update linux 3.3 to 3.3.6
SVN-Revision: 31709
12 years ago
Gabor Juhos 34018a630f kernel: update linux 3.3 to 3.3.5
SVN-Revision: 31645
12 years ago
Gabor Juhos b0449ccf04 ramips: W306R V2.0 - GPIO and Network fixes
Fixed: GPIO typos and confirmed GPIO_BUTTON_RESET
Fixed: Lan & Wan reversed: swaped "eth0.2" with "eth0.1" by
       removing a line(default is correct), and reversed the
       Lan/wan layout LLLLW to WLLLL.

Added: image/Makefile now builds -factory.bin files. I am
       unsure of the accepted way to change the makefile but
       the name of the image needs to be 'linkn Kernel Image'
       in order to be accepted by the OEM firmware.

Known issue: eth0 (internal switch i think has mac address:
       00:11:22:33:44:55  but i think it should be same as
       the lan).
Known issue: Pressing the reset button has no noticable effect,
       i would expect the router to boot failsafe if being
       pressed on boot, reboot if short press and reset all
       to default if long press.

[juhosg: remove mtdlayout_W306R and use mtdlayout_4M instead]

Signed-off-by: David Pearce <david_18051985@hotmail.com>

SVN-Revision: 31557
12 years ago
Gabor Juhos 90e99b9fe8 ramips: Make serial console for DIR-300-B1 work again
Make serial console for DIR-300-B1 work again.

With some recent change, "console=ttyS1,57600" was removed from the
default kernel command line, this adds the necessary mkcmdline
incantation to image/Makefile to add it there for this target.
This is quite likely broken for other targets as well.

Without this the console switches to ttyS0 instead of ttyS1 and
kernel output is missing, and the userspace comes up with 9600 baud
instead of 57600.

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>

SVN-Revision: 31556
12 years ago
Gabor Juhos cbfce53831 kernel: update linux 3.3 to 3.3.4
SVN-Revision: 31541
12 years ago
Gabor Juhos 8e06682fb7 ramips: rt305x: extract wifi eeprom and use the 8M template for the UR-336UN
Patch-by: Lebedev Dmitry <lebedev@trendnet.ru>

SVN-Revision: 31507
12 years ago
Jonas Gorski 8fd383ae2e kernel: update linux 3.3 to 3.3.3
SVN-Revision: 31460
12 years ago
Gabor Juhos 1ab80c7817 ramips: rt305x: add support for the UR-336UN board
Patch-by: Lebedev Dmitry <lebedev@trendnet.ru>

SVN-Revision: 31451
12 years ago
Gabor Juhos 3626444c6d ramips: rt305x: add support for the Asus WL-330N3G board
This patch adds support for the ASUS WL-330N3G

Comparing to the WL-330N, It have 32MB ram, usb support and a bicolor led.

The bi-color led is driven by 2 gpio.
I don't know how to handle this, so I simply made 2 leds : one red, one blue.
But the red light takes precedence over the blue one according to the chart below.

r = led is red
b = led is blue
0 = led is off

xy= x->r for red, b for blue led, y->value of brightness in /sys/class/leds/x/brughtness

initial state	action	 led	gpio state

r0	b0	r0->r1	 r  	r0	b0
r0	b0	b0->b1   b	r0	b1

r1	b0	r1->r0	 0	r0	b0
r1	b0	b0->b1	 r	r1	*b1*

r1	b1	r1->r0   b	r0	b1
r1	b1	b1->b0   r	r1	b0

r0	b1	r0->r1   r	r1	*b1*
r0	b1	b1->b0   0	r0	r0

Signed-off-by: Frédéric Leroy <fredo@starox.org>

SVN-Revision: 31450
12 years ago
Gabor Juhos 5024ffb976 ramips: nuke 3.2 suport
SVN-Revision: 31405
12 years ago
Gabor Juhos 6c8ca78067 ramips: switch to 3.3.2
SVN-Revision: 31404
12 years ago
Gabor Juhos 5c325b0057 ramips: add support for 3.3
SVN-Revision: 31403
12 years ago
Gabor Juhos 7f902c962b ramips: rt305x: add OHCI/EHCI registration code for RT3352
SVN-Revision: 31402
12 years ago
Gabor Juhos 1645928135 ramips: rt305x: fix CPU clock detection on RT3352
SVN-Revision: 31401
12 years ago
Gabor Juhos fb69e28eaf ramips: rt305x: use different memory size setup for RT3352
SVN-Revision: 31400
12 years ago
Gabor Juhos 818aeba960 ramips: rt3883: add profile and build sysupgrade image for the RT-N56U
SVN-Revision: 31399
12 years ago
Gabor Juhos 6b677e1d22 ramips: add swconfig to the default package list
SVN-Revision: 31398
12 years ago
Gabor Juhos ced031a0b2 ramips: build initramfs image for the Fonera 2.0N
SVN-Revision: 31397
12 years ago
Gabor Juhos fc88a363c0 ramips: rt305x: add initial support for Tenda W306R V2.0
More device info at: http://wiki.openwrt.org/toh/tenda/w306r

Signed-off-by: David Pearce <David_18051985@hotmail.com.au>
[juhosg: fix checkpatch errors, remove kmod-phy and luci-ssl packages
from the profile, change broken GPIO number]

SVN-Revision: 31396
12 years ago
Gabor Juhos 88b5827c52 ramips: remove hardcoded console parameter from kernel configs
SVN-Revision: 31395
12 years ago
Jonas Gorski a8f2bc682e kernel: also update the targets to use 3.2.15
Thanks Gabor for spotting it.

SVN-Revision: 31337
12 years ago
Jonas Gorski 16b4cbcdd6 kernel: update linux 3.2 to 3.2.14
SVN-Revision: 31222
12 years ago
Jonas Gorski d87efd8c3c kernel: update linux 3.2 to 3.2.13 and refresh patches
Also remove a duplicate patch from lantiq (already in generic).

SVN-Revision: 31158
12 years ago
Jo-Philipp Wich e9c4d3d1f2 ramips: add support for the ARC FreeStation5 board, also fix WCR-150GN network setup while we're at it - thanks Pau Escrich <p4u@dabax.net> for the implementation
SVN-Revision: 31144
12 years ago
Gabor Juhos d495277d9f ramips: rt305x: build image for the DIR-615 rev D boards
Patch from #10105.

SVN-Revision: 31101
12 years ago
Gabor Juhos e4e24c5512 ramips: rt305x: add add support for the Asus WL-330N board
[juhosg: reorder several lines in order to keep things sorted
alphabetically]

Signed-off-by: Frédéric Leroy <fredo@starox.org>

SVN-Revision: 31100
12 years ago
Gabor Juhos c1dc6df8bd kernel: update linux 3.2 to 3.2.12
SVN-Revision: 31028
13 years ago
Gabor Juhos 18f7081e17 ramips: rt305x: add profile for the AZtech HW-5503G board
Patch from #11085.

SVN-Revision: 30907
13 years ago
Gabor Juhos 0f77d0b2ba ramips: add RT3350 detection
SVN-Revision: 30900
13 years ago
Gabor Juhos 05d3f559f5 ramips: rt305x: rewrite SoC detection
SVN-Revision: 30890
13 years ago
Gabor Juhos 8cf8ee8f9d ramips: rt305x: rename SYSTEM_CONFIG_* defines to RT305X_SYSCFG_*
SVN-Revision: 30889
13 years ago
Gabor Juhos acb4ad86e5 ramips: replace RALINK_SOC_* macros with global variables
SVN-Revision: 30888
13 years ago
Gabor Juhos 8cff770eb3 ramips: introduce ramips_soc_prom_init and move SoC detection into that
SVN-Revision: 30887
13 years ago
Gabor Juhos 6c51c47962 ramips: build initramfs image for DIR-{3,6}00 boards
SVN-Revision: 30882
13 years ago
Gabor Juhos 4e15457e0e ramips: allow to use DSP ASE on RT3xxx
SVN-Revision: 30879
13 years ago
Gabor Juhos 0e486d2fd2 ramips: add support for unbranded XDX-RN502J board
This patch adds support for routers using a PCB marked XDX-RN502J
V2.0, such as some unbranded routers like this:

http://www.mediafire.com/?8acv87h6snn9fj6
http://www.mediafire.com/?do7xonw7scor4kn
http://www.mediafire.com/?1ad49zvx3e7jyix
http://www.mediafire.com/?i46cqiq66maa197

http://www.aliexpress.com/product-fm/516397994-Free-Shipping-300M-3G-WAN-Wireless-N-WiFi-USB-AP-Router-2-Antennas-wholesalers.html

some reports also state the Aceex 22Y uses the same board.

more information can be found in the following openwrt forum post
https://forum.openwrt.org/viewtopic.php?id=34878

[juhosg: fix checkpatch warnings, use the GENERIC_4M template]

Signed-off-by: bruno schwander <bruno@tinkerbox.org>

SVN-Revision: 30809
13 years ago
Gabor Juhos 44c8b396f9 ramips: board support for Asus RT-N10+
[juhosg: fix indentation in platform scripts, and remove debug
messages from 06_set_iface_mac]

Signed-off-by: Patrick van Staveren <trick@vanstaveren.us>

SVN-Revision: 30808
13 years ago
Gabor Juhos 9698a499b6 kernel: update linux 3.2 to 3.2.9
SVN-Revision: 30767
13 years ago
Gabor Juhos 72599f0c61 ramips: don't read RAMIPS_RX_CALC_IDX0 register in the loop
SVN-Revision: 30733
13 years ago
Gabor Juhos 100f76a010 ramips: raeth: add rx_info structure
This helps to reduce code size on RX path:

add/remove: 0/0 grow/shrink: 3/1 up/down: 68/-56 (12)
function                                     old     new   delta
ramips_eth_open                             1104    1144     +40
ramips_ring_free                             212     232     +20
ramips_eth_stop                              400     408      +8
ramips_eth_rx_hw                             648     592     -56

SVN-Revision: 30732
13 years ago
Gabor Juhos 32e7b1c7d9 ramips: raeth: add tx_info structure
This helps to reduce code size on TX path:

add/remove: 0/0 grow/shrink: 1/4 up/down: 56/-92 (-36)
function                                     old     new   delta
ramips_eth_open                             1048    1104     +56
ramips_eth_tx_housekeeping                   156     148      -8
ramips_ring_free                             224     212     -12
ramips_eth_stop                              420     400     -20
ramips_eth_hard_start_xmit                   480     428     -52

SVN-Revision: 30731
13 years ago
Gabor Juhos 30143b715c ramips: raeth: don't process disabled interrupts
Also rename the 'fe_int' variable.

SVN-Revision: 30713
13 years ago
Gabor Juhos 6990f66861 ramips: fix FONERA20N image generation
SVN-Revision: 30710
13 years ago
Gabor Juhos 9afeeae65e ramips: image: increase minimum kernel partition size to 896k
SVN-Revision: 30706
13 years ago
Gabor Juhos 7089b5213e ramips: image: cleanup and sort templates/profiles
SVN-Revision: 30705
13 years ago
Gabor Juhos c8718a220b ramips: image: use GENERIC_4M template for the ALL0256N board
SVN-Revision: 30704
13 years ago
Gabor Juhos 507c7d30f5 ramips: image: introduce mkmtd/{,phys,spi} helpers
SVN-Revision: 30703
13 years ago
Gabor Juhos 5f63ea18aa ramips: image: pass mtdlayout variables by value
SVN-Revision: 30702
13 years ago
Gabor Juhos 49e53c06b9 ramips: image: merge F5D8235V{1,2} templates
SVN-Revision: 30701
13 years ago
Gabor Juhos 00e7277a4c ramips: image: use generic template for the WR6202, OMNIEMB, W502U boards
SVN-Revision: 30700
13 years ago
Gabor Juhos 554010d55b ramips: image: introduce mkcmdline helper
SVN-Revision: 30699
13 years ago
Gabor Juhos 32c6d63acf ramips: image: use the GENERIC_4M template for the V11ST-FE board
SVN-Revision: 30698
13 years ago
Gabor Juhos ab65053cf0 ramips: image: simplify Makefile a bit
SVN-Revision: 30697
13 years ago
Gabor Juhos 9017fce3a2 ramips: image: add MkImageLzma wrapper
SVN-Revision: 30696
13 years ago
Gabor Juhos c9d8f471fc ramips: image: allow to build board specific initramfs images
SVN-Revision: 30695
13 years ago
Gabor Juhos c0974b46a5 ramips: merge identical switch configuration entries
SVN-Revision: 30688
13 years ago
Gabor Juhos a9101a144c ramips: use unified switch identifiers in uci-defaults/network
SVN-Revision: 30687
13 years ago
Gabor Juhos b6522f372f ramips: fix VLAN config of the RT-N15
SVN-Revision: 30686
13 years ago
Gabor Juhos a18a821733 ramips: raeth: show interrupt statistics in debugfs
SVN-Revision: 30681
13 years ago
Gabor Juhos 214216c04d ramips: raeth: add debugfs support
SVN-Revision: 30680
13 years ago
Gabor Juhos c1e4d709fa ramips: raeth: rename main source file
SVN-Revision: 30679
13 years ago
Gabor Juhos 5e6bc97d0c ramips: raeth: add missing Kconfig and Makefile
SVN-Revision: 30671
13 years ago
Gabor Juhos 3ba0f4e1ca ramips: move the ethernet driver into a separate directory
Also clean up the Kconfig symbols.

SVN-Revision: 30670
13 years ago
Gabor Juhos a6d904b1d6 ramips: rename the spi driver
SVN-Revision: 30669
13 years ago
Gabor Juhos dd001a4b0f ramips: rt3883: make rt3883_nand_data visible
SVN-Revision: 30655
13 years ago
Gabor Juhos 62f213eab9 ramips: merge 3.2 fixes
SVN-Revision: 30652
13 years ago
Gabor Juhos 18fdaee00b ramips: nuke 2.6.39 support
SVN-Revision: 30651
13 years ago
Gabor Juhos e2ea72515f ramips: rt305x: nuke built-in MTD partition maps
SVN-Revision: 30650
13 years ago
Gabor Juhos de6405c898 ramips: rt288x: nuke built-in MTD partition maps
SVN-Revision: 30649
13 years ago
Gabor Juhos e7f59b9326 ramips: build sysupgrade image for the V11ST-FE board
SVN-Revision: 30648
13 years ago
Gabor Juhos 3489515a7e ramips: rt305x: add support for the Skyline SL-R7205 Wireless 3G router
[juhosg:
- don't switch back to 2.6.39
- update config-3.2
- change machine id to SL-R7205
- reorder case entries in platform scripts
- remove button hotplug script]

Signed-off-by: Haipoh Teoh <hpteoh@ceedtec.com>

SVN-Revision: 30645
13 years ago
Gabor Juhos 990ed96a2a ralink: rt3883: disable the 2GHz band on the RT-N56U
SVN-Revision: 30632
13 years ago
Gabor Juhos 5710530c41 ramips: rt3883: make rt3883_wlan_data visible
SVN-Revision: 30631
13 years ago
Gabor Juhos e17a3ffbbd ramips: extract eeprom for the built-in wlan module on the RT-N56U
SVN-Revision: 30604
13 years ago
Gabor Juhos dabca24361 ramips: rt3883: change eeprom file name
SVN-Revision: 30603
13 years ago
Gabor Juhos 00d963999d ramips: select HW_HAS_PCI on per-board basis
SVN-Revision: 30576
13 years ago
Gabor Juhos fc967295ec ramips: rt3883: remove a stray character from rt3883.h
SVN-Revision: 30575
13 years ago
Gabor Juhos b4af07d5c0 ramips: rt288x: don't register the PCI controller on each board
SVN-Revision: 30574
13 years ago
Gabor Juhos f8a56dc8df ramips: raeth: separate ring allocation and setup
SVN-Revision: 30573
13 years ago
Gabor Juhos 49fc54be3d ramips: rt288x: fix PCI resource conflict
SVN-Revision: 30563
13 years ago
Florian Fainelli 37f8c19028 correct PCI IO/Mem resource swapping
SVN-Revision: 30562
13 years ago
Florian Fainelli 3ceebbba14 add Ralink V11ST-FE board support
This board is equipped with:
- 4MB of NOR Flash
- 32MB of SDRAM
- IC+ IP175C switch
- one Mini-PCI slot

SVN-Revision: 30561
13 years ago
Gabor Juhos 8b8d9a8336 ramips: raeth: add a helper function for skb allocation
SVN-Revision: 30555
13 years ago
Gabor Juhos e57546de83 ramips: raeth: use netdev_alloc_skb
SVN-Revision: 30554
13 years ago
Gabor Juhos 064855314b ramips: raeth: add '__packed __aligned(4)' annotation to dma descritor structures
This helps GCC to generare more efficient code.

SVN-Revision: 30553
13 years ago
Gabor Juhos 8c95385d78 ramips: raeth: use 're' instead of 'priv' everywhere
SVN-Revision: 30552
13 years ago
Gabor Juhos b3b79365f3 ramips: raeth: force link down in ramips_phy_stop
SVN-Revision: 30550
13 years ago
Gabor Juhos 3e7b461431 ramips: raeth: serialize ramips_link_adjust calls
SVN-Revision: 30549
13 years ago
Gabor Juhos dcb13d4098 ramips: raeth: add PHYLIB support
SVN-Revision: 30547
13 years ago
Gabor Juhos 02a01a16c7 ramips: extract eeprom for the PCIe wlan module on the RT-N56U
SVN-Revision: 30529
13 years ago
Gabor Juhos 43d1a2c3ab ramips: rt3883: enable PCI on the RT-N56U board
SVN-Revision: 30528
13 years ago
Gabor Juhos 784be92e39 ramips: rt3883: add PCI support
SVN-Revision: 30527
13 years ago
Gabor Juhos 10f00dc48b ramips: rt3883: sync 2.6.39 config
SVN-Revision: 30526
13 years ago
Gabor Juhos ed79921fe5 ramips: use SoC specific irq.h
SVN-Revision: 30525
13 years ago
Gabor Juhos 8d5dfa75e6 ramips: rt3883: update package list in the default profile
SVN-Revision: 30499
13 years ago
Gabor Juhos 99c019fb0d ramips: add preliminary support for the Asus RT-N56U board
SVN-Revision: 30498
13 years ago
Gabor Juhos 97e641a0e6 ramips: raeth: enable MDIO code for RT3883
SVN-Revision: 30497
13 years ago
Gabor Juhos e532fa5fd4 ramips: add preliminary support for the RT3662/RT3883 SoCs
SVN-Revision: 30495
13 years ago
Gabor Juhos 22ec8b4839 ramips: use GENERIC_{4,8}M image template for WR5123GN
SVN-Revision: 30483
13 years ago
Gabor Juhos b7f129e19b ramips: rt305x: pass MTD partition map to the ALL0256N via cmdline
SVN-Revision: 30482
13 years ago
Gabor Juhos a287c60a61 ramips: add initial support for 3.2
SVN-Revision: 30476
13 years ago
Gabor Juhos 388013b0ce ramips: include 'linux/module.h' in the ramips_spi driver
SVN-Revision: 30475
13 years ago
Gabor Juhos faae4235c4 ramips: rt288x: remove per-board physmap_flash_data instances
SVN-Revision: 30474
13 years ago
Gabor Juhos 3502e2b93f ramips: rt305x: remove per-board physmap_flash_data instances
SVN-Revision: 30473
13 years ago
Gabor Juhos 3a11dcdaa8 ramips: load gpio-polled keys module
SVN-Revision: 30463
13 years ago
Gabor Juhos 323ece9474 ramips: remove yet another CONFIG_MTD_PARTITION ifdef
SVN-Revision: 30462
13 years ago
Gabor Juhos 32b9e8c750 ramips: use gpio-keys-polled instead of gpio-buttons
SVN-Revision: 30461
13 years ago
Gabor Juhos 80b40497de ramips: add MIPS platform file
SVN-Revision: 30459
13 years ago
Gabor Juhos 4e1b870f3e ramips: add MDIO bus support for RT288X
SVN-Revision: 30455
13 years ago
Gabor Juhos 34a9ccf544 ramips: fix Belkin F5D8235-v2 VLAN setup
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 30452
13 years ago
Gabor Juhos 8916c02b47 ramips: raeth: make debugging messages configurable
SVN-Revision: 30450
13 years ago
Gabor Juhos aac3ad4c0e ramips: raeth: use device pointer in DMA API calls
SVN-Revision: 30449
13 years ago
Gabor Juhos 1fd8724e94 ramips: raeth: add netdev pointer to private structure
SVN-Revision: 30448
13 years ago
Gabor Juhos c6fa11d00f ramips: raeth: cleanup DMA API usage in ramips_eth_hard_start_xmit
SVN-Revision: 30447
13 years ago
Gabor Juhos 2d055f130e ramips: raeth: unmap rx DMA address in ramips_cleanup_dma
SVN-Revision: 30446
13 years ago
Gabor Juhos 7bd7ddcf4e ramips: raeth: add rx_dma array to store the DMA address of the rx packets
SVN-Revision: 30445
13 years ago
Gabor Juhos 647af823d9 ramips: raeth: use dma_addr_t for the descriptors
SVN-Revision: 30444
13 years ago
Gabor Juhos df5892d1f1 ramips: raeth: unmap DMA memory when a packet is received
SVN-Revision: 30443
13 years ago
Gabor Juhos 617954ca5d ramips: raeth: add a temporary pktlen variable
SVN-Revision: 30442
13 years ago
Gabor Juhos d1d492eaf9 ramips: raeth: protect macro parameters
SVN-Revision: 30441
13 years ago
Gabor Juhos 8250692359 ramips: raeth: indicate dropped packets in stats
SVN-Revision: 30440
13 years ago
Gabor Juhos c67adbbddb ramips: raeth: use the NUM_TX_DESC for the tx_skb array
SVN-Revision: 30439
13 years ago
Gabor Juhos a2c8789578 ramips: use uncached address in detect_mem_size
SVN-Revision: 30438
13 years ago
Gabor Juhos ba4c9b3a8f ramips: rt305x: remove CONFIG_MTD_PARTITION ifdefery from machine files
SVN-Revision: 30437
13 years ago
Gabor Juhos f2dd67dc09 ramips: rt288x: remove CONFIG_MTD_PARTITION ifdefery from machine files
SVN-Revision: 30436
13 years ago
Gabor Juhos d6b9f88743 ramips: refresh patches
SVN-Revision: 30435
13 years ago
Gabor Juhos 9cde29f1a7 ramips: rt305x: add support for Accton WR6202 / SMCWBR11S-3GN
This patch adds support for the Accton WR6202 Mini 3G broadband router.
Full details for this device are available at
http://www.awbnetworks.com/products03.php?Fullkey=19.

This device is identical to the SMCWBR11S-3GN:
http://www.smc-asia.com/products03.php?Fullkey=210

It's also worth noting that this board has a GPIO line to control the
power to the USB port.

[juhosg:
 - fix checkpatch warnings,
 - reorder Kconfig entry,
 - merge the sysupgrade patch,
 - add GPL header]

Signed-off-by: Johnathan Boyce <jon.boyce@globalreach.eu.com>

SVN-Revision: 30434
13 years ago
Gabor Juhos 59b474732c ramips: rt305x: merge duplicated mac address setup
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 30433
13 years ago
Gabor Juhos 7298ef2456 ramips: rt305x: add profile for the Belkin f5d8235v2
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 30432
13 years ago
Gabor Juhos 0430194cc3 ramips: fix compiler warning in prom.c
SVN-Revision: 30424
13 years ago
Gabor Juhos 44ed690cb3 ramips: change vlan_config for the ALFA W502U board
This change moves the WAN port into a separate VLAN.

SVN-Revision: 29969
13 years ago
Gabor Juhos b3fdd931d1 ramips: add support for Sitecom WL-341v3 and other Sercomm IP1006RRv2 boards
This patch adds support for the Sitecom WL-341 v3 and other Sercomm
IP1006RRv2 based boards for sysupgrade support and for the initial
flash through pushbutton initiated recovery mode with the special
partition table and fixes for the quirks and things required by the
modified bootloader.

There is a known bug, Wi-Fi is not working on my board probably
because of the lack of RAM (the board only has 16MiB ram -- half of
the normal amount for non rebadged versions, but there is an empty
slot for another ram chip,) but I don't know for sure. The driver
loads but hostapd fails to load so I think it's not related to the
specific device except for the lack of RAM.

Moreover, only 7 of the 11 onboard leds are confirmed working, it
seems that one of the others is always on and the remaining ones are
connected to the wireless card leds already recognized by OpenWrt

[juhosg: reordered some parts in order to keep things sorted
alphabetically]

Signed-off-by: Marco Antonio Mauro <marcus90@gmail.com>

SVN-Revision: 29910
13 years ago
Gabor Juhos 02e77c6ae1 ramips: generate sysupgrade image for the ALL0256N
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 29884
13 years ago
Gabor Juhos 944c8aacdb ramips: add user-space support for ALL0256N
This adds uci-defaults and sysupgrade support for the ALL0256N.

Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 29883
13 years ago
Gabor Juhos 1932a7205c ramips: add kernel support for ALL0256N
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 29882
13 years ago
Gabor Juhos 9cf1d4e06e ramips: scripts updates
In this patch:

* rename Argus leds to avoid underscores
* rename Belkin F5D8235 v1 leds from f5d8234 to f5d8235
* remove Belkin F5D8235 v1 status led defined as storage led (it was
  defined as usb led earlier, just in wrong place) - it should have
  router led as in v2
* add Argus, Sparklan and Belkin F5D8235 v2 status leds
* add Belkin F5D8235 v1 and v2 usb leds
* fix Belkin F5D8235 v2 network config generation and mac address axtraction
* fix Sparklan board identification
* add Sparklan usb led (this board doesn't have usb connector by
  default and the led is hidden also but if you are going to solder
  the connector then you'll see the led too)
* add Sparklan network config generation and mac address extraction
* fix empty string test in network script and...
* ...sort case entries by the first board in the list

Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 29871
13 years ago
Gabor Juhos 809fe38e41 ramips fix f5d8235-v1 diag LED support
SVN-Revision: 29857
13 years ago
Gabor Juhos e9d8deaaed ramips: add sysled and sysupgrade to wr512-3gn
Patch from #10035.

SVN-Revision: 29847
13 years ago
Gabor Juhos 557cf076b4 ramips: sysupgrade for ESR-9753
This patch add sysupgrade for Engenius ESR-9753

Signed-off-by: Artur Wronowski <arteqw@gmail.com>

SVN-Revision: 29824
13 years ago
John Crispin a2708d11e8 ramips: Rework ramips_eth to not require irqsave locking anymore
Previously the tx housekeeping was done in a spin_lock_irqsave critical
section which causes irqs to be disabled during that time. Since the
housekeeping is already prepared to be scheduled as a tasklet process
the housekeeping only in softirq context and revise the locking between
the tx path and the housekeeping tasklet by using a normal spin_lock
which in most situations will be a NOP anyway.

This makes sure that interrupts are only disabled for a short time
since in the worst case the housekeeping might have to free up to 256
skbs.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>

SVN-Revision: 29762
13 years ago
Gabor Juhos 244c322d25 ramips: rt288x: add support for the Belkin F5D8235-4 v1 board
Patch-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>

SVN-Revision: 29617
13 years ago
Gabor Juhos f50b02b559 ramips: rt288x: change base address and window size of flash bank 0
SVN-Revision: 29616
13 years ago
Gabor Juhos 98437278c4 ramips: rt305x: add support for the ALFA Networks W502U (R36) board
SVN-Revision: 29615
13 years ago
Gabor Juhos 723d8dd74f ramips: rt288x: add support for the Buffalo WLI-TX4-AG300N board
SVN-Revision: 29612
13 years ago
Gabor Juhos 7b1e525b56 ramips: initial support for Sitecom WL-351 v1 002
This add support for the Sitecom WL-351 v1 002.
In principle the Engenius ESR9850 should also work with this, but I
don't have the hardware to test it.

Since an external gigabit switch (RTL8366RB) is used,
I had to modify the ramips_esw driver to add a 'bypass' mode, which
just configures it to not filter the vlan tags.
Also two initialization words (FCT2 and FPA2) are set to different
values by u-boot than what the driver is using and it only seems to
work correctly when they not overridden by the driver, so I
added them to the platform specific data as reg_initval_fct2 and
reg_initval_fpa2.

With this wired lan works as expected, however I'm still having some
trouble with the wireless lan:
It only works after I rmmod & re-insmod rt2800pci and then
reconfigure it in the webinterface, but not directly after
rebooting.

The symptom of this is wpad saying:
Dec 20 15:45:09 OpenWrt daemon.info hostapd: wlan1: STA <notebookmac> IEEE 802.11: associated (aid 1)
Dec 20 15:45:09 OpenWrt daemon.info hostapd: wlan1: STA <notebookmac> WPA: pairwise key handshake completed (RSN)
Dec 20 15:45:22 OpenWrt daemon.info hostapd: wlan1: STA <notebookmac> IEEE 802.11: authenticated

But wpa_supplicant on the client saying:
Authentication with <wl351mac> timed out.

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>

SVN-Revision: 29604
13 years ago
Gabor Juhos 2cb946f5b4 ramips: add support for the Senao/EnGenius ESR-9753 board
Signed-off-by: Artur Wronowski <arteqw@gmail.com>

SVN-Revision: 29603
13 years ago
Gabor Juhos 03bce34384 ramips: define firmware partition for Omnima MiniEMBWiFi
Patch-by: Ivan Ignjatic <ivan@omnima.co.uk>

SVN-Revision: 29602
13 years ago
Gabor Juhos 0c38d36488 ramips: add support for Omnima MiniEMBWiFi board
This patch adds support for the Omnima MiniEMBWiFi
Ralink RT3050F based board.

Based on a patch by Ivan Ignjatic <ivan at omnima.co.uk>

SVN-Revision: 29533
13 years ago