AnsweredAssumed Answered

Explant AX88796B net driver on MPC8313ERDB board

Question asked by Kan bin on Apr 23, 2013
Latest reply on Apr 24, 2013 by Kan bin

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

#endifendi

 

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!

       

 

Outcomes