public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Paolo Broggini <pbroggini@softool.ch>
To: u-boot@lists.denx.de
Subject: R: [U-Boot-Users] MAC address question...
Date: Thu, 26 Aug 2004 11:47:59 +0200	[thread overview]
Message-ID: <NDBBJGGCBKABIDHFAMBIOEOACDAA.pbroggini@softool.ch> (raw)
In-Reply-To: <6.1.1.1.0.20040826005414.01dd2158@wheresmymailserver.com>


> -----Messaggio originale-----
> Da: u-boot-users-admin at lists.sourceforge.net
> [mailto:u-boot-users-admin at lists.sourceforge.net]Per conto di Getz,
> Robin
> Inviato: giovedi, 26. agosto 2004 10:30
> A: U-Boot-Users at lists.sourceforge.net
> Oggetto: [U-Boot-Users] MAC address question...
>
>
> I have a board with a SMC91111 on it, with an EEPROM connected to it, to
> store the MAC address. This allows users of the board to re-flash
> the main
> flash with U-boot as many times as they want without worrying about
> managing the MAC address in the main flash.

You can use 'ethaddr' env. variable. By keeping the environment variables in
a
separate flash sector you can re-flash the U-Boot sectors without worries.
That's actually what I do on our board, which doesn't have an EEPROM
connected to
the LAN91C111.

>
> However, changing the EEPROM MAC address is troublesome, because the
> /drivers/smc91111.c doesn't seem to support programming the attached
> EEPROM. (you can get_rom_mac, but not set_rom_mac).
>
> Before I started adding things, does anyone else have the same issue?
>
> What I was thinking of doing was defining some reserved memory
> locations of
> the processor as FLASH, and handle this in /board/specific/flash.c - a
> flash write to 6 memory locations will actually set the MAC
> address in the
> EEPROM attached to the LAN91111.

...wouldn't be better to implement a set_rom_mac() ?

>
> This solution is OK - it only effects my board, the downside is that if
> this is a problem other face, it doesn't help anyone else.
>
> Thoughts?
>
> Thanks
> -Robin
>
>
Regards,
-Paolo Broggini

>
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>
>

  parent reply	other threads:[~2004-08-26  9:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-26  8:30 [U-Boot-Users] MAC address question Getz, Robin
2004-08-26  9:17 ` Ladislav Michl
2004-08-26 15:05   ` Wolfgang Denk
2004-08-26 16:02     ` Ladislav Michl
2004-08-26  9:47 ` Paolo Broggini [this message]
2004-08-26 15:06   ` R: " Wolfgang Denk
2004-08-26 15:03 ` Wolfgang Denk
2004-08-26 16:13   ` Ladislav Michl
2004-08-26 16:44     ` Wolfgang Denk
2004-08-26 17:10       ` Ladislav Michl
2004-08-26 19:22         ` Wolfgang Denk
2004-08-26 20:54           ` Ladislav Michl
2004-08-26 21:58             ` Wolfgang Denk
2004-08-26 22:40               ` Ladislav Michl

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=NDBBJGGCBKABIDHFAMBIOEOACDAA.pbroggini@softool.ch \
    --to=pbroggini@softool.ch \
    --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