public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] problem with 'ethaddr' env. variable in, DataFlash, at91rm9200dk
@ 2004-08-16  4:53 Aras Vaichas
  2004-08-16  7:45 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: Aras Vaichas @ 2004-08-16  4:53 UTC (permalink / raw)
  To: u-boot

My problem is that the network functions do not seem to pick up the environment 
variables "ethaddr" and "ipaddr".

e.g.

Uboot> setenv ethaddr 12:34:56:78:99:aa
Uboot> dhcp
*** ERROR: `ethaddr' not set
Uboot> echo $(ethaddr)
12:34:56:78:99:aa
Uboot> printenv
stdin=serial
stdout=serial
stderr=serial
ethaddr=12:34:56:78:99:aa

Environment size: 67/8188 bytes
Uboot> dhcp
*** ERROR: `ethaddr' not set
Uboot>
	
I've been going through the u-boot source code looking for where this problem 
could be occurring, but I can't find anything.

I recently setup my at91rm9200dk to boot from DataFlash as per the Atmel 
application note: "Booting u-boot from Atmel SPI Serial DataFlash on the 
AT91RM9200-DK Board"

I used u-boot-1.1.1 instead of patching u-boot-1.0.0.

I've set the environment configuration values in at91rm9200dk.h
#define CFG_ENV_IS_IN_DATAFLASH
#define CONFIG_ENV_OVERWRITE

The system boots from the DataFlash OK, and then starts up u-boot-1.1.1
e.g.

-I- AT91F_LowLevelInit(): Debug channel initialized
ESC[2J
ATMEL LOADER VER 1.01 May 03 2004 14:54:39
*--------------------------------------*
DataFlash:AT45DB642
Nb pages:   8192
Page Size:   1056
Size= 8650752 bytes
Logical address: 0xC0000000
*--------------------------------------*
1: Download Dataflash [addr]
2: Read Dataflash [addr]
3: Start U-BOOT [C0008000 => 21F00000]
*--------------------------------------*
Enter: Load U-BOOT from dataflash[c0008000] to SDRAM[21f00000]
Set PLLA to 180Mhz and Master clock to 60Mhz and start U-BOOT?

U-Boot 1.1.1 (Aug 16 2004 - 12:34:47)
U-Boot code: 21F00000 -> 21F14A4C  BSS: -> 21F18EF0
RAM Configuration:
Bank #0: 00000000  0 kB
Atmel: AT49BV1614A (16Mbit)
...
Flash:  2 MB
DataFlash:AT45DB642
Nb pages:   8192
Page Size:   1056
Size= 8650752 bytes
Logical address: 0xC0000000
Area 0: C0000000 to C0007FFF (RO)
Area 1: C0008000 to C001FFFF (RO)
Area 2: C0020000 to C0027FFF
Area 3: C0028000 to C083FFFF
In:    serial
Out:   serial
Err:   serial


Any help would be good, thank you!

regards,

Aras

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

end of thread, other threads:[~2004-08-17  7:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-16  4:53 [U-Boot-Users] problem with 'ethaddr' env. variable in, DataFlash, at91rm9200dk Aras Vaichas
2004-08-16  7:45 ` Wolfgang Denk
2004-08-17  7:13   ` Aras Vaichas

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