public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] EEPROM content and multiple NIC
@ 2005-04-20 15:13 Frank
  2005-04-21  8:44 ` Daniel Ann
  0 siblings, 1 reply; 9+ messages in thread
From: Frank @ 2005-04-20 15:13 UTC (permalink / raw)
  To: u-boot

--- Wolfgang Denk <wd@denx.de> wrote:
> In message
> <20050420144405.70123.qmail@web32203.mail.mud.yahoo.com> you
> wrote:
> > 
> > > > d008 == 1101000000001000
> > > > 100b == 0001000000001011
> ...
> > Looks like an endian issue to me. Just do a byte swap...
> 
> No, not at all. Endianess affects the BYTE order, i. e. the 
> sequence
> of bytes, but not the positions of the bits in a byte.
> 
> Best regards,
Oops, you're right, I meant the bits appear to be reversed. Like
they were shifted in bit 0 first and the other bit 31 first...
> 
> 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
> What the gods would destroy they first submit to  an  IEEE 
> standards
> committee.
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: New Crystal Reports XI.
> Version 11 adds new functionality designed to reduce time
> involved in
> creating, integrating, and deploying reporting solutions. Free
> runtime info,
> new features, or free trial, at:
> http://www.businessobjects.com/devxi/728
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [U-Boot-Users] EEPROM content and multiple NIC
@ 2005-04-20 14:44 Frank
  2005-04-20 15:08 ` Wolfgang Denk
  0 siblings, 1 reply; 9+ messages in thread
From: Frank @ 2005-04-20 14:44 UTC (permalink / raw)
  To: u-boot

--- Daniel Ann <ktdann@gmail.com> wrote:
> On 4/20/05, Mark Rakes <mrakes@mac.com> wrote:
> > d008 == 1101000000001000
> > 100b == 0001000000001011
> > 
> > It's been a long, long time since I touched/looked at this
> code (or the
> > docs!), so don't ask me why this is like it is, but, there
> you have
> > it...
> 
> Hahahaha... This is so funny. Its amazing how simple one can
> get if
> you just know why.
> 
Looks like an endian issue to me. Just do a byte swap...
> Thanks mark.
> 
> -- 
> Daniel
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: New Crystal Reports XI.
> Version 11 adds new functionality designed to reduce time
> involved in
> creating, integrating, and deploying reporting solutions. Free
> runtime info,
> new features, or free trial, at:
> http://www.businessobjects.com/devxi/728
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [U-Boot-Users] EEPROM content and multiple NIC
@ 2005-04-20  5:24 Daniel Ann
  2005-04-20  6:07 ` Mark Rakes
  0 siblings, 1 reply; 9+ messages in thread
From: Daniel Ann @ 2005-04-20  5:24 UTC (permalink / raw)
  To: u-boot

I'm very curious about this output I'm getting,

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
        00  14  100b  0020  0200  ff
In:    serial
Out:   serial
Err:   serial
Net:   natsemi: EEPROM contents:
 d008 0001 0001 0001 0001 0001 0001 0001 0001 0001 1841 0001
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

As far as I know, NS83815 manual claims that d008 is a default value
for vendor ID. but pci_ids thinks 100b is National semiconductor's
vendor ID. Does anyone know why the difference ?

Also, board Im using has EEPROM to configure the NIC during reset. And
it contains 100b (shown on first line of output), however, print out
of EEPROM from natsemi.c shows d008 as written in the NS83815 manual.

I'm reading the natsemi.c but I just cant see why it would read some
other value. This is a cut out of the source from natsemi.c

-------------cut--------------
        printf("natsemi: EEPROM contents:\n");
        for (i = 0; i <= EEPROM_SIZE; i++) {
            short eedata = read_eeprom(dev, EECtrl, i);
            printf(" %04hx", eedata);
        }
----------end cut-----------

EEPROM_SIZE = 12 <- correct
EECtrl = 0x08 <- correct too

Another question is, I have several NIC. When I do tftpboot from first
card, works. It prints out,
Using dp83815#0 device

Next, when I remove the cable from first card, insert it to second
card, run the same command, it works, and prints out,
Using dp83815#0 device

I'm pretty sure it should print out "Using dp83815#1 device". Possibly
failed attempt from using dp83815#0 device. What do you all think?

I havent looked@it deeper enuf, but if I can get some shared
thoughts it would help me out great deal.


-- 
Daniel

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

end of thread, other threads:[~2005-04-22  5:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-20 15:13 [U-Boot-Users] EEPROM content and multiple NIC Frank
2005-04-21  8:44 ` Daniel Ann
2005-04-21 17:02   ` Kylo Ginsberg
2005-04-22  5:35     ` Daniel Ann
  -- strict thread matches above, loose matches on Subject: below --
2005-04-20 14:44 Frank
2005-04-20 15:08 ` Wolfgang Denk
2005-04-20  5:24 Daniel Ann
2005-04-20  6:07 ` Mark Rakes
2005-04-20  6:44   ` Daniel Ann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox