[U-Boot-Users] Testing INCA-IP Ethernet module in Loopback mode using U-boot

Hi,
I am trying to develop an stand alone application in u-boot, to test the loopback operation of INCA-IP ethernet module. For -initializing the ethernet module, -sending data and receiving data from the ethernet module, -halting the ethernet module
the u-boot code is used .
I have modified the following bits in different registers,
1.Enabled the state machine of the Ethernet Physical Access controller in MDIO_CFG register. 2.Disabled the initialization of EPHY register. 3.Enabled the auto-negotiation in PHY_BCR of LAN port. 4.Disabled the reset in PHY_BCR of LAN port. 5.Selected the loopback option in the PHY_BCR of LAN port. 6.Any packet coming from the CPU port is directly forwarded to the LAN port. This is done by setting the appropriate bits in the CPU_PCTL register. 7.LED's are used to determine the status of the loopback link. 8.LED multiplexer is enabled in the TSF_CONF register. 9.The LED_CONF register is set such that ethernet module shows us the link status through the LED's. 10.The LED #1 is configured to flash on recieving of data.
With all these settings I am trying to send a data packet and recieve it again.However, we could transmit the packet from the CPU port to the LAN port.But, we are not able to receive this packet in the "recieve module" of the LAN port.
If anyone has performed a similar verification earlier, please help me out.
Adarsh

Adarsh,
On Thu, 2007-07-19 at 02:16 -0700, Anamik Rao wrote:
Hi,
I am trying to develop an stand alone application in u-boot, to test the loopback operation of INCA-IP ethernet module.
I have nothing specific for your chip, but a suggestion for an alternative approach.
In case you're not aware, code was added to U-boot a few months ago in:
commit 83853178bd36bca6f0f8f1331476620c84a587fc
for responding to ICMP requests. If you put your PHY in loopback, you can use the 'ping' command to generate traffic without building a throwaway stand-alone application. Of course you'll need to format your code as a U-boot driver, but it's not that hard, people are here to help and eventually you'll need to do it anyway.
Just a thought...
regards, Ben
participants (2)
-
Anamik Rao
-
Ben Warren