public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS]  MCF5208 Ethernet not transmitting
@ 2008-12-04 15:49 Tarmo Kuuse
  2008-12-05 15:14 ` [ECOS] " Tarmo Kuuse
  0 siblings, 1 reply; 2+ messages in thread
From: Tarmo Kuuse @ 2008-12-04 15:49 UTC (permalink / raw)
  To: ecos-discuss

Hi!

Ethernet driver for ColdFire 5272/5282 was donated by eCosPro 2 weeks 
ago (/devs/eth/m68k/mcf52782). Recent Coldfires have same Ethernet 
controller as 5282. I had to make only trivial changes to create a 5208 
port.

I conneted the MCF5208 EVBe to a computer running a sniffer. I use a 
switch (to see activity LED blinking). Code is broadcasting a DHCP 
query. Driver outputs nice tracing messages so all command traffic 
to/from the FEC (Fast Ethernet Controller) is clearly visible.

Driver properly initializes and configures the FEC, puts it into "live" 
mode, fills the buffer with data and tells it to transmit.

The PHY link is active, but nothing is sent. It looks like the FEC 
completely ignores the TX request. It does not clear the TX request flag 
in TDAR or "Ready" flag in the BD. It does not set any error flags in 
EIR. Nothing happens - it looks like the controller is dead.

I have read the HW spec forwards and backwards. Everything seems OK. The 
driver knows all the details - register and flag positions, command 
sequence, buffer alignment, etc. Changelog shows it has been in 
development for 5 years so I don't really expect to find any trivial 
errors there.

I'm a bit stumped. I assume I missed something when porting, but the 
changes were rather simple. I only enabled buffer alignment and set up 
correct interrupts.

The debug output is at:
http://www.hot.ee/tarmospam/eth_trace_20081204.txt

Changes to source code are highlighted here:
http://www.hot.ee/tarmospam/diffreport.html

Any suggestions on how to get FEC up and running?

--
Kind regards,
Tarmo Kuuse


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ECOS]  Re: MCF5208 Ethernet not transmitting
  2008-12-04 15:49 [ECOS] MCF5208 Ethernet not transmitting Tarmo Kuuse
@ 2008-12-05 15:14 ` Tarmo Kuuse
  0 siblings, 0 replies; 2+ messages in thread
From: Tarmo Kuuse @ 2008-12-05 15:14 UTC (permalink / raw)
  To: ecos-discuss

Never mind. I did not configure GPIO for Ethernet :)

Now, if I could only convince the interrupt handlers to actually work...

--
Kind regards,
Tarmo Kuuse


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-12-05 13:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-04 15:49 [ECOS] MCF5208 Ethernet not transmitting Tarmo Kuuse
2008-12-05 15:14 ` [ECOS] " Tarmo Kuuse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).