天天看点

macosx86 Broadcom NetXtreme Gigabit Ethernet 网卡

关于这个问题,网上有帖子讨论已经很多了,就是mac本身不识别的硬件设备,都是用修改驱动使得系统和设备ID确认就可以了,下面引述coolrain的帖子中描述的方法:

==================================================

其实修改硬件驱动的方法都是差不多的,关键就是要在"/System/Library/Extensions/"目录里面找到对应的.kext文件,然后进行修改。

现在已经有很多与你自己特定硬件(不管是声卡、显卡、网卡、无线网卡等等,原理都一样)的驱动,你所要修改的关键就是在这些.kext文件中写入你自己硬件的Device ID。

只要Device ID写对了,你再通过kextload xxxxxxxxxxx.kext命令来加载你改好的.kext驱动,如果正确的话,会现示load successfully的。

然后你就需要到"/System/Library/"目录下清除一下kext 的cache,具体命令如下:

sudo rm /System/Library/Extensions.kextcache

kextcache -k /System/Library/Extensions

然后重启就可以了。

难点就两个,第一,找到要修改的kext文件。第二,正确的对kext文件作修改,写入你自己的Device ID。

以我在osx86project发的帖子作示范吧,关于修改网卡的:

QUOTE:

At last! I get my "BroadCOM NetXtreme Gigabit Ethernet" interface card work!

I identify my device-id of BCM57x in windows, it is a "165E".

And then use the method below to get it work.

=================================

Run terminal

sudo -s

cd /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleBCM5701Ethernet.kext/Contents/MacOS

cp AppleBCM5701Ethernet /Users/your_account_name/Desktop

---

(back to Desktop)

1) right click AppleBCM5701Ethernet, Get Info.

2) change ownership & permissions as you can modify it.

3) run HexEdit, then open AppleBCM5701Ethernet

4) choose "Find & Replace" from menu.

5) Find: "66 81 FA 59 16" /Replace with: "66 81 FA 5E 16"

(my DEV_ID was 165E, you type yours at last two bytes)

6) Matching: "Hex: (<-choose this)

7) push "Replace All"

8) scroll down to 37550

9) change address 37554, 37555 of "75 71" to "EB 71"

10) then save file and quit Hex Edit.

11) change ownership & permissions as before (by Get Info)

ownership="root" and group="wheel"

12) (return to terminal)

===========================================

Hope this would help if you are using the simulier device like me.

=============================================

其实大家大可不必这么费劲,想省力的朋友象我一样关机、出门、卖块50大元的intel网卡(二手的一顿KFC的价格都够)、回家、插进去、开机…

继续阅读