From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Date: Tue, 23 Mar 2010 14:41:27 +0100 Subject: [U-Boot] Environmentvar. "ipaddr" - microblaze In-Reply-To: <008b01caca78$85c2c1a0$c801a8c0@xeon> References: <004d01cac61e$f811b8f0$c801a8c0@xeon> <4BA76EA9.8000400@monstr.eu> <008b01caca78$85c2c1a0$c801a8c0@xeon> Message-ID: <4BA8C507.9030501@monstr.eu> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Horst Gall wrote: >> 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() I got it. Dentlev described what is going on. Please create proper patch and send it to mailing list with cc to me. Thanks, Michal > > > Best regards > Horst > -- Michal Simek, Ing. (M.Eng) w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/ Microblaze U-BOOT custodian