[U-Boot-Users] U-Boot Configuration and Endianess

Wolfgang Denk wd at denx.de
Fri Aug 27 21:09:42 CEST 2004


In message <GEEKLLHMFHLAJOBEEELHGEBNCLAA.tmike at recipes4linux.com> you wrote:
> 
> Other than the readme file and sample board configuration
> files, is there a comprehensive list of the
> 	CONFIG_
> 	CFG_
> settings?

No.

> We are testing the ping command prior to attempting
> downloads and the IP header fields appear to be in
> Little Endian rather than Big Endian.  I am not

Works fine here on some ARM920T systems (and other big  endian  [like
PowerPC] and little endian [like MIPS] systems).

> using environment variables at this time, but
> have filled the bdinfo structure with IP address
> and MAC address.

This is probably your problem.

bd->bi_ip_addr is already in network byte order.

> The NetCopy macros/functions don't seem to use the
> ntohX and htonX macros, so I'm wondering at what point

No, because all relevant data to be copied is already in network byte
order.

> the conversion occurs in the internal data structures?

THe IP address is already stored in NWBO.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Man did not weave the web of life; he  is  merely  a  strand  in  it.
Whatever he does to the web, he does to himself.     - Seattle [1854]




More information about the U-Boot mailing list