From: Mike <shotgunjack108@yahoo.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Bug: RealTek chipset does not work at 100/1000 Mbps
Date: Fri, 18 Sep 2015 16:23:15 -0400 [thread overview]
Message-ID: <55FC72B3.20001@yahoo.com> (raw)
Hello, I have been experiencing VERY slow TFTP speeds using the Realtek
RTL8111GS-CG Ethernet chipset. The board I am using is a Minnowboard Max
(revision A2) and the version of U-Boot is 2015.10-rc3.
After booting the board into the U-Boot command prompt I set the envs
'ipaddr' and 'serverip' and run the command 'tftp 0x3000000 <my file>'.
The file is downloaded at 700-800 KiB/s, even though the board is
directly connected to my laptop and the link speed is 100 Mbs (courtesy
of ethtool). Performing the same test but with the board and laptop
connected to a switch doesn't change the transfer speed. Enabling
DEBUG_RTL8169 in drivers/net/rtl8169.c results in the following error
message being displayed:
eth_rtl8169: 1000Mbps Full-duplex operation, TBI Link Failed!
Attempting to force gigabit speeds in the uboot driver results in a
TFTP download rate of up to 1.5 MiB/s, and ethtool shows a link speed
of 1000Mbps. Looking at the rtl8111 PHY status register I can see that
the ethernet chip also thinks it is in a full duplex, 1000Mbps
connection. Forcing the chip to 100Mbit (half and full duplex) results
in transfer rates of 700-800 KB/s.Looking at the actual packets sent
during the TFTP session shows no large number of missed packets,
retries etc.; nothing unusual.
After booting the board into Linux I am able to establish a 1 gigabit
connection and achieve transfer rates of over 100 MB/s, so its most
likely something to do with U-Boot's rtl8169 driver not setting up the
chip correctly. I would greatly appreciate if someone with more
experience in this field can look into this; it is likely that this
issue affects multiple Realtek Ethernet chipsets.
Lastly, creating a ROM with an invalid (blank) vga.bin increases TFTP
speeds to 2.4 MB/s; which is completely counterintuitive.
Please let me know if I can be of any help, I would really like to get
to the bottom of this.
-Mike
reply other threads:[~2015-09-18 20:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55FC72B3.20001@yahoo.com \
--to=shotgunjack108@yahoo.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox