Results 1 to 4 of 4
Discuss [Solved] Kext doesn't load at boot time :( at the Kernel / Kext (Driver) Support - Hackint0sh.org; Hi all. I'm a new mac ( ) user. My PC is a HP Pavilion ...
  1. #1
    Newbie Array

    Join Date
    Jul 2009
    Posts
    5
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default [Solved] Kext doesn't load at boot time :(

    Hi all.
    I'm a new mac ( ) user.
    My PC is a HP Pavilion DV2555EA notebook running iAtkos (leopard 10.5.7), the wired network card works well with AppleYukon2 kext but it won't load automatically at boot time! Every time I get to the desktop I must load the kext manually from terminal .... a little annoying
    I have tried making OSX recreate the kext cache but no luck
    Thinking about a script that loads the AppleYukon2.kext at boot time or adding the kextload line in a script running during boot, the question is: how can I do it?
    I'm a linux expert but I know barely nothing about OSX so I need some advice on how OSX boot process works and what's the better way to make a script run as super-user during boot.
    Help please!
    Bye bye
    Last edited by pigia; 08-06-2009 at 12:04 AM.


  2. #2
    Newbie Array

    Join Date
    Jul 2009
    Posts
    5
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Lightbulb

    OK, I've managed how to run a script at boot time in Leopard before user logs in (that is launching a Daemon).
    I made a script called com.apple.yukon.plist in/Library/LaunchDaemons/ containing the following:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>KeepAlive</key>
    <false/>
    <key>Label</key>
    <string>com.apple.yukon</string>
    <key>ProgramArguments</key>
    <array>
    <string>//sbin/kextload</string>
    <string>/System/Library/Extensions/AppleYukon2.kext</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>StandardErrorPath</key>
    <string>/dev/null</string>
    <key>StandardOutPath</key>
    <string>/dev/null</string>
    <key>UserName</key>
    <string>root</string>
    </dict>
    </plist>

    As you see I have divided the command line in two parts called arguments as I thounght of them as a command (kextload) and its argument.
    Then I added that script to the daemons running at startup with the following command:
    launchctl load -w /Library/LaunchDaemons/com.apple.yukon.plist
    You can then verify it's in the list of daemons running at startup with:
    launchctl list
    In this way you can run whatever you might like (as you see I load a driver!)
    That's all.
    I hope this will help someone in the future
    Bye bye.

  3. #3
    Hackint0sh Moderator Array icchansan's Avatar

    Join Date
    Sep 2007
    Location
    Puerto Ordaz, Venezuela, Venezuela
    Posts
    6,641
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    348

    Default

    Hey thx for sharing, surely will help other members
    HP Pavilion Elite m9250f
    Snow Leopard 10.6.6, Asus IPIBL-LB MOD BIOS, Intel Quad Core Q6600, 4GB RAM (800mhz), 2x500GB, nVidia 8600GT (Works), ALC888S (Works), Wireless RT73 (Works), LAN (Works) - How to Install - Blog - Hardware Combos - FAQ by TJ2K7
    Macbook Pro 13"
    iPhone 4
    Follow meh: @icchansan

    If you just want to support hackint0sh.org with a donation click here

  4. #4
    Newbie Array

    Join Date
    Oct 2006
    Location
    home
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I want to modify your daemon to load my VoodooPS2Controller.kext automatically. The problem I have is that somehow this kext interferes with the boot process and stalls the boot so that it never completes. If the boot completes, I can manually load this kext to enable both the keyboard & trackpad of a hackintosh laptop. The problem is that your script loads too soon, I need a short delay, probably just a few seconds. I know this should be simple, but I'm new to this. I'm keeping this kext in my /Extra folder with root:wheel ownership&permissions. Here's what I've got so far, which works, but loads too early, causing a panic somehow. When I manually load it using an external USB keyboard & mouse I have zero problems, so a tiny delay will likely solve this issue. How would I add a short delay before the kext loads?

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>KeepAlive</key>
    <false/>
    <key>Label</key>
    <string>org.voodoo.PS2Controller</string>
    <key>ProgramArguments</key>
    <array>
    <string>//sbin/kextload</string>
    <string>/Extra/VoodooPS2Controller.kext</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>StandardErrorPath</key>
    <string>/dev/null</string>
    <key>StandardOutPath</key>
    <string>/dev/null</string>
    <key>UserName</key>
    <string>root</string>
    </dict>
    </plist>

 

 

Similar Threads

  1. Can't load ATI 4800 kext?
    By Whitefangsz in forum Kernel / Kext (Driver) Support
    Replies: 0
    Last Post: 07-14-2010, 10:40 PM
  2. Replies: 0
    Last Post: 11-03-2009, 06:18 PM
  3. [2.1] OfflineMaps doesn't load
    By TwistyValhalla in forum Free Toolchain Software
    Replies: 0
    Last Post: 09-24-2008, 04:14 AM
  4. [1.1.1] iPhone won't boot, load circle endless boot
    By eduardoSA in forum iPhone "2G" (Rev. 1)
    Replies: 4
    Last Post: 01-27-2008, 11:26 AM
  5. how to disable kext load from bootloader
    By juaid in forum Archiv (Leopard)
    Replies: 4
    Last Post: 04-23-2007, 07:50 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 10:27 PM.
twitter, follow us!