2008-05-20 04:04:47     Incase network function into uboot for bf533 ezkit, but failed

Document created by Aaronwu Employee on Sep 18, 2013
Version 1Show Document
  • View in full screen mode

2008-05-20 04:04:47     Incase network function into uboot for bf533 ezkit, but failed

maggie xu (CHINA)

Message: 56030   

 

Hi,

 

I download uboot 1.1.6 source code for bf533 ezkit, and  want to increase network function into it.Our board network control chip is DM9000E.I modified the content as following:

 

include\configs\bf533-ezkit.h

 

/*

 

* #define CONFIG_DRIVER_SMC91111 1

* #define CONFIG_SMC91111_BASE 0x20310300

*/

 

/* add DM9000 driver */

#define CONFIG_DRIVER_DM9000  1

#define CONFIG_DM9000_BASE  0x20320000

#define DM9000_IO   CONFIG_DM9000_BASE

#define DM9000_DATA   (CONFIG_DM9000_BASE+0x10)

#define CONFIG_DM9000_USE_16BIT

#define CONFIG_ETHADDR 08:00:3e:26:0a:5b

#define CONFIG_NETMASK 255.255.255.0

#define CONFIG_IPADDR 10.0.0.135

#define CONFIG_SERVERIP 10.0.0.131

 

lib_blackfin\board.c

 

/*

 

#ifdef CONFIG_DRIVER_SMC91111

#ifdef SHARED_RESOURCES

 

swap_to(ETHERNET);

#endif

if ((SMC_inw(BANK_SELECT) & UPPER_BYTE_MASK) != SMC_IDENT) {

  printf("ERROR: Can't find SMC91111 at address %x\n", SMC_BASE_ADDRESS);

} else {

  printf("Net:   SMC91111 at 0x%08X\n", SMC_BASE_ADDRESS);

}

 

#ifdef SHARED_RESOURCES

swap_to(FLASH);

#endif

#endif

*/

 

#ifdef CONFIG_DRIVER_DM9000

#ifdef SHARED_RESOURCES

/* Switch to Ethernet */

swap_to(ETHERNET);

#endif

 

  printf("Net:   DM90000 at 0x%08X\n", DM_BASE_ADDRESS);

 

 

#ifdef SHARED_RESOURCES

swap_to(FLASH);

#endif

#endif

 

 

the red is increased, the black is shielded.

 

ipaddr = 10.0.0.135, serverip = 10.0.0.131, mask = 255.255.255.0

 

pc and bf533 cross link

 

the antivirus is closed.

 

after uboot running, DM9000 ID, MAC is OK!

 

after "ping 10.0.0.131", the result is : ping failed, host 10.0.0.131 is not alive

 

Thanks!

 

 

QuoteReplyEditDelete

 

 

2008-05-20 19:04:09     Re: Incase network function into uboot for bf533 ezkit, but failed

Mike Frysinger (UNITED STATES)

Message: 56069   

 

you're using an old release.  make sure you're using 2008R1.

Attachments

    Outcomes