All of lore.kernel.org
 help / color / mirror / Atom feed
From: Trevor Woerner <twoerner@gmail.com>
To: Romain Perier <romain.perier@collabora.com>
Cc: yocto@yoctoproject.org
Subject: Re: [meta-rockchip][PATCH 2/2] u-boot: Backport upstream fix for gmac_rockchip
Date: Sat, 17 Jun 2017 18:29:06 -0400	[thread overview]
Message-ID: <20170617222906.GA20416@linux-uys3> (raw)
In-Reply-To: <20170616134740.25372-3-romain.perier@collabora.com>

Hi Romain,

I assume this patch is meant to fix an ethernet issue in u-boot? How does
someone test that ethernet is working from u-boot?

Here is my firefly booting with these patches:


	U-Boot SPL 2017.05 (Jun 17 2017 - 17:12:20)
	Returning to boot ROM...

	U-Boot 2017.05 (Jun 17 2017 - 17:12:20 -0400)

	Model: Firefly-RK3288
	DRAM:  1.7 GiB
	MMC:   dwmmc@ff0c0000: 1, dwmmc@ff0f0000: 0
	*** Warning - bad CRC, using default environment

	In:    serial
	Out:   serial
	Err:   serial
	Net:   
	Warning: ethernet@ff290000 (eth0) using random MAC address - 5a:40:1a:28:0e:43
	eth0: ethernet@ff290000
	Hit any key to stop autoboot:  0 

Here is me configuring the networking stuff in u-boot:

	=> setenv ipaddr 192.168.142.20
	=> setenv netmask 255.255.255.0
	=> setenv serverip 192.168.142.1

Then I try pinging my server:

	=> ping 192.168.142.1
	ethernet@ff290000 Waiting for PHY auto negotiation to complete... done
	Speed: 100, full duplex
	Using ethernet@ff290000 device

The next thing I know my firefly is rebooting:

	data abort
	pc : [<6ada703a>]          lr : [<6ada7dbb>]
	reloc pc : [<0003303a>]    lr : [<00033dbb>]
	sp : 68d67e48  ip : 00000000     fp : 00000002
	r10: 68d77e60  r9 : 68d71ee8     r8 : 00000000
	r7 : 00000001  r6 : 00000000     r5 : 0000002a  r4 : 6adfd04e
	r3 : 14000045  r2 : 148ea8c0     r1 : 018ea8c0  r0 : 6adfd04e
	Flags: nzcv  IRQs off  FIQs off  Mode SVC_32
	Resetting CPU ...


	U-Boot SPL 2017.05 (Jun 17 2017 - 17:12:20)
	Returning to boot ROM...


  reply	other threads:[~2017-06-17 22:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-16 13:47 [meta-rockchip][PATCH 0/2] u-boot: various improvements Romain Perier
2017-06-16 13:47 ` [meta-rockchip][PATCH 1/2] u-boot: Copy ${SPL_BINARY} to the default search path Romain Perier
2017-06-16 13:47 ` [meta-rockchip][PATCH 2/2] u-boot: Backport upstream fix for gmac_rockchip Romain Perier
2017-06-17 22:29   ` Trevor Woerner [this message]
2017-06-26 12:17     ` Romain Perier

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=20170617222906.GA20416@linux-uys3 \
    --to=twoerner@gmail.com \
    --cc=romain.perier@collabora.com \
    --cc=yocto@yoctoproject.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.