Skip to contentSkip to conversation

U-Boot Configuration and Endianess

U-Boot-Users T Michael Turney 2 participants 2 messages Aug 27, 2004

lore
Share & tools
lore
#0 lore raw

Folks,
I am currently porting u-boot 1.1.1 to an ARM920T core with the ELDK 2.1 tools.

Other than the readme file and sample board configuration files, is there a comprehensive list of the
CONFIG_
CFG_
settings?

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 using environment variables at this time, but have filled the bdinfo structure with IP address and MAC address.

The NetCopy macros/functions don't seem to use the ntohX and htonX macros, so I'm wondering at what point the conversion occurs in the internal data structures?

Cheers,
T.mike

Tools Made Tough
Open Source Ambassador
(c) 760.415.8792
www.recipes4linux.com

#1 lore raw
Quoted 6 lines · In message <[email protected]> you wrote:

Other than the readme file and sample board configuration files, is there a comprehensive list of the
CONFIG_
CFG_
settings?

No.

Quoted 3 lines

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).

Quoted 3 lines

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.

Quoted 2 lines

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.

Quoted 1 line

the conversion occurs in the internal data structures?

THe IP address is already stored in NWBO.

Best regards,

Wolfgang Denk

Signature · 4 lines
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]