[U-Boot-Users] Are there any instructions how to compile U-boot for ixp425 target?

Stefan Roese
2007-06-13T09:35:43Z

On Wednesday 13 June 2007, Teemu Keskinarkaus wrote:
> I was able to get the U-boot to show the console right. I took the old
> modified version, compared to same unmodified version and made the
> changed to latest version. Sounds complicated. ;)

So what changes exactly were necessary? This might help others.

> Only thing that I was unable to get to work was network. I have applied
> the Intel microcode stuff version 2.3(should it be version 2.4 which is
> the latest?). I have also copied the network settings from ixpg425.h

You have to match at least the PHY addresses to your board. And regarding the
microcode version: The last version I tested successfully with, was version
2.0. So you might want to download this one and give it a try.

> I did some digging and noticed that default environment variable weren't
> set correctly. Network device were missing its MAC address.

Yes, that's correct. You have to configure the MAC addresses (ethaddr,
eth1addr) and reset the board for the changes to take effect.

> I did some
> quick'n'dirty tests and set the MAC address where it was checked and was
> able to continue the network init. Next error was:
>
> Error downloading firmware to NPE-B!
>
> FeatureCtrlDevice is 0 and Stepping is 1. Only first Ethernet port is
> configured in use (CONFIG_HAS_ETH1 is not set) although hardware has
> both ports.
>
> Any idea what might be wrong? Or is it related somehow to that
> environment problem? I have following defines in
> include/configs/ixpd425.h
>
> #define CONFIG_ETHADDR 18:20:3e:26:0a:5b
> #define CONFIG_ETH1ADDR 18:20:3e:26:0a:5c
> #define CONFIG_NETMASK 255.255.255.0
> #define CONFIG_IPADDR 192.168.11.201
> #define CONFIG_SERVERIP 192.168.11.10

Please only use such hardcoded MAC addresses for test purposes!

Are you PHY addresses setup correctly? Something like this:

/*
* Ethernet
*/
#define CONFIG_IXP4XX_NPE 1 /* include IXP4xx NPE support */
#define CONFIG_NET_MULTI 1
#define CONFIG_PHY_ADDR 16 /* NPE0 PHY address */
#define CONFIG_HAS_ETH1
#define CONFIG_PHY1_ADDR 18 /* NPE1 PHY address */
#define CONFIG_MII 1 /* MII PHY management */
#define CFG_RX_ETH_BUFFER 16 /* Number of ethernet rx buffers &
descriptors */

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================