Commit Graph

8884 Commits (fd7b2b5141dc3ce723ae54f38645bca44a1b651d)

Author SHA1 Message Date
Gabor Juhos aa2f4d4c8d ar71xx: add initial support for RB2011UAS-2HnD
SVN-Revision: 33349
12 years ago
Gabor Juhos 3686e18727 ar71xx: use routerboot_find_tag to find wlan data offset on RB751
SVN-Revision: 33348
12 years ago
Gabor Juhos ccabe4a1b4 ar71xx: add RouterBoot related helper routines
SVN-Revision: 33347
12 years ago
Gabor Juhos 2323120d5e generic add WLAN calibration data ID to routerboot.h
SVN-Revision: 33346
12 years ago
Gabor Juhos 44bf7c7cc1 ar71xx: define MTD partitions for RB2011
SVN-Revision: 33345
12 years ago
Gabor Juhos 6ae5ec16e0 ar71xx: add preliminary support for Mikrotik RB2011L
This patch adds preliminary support for the Mikrotik RB2011L.
The NAND flash is not yet supported, so only the initramfs
kernel can be used for now.

[juhosg: remove unnecessary PCI/USB related stuff, the board
does not use that, update commit message]

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

SVN-Revision: 33344
12 years ago
Gabor Juhos 94bac7366c ar71xx: use dynamic clock dividers on the 2nd MDIO of AR934x
SVN-Revision: 33343
12 years ago
Gabor Juhos 7592057774 ar71xx: add dynamic MDIO clock calculation
SVN-Revision: 33342
12 years ago
Gabor Juhos f3ecbea052 adm5120: move common routerboot definitions into a separate header file
Those will be used on the ar71xx platform as well.

