My cpu is netx500,My system is linux2.6.23 ,and uboot is u-boot.1.2.0,I want to use the two ethernet to send packet to each other,it means that----eth0 send packet to eth1,then eth1 send packet to eth0,I found that it only support one ethernet in uboot,so I add new eth1_send(),eth1_rx() function, they just the same to eth_send(),and eth_rx() in the netx_eth.c ,and I add 2 line in the function---- int eth_init(bd_t * bd)
miiphy_wait_aneg(0x1d);
miiphy_print_status(0x1d);
I want it to support the second phys of the ethernet,and it show two line :Link is up,100M Full.Howerver I can not receive packet when I send a ARP packet from eth0 to eth1,It show that PFIFO_REG( PFIFO_FILL_LEVEL(IND_FIFO_PORT_LO(1))) is zero .means that there is no data received.
what is wrong ? thank you
Can the two ethernet hardware work simultaneously?
Andreas Jacob
Hilscher Gesellschaft fuer Systemautomation mbH
Hi Wangl,
why you need two Ethernet port in U-Boot?
I would think that the two channels are interesting inside of your application?!
Regards
AJ