Wolfgang Grandegger wrote:
Hi Jan,

I have now a first version of the RTnet driver for MPC52xx FEC running,
at least rtping works. Unfortunately, porting of that beast from Linux

Great. Don't hesitate to check in.

2.4 to RTnet was not straight-forward:

- As the MPC52xx has only one ethernet port, driver development might
  be cubersome. This limitation might be overcome by mounting a PCI
  ethernet card (if a PCI connector is available).


That's why I'm preferring initrd over nfs-root for such scenarios. ;)

- The Linux driver fec.c cannot be loaded as kernel module (symbols not
  exported, etc.). This requires a small kernel patch.


Mmh, not that nice. Is this a problem limited to specific kernel versions, or is it still required even for the latest 2.6 that runs with the MPC?

- The driver requires PHY management (MDIO) to get ethernet working.


That should be no problem. I had the same situation with the SMC91111, but this caused not troubles because the management is only needed during device setup.

Is there already a policy how to handle link setup and changes? I assume
that the link is setup when the driver is loaded or the device opened
and link changes during runtime are not handled at all.

Yep, that's the policy. Pulling out the cable etc. is a fatal error and should not cause RTnet to try any reconfiguration during runtime. There is still the plan to let some kind of error manager handle such events and report it to interested applications. The applications could then, e.g., start some safe shutdown procedure if their operation heavily depends on a working network link. But this is just a plan, we did not find the time to fully specify and implement it.


Where should I put supporting files for the driver like the mentioned
kernel patch or a README. In the drivers directory?


Yes, this is also what I would suggest. We may also refer to that README in the main README or in the configure script in case the user switches that driver on.

Jan


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to