public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Ethernet problem on A20 Lime2
Date: Tue, 21 Apr 2015 10:57:40 -0400	[thread overview]
Message-ID: <20150421145740.GL16702@bill-the-cat> (raw)
In-Reply-To: <55365A96.8040701@redhat.com>

On Tue, Apr 21, 2015 at 04:11:34PM +0200, Hans de Goede wrote:
> Hi Tom,
> 
> On 21-04-15 16:03, Tom Rini wrote:
> >Hey,
> >
> >I've run into a problem with ethernet on the A20 Lime2:
> >sunxi# setenv autoload no
> >sunxi# dhcp
> >Speed: 1000, full duplex
> >BOOTP broadcast 1
> >DHCP client bound to address 192.168.0.185 (13 ms)
> >sunxi# tftp test/u-boot-sunxi-with-spl.bin
> >Speed: 1000, full duplex
> >Using dwmac.1c50000 device
> >TFTP from server 192.168.0.3; our IP address is 192.168.0.185
> >Filename 'test/u-boot-sunxi-with-spl.bin'.
> >Load address: 0x42000000
> >Loading: #################################################################
> >          #########
> >          23.4 KiB/s
> >done
> >Bytes transferred = 377028 (5c0c4 hex)
> >sunxi# crc32 $fileaddr $filesize
> >CRC32 for 42000000 ... 4205c0c3 ==> afa0edfb
> >$ rhash -C /tftpboot/test/u-boot-sunxi-with-spl.bin
> >; Generated by RHash v1.2.8 on 2015-04-21 at 10:01.53
> >; Written by Aleksey (Akademgorodok) - http://rhash.sourceforge.net/
> >;
> >;       377028  09:52.08 2015-04-21 /tftpboot/test/u-boot-sunxi-with-spl.bin
> >/tftpboot/test/u-boot-sunxi-with-spl.bin A16F5564
> >
> >So a non-crc32 match.  If I load that same file off of SD card:
> >sunxi# mmc read 43000000 10 400
> >
> >MMC read: dev # 0, block # 16, count 1024 ... 1024 blocks read: OK
> >sunxi# cmp 42000000 43000000 $filesize
> >word at 0x42001544 (0x605a0200) != word at 0x43001544 (0x605a0201)
> >Total of 1361 word(s) were the same
> >
> >I haven't had a chance to bisect this but it might have been around for
> >a little while.
> 
> Chances are this has never worked 100% reliable, on most boards some
> tweaking of the GMAC clk delays is necessary.
> 
> Try setting
> 
> CONFIG_GMAC_TX_DELAY=1
> 
> In the defconfig for your board, that helps with similar issues on
> the Cubietruck (which also has gbit ethernet) Valid values are
> 0 - 3.

1 2 and 3 all failed :(

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150421/6af9d3c3/attachment.sig>

  reply	other threads:[~2015-04-21 14:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-21 14:03 [U-Boot] Ethernet problem on A20 Lime2 Tom Rini
2015-04-21 14:11 ` Hans de Goede
2015-04-21 14:57   ` Tom Rini [this message]
2015-04-22  6:48     ` Hans de Goede

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=20150421145740.GL16702@bill-the-cat \
    --to=trini@konsulko.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