SVN-Revision: 33341
12 years ago
Jonas Gorski 7708138183 bcm63xx: fix WPS button polarity for Alice Gate VoIP 2 + Wifi
Fixes booting the device with button hotplug enabled (#10785).

SVN-Revision: 33340
12 years ago
Gabor Juhos 88a5478781 ar71xx: use the RLE library for RB751
SVN-Revision: 33338
12 years ago
Gabor Juhos 73df240bb3 ar71xx: add library code for RLE decoding
It will be used for the MikroTik boards.

SVN-Revision: 33337
12 years ago
Gabor Juhos f4be8a76de ar71xx: fix CPU/DDR frequency calculation for SRIF PLLs on AR934x
SVN-Revision: 33335
12 years ago
Gabor Juhos 70d00ac64e ar71xx: refresh kernel patches
SVN-Revision: 33334
12 years ago
Florian Fainelli 6771d63284 use the recommended ARM I/O accessors
use {read,write}l_relaxed instead of the plain __raw_{read,write}l variants.

SVN-Revision: 33330
12 years ago
Daniel Dickinson c3b7139ab2 dir825b1: Add image for DIR-825-B1 that uses the whole flash (must first be flashed with the 'standard' image) and an image to revert the change to allow reversion to stock firmware.
SVN-Revision: 33326
12 years ago
Luka Perkov 4c76b3635b lantiq: fix sx76x default uci network configuration
SVN-Revision: 33324
12 years ago
Florian Fainelli 3730e6c794 add some ohci workarounds to make ohci work
SVN-Revision: 33323
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
John Crispin f186bff0ef add missing kvm_guest kernel options
SVN-Revision: 33319
12 years ago
Gabor Juhos 069f544d2b ar71xx: use correct fractional dividers for {CPU,DDR}_PLL on AR934x
SVN-Revision: 33318
12 years ago
Gabor Juhos 81bb246a8d ar71xx: add rssileds to package set in profile for devices which got them.
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33317
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
Florian Fainelli 94a45be66b enable CFI command set 0002 FORCE_WORD_WRITE
SVN-Revision: 33315
12 years ago
Florian Fainelli 19cbe80501 pad squashfs image
SVN-Revision: 33314
12 years ago
Florian Fainelli 1964753c22 add Generic and dLAN USB Extender profiles
SVN-Revision: 33313
12 years ago
Florian Fainelli e88e20d975 nuport-mac: disable MAC RX and TX during interface close
Fixes sporadic crashes while reconfiguring the network interface.

SVN-Revision: 33312
12 years ago
Gabor Juhos 11c3392b7f Revert "ar71xx: only allow RGMII mode on the 2nd ethernet MAC of the AR7240"
That was based on assumptions.

SVN-Revision: 33310
12 years ago
Gabor Juhos eb9a97a360 ar71xx: all0315n: fix ethernet according to vendor info
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33309
12 years ago
Gabor Juhos 02cb5f9dcd ar71xx: add RSSI LEDs of ALL0315N to uci-defaults/leds
SVN-Revision: 33308
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 0c5688cc38 ar71xx: image: fix Profile name for TL-WA701 (closes #12094)
SVN-Revision: 33295
12 years ago
Gabor Juhos 5fdbb33db4 ar71xx: Buffalo WZR-HP-AG300H LED support
An improved LED support for Buffalo WZR-HP-AG300H.

There will be two new packages to go with this patch
(ar922x-led-fix-hotplug and ar922x-led-fix-init).
These packages essentially perform the same task of
disabling "JTAG over GPIO pins" function which is
currently required for LEDs on AR922x emac GPIO to work,
and are both considered a temporary fix that circumvent
this problem.

[juhosg: add the hotplug script from the proposed
ar922x-led-fix-hotplug package to ar71xx/base-files]

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

SVN-Revision: 33294
12 years ago
Gabor Juhos 4405faae26 gemini: fix bus ids for PHY devices (closes: #12082)
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33288
12 years ago
Gabor Juhos f2030c3113 ar71xx: add profile for Allnet devices
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33287
12 years ago
Gabor Juhos d65c06c15c ar71xx: generate image for ALL0315N
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33286
12 years ago
Gabor Juhos 4079f3163f ar71xx: sysupgrade for the ALL0315N
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33285
12 years ago
Gabor Juhos abffa4ecfb ar71xx: rename all0258n.sh to allnet.sh
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33284
12 years ago
Gabor Juhos 1d96b0275c ar71xx: detect ALL0315N board
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33282
12 years ago
Gabor Juhos eebdd633e4 ar71xx: add support for the Allnet ALL0315N board
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33281
12 years ago
Gabor Juhos cca873e8e0 ar71xx: only allow RGMII mode on the 2nd ethernet MAC of the AR7240
Signed-off-by: Daniel Golle <dgolle@allnet.de>

SVN-Revision: 33280
12 years ago
Gabor Juhos fccf1f5105 generic: add support for the EON EN25Q64 SPI flash chip
It is used in some TL-WDR4310 devices. Closes #12077.

SVN-Revision: 33275
12 years ago
Gabor Juhos 5a9c7fda3e ar71xx: unbreak building images for TL-WR1041N-v2, TL-WR2543N
Commit 48788063266ad99bdab03b53cbe7e1a564c2d9b3 (r33251) introduced a
regression with board= kernel command line parameter incorrectly
initialised.

The faulty builds propogated to the snapshots download area. This makes
the device unbootable and TP-Link users have to attach the serial to
recover.

Here is the q&d way i used to identify MIPS boards that didn't have a
corresponding entry in the image/Makefile:

for i in `find ../files/arch/mips/ath79/ -type f -exec cat {} \; \
	| sed -n '/MIPS_MACHINE/ { s/^[^"]*"\([^"]*\)".*$/\1/; p; }'`; do
		grep -q ,$i, Makefile || echo $i;
done > missing-boards.new

Reported-by: Casper on IRC
Signed-off-by: Paul Fertser <fercerpav@gmail.com>

SVN-Revision: 33274
12 years ago
Gabor Juhos f3d5edffdc ar71xx: image: fix TL-WR1043ND board id (#12079)
SVN-Revision: 33272
12 years ago
John Crispin de3c3d7181 Enable eSATA sheevaplug
OpenWRT runs in a eSATA sheevaplug like a charm. This patch just enables
CONFIG_MACH_ESATA_SHEEVAPLUG so the proper MACHINE_START definition
is compiled in.

Signed-off-by: Unai Uribarri <unaiur@gmail.com>

SVN-Revision: 33266
12 years ago
Gabor Juhos 773b33d7d2 ar71xx: image: group and sort {Single,Multi}Profiles
SVN-Revision: 33264
12 years ago
Gabor Juhos a5e0eb0d95 ar71xx: image: group and sort mtdlayout definitions
SVN-Revision: 33263
12 years ago
Gabor Juhos f0ad972aba ar71xx: image: use the MultiProfile helper for the Madwifi profile
SVN-Revision: 33262
12 years ago
Gabor Juhos 333f030b79 ar71xx: image: automatically build a list of SingleProfiles
Use that for Default/Minimal profiles.

SVN-Revision: 33261
12 years ago
Gabor Juhos 5dce77837f ar71xx: image: use the new helpers for the ZyXEL images
SVN-Revision: 33260
12 years ago
Gabor Juhos be4be2d82a ar71xx: image: use the new helpers for the Zcomax images
SVN-Revision: 33259
12 years ago
Gabor Juhos 74bdb68ea4 ar71xx: image: use the new helpers for the WRT400 images
SVN-Revision: 33258
12 years ago
Gabor Juhos 8cf9a7b1c7 ar71xx: image: use the new helpers for the WZRHPG30XNH images
SVN-Revision: 33257
12 years ago
Gabor Juhos c965d8ead8 ar71xx: image: use the new helpers for the WHRHPG300N images
SVN-Revision: 33256
12 years ago
Gabor Juhos 71af43a7c7 ar71xx: image: use the new helpers for the UBNTXM images
SVN-Revision: 33255
12 years ago
Gabor Juhos 097e9938b4 ar71xx: image: use the new helpers for the UBNT images
SVN-Revision: 33254
12 years ago
Gabor Juhos 216e9b7a92 ar71xx: image: use the new helpers for the TPLINKOLD images
SVN-Revision: 33253
12 years ago
Gabor Juhos 48d6081fa5 ar71xx: image: use the new helpers for the TPLINK-LZMA images
SVN-Revision: 33252
12 years ago
Gabor Juhos 8546e00157 ar71xx: image: use the new helpers for the TPLINK images
SVN-Revision: 33251
12 years ago
Gabor Juhos 27feea1070 ar71xx: image: use the new helpers for the Planex images
SVN-Revision: 33250
12 years ago
Gabor Juhos 4dbabe5c21 ar71xx: image: use the new helpers for the PB4X images
SVN-Revision: 33249
12 years ago
Gabor Juhos bbaa0b9200 ar71xx: image: use the new helpers for the OpenMesh images
SVN-Revision: 33248
12 years ago
Gabor Juhos 4edc55f475 ar71xx: image: use the new helpers for the Netgear images
SVN-Revision: 33247
12 years ago
Gabor Juhos d9f933b8b8 ar71xx: image: use the new helpers for the MyLoader images
SVN-Revision: 33246
12 years ago
Gabor Juhos a409d0cf46 ar71xx: image: use the new helpers for the DIR825B1 images
SVN-Revision: 33245
12 years ago
Gabor Juhos b7e05e3a59 ar71xx: image: use the new helpers for the CyberTAN images
SVN-Revision: 33244
12 years ago
Gabor Juhos 292f074ad7 ar71xx: image: use the new helpers for the Cameo933x images
SVN-Revision: 33243
12 years ago
Gabor Juhos 4c9a428614 ar71xx: image: use the new helpers for the Cameo913x images
SVN-Revision: 33242
12 years ago
Gabor Juhos 19d840980f ar71xx: image: use the new helpers for the Cameo7240 images
SVN-Revision: 33241
12 years ago
Gabor Juhos ce91228e2b ar71xx: image: use the new helpers for the AthGzip images
SVN-Revision: 33240
12 years ago
Gabor Juhos 70e3dda99c ar71xx: image: use the new helpers for the AthLzma images
SVN-Revision: 33239
12 years ago
Gabor Juhos 31a88650d7 ar71xx: image: use the new helpers for the ALFA images
SVN-Revision: 33238
12 years ago
Gabor Juhos 2379e6f2a3 ar71xx: image: add a few helper functions
These functions will be used to simplify the Makefile.

SVN-Revision: 33237
12 years ago
Gabor Juhos 6ebc77af73 ar71xx: image: pass mtdlayout as a separate parameter for the ALFA template
SVN-Revision: 33236
12 years ago
Hauke Mehrtens 847afa343f update profiles
* add profile for BCM4705 based SoC using tg3 instead of b44
* remove redundant 105-Atheros.mk
* reorder

SVN-Revision: 33235
12 years ago
Gabor Juhos a2f82cf7ec ar71xx: add profile and build image for the TEW-712BR
SVN-Revision: 33234
12 years ago
Gabor Juhos 8744f8d183 ar71xx: TEW-712BR user space support
SVN-Revision: 33232
12 years ago
Gabor Juhos 8b3d95bba9 ar71xx: add support for the TRENDnet TEW-712BR board
SVN-Revision: 33231
12 years ago
Gabor Juhos 4073317695 ar71xx: fix serial clock calculation on AR933x
Closes #12031.

SVN-Revision: 33230
12 years ago
Gabor Juhos cebaa557be ramips: fix board parameter for the NBG-419N (#12061)
SVN-Revision: 33229
12 years ago
John Crispin 3686b8d279 derive system from hostcc to allow building inside a chroot
SVN-Revision: 33228
12 years ago
Gabor Juhos 2811d6c183 ar71xx: fix comment style in mach-tl-wr2543n.c
SVN-Revision: 33227
12 years ago
Gabor Juhos dc13dc1d54 ar71xx: fix mtd layout of the AP113
The 'mtdparts=' prefix and the name of the flash device is missing.

SVN-Revision: 33226
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 5a694e09c8 ar71xx: add ALL0305 board alias
For the pure convenience of having a correctly named
image and system name in /proc/cpuinfo , until we can
do that by having system names in DTS...

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

SVN-Revision: 33224
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 0517183b9c ar71xx: add support for TP-Link TL-WDR3600
The TL-WDR3600 is identical to the TL-WDR4300 with the exception that is has
only two antennas.

[juhosg: remove the custom machine type, change the board name instead]

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 33219
12 years ago
John Crispin 6c9d20d6e7 tools/firmware-utils/ptgen option to use MB rounding
SVN-Revision: 33218
12 years ago
John Crispin 968ac3fd03 add led defintion for the WR2543 5GHz WLAN LED
Signed-off-by: Andy Leiserson <andy@leiserson.org>

SVN-Revision: 33215
12 years ago
Hauke Mehrtens 3133d4d8de remove unused file
SVN-Revision: 33210
12 years ago
Hauke Mehrtens 9eaee85cc2 make brcm47xx build only with bcma or only with ssb support.
There are some ifdefs missing so when only ssb or only bcma was
selected in the kernel config it did not build.

SVN-Revision: 33209
12 years ago