InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   10.X (http://infinitemac.com/forumdisplay.php?f=36)
-   -   BCM5754/M,BCM5755/M,BCM5787/M,BCM5906/M NIC driver for 10.6 (32/64) [update 22/5] (http://infinitemac.com/showthread.php?t=6946)

toja 05-20-2011 01:23 AM

can is version wake on lan?

fyooo 05-20-2011 02:33 AM

Quote:

Originally Posted by adlan (Post 54039)
you searched in the wrong file, the log entry will be in kernel.log
can you also post here the output of ifconfig after the kext is loaded?

thanks :)

adlan, thanks:)

Once again
Code:

oos-iMac:Downloads oo$ sudo kextutil -v 4 BCM5722D.kext
Password:
Kext library architecture set to x86_64.
Kext library recording diagnostics for: validation authentication dependencies warnings.
BCM5722D.kext appears to be loadable (not including linkage for on-disk libraries).
Loading BCM5722D.kext.
Reading load info for all kexts.
Reading loaded kext info from kernel.
Adding /Users/oo/Downloads/BCM5722D.kext to mkext.
/Users/oo/Downloads/BCM5722D.kext added 79552-byte noncompressed executable to mkext.
Created mkext for architecture x86_64 containing 1 kexts.
Loading BCM5722D.kext.
(kernel) Received request from user space to load kext my.name.adlan.BCM5722D.
(kernel) Recorded kext my.name.adlan.BCM5722D as a candidate for inclusion in prelinked kernel.
(kernel) Loading kext my.name.adlan.BCM5722D.
(kernel) Allocated link buffer for kext my.name.adlan.BCM5722D at 0xffffff7f807a5000 (28672 bytes).
(kernel) Kext my.name.adlan.BCM5722D executable loaded; 7 pages at 0xffffff7f807a5000 (load tag 95).
(kernel) Kext my.name.adlan.BCM5722D calling module start function.
(kernel) Kext my.name.adlan.BCM5722D registered class my_name_adlan_BCM5722D.
(kernel) Kext my.name.adlan.BCM5722D has IOService subclass my_name_adlan_BCM5722D; enabling autounload.
(kernel) Kext my.name.adlan.BCM5722D is now started.
(kernel) Kext my.name.adlan.BCM5722D sending 1 personality to the IOCatalogue and starting matching.
(kernel) Kext my.name.adlan.BCM5722D loaded.
Successfully loaded BCM5722D.kext.
BCM5722D.kext successfully loaded (or already loaded).

And nothing found in kernel.log:
Code:

oos-iMac:Downloads oo$ grep BCM /var/log/kernel.log
oos-iMac:Downloads oo$ sudo ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
        inet 127.0.0.1 netmask 0xff000000
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
oos-iMac:Downloads oo$


VIVXIX 05-21-2011 10:10 AM

I use bcm5706,and thanks for your driver,but IPv6 proxy.
 
I always need to use IPv6 proxy for connecting to internet.
However,I find the driver may has some problem of IPv6 proxy,
which is that the connection of IPv6 proxy becomes disconnected sooner or later.
I can figure out it is not cause by the proxy.
But I found a temper solution that ifconfig the en0 down and up.

FredWst 05-21-2011 05:09 PM

Quote:

Originally Posted by fyooo (Post 54041)
adlan, thanks:)

Once again
Code:

oos-iMac:Downloads oo$ sudo kextutil -v 4 BCM5722D.kext
Password:
Kext library architecture set to x86_64.
Kext library recording diagnostics for: validation authentication dependencies warnings.
BCM5722D.kext appears to be loadable (not including linkage for on-disk libraries).
Loading BCM5722D.kext.
Reading load info for all kexts.
Reading loaded kext info from kernel.
Adding /Users/oo/Downloads/BCM5722D.kext to mkext.
/Users/oo/Downloads/BCM5722D.kext added 79552-byte noncompressed executable to mkext.
Created mkext for architecture x86_64 containing 1 kexts.
Loading BCM5722D.kext.
(kernel) Received request from user space to load kext my.name.adlan.BCM5722D.
(kernel) Recorded kext my.name.adlan.BCM5722D as a candidate for inclusion in prelinked kernel.
(kernel) Loading kext my.name.adlan.BCM5722D.
(kernel) Allocated link buffer for kext my.name.adlan.BCM5722D at 0xffffff7f807a5000 (28672 bytes).
(kernel) Kext my.name.adlan.BCM5722D executable loaded; 7 pages at 0xffffff7f807a5000 (load tag 95).
(kernel) Kext my.name.adlan.BCM5722D calling module start function.
(kernel) Kext my.name.adlan.BCM5722D registered class my_name_adlan_BCM5722D.
(kernel) Kext my.name.adlan.BCM5722D has IOService subclass my_name_adlan_BCM5722D; enabling autounload.
(kernel) Kext my.name.adlan.BCM5722D is now started.
(kernel) Kext my.name.adlan.BCM5722D sending 1 personality to the IOCatalogue and starting matching.
(kernel) Kext my.name.adlan.BCM5722D loaded.
Successfully loaded BCM5722D.kext.
BCM5722D.kext successfully loaded (or already loaded).

