hi:
I have desiged a new board which was based on the MPC8313ERDB .
I changed the Read&Write Buffer with two AX88796B (ps:100M ,Network Interface Card ) at baseaddr fa000100 and fa000180.
I add ax88796b.c and ax88796b.h to the content /ltib/drivers/
modifid the MPC8313ERDB.h(/ltib/include/configs/) file as follow :
#if 1
#define CONFIG_DRIVER_AX88796B 1
#define AX88796B_BASE 0xfa000100
#define CONFIG_NET_MULTI 1
#endiftrue
modified the eth.c (/ltib/net/)as follow:
add
#if defined(CONFIG_DRIVER_AX88796B)
ax88796b_initialize (bis);
#endif
extern int ax88796b_initialize (bd_t*);
Then I use the LTIB to compile the u-boot with the cmd:
./ltib -m scbuild -p u-boot
an error occurs :
net/libnet.a(eth.o): In function `eth_initialize':
/home/kanbin/tool/ltib-mpc8313erdb-20081222/rpm/BUILD/u-boot-1.3.0/net/eth.c:265: undefined reference to `ax88796b_initialize'
make: *** [u-boot] Error 1
error: Bad exit status from /home/kanbin/tool/ltib-mpc8313erdb-20081222/tmp/rpm-tmp.55381 (%build)
I am really confused and . who can help me?
Thank you!
Solved! Go to Solution.
I have solved the problem !
delete the follow lines :
mpc8313erdb.h -----》 #define CONFIG_NET_MULTI 1
ax88796b.c -----》
#if (CONFIG_COMMANDS & CFG_CMD_NET) && defined(CONFIG_NET_MULTI
#endif /* COMMANDS & CFG_NET *
I have solved the problem !
delete the follow lines :
mpc8313erdb.h -----》 #define CONFIG_NET_MULTI 1
ax88796b.c -----》
#if (CONFIG_COMMANDS & CFG_CMD_NET) && defined(CONFIG_NET_MULTI
#endif /* COMMANDS & CFG_NET *