netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* e1000: operation without eeprom?
@ 2006-08-28  0:50 Lennert Buytenhek
  2006-08-28 14:20 ` Brent Cook
  0 siblings, 1 reply; 2+ messages in thread
From: Lennert Buytenhek @ 2006-08-28  0:50 UTC (permalink / raw)
  To: netdev; +Cc: tbm, yt_lee

Hi,

There are a couple of ARM boards out there with on-board e1000s but
without any kind of eeprom.  The boot loader and kernel board support
code have all the info necessary to configure the e1000, but the e1000
driver bombs out because there isn't an eeprom connected -- how are
we supposed to deal with this situation?


cheers,
Lennert

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: e1000: operation without eeprom?
  2006-08-28  0:50 e1000: operation without eeprom? Lennert Buytenhek
@ 2006-08-28 14:20 ` Brent Cook
  0 siblings, 0 replies; 2+ messages in thread
From: Brent Cook @ 2006-08-28 14:20 UTC (permalink / raw)
  To: Lennert Buytenhek; +Cc: netdev, tbm, yt_lee

On Sunday 27 August 2006 19:50, Lennert Buytenhek wrote:
> Hi,
>
> There are a couple of ARM boards out there with on-board e1000s but
> without any kind of eeprom.  The boot loader and kernel board support
> code have all the info necessary to configure the e1000, but the e1000
> driver bombs out because there isn't an eeprom connected -- how are
> we supposed to deal with this situation?
>

u-boot, which uses modified versions of the linux e1000 drivers, handles this 
special cases with a bunch of platform-specific #ifdefs

http://www.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=blob;h=927acbb26737a20e02962f67047e192545a870a1;hb=16850919ff8666f20d047cb83b4ee77581336515;f=drivers/e1000.c

I fear that working in general across the e1000 product line without an eeprom 
might not work so well. We've had 82545's work OK without and eeprom, but the 
82572 did not work so well. Some chips appear to work OK with pure software 
config, whereas others might need some special setup parameters that would 
work best at chip power-up via the eeprom.

As a general solution (with fewer ifdefs than the u-boot solution), it might 
be nice to have a read_eeprom_virtual(..) method in the driver where one 
could supply a binary blob to the driver instead of having a real eeprom. All 
of the driver code that relies on the eeprom could work like normal. I've 
been toying with this under u-boot for a custom ARM board without an eeprom 
too, though it does have the side-effect of bloating the u-boot driver a bit 
with the fake eeprom data that's really useless after boot (it's mostly 
0xFFFFFFFF's though, so you could totally optimize it.)

 - Brent

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-08-28 14:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-28  0:50 e1000: operation without eeprom? Lennert Buytenhek
2006-08-28 14:20 ` Brent Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).