* [U-Boot-Users] Testing INCA-IP Ethernet module in Loopback mode using U-boot
@ 2007-07-19 9:16 Anamik Rao
2007-07-19 14:35 ` Ben Warren
0 siblings, 1 reply; 2+ messages in thread
From: Anamik Rao @ 2007-07-19 9:16 UTC (permalink / raw)
To: 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
--
View this message in context: http://www.nabble.com/Testing-INCA-IP-Ethernet-module-in-Loopback-mode-using-U-boot-tf4109125.html#a11685073
Sent from the Uboot - Users mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot-Users] Testing INCA-IP Ethernet module in Loopback mode using U-boot
2007-07-19 9:16 [U-Boot-Users] Testing INCA-IP Ethernet module in Loopback mode using U-boot Anamik Rao
@ 2007-07-19 14:35 ` Ben Warren
0 siblings, 0 replies; 2+ messages in thread
From: Ben Warren @ 2007-07-19 14:35 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-19 14:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-19 9:16 [U-Boot-Users] Testing INCA-IP Ethernet module in Loopback mode using U-boot Anamik Rao
2007-07-19 14:35 ` Ben Warren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox