Twitter
Become an osx86.net member, click here to Register!
Page 1 of 2 12 LastLast
Results 1 to 10 of 15
Like Tree5Likes

Thread: [TIPS]Kexts and DeviceID`s

  1. #1
    OSx86.net Crew kyndder's Avatar
    Join Date
    Dec 2010
    Location
    Sampa/Brazil
    Posts
    6,283
    Thanked
    0
    Downloads
    442
    Uploads
    8

    Default [TIPS]Kexts and DeviceID`s

    Hello Everybody!!!!

    I am here again to bring a tip to the users of kexts.com ...

    One of the most common things that happen when using a Hackintosh, is having
    to make some simple changes in kexts for a device to work properly ...

    But why do we have to do this??

    When Apple uses a specific hardware, it approves this device,
    thus, it creates a driver (kext) to control the device, containing all
    Device Identifiers (DeviceID) to be used by this hardware ...

    This means that, whenever Apple is using that hardware, it must have
    The same sequence of Device Identifiers (DeviceID) which has been approved by Apple ...

    In the case of PC, in most cases, the devices have the same DeviceID`s
    used by Apple, but sometimes this may not happen and other times, Apple may
    remove a device from the list ...

    Sometimes, can not solve, but in others, only adding the new DeviceID
    can make the kext recognize it ...

    The first thing we need to discover, is the DeviceID of the hardware we are trying to activate,
    There are several ways to find that out, but the easiest is to use the System Info app.

    System Info

    Download > System Info - Downloads - Kexts.com

    Official Thread > olarila.com • Exibir tópico - System Info



    As you can see in the image, it detects all devices on the machine and shows their
    VendorID and DeviceID ...

    Having the VendorID and DeviceID in hand, we now need to add it to the file "info.plist" that is
    inside the kext ...

    NOTE: Keep in mind that a "kext" is nothing more than a folder and its contents form a
    Kernel Extension ...


    First, create a copy of the kext that will handle in a safe place and then create another copy
    on your desktop, and this is the one that we will modify ...

    Click the right mouse button on the kext (for those using Apple mouse use CTRL + Click) and
    select "Show Package Contents"...



    A window will open with the contents of the kext, enter the folder "Contents", and again, click the
    Right-click on the file "info.plist", select "Open With" and navigate to your application
    to edit text files ...

    NOTE: In my case, I use TextWrangler.app but if you have`t, you can use TextEdit.app
    to make modifications to the file. Just be careful, when you save the changes,
    not allow the application to modify the file extension, it should be ".plist". If
    you have other termination than ".plist" changes have no will effect.





    "Okay, but where do I enter the information??"


    This can vary from kext to kext, usually the examples below are the most used, and you have
    to enter your DeviceID (and VendorID if necessary) according to the example for each "string" ...

    Code:
    <key>IOPCIPrimaryMatch</key>
    <string>0x813610ec</string>
    Example = <string>0xDeviceIDVendorID</string>

    Code:
    <key>IOPCIMatch</key>
    <string>0x816910ec 0x816710ec 0x816810ec 0x813610ec</string>
    Example = <string>0xDeviceIDVendorID</string>

    Code:
    <key>IONameMatch</key>
    			<array>
    				<string>pci8086,27b8</string>
    				<string>pci8086,2811</string>
    				<string>pci8086,2815</string>
    				<string>pci8086,27b9</string>
    				<string>pci8086,27bd</string>
    				<string>pci8086,2670</string>
    				<string>pci8086,8119</string>
    				<string>pci8086,2916</string>
    				<string>pci8086,3a18</string>
    				<string>pci8086,3b00</string>
    				<string>pci8086,3b01</string>
    				<string>pci8086,3b02</string>
    				<string>pci8086,3b09</string>
    				<string>pci10de,aac</string>
    				<string>pci10de,aae</string>
    				<string>pci10de,aaf</string>
    				<string>pci10de,d80</string>
    				<string>pci10de,d81</string>
    				<string>pci10de,d82</string>
    				<string>pci10de,d83</string>
    			</array>
    Example = <string>pciVendorID,DeviceID</string>

    Code:
    <key>IOPCIPrimaryMatch</key>
    			<string>
                    0x00f010de&amp;0xfff0ffff
                    0x019010de&amp;0xfff0ffff
                    0x040010de&amp;0xfff0ffff
                    0x042010de&amp;0xfff0ffff
                    0x05e010de&amp;0xfff8ffff
                    0x05f010de&amp;0xfff0ffff
                    0x060010de&amp;0xffe0ffff
                    0x062010de&amp;0xffe0ffff
                    0x064010de&amp;0xffe0ffff
                    0x06e010de&amp;0xfff0ffff
                    0x086010de&amp;0xffe0ffff
                    0x08a010de&amp;0xffe0ffff
                    0x0a2010de&amp;0xffa0ffff
                    0x0ca010de&amp;0xffe0ffff
                </string>
    Example = <string>0xDeviceIDVendorID&amp;0xfff0ffff</string>


    After editing the file and save the changes, we need to repair the file permissions ...

    For this, run the following command in teminal ...

    Code:
    chown -R root:wheel /PATHTOTHEKEXT/NAMEOFTHEKEXT.kext
    
    chmod -R 755 /PATHTOTHEKEXT/NAMEOFTHEKEXT.kext
    Now we need to install the kext for this, use the program you want ...

    I use Kext Wizard to install kexts, repair permissions and rebuild the system caches ...

    Kext Wizard

    Download > Kext Wizard 3.7.10 - Downloads - Kexts.com

    Official Thread > Kext Wizard - InsanelyMac Forum

    Even with the Kext Wizard you can check if the kext is for 64 or 32bit ...

    Just navigate to the kext and click "Check" ...



    After installation, I recommend that you repair permissions and re-create the caches manually, running
    the following commands in the terminal ...

    Code:
    sudo -s
    
    TYPE YOUR PASSWORD
    
    chown -R root:wheel /System/Library/Extensions/*
    
    chmod -R 755 /System/Library/Extensions/*
    
    kextcache -v 3 -a i386 -a x86_64 -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext -z /System/Library/Extensions
    
    chown -R root:wheel /Extra/Extensions/*
    
    chmod -R 755 /Extra/Extensions/*
    
    kextcache -v 3 -a i386 -a x86_64 -m /Extra/Extensions.mkext -z /Extra/Extensions
    NOTE: Sometimes there are "kexts" inside "kexts" as you can see in the example below ...



    The procedure to edit them is the same ...


    That done, just reboot the system ...


    And if all goes well, you should now be working with your device.


    I hope I have helped you with this tip ...

    MB - GA-P67A-D3-B3 / Processor - Core i5-2300 Sandy Bridge / RAM - Kingston 16Gb DDR3
    Hard Disk - SATA2 Samsung 1500Gb / SATA2 Samsung 500Gb / SATA2 Samsung 250Gb / SATA2 Maxtor 160Gb
    Drive DVD - SATA LG GH20NS15 / Lan - Realtek RTL8111E OnBoard / Audio1 - ALC889 / Audio2 - Audigy SB1394
    Video1 - NVidia Zotac GeForce GTS250 / Video2 - NVidia XFX GeForce 9600GSO
    Snow Leopard 10.6.8 x64 / Ubuntu 11.10 Beta2 x64 / OS X Lion 10.7.3 x64 / Playing with Android-x86
    Chameleon With Chameleon Wizard / DSDT With DSDT Editor and Patcher
    Previous Hack


  2. #2
    Administrator John's Avatar
    Join Date
    Oct 2008
    Posts
    557
    Thanked
    1
    Downloads
    198
    Uploads
    154

    Default

    Very useful post! Thank you!
    MacBook Pro 15": 2,2 GHz (2011 model) with 300GB SSD and 750GB HDD & Apple LED Cinema Display 27"inch

    Visit OSx86.net The number one OSx86 community!

  3. #3
    Member
    Join Date
    Aug 2011
    Posts
    52
    Thanked
    0
    Downloads
    20
    Uploads
    0

    Default

    Hi,

    I-ve just tried it, but i havent the part Show Package Content in my submenus. I-m on Snow Leopard, and im trying to optimize my graphic card.
    Thanks for your help

  4. #4
    OSx86.net Crew kyndder's Avatar
    Join Date
    Dec 2010
    Location
    Sampa/Brazil
    Posts
    6,283
    Thanked
    0
    Downloads
    442
    Uploads
    8

    Default

    Quote Originally Posted by aerostar1974 View Post
    i havent the part Show Package Content in my submenus.
    Man!!!!

    This is really weird!!!!!

    When you made a mouse Right-Click or COMMAND(WINDOWS)+Click on the kext you see all the options less "Show Package Contents" ????

    Try open the file from the terminal with the command below...

    Code:
    open -a TextWrangler /System/Library/Extensions/NVDANV50Hal.kext/Contents/info.plist
    (You can use TextEdit instead of TextWrangler)
    MB - GA-P67A-D3-B3 / Processor - Core i5-2300 Sandy Bridge / RAM - Kingston 16Gb DDR3
    Hard Disk - SATA2 Samsung 1500Gb / SATA2 Samsung 500Gb / SATA2 Samsung 250Gb / SATA2 Maxtor 160Gb
    Drive DVD - SATA LG GH20NS15 / Lan - Realtek RTL8111E OnBoard / Audio1 - ALC889 / Audio2 - Audigy SB1394
    Video1 - NVidia Zotac GeForce GTS250 / Video2 - NVidia XFX GeForce 9600GSO
    Snow Leopard 10.6.8 x64 / Ubuntu 11.10 Beta2 x64 / OS X Lion 10.7.3 x64 / Playing with Android-x86
    Chameleon With Chameleon Wizard / DSDT With DSDT Editor and Patcher
    Previous Hack

  5. #5
    Member ariksaja's Avatar
    Join Date
    Feb 2011
    Posts
    33
    Thanked
    0
    Downloads
    137
    Uploads
    4

    Default

    Quote Originally Posted by kyndder View Post
    Hello Everybody!!!!

    I am here again to bring a tip to the users of kexts.com ...

    One of the most common things that happen when using a Hackintosh, is having
    to make some simple changes in kexts for a device to work properly ...

    But why do we have to do this??

    When Apple uses a specific hardware, it approves this device,
    thus, it creates a driver (kext) to control the device, containing all
    Device Identifiers (DeviceID) to be used by this hardware ...

    This means that, whenever Apple is using that hardware, it must have
    The same sequence of Device Identifiers (DeviceID) which has been approved by Apple ...

    In the case of PC, in most cases, the devices have the same DeviceID`s
    used by Apple, but sometimes this may not happen and other times, Apple may
    remove a device from the list ...

    Sometimes, can not solve, but in others, only adding the new DeviceID
    can make the kext recognize it ...

    The first thing we need to discover, is the DeviceID of the hardware we are trying to activate,
    There are several ways to find that out, but the easiest is to use the System Info app.

    System Info

    Download > System Info - Downloads - Kexts.com

    Official Thread > olarila.com • Exibir tópico - System Info



    As you can see in the image, it detects all devices on the machine and shows their
    VendorID and DeviceID ...

    Having the VendorID and DeviceID in hand, we now need to add it to the file "info.plist" that is
    inside the kext ...

    NOTE: Keep in mind that a "kext" is nothing more than a folder and its contents form a
    Kernel Extension ...


    First, create a copy of the kext that will handle in a safe place and then create another copy
    on your desktop, and this is the one that we will modify ...

    Click the right mouse button on the kext (for those using Apple mouse use CTRL + Click) and
    select "Show Package Contents"...



    A window will open with the contents of the kext, enter the folder "Contents", and again, click the
    Right-click on the file "info.plist", select "Open With" and navigate to your application
    to edit text files ...

    NOTE: In my case, I use TextWrangler.app but if you have`t, you can use TextEdit.app
    to make modifications to the file. Just be careful, when you save the changes,
    not allow the application to modify the file extension, it should be ".plist". If
    you have other termination than ".plist" changes have no will effect.





    "Okay, but where do I enter the information??"


    This can vary from kext to kext, usually the examples below are the most used, and you have
    to enter your DeviceID (and VendorID if necessary) according to the example for each "string" ...

    Code:
    <key>IOPCIPrimaryMatch</key>
    <string>0x813610ec</string>
    Example = <string>0xDeviceIDVendorID</string>

    Code:
    <key>IOPCIMatch</key>
    <string>0x816910ec 0x816710ec 0x816810ec 0x813610ec</string>
    Example = <string>0xDeviceIDVendorID</string>

    Code:
    <key>IONameMatch</key>
    			<array>
    				<string>pci8086,27b8</string>
    				<string>pci8086,2811</string>
    				<string>pci8086,2815</string>
    				<string>pci8086,27b9</string>
    				<string>pci8086,27bd</string>
    				<string>pci8086,2670</string>
    				<string>pci8086,8119</string>
    				<string>pci8086,2916</string>
    				<string>pci8086,3a18</string>
    				<string>pci8086,3b00</string>
    				<string>pci8086,3b01</string>
    				<string>pci8086,3b02</string>
    				<string>pci8086,3b09</string>
    				<string>pci10de,aac</string>
    				<string>pci10de,aae</string>
    				<string>pci10de,aaf</string>
    				<string>pci10de,d80</string>
    				<string>pci10de,d81</string>
    				<string>pci10de,d82</string>
    				<string>pci10de,d83</string>
    			</array>
    Example = <string>pciVendorID,DeviceID</string>

    Code:
    <key>IOPCIPrimaryMatch</key>
    			<string>
                    0x00f010de&0xfff0ffff
                    0x019010de&0xfff0ffff
                    0x040010de&0xfff0ffff
                    0x042010de&0xfff0ffff
                    0x05e010de&0xfff8ffff
                    0x05f010de&0xfff0ffff
                    0x060010de&0xffe0ffff
                    0x062010de&0xffe0ffff
                    0x064010de&0xffe0ffff
                    0x06e010de&0xfff0ffff
                    0x086010de&0xffe0ffff
                    0x08a010de&0xffe0ffff
                    0x0a2010de&0xffa0ffff
                    0x0ca010de&0xffe0ffff
                </string>
    Example = <string>0xDeviceIDVendorID&0xfff0ffff</string>


    After editing the file and save the changes, we need to repair the file permissions ...

    For this, run the following command in teminal ...

    Code:
    chown -R root:wheel /PATHTOTHEKEXT/NAMEOFTHEKEXT.kext
    
    chmod -R 755 /PATHTOTHEKEXT/NAMEOFTHEKEXT.kext
    Now we need to install the kext for this, use the program you want ...

    I use Kext Wizard to install kexts, repair permissions and rebuild the system caches ...

    Kext Wizard

    Download > Kext Wizard 3.7.10 - Downloads - Kexts.com

    Official Thread > Kext Wizard - InsanelyMac Forum

    Even with the Kext Wizard you can check if the kext is for 64 or 32bit ...

    Just navigate to the kext and click "Check" ...



    After installation, I recommend that you repair permissions and re-create the caches manually, running
    the following commands in the terminal ...

    Code:
    sudo -s
    
    TYPE YOUR PASSWORD
    
    chown -R root:wheel /System/Library/Extensions/*
    
    chmod -R 755 /System/Library/Extensions/*
    
    kextcache -v 3 -a i386 -a x86_64 -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext -z /System/Library/Extensions
    
    chown -R root:wheel /Extra/Extensions/*
    
    chmod -R 755 /Extra/Extensions/*
    
    kextcache -v 3 -a i386 -a x86_64 -m /Extra/Extensions.mkext -z /Extra/Extensions
    NOTE: Sometimes there are "kexts" inside "kexts" as you can see in the example below ...



    The procedure to edit them is the same ...


    That done, just reboot the system ...


    And if all goes well, you should now be working with your device.


    I hope I have helped you with this tip ...

    nice guide, though with the fact of macosx, i curious why this mac osx sometimes, even we didn't inject our hardware id sometimes it's loaded perfectly ? still this tutorial could make me refresh and try with this method if i had the problem again. thumbs up dude
    MacOSX Lion 10.7.2 ( 11C74 )
    Main board : ASUS P5GC/MX133
    Processor : 2 GHz Intel Core 2 Duo
    Memory : 2 GB 800 MHz DDR2 SDRAM
    VGA : HIS ATI RADEON HD 4350 512 MB DDR2 (working, VGA, DVI, HDMI)
    Zotac Nvidia Geforce 8400 GS 512 MB DDR3 (working, VGA, DVI, HDMI)

  6. #6
    OSx86.net Crew kyndder's Avatar
    Join Date
    Dec 2010
    Location
    Sampa/Brazil
    Posts
    6,283
    Thanked
    0
    Downloads
    442
    Uploads
    8

    Default

    Quote Originally Posted by ariksaja View Post
    nice guide, though with the fact of macosx, i curious why this mac osx sometimes, even we didn't inject our hardware id sometimes it's loaded perfectly ? still this tutorial could make me refresh and try with this method if i had the problem again. thumbs up dude
    You`re Welcome!!!

    MB - GA-P67A-D3-B3 / Processor - Core i5-2300 Sandy Bridge / RAM - Kingston 16Gb DDR3
    Hard Disk - SATA2 Samsung 1500Gb / SATA2 Samsung 500Gb / SATA2 Samsung 250Gb / SATA2 Maxtor 160Gb
    Drive DVD - SATA LG GH20NS15 / Lan - Realtek RTL8111E OnBoard / Audio1 - ALC889 / Audio2 - Audigy SB1394
    Video1 - NVidia Zotac GeForce GTS250 / Video2 - NVidia XFX GeForce 9600GSO
    Snow Leopard 10.6.8 x64 / Ubuntu 11.10 Beta2 x64 / OS X Lion 10.7.3 x64 / Playing with Android-x86
    Chameleon With Chameleon Wizard / DSDT With DSDT Editor and Patcher
    Previous Hack

  7. #7
    Junior Member Onetap's Avatar
    Join Date
    Nov 2011
    Location
    Auckland, New Zealand
    Posts
    28
    Thanked
    0
    Downloads
    6
    Uploads
    0

    Default

    Im having a problem. Whenever i try to change to permissions of the kext its giving me "Operation not permitted" on all the operations. i made a copy of the kext on the desktop, thats the one im trying to change permissions for.
    MSI Nf980-g65 (nforce 980a)
    MSI 570GTX
    AMD Phenom II 955 3.2Ghz
    4GB DDR3 Crucial Balistix RAM
    1 TB Seagate Green

  8. #8
    OSx86.net Crew kyndder's Avatar
    Join Date
    Dec 2010
    Location
    Sampa/Brazil
    Posts
    6,283
    Thanked
    0
    Downloads
    442
    Uploads
    8

    Default

    Quote Originally Posted by Onetap View Post
    Im having a problem. Whenever i try to change to permissions of the kext its giving me "Operation not permitted" on all the operations. i made a copy of the kext on the desktop, thats the one im trying to change permissions for.
    You need to "Log On" on the Terminal as Super User by using the sudo -s command or you need to add sudo before the command that you are trying to use...

    For example, sudo chown -R root:wheel /System/Library/Extensions/* ...

    Remember that the Shell never will show your password... Even the number of characters...

    When asked, just type your password and press ENTER, even if you can`t see anything that you are typing...
    MB - GA-P67A-D3-B3 / Processor - Core i5-2300 Sandy Bridge / RAM - Kingston 16Gb DDR3
    Hard Disk - SATA2 Samsung 1500Gb / SATA2 Samsung 500Gb / SATA2 Samsung 250Gb / SATA2 Maxtor 160Gb
    Drive DVD - SATA LG GH20NS15 / Lan - Realtek RTL8111E OnBoard / Audio1 - ALC889 / Audio2 - Audigy SB1394
    Video1 - NVidia Zotac GeForce GTS250 / Video2 - NVidia XFX GeForce 9600GSO
    Snow Leopard 10.6.8 x64 / Ubuntu 11.10 Beta2 x64 / OS X Lion 10.7.3 x64 / Playing with Android-x86
    Chameleon With Chameleon Wizard / DSDT With DSDT Editor and Patcher
    Previous Hack

  9. #9
    Junior Member kosh-lv's Avatar
    Join Date
    Nov 2011
    Posts
    1
    Thanked
    0
    Downloads
    29
    Uploads
    0

    Default

    Thank you kyndder!

    Without any problems connected my Sweex LW163 (RT3370) USB-WiFi under Snow Leopard 10.6.8.

    Problem was, that Ralink has not added this model in to the kext, so I have done it by myself

    Very good experience, 5 stars!!!
    kyndder likes this.

  10. #10
    Member
    Join Date
    Dec 2011
    Posts
    98
    Thanked
    0
    Downloads
    108
    Uploads
    0

    Default

    how to use ioatafamily kext.......!plz give me the instruction to build lion usb stick.........in my pc with no ahci option.....i have sata ide.................!


  • Advertising

    advertising
    OSx86.net
    has no influence
    on advertisings
    that are displayed by
    Google Adsense

      
     

Page 1 of 2 12 LastLast

Similar Threads

  1. [DICA]Adicionando seu DeviceID a um kext
    By kyndder in forum Português
    Replies: 2
    Last Post: 16th January 2012, 17:57
  2. [TIPS]Updating Distro`s
    By kyndder in forum Guides & Tutorials
    Replies: 4
    Last Post: 1st July 2011, 04:33
  3. [TIPS] Pacifist
    By kyndder in forum Guides & Tutorials
    Replies: 0
    Last Post: 18th June 2011, 18:06
  4. Tips for Newbies and Those Almost There
    By elmangomez in forum Guides & Tutorials
    Replies: 6
    Last Post: 1st February 2011, 18:16

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •