Ethernet in u-boot 2013.07 broken?

Hi!

Using BBB

I’ve compiled u-boot using instructions from here:
http://www.eewiki.net/display/linuxonarm/BeagleBone+Black

ver=U-Boot 2013.07-dirty (Aug 06 2013 - 10:26:38)

Environment size: 4313/131068 bytes
U-Boot# ping 192.168.1.1
link up on port 0, speed 100, full duplex
*** ERROR: ipaddr' not set ping failed; host 192.168.1.1 is not alive U-Boot# setenv ethaddr 00:11:22:22:22:11 U-Boot# ping 192.168.1.1 link up on port 0, speed 100, full duplex *** ERROR: ipaddr’ not set
ping failed; host 192.168.1.1 is not alive
U-Boot# setenv ipaddr 192.168.1.222
U-Boot# ping 192.168.1.1
link up on port 0, speed 100, full duplex
Using cpsw device
ping failed; host 192.168.1.1 is not alive
U-Boot#

However u-boot from the latest flasher from CircuitCO works flawless and ping works as expected.

What’s wrong with u-boot 2013.07?

Hi!

Using BBB

I’ve compiled u-boot using instructions from here:
http://www.eewiki.net/display/linuxonarm/BeagleBone+Black

ver=U-Boot 2013.07-dirty (Aug 06 2013 - 10:26:38)

Environment size: 4313/131068 bytes
U-Boot# ping 192.168.1.1
link up on port 0, speed 100, full duplex
*** ERROR: `ipaddr’ not set
ping failed; host 192.168.1.1 is not alive
U-Boot# setenv ethaddr 00:11:22:22:22:11

This likely isn’t going to work as I don’t believe we have the plumbing done in U-Boot to override ethaddr from the valid one we find and use.

U-Boot# ping 192.168.1.1
link up on port 0, speed 100, full duplex
*** ERROR: `ipaddr’ not set
ping failed; host 192.168.1.1 is not alive
U-Boot# setenv ipaddr 192.168.1.222
U-Boot# ping 192.168.1.1
link up on port 0, speed 100, full duplex
Using cpsw device
ping failed; host 192.168.1.1 is not alive
U-Boot#

However u-boot from the latest flasher from CircuitCO works flawless and ping works as expected.

What’s wrong with u-boot 2013.07?

Nothing as far as we know. If you don’t have a dhcp server on your network then yes, you need to set ipaddr by hand. If you do have a dhcp server, and this is what the CCO flasher is likely doing, run ‘dhcp’ to get your networking setup. If you don’t want U-Boot to load anything that the dhcp server says, do ‘setenv autoload no’ before doing ‘dhcp’.