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 03-25-2011 03:50 AM

Quote:

Originally Posted by tmacyunn (Post 53398)
Hi adlan, I have a problem in the 10.6.7, when I put the laptop to sleep for a hour or a little longer the driver can't work, network disconnect. After using Kextload command to unload and reload it work come back.
Is it a problem of system ? maybe we should compile it in the 10.6.7, I have try repair permissions and rebuild kernel caches

Thanks.

Edit:
I try to compile the sources code under 32bit 10.6.7 with xcode 3.2.5 and get some warnings like :
Code:

BCM5722D-18e3e93/BCM5722D.cpp:536: warning: implicit conversion shortens 64-bit value into a 32-bit value

I'll investigate this further. Can you provide the log message after waking up from sleep?

For the warning message, you can just ignore it as there are some conversion which requires a 64bit value to be broken into 2 32bit value to fit it into the hardware registers.

tmacyunn 03-25-2011 09:58 AM

Here is:
Code:

Friday, March 25, 2011 4:49:52 PM Asia/Shanghai
Mar 25 16:49:57 yuns-MacBook-Pro kernel[0]: System Sleep
Mar 25 16:50:17 yuns-MacBook-Pro kernel[0]: Wake reason =
Mar 25 16:50:17 yuns-MacBook-Pro kernel[0]: System Wake
Mar 25 16:50:17 yuns-MacBook-Pro kernel[0]: ApplePS2ALPSGlidePoint: ABMod Waking up Touchpad setting setTapEnable to 1
Mar 25 16:50:17 yuns-MacBook-Pro kernel[0]: USB (EHCI):Port 3 on bus 0xfa connected or disTconnectedhe USB d:ev porticSC(e 0x301US8B Op03ti)
Mar 25 16:50:17 yuns-MacBook-Pro kernel[0]: cal Mouse (Port 1 of Hub at 0x5d000000) may have caused a wake by issuing a remote wakeup (2)
Mar 25 16:50:18 yuns-MacBook-Pro kernel[0]: USBMSC Identifier (non-unique): 20060413092100000 0xbda 0x158 0x5195

And i notice when wakeup from sleep, the system preference shows network is connected, but actually it doesn't.

This is the kext logs you release before:
Code:

Mar 19 22:51:18 yuns-MacBook-Pro kernel[0]: System Sleep
Mar 19 22:51:27 yuns-MacBook-Pro kernel[0]: Wake reason =
Mar 19 22:51:27 yuns-MacBook-Pro kernel[0]: System Wake
Mar 19 22:51:27 yuns-MacBook-Pro kernel[0]: ApplePS2ALPSGlidePoint: ABMod Waking up Touchpad setting setTapEnable to 1
Mar 19 22:51:28 yuns-MacBook-Pro kernel[0]: USB (EHCI):Port 3 on bus 0xfa connected or disconnected: portSC(0x301803)
Mar 19 22:51:28 yuns-MacBook-Pro kernel[0]: The USB device USB Optical Mouse (Port 1 of Hub at 0x5d000000) may have caused a wake by issuing a remote wakeup (2)
Mar 19 22:51:28 yuns-MacBook-Pro kernel[0]: BCM5722D (setPowerState:84): Changing power state from 0 to 1
Mar 19 22:51:28 yuns-MacBook-Pro kernel[0]: BCM5722D (resetAdapter:144): 4B657654 to B49A89AB in 0 iterations
Mar 19 22:51:28 yuns-MacBook-Pro kernel[0]: BCM5722D (setMedium:471): Change medium: kIOMediumEthernetAuto
Mar 19 22:51:28 yuns-MacBook-Pro kernel[0]: BCM5722D (setMedium:496): Change medium: kLinkDuplexNegotiate
Mar 19 22:51:28 yuns-MacBook-Pro kernel[0]: BCM5722D (configureLinkAdvertisement:364): advertiseFe: 1E1
Mar 19 22:51:28 yuns-MacBook-Pro kernel[0]: BCM5722D (configureLinkAdvertisement:365): advertiseGe: 0
Mar 19 22:51:28 yuns-MacBook-Pro kernel[0]: BCM5722D (startAutoNegotiation:522): Adv reg: 1E1
Mar 19 22:51:28 yuns-MacBook-Pro kernel[0]: USBMSC Identifier (non-unique): 20060413092100000 0xbda 0x158 0x5195
Mar 19 22:51:29 yuns-MacBook-Pro kernel[0]: BCM5722D (setupPHY:100): Auxillary status: F53F
Mar 19 22:51:29 yuns-MacBook-Pro kernel[0]: BCM5722D (setupFlowControl:621): flowControl: 0
Mar 19 22:51:29 yuns-MacBook-Pro kernel[0]: my_name_adlan_BCM5722D: Link up: 100 MBps, full duplex. Flow control: disabled