And nothing found in kernel.log:
Code:

oos-iMac:Downloads oo$ grep BCM /var/log/kernel.log
oos-iMac:Downloads oo$ sudo ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
        inet 127.0.0.1 netmask 0xff000000
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
oos-iMac:Downloads oo$


Hi i was having the same trouble with BCM 5754 on dell optiplex 745. 10.6.7 retail install

lspci -nn result:
03:00.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5754 Gigabit Ethernet PCI Express [14e4:167a] (rev 02)

I fixe this changing in info.plist of kext this line:
pci14e4,167A -> pci14e4,167a

Deep sleep working

it made some weeks i search, now both i386 and x86_64 working fine. :)

Fred

adlan 05-22-2011 07:24 AM

Quote:

Originally Posted by FredWst (Post 54052)
Hi i was having the same trouble with BCM 5754 on dell optiplex 745. 10.6.7 retail install

lspci -nn result:
03:00.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5754 Gigabit Ethernet PCI Express [14e4:167a] (rev 02)

I fixe this changing in info.plist of kext this line:
pci14e4,167A -> pci14e4,167a

Deep sleep working

it made some weeks i search, now both i386 and x86_64 working fine. :)

Fred

hey, thanks!

I really have no idea what's causing that problem and now you found the culprit.
my bad, I totally missed that and to be honest, at first look I wouldn't have thought that would cause a problem..

my observation, I may be wrong.

.. and indeed it is. I've gone through the xnu source code and manually tracing function calls for the kext loading process. In the matching process, the values in IONameMatch array is compared using strncmp() function. This string comparison function is case-sensitive, so comparing 14e4,167a and 14e4,167A will yield false result and thus the matching process will fail.

The kext will load if it's load manually but it will sits there doing nothing since the matching process has failed thus no initialization process is initiated.

thanks a million again FredWst! :)

adlan 05-22-2011 07:25 AM

Quote:

Originally Posted by toja (Post 54040)
can is version wake on lan?

still on TODO list ;)

FredWst 05-22-2011 11:32 AM

Hello,

I've installed Lion on my optiplex 745.

BCM5722 is also working for my BCM 5754.

Fred

Ps: ATI 4350 is also working without green apple and qe/ci enable.

adlan 05-22-2011 11:47 AM

Quote:

Originally Posted by VIVXIX (Post 54050)
I always need to use IPv6 proxy for connecting to internet.
However,I find the driver may has some problem of IPv6 proxy,
which is that the connection of IPv6 proxy becomes disconnected sooner or later.
I can figure out it is not cause by the proxy.
But I found a temper solution that ifconfig the en0 down and up.

it works on 5706 too? great! problem is expected, though. :)

I'll look at it when I have time. However, I do hope others to contribute to add support for other model if possible. But, since project documentation is currently sparse, I'm not expecting any ;)

anyway, thank you for testing!

VIVXIX 05-22-2011 01:55 PM

Quote:

Originally Posted by adlan (Post 54058)
it works on 5706 too? great! problem is expected, though. :)

I'll look at it when I have time. However, I do hope others to contribute to add support for other model if possible. But, since project documentation is currently sparse, I'm not expecting any ;)

anyway, thank you for testing!

I am sorry, I make a mistake.It 's bcm5906.,not BCM5706.
:'(:'(:'(:'(:'(

fyooo 05-23-2011 04:31 AM

Quote:

Originally Posted by adlan (Post 54055)
hey, thanks!

I really have no idea what's causing that problem and now you found the culprit.
my bad, I totally missed that and to be honest, at first look I wouldn't have thought that would cause a problem..

my observation, I may be wrong.

.. and indeed it is. I've gone through the xnu source code and manually tracing function calls for the kext loading process. In the matching process, the values in IONameMatch array is compared using strncmp() function. This string comparison function is case-sensitive, so comparing 14e4,167a and 14e4,167A will yield false result and thus the matching process will fail.

The kext will load if it's load manually but it will sits there doing nothing since the matching process has failed thus no initialization process is initiated.

thanks a million again FredWst! :)

adlan&FredWst
It works!
Thank you so much!