public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Ethernet ports
Date: Wed, 19 Sep 2007 15:45:07 +0200	[thread overview]
Message-ID: <m2d4we6a70.fsf@ohwell.denx.de> (raw)
In-Reply-To: <CE54F2377C0FB8439A290BF5A88BF13D066A1F78@CHN-HCLT-EVS01.HCLT.CORP.HCL.IN> (Yasothabalan Ramaswamy-TLS's message of "Wed\, 19 Sep 2007 12\:37\:48 +0530")

Hi Yasotha,

> In my Board I have two Ethernet ports. These two Ethernet ports must
> be given two different IP addresses. Through U-Boot code how can I
> set two different IP addresses for these ports?
>
> Where exactly I have to modify in the U-Boot code to achieve this?

We do this already, so you don;t need to change common code.  Inside
U-Boot we only use one ethernet port at a time, so what we do is if we
have multiple ethernet ports that we define the "active" device
through the "ethact" U-Boot environment variable.  Then the usual
environment variables like ipaddr are used for the ethernet commands.

Ah and I nearly forgot, the MACs have to be set through "ethaddr" and
"eth1addr" (,...)

For how to do this in the code you can look at the ocotea (4 ports) or
sequoia (2 ports) code.

Best wishes
  Detlev

-- 
Indeed, the author firmly believes that the best serious work is also
good fun.   We needn't apologize if we enjoy doing research.
                                        -- Donald Knuth
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de

  reply	other threads:[~2007-09-19 13:45 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-18 11:41 [U-Boot-Users] Ethernet port Yasothabalan
2007-09-18 21:19 ` urwithsughosh at gmail.com
2007-09-18 12:19   ` Yasothabalan
2007-09-18 22:48     ` urwithsughosh at gmail.com
2007-09-18 13:55       ` Yasothabalan
     [not found]         ` <CE54F2377C0FB8439A290BF5A88BF13D066727E0@CHN-HCLT-EVS01.HCLT.CORP.HCL .IN>
2007-09-18 14:17           ` Ramasamy C
2007-09-18 19:13             ` Wolfgang Denk
2007-09-18 19:09   ` Wolfgang Denk
2007-09-18 20:57     ` Ulf Samuelsson
2007-09-18 22:11       ` Wolfgang Denk
2007-09-18 22:52         ` Ulf Samuelsson
2007-09-19  7:07           ` [U-Boot-Users] Ethernet ports Yasothabalan
2007-09-19 13:45             ` Detlev Zundel [this message]
2007-09-19 18:07             ` Wolfgang Denk
2007-09-21  0:02           ` [U-Boot-Users] At91rm9200 buildroot Leonid

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=m2d4we6a70.fsf@ohwell.denx.de \
    --to=dzu@denx.de \
    --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