diff options
author | wdenk <wdenk> | 2004-03-14 00:07:33 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-03-14 00:07:33 +0000 |
commit | 0e6d798cb313580acd06ba01626687a557c5159f (patch) | |
tree | b7b0a635d29fa573b0995c1c5eda0ba33d41810e /net | |
parent | c40b29568232761e33400e58be86b15a167d3422 (diff) | |
download | u-boot-0e6d798cb313580acd06ba01626687a557c5159f.tar.gz |
* Patch by Travis Sawyer, 01 Mar 2004:
Ocotea:
- Add IBM PPC440GX Ref Platform support (Ocotea)
Original code by Paul Reynolds <PaulReynolds@lhsolutions.com>
Adapted to U-Boot and 440GX port
440gx_enet.c:
- Add gracious handling of all Ethernet Pin Selections for 440GX
- Add RGMII selection for Cicada CIS8201 Gigabit PHY
ppc440.h:
- Add needed bit definitions
- Fix formatting
* Patch by Carl Riechers, 1 Mar 2004:
Add PPC440GX prbdv0 divider to fix memory clock calculation.
* Patch by Stephan Linz, 27 Feb 2004
- avoid problems for targets without NFS download support
Diffstat (limited to 'net')
-rw-r--r-- | net/bootp.c | 4 | ||||
-rw-r--r-- | net/rarp.c | 21 |
2 files changed, 18 insertions, 7 deletions
diff --git a/net/bootp.c b/net/bootp.c index f5adce4f5e..b760b885b2 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -339,12 +339,14 @@ BootpHandler(uchar * pkt, unsigned dest, unsigned src, unsigned len) */ NetState = NETLOOP_SUCCESS; return; +#if (CONFIG_COMMANDS & CFG_CMD_NFS) } else if (strcmp(s, "NFS") == 0) { /* * Use NFS to load the bootfile. */ NfsStart(); return; +#endif } } @@ -893,12 +895,14 @@ DhcpHandler(uchar * pkt, unsigned dest, unsigned src, unsigned len) */ NetState = NETLOOP_SUCCESS; return; +#if (CONFIG_COMMANDS & CFG_CMD_NFS) } else if (strcmp(s, "NFS") == 0) { /* * Use NFS to load the bootfile. */ NfsStart(); return; +#endif } } TftpStart(); diff --git a/net/rarp.c b/net/rarp.c index b8cc542c13..5f18d84834 100644 --- a/net/rarp.c +++ b/net/rarp.c @@ -51,13 +51,20 @@ RarpHandler(uchar * dummi0, unsigned dummi1, unsigned dummi2, unsigned dummi3) #ifdef DEBUG printf("Got good RARP\n"); #endif - if (((s = getenv("autoload")) != NULL) && (*s == 'n')) { - NetState = NETLOOP_SUCCESS; - return; - } - else if ((s != NULL) && !strcmp(s, "NFS")) { - NfsStart(); - return; + if ((s = getenv("autoload")) != NULL) { + if (*s == 'n') { + /* + * Just use RARP to configure system; + * Do not use TFTP/NFS to to load the bootfile. + */ + NetState = NETLOOP_SUCCESS; + return; +#if (CONFIG_COMMANDS & CFG_CMD_NFS) + } else if ((s != NULL) && !strcmp(s, "NFS")) { + NfsStart(); + return; +#endif + } } TftpStart (); } |