public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Bo Shen <voice.shen@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] How do I use AM335x eth1 rather than eth0 ?
Date: Thu, 18 Apr 2013 23:49:16 +0800	[thread overview]
Message-ID: <517015FC.20007@gmail.com> (raw)
In-Reply-To: <5167E2A6.7070803@mimc.co.uk>

Hi Mark,

On 04/12/2013 06:32 PM, Mark Jackson wrote:
> We have a dual Ethernet board (based on the BeagelBone) but with both Ethernet ports connected.
>
> I'm wanting to use eth1 (rather than eth0), so in my board.c file, I changed:-
>
> static struct cpsw_slave_data cpsw_slaves[] = {
> 	{
> 		.slave_reg_ofs	= 0x208,
> 		.sliver_reg_ofs	= 0xd80,
> 		.phy_id		= 0,
> 	},
> 	{
> 		.slave_reg_ofs	= 0x308,
> 		.sliver_reg_ofs	= 0xdc0,
> 		.phy_id		= 1,
> 	},
> };
>
> ... to ...
>
> static struct cpsw_slave_data cpsw_slaves[] = {
> 	{
> 		.slave_reg_ofs	= 0x308,
> 		.sliver_reg_ofs	= 0xdc0,
> 		.phy_id		= 1,
> 	},
> 	{
> 		.slave_reg_ofs	= 0x208,
> 		.sliver_reg_ofs	= 0xd80,
> 		.phy_id		= 0,
> 	},
> };
>
> ... assuming that eth0 would now be ignored (as only 1 slave is configured).
>
> But (eg) dhcp still only responds on eth0 !?!
>
> What else do I have to change ?

Have you try "setenv ethprime eth1"? Then reset board, and do dhcp.

Best Regards,
Bo Shen

>
> Cheers
> Mark J.
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

  reply	other threads:[~2013-04-18 15:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-12 10:32 [U-Boot] How do I use AM335x eth1 rather than eth0 ? Mark Jackson
2013-04-18 15:49 ` Bo Shen [this message]
2013-04-18 17:23   ` Wolfgang Denk
2013-04-20  1:03     ` Bo Shen
  -- strict thread matches above, loose matches on Subject: below --
2013-04-12 10:56 Mark Jackson
2013-04-12 16:05 ` Tom Rini
2013-04-12 19:20   ` Mark Jackson

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=517015FC.20007@gmail.com \
    --to=voice.shen@gmail.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