Re: kern/82727 : [modules] kernel module if_fwip fails to load, machine panics if compiled in kernel

From: Cai, Quanqing <caiquanqing_at_gmail.com>
Date: Wed, 5 Oct 2005 23:14:10 -0700
I have posted this message to freebsd-firewire_at_freebsd.org, but looks nobody
care about it:(

Anybody review and commit it? I already tested it on my two systems, one is
FreeBSD 6.0-BETA5, another is FreeBSD 7.0-CURRENT, and works great, I can
scp file at 8MBytes/s.

Here is diff:
===================================================================
--- /usr/src/sys/net/if_fwsubr.c Wed Oct 5 23:01:19 2005
+++ if_fwsubr.c Wed Oct 5 22:55:08 2005
_at__at_ -850,10 +850,10 _at__at_
}

static moduledata_t firewire_mod = {
- "firewire",
+ "firewire_media",
firewire_modevent,
0
};

-DECLARE_MODULE(firewire, firewire_mod, SI_SUB_INIT_IF, SI_ORDER_ANY);
-MODULE_VERSION(firewire, 1);
+DECLARE_MODULE(firewire_media, firewire_mod, SI_SUB_INIT_IF, SI_ORDER_ANY);
+MODULE_VERSION(firewire_media, 1);
==================================================================

BR
Cai, Quanqing


On 10/3/05, Cai, Quanqing <caiquanqing_at_gmail.com> wrote:
>
> Hi guys,
>
> For kern/82727 I dig into source and find some clues as below.
>
> In file /sys/net/if_fwsubr.c we have following lines:
> DECLARE_MODULE(firewire, firewire_mod, SI_SUB_INIT_IF, SI_ORDER_ANY);
> MODULE_VERSION(firewire, 1);
>
> In file /sys/dev/firewire/firewire.c we also have conflict lines:
>
> DRIVER_MODULE(firewire,fwohci,firewire_driver,firewire_devclass,fw_modevent,0);
> MODULE_VERSION(firewire, 1);
>
> So it's very clear where problem is in.I just make some simple changes in
> file /sys/net/if_fwsubr.c and fwip works: change firewire to firewire_media.
>
> I will try to find another computer to test if linking two computers
> through fwip works.
>
> BR
> Cai, Quanqing
>
Received on Thu Oct 06 2005 - 04:14:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:44 UTC