Skip to contentSkip to conversation

Mac Address communication to Linux

U-Boot-Users Stage Iup - Fabrice & Frederic 2 participants 4 messages Jul 19, 2005

lore
Share & tools
lore
#0 lore raw

Hi all

i'm wondering something, i don't understand how can U-Boot communicate to an Embedded Linux.
Can someone explain it to me please?

Signature · 9 lines
With regards

Fr?d?ric Kwiatkowski
--
IFOTEC
T?l : 04 76 67 53 53
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20050719/d44683c4/attachment.htm 
#1 lore raw
Quoted 4 lines · In message <[email protected]> you wrote:

i'm wondering something, i don't understand how can U-Boot communicate to an Embedded Linux.
Can someone explain it to me please?

Which architecture are talking about? And what exactly is your problem?

U-Boot passes arguments in registers; some of these registers may contain pointers to things like the board info data (struct bd_info) or the kernel commandline or a flattened OF device tree or ...

Best regards,

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
NOTE: The  Most  Fundamental  Particles  in  This  Product  Are  Held
Together  by  a  "Gluing" Force About Which Little is Currently Known
and Whose Adhesive Power Can Therefore Not Be Permanently Guaranteed.
#2 lore raw

Ok, i was just wondering if Linux try to access to the environnment variable "ethaddr" to get it's value (i've forget one or two words in my question and i ask you to excuse me for that)

but to access to ethaddr, someone say me that i can modify the Linux driver to catch the ethaddr by a custom option in my bootargs

2005/7/19, Wolfgang Denk <[email protected]>:

Quoted 26 lines
Quoted 2 lines · In message <[email protected]> you wrote:

i'm wondering something, i don't understand how can U-Boot communicate

to an

Quoted 2 lines

Embedded Linux.
Can someone explain it to me please?

Which architecture are talking about? And what exactly is your problem?

U-Boot passes arguments in registers; some of these registers may contain pointers to things like the board info data (struct bd_info) or the kernel commandline or a flattened OF device tree or ...

Best regards,

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
NOTE: The Most Fundamental Particles in This Product Are Held Together by a "Gluing" Force About Which Little is Currently Known and Whose Adhesive Power Can Therefore Not Be Permanently Guaranteed.

Signature · 9 lines
Cordialement

Fabrice & Fr?d?ric
--
IFOTEC
T?l : 04 76 67 53 53
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20050719/c6444f73/attachment.htm 
#3 lore raw
Quoted 4 lines · In message <[email protected]> you wrote:

Ok, i was just wondering if Linux try to access to the environnment variable "ethaddr" to get it's value (i've forget one or two words in my question and i ask you to excuse me for that)

This is obviously a question of which ethernet driver you are using. On PowerPC the current standard is to pass the MAC addres(es) as part of the bd_info structure; other architectures have different ways, or the one who implements the driver invents one.

Of course it is also possible to access the U-Boot environment for this purpose, but to me this seems to be overkill.

Quoted 2 lines

but to access to ethaddr, someone say me that i can modify the Linux driver to catch the ethaddr by a custom option in my bootargs

Yes, this is an option, too.

Quoted 3 lines

Content-Type: text/html; charset?O-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

And please stop posting HTML.

Post plain text only.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Save yourself!  Reboot in 5 seconds!