Astarael 04-06-2011 04:01 PM

Hi adlan,
I have just tested your kext - it makes my BCM5787M work. Moreover in "System Profiler" I can see correct information about the card (while using 10.6.3 modified BCM5701 plugin i got pci14e4,1693 instead of real name despite of DSDT patches I added).

But there's one problem - after loading the kext my system slowed down a lot. I barely managed to type sudo kextunload BCM5722D.kext in terminal. I didn't got such effects after loading hexedited plugin.
About 5 minutes later I used kextload command and got slow down again - but the negative effect was much lighter, I'd say about one tenth of first one.
Maybe it might have something to do with code optimizations? I really dunno.

I keep my fingers crossed for this project - who knows, how long 10.6.3 kext is going to work? It may get broken in Lion or even next update.

Regards,
Astarael

PS Sorry for my English, still learning ;)

adlan 04-07-2011 04:26 AM

Quote:

Originally Posted by Astarael (Post 53562)
Hi adlan,
I have just tested your kext - it makes my BCM5787M work. Moreover in "System Profiler" I can see correct information about the card (while using 10.6.3 modified BCM5701 plugin i got pci14e4,1693 instead of real name despite of DSDT patches I added).

But there's one problem - after loading the kext my system slowed down a lot. I barely managed to type sudo kextunload BCM5722D.kext in terminal. I didn't got such effects after loading hexedited plugin.
About 5 minutes later I used kextload command and got slow down again - but the negative effect was much lighter, I'd say about one tenth of first one.
Maybe it might have something to do with code optimizations? I really dunno.

I keep my fingers crossed for this project - who knows, how long 10.6.3 kext is going to work? It may get broken in Lion or even next update.

Regards,
Astarael

PS Sorry for my English, still learning ;)

hi,
can you try this kext,

http://cl.ly/3e3l2N2t1n242a3O0T0I

and send me the log? take the line starting with BCM5722D

PS no problem, me too :)

Domenic211 04-15-2011 05:07 PM

Hi guys I've got an Acer Aspire 2920 with broadcom BCM5787M.
I tried to add the file in attachment of this post "BCM5722D.kext" in system\library\extesion but after reboot my lan still don't work... :(.


PC: Acer Aspire 2920 ( Intel Core 2 Duo chipset: intel 965)
Mac Os X: 10.6.6i By hazard

p.s.: I have also tried to install max os x 10.6.2 but the result is the same with this kext my lan don't working.... in mac manager as Ethernet Cards don't result anything.

p.p.s. after added the kext file in library directory displays a message :
System extesion cannot be used
The system extension " /System/library ........." was installed improperly and cannot be used.
Please try reinstalling it....



what's my problem?
thank u guys
greetings from Italy

adlan 04-16-2011 07:29 AM

Quote:

Originally Posted by Domenic211 (Post 53683)
Hi guys I've got an Acer Aspire 2920 with broadcom BCM5787M.
I tried to add the file in attachment of this post "BCM5722D.kext" in system\library\extesion but after reboot my lan still don't work... :(.


PC: Acer Aspire 2920 ( Intel Core 2 Duo chipset: intel 965)
Mac Os X: 10.6.6i By hazard

p.s.: I have also tried to install max os x 10.6.2 but the result is the same with this kext my lan don't working.... in mac manager as Ethernet Cards don't result anything.

p.p.s. after added the kext file in library directory displays a message :
System extesion cannot be used
The system extension " /System/library ........." was installed improperly and cannot be used.
Please try reinstalling it....



what's my problem?
thank u guys
greetings from Italy

hi,

usually that error message pops up when kext doesn't have the proper permission. To fix this, you need to change the kext permission

either run disk utility then repair permission

or in terminal,

Code:

cd /System/Library/Extensions
sudo chmod -R 755 BCM5722D.kext
sudo chown -R 0:0 BCM5722D.kext

a simpler solution is to install using Kext Helper (as of this reply, the main site is currently down. the link points to kexts.com download)

Astarael 04-18-2011 05:18 PM

Quote:

Originally Posted by adlan (Post 53572)
hi,
can you try this kext,

http://cl.ly/3e3l2N2t1n242a3O0T0I

and send me the log? take the line starting with BCM5722D

PS no problem, me too :)

Hi, sorry it took me so long, I've been very busy recently.
Anyway, I placed the kext you gave me in /S/L/E, then chmod and chown it and loaded it with kextload. This is what I got in system Console:
Code:

