From: Horst Gall Date: Tue, 23 Mar 2010 12:03:47 +0100 Subject: [U-Boot] Environmentvar. "ipaddr" - microblaze References: <004d01cac61e$f811b8f0$c801a8c0@xeon> <4BA76EA9.8000400@monstr.eu> Message-ID: <008b01caca78$85c2c1a0$c801a8c0@xeon> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > Horst: Give me step-by-step manual how to reach that fault. Hi Michal, in 'include/configs/microblaze_generic.h' is ipaddr defined: #define CONFIG_IPADDR 192.168.0.3 Now run uboot: setenv ipaddr 192.168.0.1 saveenv Reboot the board printenv (tells ipaddr 192.168.0.1) bdinfo (tells ipaddr 192.168.0.3) tftpboot also use ipaddr 192.168.0.3 On a ppc-based board bdinfo tells 192.168.0.1 So I found the difference in the order of the two functions in lib_microblaze/board.c board_init(): env_relocate() (ppc-order witch works) getenv_IPaddr() instead of: getenv_IPaddr() (microblaze-order) env_relocate() Best regards Horst