Date: Wed, 5 Oct 2005 23:14:10 -0700 From: "Cai, Quanqing" <caiquanqing@gmail.com> To: freebsd-firewire@freebsd.org, freebsd-drivers@freebsd.org, freebsd-current@freebsd.org Subject: Re: kern/82727 : [modules] kernel module if_fwip fails to load, machine panics if compiled in kernel Message-ID: <2b22951e0510052314m524a3767u64df1aeb679689c@mail.gmail.com> In-Reply-To: <2b22951e0510032051v781bfebej3c5250a3741fd31d@mail.gmail.com> References: <2b22951e0510032051v781bfebej3c5250a3741fd31d@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I have posted this message to freebsd-firewire@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
@@ -850,10 +850,10 @@
}
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@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
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2b22951e0510052314m524a3767u64df1aeb679689c>
