Go to file
nbd a2a0b9f4dd ath79: dev-eth: Don't advertise 1gbit in link code word on ar9331
While the AR9331 has a gigabit MAC towards the internal switch, the
integrated PHYs however are only 100-base-tx capable.  The existing code
however advertieses gigabit capability in the link status word.  If you
attach such a PHY to a gigabit capable switch on the remote end, with
some probability it attempts to negotiate gigabit and fails, falling
baco to the AR9331 assuming a 10mbit half-duplex link.  This has been
observed quite frequently with the Carambola2 and gigabit capable
switches.

In ath79_register_eth(), "pdata->has_gbit = 1;" is set unconditionally
for both AR9331 ethernet ports. This is most likely wrong. Despite the
two MAC IP cores being gigabit MACs, the MAC for eth1 is connected to a
100base-T PHY via MII. The has_gbit attribute is used in the ethernet
driver to determine the supported link modes.

So either pdata->has_gbit is not set to 1 anymore, or the ethernet
driver needs to be modified to determine the advertised link code word
on another criteria than pdata->has_gbit.  This patch implements the
former solution.

Signed-off-by: Harald Welte <laforge@gnumonks.org>

Backport of r42432

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42434 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-07 09:46:41 +00:00
config create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
docs create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
include BB: build: fix removal of old .ipk files with CONFIG_PER_FEED_REPO 2014-08-09 13:05:03 +00:00
package uclient: update to the latest version, fixes some crash issues 2014-09-04 17:46:39 +00:00
scripts build: introduce per feed repository support 2014-08-06 18:18:47 +00:00
target ath79: dev-eth: Don't advertise 1gbit in link code word on ar9331 2014-09-07 09:46:41 +00:00
toolchain toolchain/musl: update to version 1.1.4 2014-08-06 10:30:20 +00:00
tools tools/libtool: add missing dependency on m4 2014-08-29 11:37:50 +00:00
.gitattributes create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
.gitignore create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
BSDmakefile create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
Config.in create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
LICENSE create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
Makefile create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
README Add 'subversion' build dependency to README 2014-09-01 13:22:10 +00:00
feeds.conf.default BB: point old.packages at the real tree 2014-09-02 15:51:05 +00:00
rules.mk build: override hardcoded paths to bison and m4 to make the SDK more relocatable 2014-08-26 12:16:18 +00:00

README

This is the buildsystem for the OpenWrt Linux distribution.

Please use "make menuconfig" to configure your appreciated
configuration for the toolchain and firmware.

You need to have installed gcc, binutils, bzip2, flex, python, perl, make,
find, grep, diff, unzip, gawk, getopt, subversion, libz-dev and libc headers.

Run "./scripts/feeds update -a" to get all the latest package definitions
defined in feeds.conf / feeds.conf.default respectively
and "./scripts/feeds install -a" to install symlinks of all of them into
package/feeds/.

Use "make menuconfig" to configure your image.

Simply running "make" will build your firmware.
It will download all sources, build the cross-compile toolchain, 
the kernel and all choosen applications.

You can use "scripts/flashing/flash.sh" for remotely updating your embedded
system via tftp.

The OpenWrt system is documented in docs/. You will need a LaTeX distribution
and the tex4ht package to build the documentation. Type "make -C docs/" to build it.

To build your own firmware you need to have access to a Linux, BSD or MacOSX system
(case-sensitive filesystem required). Cygwin will not be supported because of
the lack of case sensitiveness in the file system.


Sunshine!
	Your OpenWrt Project
	http://openwrt.org