11-04-18 18:13:12        sudo[255]        astarael : TTY=ttys000 ; PWD=/Users/astarael ; USER=root ; COMMAND=/sbin/kextload /System/Library/Extensions/BCM5722D.kext/
11-04-18 18:13:13        kernel        BCM5722D (Build date/time: Mar 25 2011 23:28:49)
11-04-18 18:13:14        kernel        BCM5722D (resetAdapter:145): 4B657654 to B49A89AB in 0 iterations
11-04-18 18:13:14        kernel        my_name_adlan_BCM5722D: Model: BCM5787M NetLink (TM) Gigabit Ethernet
11-04-18 18:13:14        kernel        my_name_adlan_BCM5722D: Loaded successfully
11-04-18 18:13:14        kernel        my_name_adlan_BCM5722D: Ethernet address 00:1e:37:24:13:81
11-04-18 18:13:14        kernel        BCM5722D (resetAdapter:145): 4B657654 to B49A89AB in 0 iterations
11-04-18 18:13:14        kernel        BCM5722D (setMedium:367): Change medium: kIOMediumEthernetAuto
11-04-18 18:13:14        kernel        BCM5722D (setMedium:392): Change medium: kLinkDuplexNegotiate
11-04-18 18:13:14        kernel        BCM5722D (configureLinkAdvertisement:567): advertiseFe: 5E1
11-04-18 18:13:14        kernel        BCM5722D (configureLinkAdvertisement:568): advertiseGe: 300
11-04-18 18:13:14        kernel        BCM5722D (startAutoNegotiation:590): Adv reg: 5E1

I'm not sure if it is what you wanted :-|

PS I wouldn't advise using KextHelper in Snow Leopard - it doesn't work well. You might want to test KextWizard instead (I won't post a link 'cos I'm not sure if it is permitted :P)

scritchy 04-18-2011 09:56 PM

I have device 14e4:167b Broadcomm 5755 onboard nic on an hp xw6600 machine. The kext appears to fail to do anything at all. There is no mention of it in any of the logs in var/log

i've tried deleting and reinstalling the kext with both kext helper b7 and kext wizard, and rebuilding kext cache. I've tried using the zip file attachee to this thread, and rebuilding the kext from the source. No difference. I verified the device id w/ dpci manager.

Not sure what else to try?

it "works" with the hacked 5701 kext floating around, in that it gets an ip and can connect, but the hacked 5701 has horrible upload problems that make it incredibly slow or times out, which is why I arrived here.

Any ideas?

Astarael 04-19-2011 03:12 PM

After you start your system, try to type in the terminal kextstat | grep BCM and see if there are any results. If not - kext in fact is not being loaded at all...
Did you trierd to force it with kextload command?

adlan 04-19-2011 03:52 PM

sorry for the delay, sometimes i didn't notice new post on this thread.

Quote:

Originally Posted by Astarael (Post 53719)
Hi, sorry it took me so long, I've been very busy recently.
Anyway, I placed the kext you gave me in /S/L/E, then chmod and chown it and loaded it with kextload. This is what I got in system Console:

Code:

11-04-18 18:13:12        sudo[255]        astarael : TTY=ttys000 ; PWD=/Users/astarael ; USER=root ; COMMAND=/sbin/kextload /System/Library/Extensions/BCM5722D.kext/
11-04-18 18:13:13        kernel        BCM5722D (Build date/time: Mar 25 2011 23:28:49)
11-04-18 18:13:14        kernel        BCM5722D (resetAdapter:145): 4B657654 to B49A89AB in 0 iterations
11-04-18 18:13:14        kernel        my_name_adlan_BCM5722D: Model: BCM5787M NetLink (TM) Gigabit Ethernet
11-04-18 18:13:14        kernel        my_name_adlan_BCM5722D: Loaded successfully
11-04-18 18:13:14        kernel        my_name_adlan_BCM5722D: Ethernet address 00:1e:37:24:13:81
11-04-18 18:13:14        kernel        BCM5722D (resetAdapter:145): 4B657654 to B49A89AB in 0 iterations
11-04-18 18:13:14        kernel        BCM5722D (setMedium:367): Change medium: kIOMediumEthernetAuto
11-04-18 18:13:14        kernel        BCM5722D (setMedium:392): Change medium: kLinkDuplexNegotiate
11-04-18 18:13:14        kernel        BCM5722D (configureLinkAdvertisement:567): advertiseFe: 5E1
11-04-18 18:13:14        kernel        BCM5722D (configureLinkAdvertisement:568): advertiseGe: 300
11-04-18 18:13:14        kernel        BCM5722D (startAutoNegotiation:590): Adv reg: 5E1

I'm not sure if it is what you wanted :-|

PS I wouldn't advise using KextHelper in Snow Leopard - it doesn't work well. You might want to test KextWizard instead (I won't post a link 'cos I'm not sure if it is permitted :P)

did the problem still persist?
is that the only message logged for the kext? and after that your system starts slowing down?

PS, yeah, kexthelper freeze on exit that it requires force quitting, though i didn't bother looking for another since the app still does what it should do :D. Anyway thank you for the advice, I'll try the app you mentioned and update the first post.