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)

adlan 05-17-2011 04:07 PM

Quote:

Originally Posted by rals2007 (Post 54016)
adlan

Source is synced with your latest binary release ?

yes, i just updated the kext in the first post with the new build based on the latest commit

adlan 05-17-2011 04:15 PM

Quote:

Originally Posted by fyooo (Post 54015)
I can't see anything about BCM in my system.log and even my /var/log directory

If the kext is loaded, it should at least shows a build date/time. So that means the kext isn't loaded. Actually I didn't have the chance to see the image of error message you posted before, can you post it again?

fyooo 05-18-2011 02:27 AM

1 Attachment(s)
Quote:

Originally Posted by adlan (Post 54019)
If the kext is loaded, it should at least shows a build date/time. So that means the kext isn't loaded. Actually I didn't have the chance to see the image of error message you posted before, can you post it again?

I just tried to load this kext manually in terminal:
Quote:

bash-3.2# kextload BCM5722D.kext/
/Users/oo/Downloads/BCM5722D.kext failed to load - (libkern/kext) authentication failure (file ownership/permissions); check the system/kernel logs for errors or try kextutil(8).
bash-3.2#

adlan 05-18-2011 05:23 AM

Quote:

Originally Posted by fyooo (Post 54020)
I just tried to load this kext manually in terminal:
Quote:

bash-3.2# kextload BCM5722D.kext/
/Users/oo/Downloads/BCM5722D.kext failed to load - (libkern/kext) authentication failure (file ownership/permissions); check the system/kernel logs for errors or try kextutil(8).
bash-3.2#

you need to change the kext ownership/permissions , else kextd will not load the kext.

Code:

sudo chown -R root:wheel BCM5722D.kext
sudo chmod -R 755 BCM5722D.kext


fyooo 05-18-2011 08:47 AM

1 Attachment(s)
Quote:

Originally Posted by adlan (Post 54021)
you need to change the kext ownership/permissions , else kextd will not load the kext.

Code:

sudo chown -R root:wheel BCM5722D.kext
sudo chmod -R 755 BCM5722D.kext


Thanks, adlan
Maybe I should show my NIC information first:
Quote:

14e4;
Broadcom Corporation;
167a;
NetXtreme BCM5754 Gigabit Ethernet PCI Express;
Network controller;
Ethernet controller
So now I change the permission of the kext file:
Code:

oos-iMac:Downloads oo$ ls BCM5722D.kext/
Contents
oos-iMac:Downloads oo$ sudo chown -R root:wheel BCM5722D.kext
oos-iMac:Downloads oo$ sudo chmod -R 755 BCM5722D.kext
oos-iMac:Downloads oo$ sudo kextload BCM5722D.kext

It seems nothing happen.
THe log is:
Code:

oos-iMac:Downloads oo$ grep BCM /var/log/*
/var/log/system.log:May 18 15:35:29 oos-iMac sudo[155]: oo : TTY=ttys000 ; PWD=/Users/oo/Downloads ; USER=root ; COMMAND=/usr/sbin/chown -R root:wheel BCM5722D.kext
/var/log/system.log:May 18 15:35:40 oos-iMac sudo[156]: oo : TTY=ttys000 ; PWD=/Users/oo/Downloads ; USER=root ; COMMAND=/bin/chmod -R 755 BCM5722D.kext
/var/log/system.log:May 18 15:35:49 oos-iMac sudo[157]: oo : TTY=ttys000 ; PWD=/Users/oo/Downloads ; USER=root ; COMMAND=/sbin/kextload BCM5722D.kext
oos-iMac:Downloads oo$

Thank you all the same:)
Attachment 1570

rals2007 05-19-2011 01:58 AM

fyooo

You fix it where you installed the kexts.

chmod -R 755 /System/Library/Extensions/BCM5722D.kext
chown -R root:wheel /System/Library/Extensions/BCM5722D.kext
touch /System/Library/Extensions

fyooo 05-19-2011 04:04 AM

Quote:

Originally Posted by rals2007 (Post 54030)
fyooo

You fix it where you installed the kexts.

chmod -R 755 /System/Library/Extensions/BCM5722D.kext
chown -R root:wheel /System/Library/Extensions/BCM5722D.kext
touch /System/Library/Extensions

I'd tried to use KextHelper to install this kext, but it can not work.
I can't see any information about BCM in system.log

adlan 05-19-2011 09:24 AM

Quote:

Originally Posted by fyooo (Post 54033)
I'd tried to use KextHelper to install this kext, but it can not work.
I can't see any information about BCM in system.log

try loading it using kextutil with high verbosity level and put its output here

Code:

sudo kextutil -v 4 BCM5722D.kext

fyooo 05-19-2011 12:02 PM

Quote:

Originally Posted by adlan (Post 54036)
try loading it using kextutil with high verbosity level and put its output here

Code:

sudo kextutil -v 4 BCM5722D.kext

Thanks, that's what it shows:
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 0xffffff7f8076f000 (28672 bytes).
(kernel) Kext my.name.adlan.BCM5722D executable loaded; 7 pages at 0xffffff7f8076f000 (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).

After that, I checked the system.log file:
Code:

oos-iMac:Downloads oo$ grep BCM /var/log/system.log
May 19 19:56:04 oos-iMac sudo[152]: oo : TTY=ttys000 ; PWD=/Users/oo/Downloads ; USER=root ; COMMAND=/usr/bin/kextutil -v 4 BCM5722D.kext
oos-iMac:Downloads oo$

It seems to be success, but I still can't connect to internet.

adlan 05-19-2011 04:40 PM

Quote:

Originally Posted by fyooo (Post 54037)
Thanks, that's what it shows:
Code:

...
After that, I checked the system.log file:
Code:

oos-iMac:Downloads oo$ grep BCM /var/log/system.log
May 19 19:56:04 oos-iMac sudo[152]: oo : TTY=ttys000 ; PWD=/Users/oo/Downloads ; USER=root ; COMMAND=/usr/bin/kextutil -v 4 BCM5722D.kext
oos-iMac:Downloads oo$

It seems to be success, but I still can't connect to internet.

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 :)