[U-Boot] Environmentvar. "ipaddr" - microblaze

Horst Gall hg at gall-edv.com
Tue Mar 23 12:03:47 CET 2010


> 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



More information about the U-Boot mailing list