Thomas Häberle wrote:
> Hello!
>
> I am using a Xenomai 2.3.5 patched 2.4.25 Denx Kernel with the latest
> RTnet trunk on an MPC5200S.
> When I start RTnet on the PCI-Ethernet-Device I get:
>
> >>>
> *** RTnet 0.9.10 - built on Apr 8 2008 10:43:09 ***
>
> RTnet: initialising real-time networking
> PCI: Enabling device 00:18.0 (0006 -> 0007)
> RTnet: registered rteth0
> /root/xenomai/modules/rt_eepro100.o: init_module: Device or resource busy
> <<<
>
> An following "rtifconfig -a" shows:
> >>>
> rteth0 Medium: Ethernet Hardware address: 00:1B:21:18:54:31
> BROADCAST MTU: 1500
> <<<
>
> When I configure the card manually:
> >>>
> rtifconfig rteth0 up 10.0.0.1
> <<<
> I get a nice little Kernel oops. As far as I could traced it, I figured
> that something with RTnet trying to initialize the device goes wrong.
>
> The PCI-Ethernet-Card uses an Intel 82551 which is not explicitly named
> in "rt_eepro100.c".
> Does this mean I can't use the card with RTnet (without adapting the
> driver)?
Does the attached patch help?
Wolfgang.
Index: rtnet/drivers/rt_eepro100.c
===================================================================
--- rtnet.orig/drivers/rt_eepro100.c
+++ rtnet/drivers/rt_eepro100.c
@@ -1999,7 +1999,13 @@ static int __init eepro100_init_module(v
debug = speedo_debug; /* touch debug variable */
#endif /* RTNET_DRV_EEPRO100_DBG */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
+ if (pci_register_driver(&eepro100_driver) <= 0)
+ return -EINVAL;
+ return 0;
+#else
return pci_register_driver(&eepro100_driver);
+#endif
}
static void __exit eepro100_cleanup_module(void)
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users